/* ===== Product ecosystem tabs ===== */
.ta-products {
    --prod-bg: #0a141c;
    --prod-green: #5fb173;
    --prod-green-bright: #6bc484;
    --prod-text: #ffffff;
    --prod-muted: #9ca8b0;
    --prod-card: #0f1a22;
    --prod-border: rgba(95, 177, 115, 0.45);
    --prod-font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    background: var(--prod-bg);
    font-family: var(--prod-font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    padding: 4rem 0 4.5rem;
}

.ta-products-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background:
        radial-gradient(ellipse 40% 50% at 10% 0%, rgba(95, 177, 115, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 90% 10%, rgba(95, 177, 115, 0.07) 0%, transparent 55%);
}

.ta-products-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ta-products-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

.ta-products-title {
    margin: 0 0 0.85rem;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
}

.ta-products-title span {
    color: var(--prod-green);
    display: block;
}

.ta-products-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--prod-muted);
}

/* Tabs */
.ta-products-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2rem;
    margin: 0 auto 2.25rem;
    max-width: 920px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-products-tab {
    position: relative;
    appearance: none;
    background: none;
    border: none;
    padding: 0.85rem 0.15rem 0.95rem;
    margin: 0;
    font-family: var(--prod-font);
    font-size: 14px;
    font-weight: 500;
    color: #7a8790;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ta-products-tab:hover {
    color: #c5d0d6;
}

.ta-products-tab.is-active {
    color: #fff;
}

.ta-products-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--prod-green);
    box-shadow: 0 0 8px rgba(95, 177, 115, 0.6);
}

.ta-products-tab.is-active::before {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--prod-green);
    box-shadow: 0 0 8px rgba(95, 177, 115, 0.9);
    z-index: 1;
}

/* Panels */
.ta-products-panel {
    display: none;
    animation: ta-prod-fade 0.35s ease;
}

.ta-products-panel.is-active {
    display: block;
}

@keyframes ta-prod-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ta-products-grid {
    display: grid;
    gap: 1.15rem;
    align-items: stretch;
}

.ta-products-grid[data-cols="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ta-products-grid[data-cols="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-products-grid[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
    margin: 0 auto;
}

.ta-products-grid[data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto;
}

.ta-products-grid[data-cols="1"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin: 0 auto;
}

.ta-prod-card {
    display: flex;
    flex-direction: column;
    background: var(--prod-card);
    border: 1px solid var(--prod-border);
    border-radius: 10px;
    padding: 1.35rem 1.2rem 1.2rem;
    min-height: 100%;
    box-shadow: 0 0 20px rgba(95, 177, 115, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ta-prod-card:hover {
    transform: translateY(-4px);
    border-color: rgba(95, 177, 115, 0.85);
    box-shadow: 0 0 28px rgba(95, 177, 115, 0.18);
}

.ta-prod-card--soon {
    opacity: 0.92;
}

.ta-prod-card--soon:hover {
    transform: none;
}

.ta-prod-soon-badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #9fd9b8;
    background: rgba(0, 209, 102, 0.12);
    border: 1px solid rgba(0, 209, 102, 0.28);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.ta-prod-card-link--disabled {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.ta-prod-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    color: var(--prod-green);
}

.ta-prod-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(95, 177, 115, 0.45));
}

.ta-prod-card-title {
    margin: 0 0 0.55rem;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
}

.ta-prod-card-desc {
    margin: 0 0 1rem;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--prod-muted);
    flex: 1;
}

.ta-prod-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.15rem;
}

.ta-prod-tag {
    display: inline-block;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 168, 0.35);
    font-size: 10.5px;
    font-weight: 500;
    color: #b0bcc4;
    line-height: 1.3;
    white-space: nowrap;
}

.ta-prod-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--prod-green) !important;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.ta-prod-card-link:hover {
    color: var(--prod-green-bright) !important;
    gap: 0.45rem;
}

.ta-products-foot {
    margin-top: 2.5rem;
    text-align: center;
}

.ta-products-foot-text {
    margin: 0 0 1.1rem;
    font-size: 13.5px;
    color: var(--prod-muted);
}

.ta-products-foot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid rgba(220, 230, 235, 0.45);
    background: transparent;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ta-products-foot-btn:hover {
    border-color: rgba(95, 177, 115, 0.7);
    background: rgba(95, 177, 115, 0.08);
    transform: translateY(-1px);
    color: #fff !important;
}

@media (max-width: 1100px) {
    .ta-products-grid[data-cols="5"],
    .ta-products-grid[data-cols="4"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .ta-products-grid[data-cols="3"],
    .ta-products-grid[data-cols="2"] {
        max-width: none;
    }
}

@media (max-width: 800px) {
    .ta-products-tabs {
        gap: 0 1.25rem;
    }

    .ta-products-tab {
        font-size: 13px;
    }

    .ta-products-grid[data-cols="5"],
    .ta-products-grid[data-cols="4"],
    .ta-products-grid[data-cols="3"],
    .ta-products-grid[data-cols="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ta-products {
        padding: 3rem 0 3.5rem;
    }

    .ta-products-inner {
        padding: 0 1rem;
    }

    .ta-products-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0 1.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ta-products-tabs::-webkit-scrollbar {
        display: none;
    }

    .ta-products-grid[data-cols="5"],
    .ta-products-grid[data-cols="4"],
    .ta-products-grid[data-cols="3"],
    .ta-products-grid[data-cols="2"],
    .ta-products-grid[data-cols="1"] {
        grid-template-columns: 1fr;
    }

    .ta-products-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ta-products-panel {
        animation: none;
    }
}
