/* ============================================================
   VINSTA LED — Homepage Premium Redesign Layer
   ============================================================
   Pure visual polish. No feature changes. Layered on top of
   style.css + premium.css. Upgrades spacing, typography,
   depth, micro-interactions, and scroll experience.
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   1. HERO SECTION — Moved to cinematic-hero.css
   ══════════════════════════════════════════════════════════ */

/* Legacy hero carousel styles removed. 
   All hero styling now lives in css/cinematic-hero.css */


/* ══════════════════════════════════════════════════════════
   2. SECTION SPACING — Generous, consistent 8px grid
   ══════════════════════════════════════════════════════════ */

.why-led {
    padding: var(--space-16) 0;
}

.impact-section {
    padding: var(--space-16) 0;
}

.applications {
    padding: var(--space-16) 0;
}

.product-showcase {
    padding: var(--space-16) 0;
}

.cta-section {
    padding: var(--space-16) 0;
}

/* Extra breathing room between section header and content */
.section-header {
    margin-bottom: calc(var(--space-8) + var(--space-2));
}


/* ══════════════════════════════════════════════════════════
   3. TYPOGRAPHY — Refined hierarchy & readability
   ══════════════════════════════════════════════════════════ */

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

/* Softer underline accent */
.section-header h2::after {
    width: 40px;
    height: 2.5px;
    bottom: -10px;
    background: linear-gradient(90deg, var(--primary-neon), rgba(111, 251, 255, 0.3));
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.65;
    margin-top: var(--space-3);
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefit items text polish */
.benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: 0.88rem;
    opacity: 0.6;
    line-height: 1.65;
}

/* Comparison heading */
.comparison-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-2);
}

.comparison-text p {
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: var(--space-5);
    line-height: 1.7;
}


/* ══════════════════════════════════════════════════════════
   4. CARD & COMPONENT POLISH — Elevated, cohesive
   ══════════════════════════════════════════════════════════ */

/* Benefit items — glassmorphism cards */
.benefit-item {
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s var(--ease-premium);
}

body.light-theme .benefit-item {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(17, 24, 39, 0.055);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        0 10px 28px rgba(15, 23, 42, 0.06);
}

.benefit-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .benefit-item:hover {
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.82) inset,
        0 18px 48px rgba(15, 23, 42, 0.09),
        0 18px 46px rgba(111, 107, 232, 0.10);
    border-color: rgba(111, 107, 232, 0.16);
}

/* Benefit icon refinement */
.benefit-icon {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
}

/* Application cards — consistent radius, balanced */
.app-card {
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.app-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), var(--shadow-glow);
}

.app-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-1);
}

.app-card p {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* App icon upgrade */
.app-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-3);
}

/* Product card styles inherited from style.css */

.premium-card-content {
    padding: var(--space-4) var(--space-3);
}

/* Comparison visual — consistent radius */
.comparison-visual {
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.comp-row {
    padding: 1.25rem 0;
    font-size: 0.95rem;
}

.comp-row.header {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding-bottom: 1rem;
}

/* Category tab pills — refined */
.tab-btn {
    border-radius: var(--radius-full);
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* ══════════════════════════════════════════════════════════
   5. MICRO-INTERACTIONS — Tactile, intentional
   ══════════════════════════════════════════════════════════ */

/* Buttons — active press effect */
.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Card buttons — refined */
.btn-card {
    border-radius: var(--radius-md);
    padding: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s var(--ease-premium);
}

.btn-card:active {
    transform: scale(0.97);
}

/* Nav link hover underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-premium);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Showcase "View All" link — subtle arrow animation */
.showcase-actions .btn-secondary i,
.showcase-actions .btn-secondary svg {
    transition: transform 0.25s var(--ease-premium);
}

.showcase-actions .btn-secondary:hover i,
.showcase-actions .btn-secondary:hover svg {
    transform: translateX(4px);
}


/* ══════════════════════════════════════════════════════════
   6. BACKGROUND & DEPTH — Layered, atmospheric
   ══════════════════════════════════════════════════════════ */

/* Why LED — ambient radial glow */
.why-led {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(111, 251, 255, 0.03) 0%, transparent 50%),
        var(--bg-primary);
}

body.light-theme .why-led {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(0, 200, 220, 0.03) 0%, transparent 50%),
        var(--bg-primary);
}

/* Impact section — deeper gradient */
.impact-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(111, 251, 255, 0.03) 0%, transparent 50%),
        linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 40%, var(--bg-tertiary) 100%);
}

/* Applications — gradient with depth */
.applications {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(111, 251, 255, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Product showcase — subtle depth */
.product-showcase {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(111, 251, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
}

/* CTA section — elevated glow */
.cta-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(111, 251, 255, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(111, 251, 255, 0.04) 0%, transparent 60%);
    border-top: 1px solid rgba(111, 251, 255, 0.08);
}

/* CTA button — premium glow */
.cta-section .btn-primary {
    border-radius: var(--radius-lg);
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
}

.cta-section .btn-primary:hover {
    box-shadow:
        0 0 36px rgba(111, 251, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.cta-section h2 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.cta-section p {
    opacity: 0.6;
    margin-bottom: var(--space-5);
}


/* ══════════════════════════════════════════════════════════
   7. SCROLL REVEAL — Smooth, refined stagger
   ══════════════════════════════════════════════════════════ */

/* Override scroll reveal for smoother motion */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid items */
.benefit-item,
.app-card {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s var(--ease-out-expo),
        transform 0.5s var(--ease-out-expo),
        background 0.3s var(--ease-premium),
        border-color 0.3s var(--ease-premium),
        box-shadow 0.3s var(--ease-premium);
}

.benefit-item.in-view,
.app-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays via nth-child */
.benefit-item:nth-child(1),
.app-card:nth-child(1) { transition-delay: 0ms; }
.benefit-item:nth-child(2),
.app-card:nth-child(2) { transition-delay: 80ms; }
.benefit-item:nth-child(3),
.app-card:nth-child(3) { transition-delay: 160ms; }
.benefit-item:nth-child(4),
.app-card:nth-child(4) { transition-delay: 240ms; }

/* Comparison visual reveal */
.comparison-visual {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

.comparison-visual.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════
   8. FOOTER — Cleaner, refined
   ══════════════════════════════════════════════════════════ */

.footer {
    padding: var(--space-5) 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}


/* ══════════════════════════════════════════════════════════
   9. GRADIENT SECTION DIVIDERS — Elegant separators
   ══════════════════════════════════════════════════════════ */

/* Refine existing premium.css dividers */
.why-led::after,
.applications::after,
.product-showcase::after {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(111, 251, 255, 0.06) 30%,
        rgba(111, 251, 255, 0.12) 50%,
        rgba(111, 251, 255, 0.06) 70%,
        transparent 95%);
}

body.light-theme .why-led::after,
body.light-theme .applications::after,
body.light-theme .product-showcase::after {
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(0, 0, 0, 0.04) 30%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 70%,
        transparent 95%);
}


/* ══════════════════════════════════════════════════════════
   10. MOBILE OPTIMIZATION
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Reset generous section spacing for mobile */
    .why-led,
    .impact-section,
    .applications,
    .product-showcase,
    .cta-section {
        padding: var(--space-10) 0;
    }

    .section-header {
        margin-bottom: var(--space-6);
    }

    /* Hero mobile — now handled by cinematic-hero.css */

    /* Benefit items — cleaner on mobile */
    .benefit-item {
        padding: var(--space-4) var(--space-3);
        border-radius: var(--radius-lg);
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
    }

    /* App cards */
    .app-card {
        padding: var(--space-4) var(--space-3);
        border-radius: var(--radius-lg);
    }

    /* No stagger delay on mobile (instant reveal) */
    .benefit-item,
    .app-card {
        transition-delay: 0ms !important;
    }

    /* CTA */
    .cta-section .btn-primary {
        border-radius: var(--radius-md);
        padding: 0.85rem 2rem;
        width: auto;
    }

    /* Nav link underline — hide on mobile */
    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .why-led,
    .impact-section,
    .applications,
    .product-showcase,
    .cta-section {
        padding: var(--space-8) 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }
}

/* ============================================================
   Light Mode Premium Cohesion
   ============================================================ */
body.light-theme .hero-actions .btn-primary,
body.light-theme .cta-section .btn-primary {
    background: linear-gradient(135deg, #7470ee 0%, #5d5ad8 100%);
    box-shadow:
        0 12px 30px rgba(93, 90, 216, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.light-theme .hero-actions .btn-primary:hover,
body.light-theme .cta-section .btn-primary:hover {
    filter: brightness(1.03);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 16px 38px rgba(93, 90, 216, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.light-theme .hero-actions .btn-secondary,
body.light-theme .showcase-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(17, 24, 39, 0.08);
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

body.light-theme .hero-actions .btn-secondary:hover,
body.light-theme .showcase-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(111, 107, 232, 0.18);
    color: #5551cf;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
}

body.light-theme .why-led {
    background:
        radial-gradient(ellipse at 18% 6%, rgba(111, 107, 232, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg-primary) 100%);
}

body.light-theme .impact-section {
    background:
        radial-gradient(ellipse at 32% 50%, rgba(111, 107, 232, 0.055) 0%, transparent 44%),
        linear-gradient(160deg, #eef2f8 0%, var(--bg-primary) 48%, #f3f6fb 100%);
}

body.light-theme .applications {
    background:
        radial-gradient(ellipse at 72% 30%, rgba(111, 107, 232, 0.045) 0%, transparent 48%),
        linear-gradient(180deg, var(--bg-primary) 0%, #edf2f8 100%);
}

body.light-theme .product-showcase {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(111, 107, 232, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, #f1f4fa 0%, var(--bg-primary) 74%);
}

body.light-theme .cta-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(111, 107, 232, 0.09) 0%, transparent 52%),
        linear-gradient(180deg, rgba(111, 107, 232, 0.055) 0%, rgba(248, 249, 251, 0) 62%);
    border-top-color: rgba(111, 107, 232, 0.10);
}

body.light-theme .benefit-icon,
body.light-theme .app-icon {
    background: rgba(111, 107, 232, 0.085);
    color: #5551cf;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 10px 24px rgba(111, 107, 232, 0.08);
}

body.light-theme .app-card:hover .app-icon {
    background: linear-gradient(135deg, #7470ee 0%, #5d5ad8 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(93, 90, 216, 0.18);
}

body.light-theme .section-header h2::after,
body.light-theme .why-led::after,
body.light-theme .applications::after,
body.light-theme .product-showcase::after {
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(111, 107, 232, 0.08) 32%,
        rgba(111, 107, 232, 0.18) 50%,
        rgba(111, 107, 232, 0.08) 68%,
        transparent 95%);
}


/* ============================================================
   VINSTA LED — Deluxe Homepage Redesign Additions
   ============================================================ */

/* --- 1. LUXURY SPEC-COMPARISON MATRIX --- */

.comparison-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
    width: 100%;
}

.matrix-card {
    position: relative;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-premium);
}

.legacy-card {
    opacity: 0.55;
    background: rgba(8, 8, 12, 0.4);
    border-color: rgba(255, 255, 255, 0.02);
}

.legacy-card:hover {
    opacity: 0.75;
    background: rgba(8, 8, 12, 0.5);
    transform: translateY(-2px);
}

.vinsta-capsule {
    background: linear-gradient(180deg, rgba(111, 251, 255, 0.04) 0%, rgba(123, 47, 247, 0.02) 100%);
    border: 1px solid rgba(111, 251, 255, 0.12);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    z-index: 2;
}

.vinsta-capsule:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(111, 251, 255, 0.25);
    box-shadow: 
        0 20px 56px rgba(0, 243, 255, 0.06),
        0 0 30px rgba(111, 251, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge-premium {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00f3ff, #7b2ff7);
    color: #08080c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    box-shadow: 
        0 0 12px rgba(0, 243, 255, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.matrix-header {
    text-align: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.matrix-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.matrix-icon i {
    width: 22px;
    height: 22px;
}

.glow-icon {
    background: rgba(0, 243, 255, 0.08);
    color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.matrix-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.matrix-subtitle {
    font-size: 0.76rem;
    color: var(--text-secondary);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.matrix-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.matrix-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-row .label {
    color: var(--text-secondary);
    opacity: 0.7;
}

.matrix-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.matrix-row.highlight-row {
    border-bottom-color: rgba(111, 251, 255, 0.04);
}

.matrix-row .value.highlight {
    color: #00f3ff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.matrix-row .value.highlight i {
    width: 16px;
    height: 16px;
    color: #00ffaa;
}

/* Light Theme Matrix */
body.light-theme .matrix-card {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

body.light-theme .legacy-card {
    opacity: 0.65;
    background: rgba(240, 242, 245, 0.4);
}

body.light-theme .vinsta-capsule {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(111, 107, 232, 0.04) 100%);
    border-color: rgba(111, 107, 232, 0.18);
    box-shadow: 
        0 20px 48px rgba(111, 107, 232, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.light-theme .vinsta-capsule:hover {
    border-color: rgba(111, 107, 232, 0.35);
    box-shadow: 
        0 24px 56px rgba(111, 107, 232, 0.14),
        0 0 20px rgba(111, 107, 232, 0.1);
}

body.light-theme .badge-premium {
    background: linear-gradient(90deg, #6f6be8, #a78bfa);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(111, 107, 232, 0.25);
}

body.light-theme .glow-icon {
    background: rgba(111, 107, 232, 0.08);
    color: #6f6be8;
    box-shadow: none;
}

body.light-theme .matrix-icon {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .matrix-header {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .matrix-row {
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .matrix-row .value.highlight {
    color: #5551cf;
    text-shadow: none;
}


/* --- 2. CYBERNETIC SEGMENTED TABS CONTROLLER --- */

.category-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-8);
}

.category-tabs {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    padding: 5px;
    z-index: 1;
    isolation: isolate;
}

.tab-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    background: rgba(111, 251, 255, 0.08);
    border: 1px solid rgba(111, 251, 255, 0.2);
    box-shadow: 0 0 15px rgba(111, 251, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 0;
    will-change: left, width;
}

.tab-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}

.tab-btn.active {
    color: #00f3ff !important;
    opacity: 1;
}

/* Light Theme Segmented Tabs */
body.light-theme .category-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(17, 24, 39, 0.05);
}

body.light-theme .tab-indicator {
    background: rgba(111, 107, 232, 0.08);
    border-color: rgba(111, 107, 232, 0.2);
    box-shadow: 0 2px 8px rgba(111, 107, 232, 0.06);
}

body.light-theme .tab-btn.active {
    color: #5551cf !important;
}


/* --- 3. B2B PRE-FLIGHT INTERACTIVE CTA CONSOLE --- */

.cta-deluxe-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #00f3ff;
    margin-bottom: var(--space-2);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

body.light-theme .cta-label {
    color: #6f6be8;
    text-shadow: none;
}

.cta-pitch h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: var(--space-3);
}

.cta-pitch p {
    font-size: 1.02rem;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 540px;
    margin-bottom: var(--space-6);
}

/* Counters Container */
.cta-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    width: 100%;
}

.metric-card-mini {
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: left;
}

.metric-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #00f3ff;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

.metric-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00f3ff;
}

.metric-label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: var(--space-1);
    line-height: 1.3;
}

/* Configurator Box (Right) */
.cta-configurator {
    background: rgba(8, 8, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.config-header {
    margin-bottom: var(--space-4);
}

.config-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.config-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 0;
}

/* Config selector tabs button row */
.config-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 3px;
    margin-bottom: var(--space-4);
}

.config-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.3s;
}

.config-tab i {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.config-tab span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.config-tab:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.02);
}

.config-tab.active {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.15);
    color: #00f3ff;
    opacity: 1;
}

/* Estimation glass output panel */
.config-display {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.display-glow-effect {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.08) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.disp-label {
    color: var(--text-secondary);
    opacity: 0.5;
}

.disp-value {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    transition: color 0.3s;
}

.disp-value.neon-text {
    color: #00f3ff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

.config-action {
    width: 100%;
}

.btn-cta-deluxe {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.95rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-cta-deluxe i {
    width: 16px;
    height: 16px;
    transition: transform 0.25s;
}

.btn-cta-deluxe:hover i {
    transform: translateX(4px);
}

/* Light Theme B2B CTA */
body.light-theme .metric-card-mini {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(17, 24, 39, 0.04);
}

body.light-theme .metric-num,
body.light-theme .metric-unit {
    color: #5551cf;
    text-shadow: none;
}

body.light-theme .cta-configurator {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(111, 107, 232, 0.14);
    box-shadow: 
        0 24px 64px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.light-theme .config-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .config-tab:hover {
    background: rgba(0, 0, 0, 0.01);
}

body.light-theme .config-tab.active {
    background: rgba(111, 107, 232, 0.08);
    border-color: rgba(111, 107, 232, 0.15);
    color: #5551cf;
}

body.light-theme .config-display {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .disp-value.neon-text {
    color: #5551cf;
    text-shadow: none;
}

body.light-theme .display-glow-effect {
    background: radial-gradient(circle, rgba(111, 107, 232, 0.06) 0%, transparent 70%);
}


/* --- 4. RESPONSIVE DESIGN FOR NEW ELEMENTS --- */

@media (max-width: 991px) {
    .cta-deluxe-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .cta-pitch {
        align-items: center;
        text-align: center;
    }
    
    .cta-pitch p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-configurator {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .category-tabs-container {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: var(--space-2) var(--space-4);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .category-tabs {
        margin: 0 auto;
        display: inline-flex;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .cta-metrics {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        margin-bottom: var(--space-4);
    }
    
    .metric-card-mini {
        text-align: center;
        padding: var(--space-3) var(--space-1) !important;
    }
    
    .metric-num {
        font-size: 1.15rem !important;
    }
    
    .metric-unit {
        font-size: 0.8rem !important;
    }
    
    .metric-label {
        font-size: 0.58rem !important;
        line-height: 1.25;
        margin-top: 2px;
    }
    
    .config-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .config-tab {
        padding: 10px 4px !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 6px !important;
    }
    
    .config-tab span {
        display: inline !important;
        font-size: 0.7rem !important;
    }
    
    .config-tab i {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .metric-card-mini {
        padding: var(--space-2) var(--space-1) !important;
    }
    
    .metric-num {
        font-size: 1.05rem !important;
    }
    
    .config-tab span {
        font-size: 0.65rem !important;
    }
}

