:root,
[data-theme="dark"] {
    /* ==========================================================================
     BOLT-BLUE DARK THEME - Smooth, Vibrant, Professional
     Optimized for dark mode only
     ========================================================================== */

    /* Slate Neutrals - Deep, Rich */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Bolt Blue Palette - Vibrant but easy on eyes */
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;

    /* Dark Theme Colors */
    --bg-body: #020617;
    --bg-body-gradient: linear-gradient(180deg, #020617 0%, #0c1629 50%, #0f172a 100%);
    --bg-surface: rgba(15, 23, 42, 0.6);
    --bg-surface-solid: #0f172a;
    --bg-surface-glass: rgba(15, 23, 42, 0.7);
    --bg-elevated: rgba(30, 41, 59, 0.8);
    --bg-elevated-rgb: 22, 27, 40;
    --bg-muted: rgba(15, 23, 42, 0.4);

    --text-heading: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #64748b;
    --text-on-primary: #ffffff;

    --border-default: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(148, 163, 184, 0.3);

    /* Brand Colors */
    --brand-primary: #3b82f6;
    --brand-primary-hover: #60a5fa;
    --brand-primary-light: rgba(59, 130, 246, 0.15);
    --brand-accent: #22d3ee;
    --brand-gradient-start: #3b82f6;
    --brand-gradient-end: #60a5fa;

    /* Shadows - Subtle and elegant */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px -15px rgba(59, 130, 246, 0.5);
    --shadow-glow-strong: 0 0 100px -20px rgba(59, 130, 246, 0.6);

    /* Layout */
    --container-max: 1280px;
    --nav-height: 80px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Radii - Softer, more refined */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.75rem;
    --radius-full: 9999px;

    /* Transitions - Smooth and elegant */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================================================================
   LIGHT THEME OVERRIDES
   ================================================================== */
[data-theme="light"] {
    --blue-300: #3b82f6;
    --blue-400: #1d4ed8;
    --blue-500: #1e40af;
    --blue-600: #1e3a8a;
    --blue-700: #1e3a8a;
    --cyan-400: #0e7490;
    --cyan-500: #0f766e;

    --bg-body: #edf2fb;
    --bg-body-gradient: linear-gradient(180deg, #f5f8ff 0%, #ecf2fb 52%, #e2ebf8 100%);
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-solid: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.9);
    --bg-elevated: rgba(255, 255, 255, 0.95);
    --bg-elevated-rgb: 255, 255, 255;
    --bg-muted: rgba(226, 235, 248, 0.72);

    --text-heading: #0b1220;
    --text-body: #334155;
    --text-muted: #516074;
    --text-on-primary: #ffffff;

    --border-default: rgba(15, 23, 42, 0.16);
    --border-strong: rgba(15, 23, 42, 0.24);

    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-primary-light: rgba(37, 99, 235, 0.14);
    --brand-accent: #0891b2;
    --brand-gradient-start: #2563eb;
    --brand-gradient-end: #3b82f6;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px -15px rgba(37, 99, 235, 0.2);
    --shadow-glow-strong: 0 0 100px -20px rgba(37, 99, 235, 0.3);
}

/* ==================================================================
   LIGHT THEME ACCESSIBILITY TUNING
   Keeps colored text/icons readable on bright surfaces
   ================================================================== */
[data-theme="light"] .save-badge {
    color: #166534;
    border-color: rgba(22, 101, 52, 0.35);
    background: rgba(34, 197, 94, 0.16);
}

[data-theme="light"] .check,
[data-theme="light"] .plan-features li::before,
[data-theme="light"] .compare-card .compare-strength {
    color: #166534;
}

[data-theme="light"] .compare-card .compare-limit {
    color: #b91c1c;
}

[data-theme="light"] .research-table .highlight-cell,
[data-theme="light"] .roi-table thead th,
[data-theme="light"] .section-label,
[data-theme="light"] .research-hero-label {
    color: #1e40af;
}

[data-theme="light"] .finding-card-icon svg,
[data-theme="light"] .research-meta-item svg,
[data-theme="light"] .stat-icon svg {
    color: #1e40af;
}

/* Override inline red/green text used in research outcome cards */
[data-theme="light"] .research-content [style*="#4ade80"] {
    color: #166534 !important;
}

[data-theme="light"] .research-content [style*="#f87171"] {
    color: #b91c1c !important;
}

[data-theme="light"] .research-content [style*="rgba(74,222,128,0.1)"] {
    background: rgba(22, 101, 52, 0.14) !important;
}

[data-theme="light"] .research-content [style*="rgba(248,113,113,0.1)"] {
    background: rgba(185, 28, 28, 0.12) !important;
}

/* Light mode overrides for specific sections */
[data-theme="light"] .section-cta {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

[data-theme="light"] .cta-box h2 {
    color: white;
}

[data-theme="light"] .cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .cta-resources {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .cta-resources a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .section-cta .btn-primary {
    background: white;
    color: #1d4ed8;
}

[data-theme="light"] .section-cta::before {
    background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.3) 0%, rgba(30, 64, 175, 0.1) 70%);
}

[data-theme="light"] .hero-video-info {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
}

[data-theme="light"] .stat-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

[data-theme="light"] .footer {
    background: #e8eff9;
}

[data-theme="light"] .footer-sources {
    background: #dbe6f5;
}