/* ==========================================================================
   AUTOMYA - Premium B2B SaaS for Medical Practices
   Design System: Inspired by Linear, Vercel, Aircall, Raycast
   Dark mode with medical-grade trust palette
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Core Palette */
    --bg-primary: #04090F;
    --bg-surface: #0B1829;
    --bg-elevated: #122240;
    --accent-primary: #2563EB;
    --accent-light: #60A5FA;
    --accent-subtle: #1D4ED8;
    --success: #10B981;
    --warning: #F59E0B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(148, 163, 184, 0.12);

    /* Surfaces & Glass */
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --glass-hover: rgba(255, 255, 255, 0.10);

    /* Strokes */
    --stroke-weak: rgba(148, 163, 184, 0.08);
    --stroke-strong: rgba(148, 163, 184, 0.16);
    --stroke-accent: rgba(37, 99, 235, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.12);

    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --leading-tight: 1.2;
    --leading-normal: 1.7;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur-fast: 0.15s;
    --dur-normal: 0.25s;
    --dur-slow: 0.4s;

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, var(--accent-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
    --gradient-surface: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    --section-padding: 100px;
}


/* ==========================================================================
   SCROLL-SNAP — Full-screen sections (antigravity.google style)
   ========================================================================== */

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

main > section,
.hero {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Tall sections: don't force 100vh, let content flow naturally */
.pricing-section,
#faq {
    min-height: auto;
    padding: 100px 0;
}

footer {
    scroll-snap-align: start;
}


/* ==========================================================================
   GSAP SCROLL ANIMATIONS
   ========================================================================== */

/*
 * GSAP animations — NO CSS opacity:0 here.
 * GSAP sets the initial hidden state via JS only (fromTo).
 * This guarantees content is ALWAYS visible if GSAP fails to load.
 */

/* Parallax container */
.parallax-layer {
    will-change: transform;
    transition: none; /* Let GSAP handle it */
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    font-size: 1rem;
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Subtle grid texture (Linear style) */
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Scrollbar styling - visible but refined */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
    color: var(--text-primary);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: var(--leading-tight);
    color: var(--text-primary);
    font-weight: 700;
}

h1.hero-title,
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2,
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    max-width: 800px;
    margin: 0 auto;
}

.gradient-divider.soft {
    opacity: 0.6;
}


/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    transition: all var(--dur-normal) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4),
                0 0 60px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: var(--glass-strong);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--stroke-strong);
}

.btn-outline {
    background: transparent;
    color: var(--accent-light);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
}

.btn-nav {
    background: var(--accent-primary);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
}

.btn-nav:hover {
    background: var(--accent-subtle);
    color: #fff;
}

.btn-lang-toggle {
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.btn-lang-toggle:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

/* --- Badge Trust --- */

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}


/* ==========================================================================
   5. PREMIUM LOADER
   ========================================================================== */

/* ==========================================================================
   5. PREMIUM LOADER
   ========================================================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020408;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

#loading-screen::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at center, transparent 30%, rgba(5, 5, 8, 1) 70%),
        radial-gradient(circle at 20% 50%, rgba(66, 133, 244, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-logo-container {
    position: relative;
    width: 320px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.3));
}

.loader-logo-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Text particles canvas below logo ── */
.loader-text-canvas {
    margin-top: 8px;
}

/* Cursor particles canvas - hidden by default */
#cursor-particles {
    display: none;
}


/* ==========================================================================
   5b. AMBIENT BACKGROUND
   ========================================================================== */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: ambientFloat 20s ease-in-out infinite;
}

.ambient-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.ambient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.06) 40%, transparent 70%);
    bottom: 10%;
    left: -10%;
    animation-delay: -6s;
    animation-duration: 25s;
}

.ambient-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.05) 40%, transparent 70%);
    top: 35%;
    right: 15%;
    animation-delay: -12s;
    animation-duration: 18s;
}

@keyframes ambientFloat {
    0% { opacity: 0.5; transform: translate(0, 0) scale(1); }
    25% { opacity: 0.8; transform: translate(40px, -30px) scale(1.08); }
    50% { opacity: 0.6; transform: translate(-30px, 40px) scale(0.95); }
    75% { opacity: 0.9; transform: translate(20px, 20px) scale(1.1); }
    100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
}


/* Main content above ambient background */
main {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(4, 9, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-normal) var(--ease-out),
                box-shadow var(--dur-normal) var(--ease-out);
}

.header.scrolled {
    background: rgba(4, 9, 15, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.header nav,
.header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: color var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-out);
}

.nav-links li a:hover {
    color: var(--text-primary);
    background: var(--glass-hover);
}

.nav-links li a.btn.btn-nav {
    background: var(--accent-primary);
    color: #fff;
}

.nav-links li a.btn.btn-nav:hover {
    background: var(--accent-subtle);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--dur-normal) var(--ease-out);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ==================== HEADER TOGGLES ==================== */
.header-toggles {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.theme-toggle,
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.lang-toggle {
    width: auto;
    padding: 0 12px;
    font-family: var(--font-stack);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sun/Moon icon visibility */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Default: show sun (we're dark by default) */
.icon-moon { display: none; }


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.hero .container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Trust Badges Row */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badges .badge-trust {
    font-size: 0.7rem;
}

/* Dashboard Preview */
.dashboard-preview {
    max-width: 560px;
    margin: 2.5rem auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot.red { background: #EF4444; }
.dash-dot.yellow { background: #F59E0B; }
.dash-dot.green { background: #10B981; }

.call-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--stroke-weak);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background var(--dur-fast);
}

.call-row:hover {
    background: var(--glass);
}

.call-row:last-of-type {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.processing {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-light);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.missed {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ==========================================================================
   8. COMPLIANCE BANNER
   ========================================================================== */

.compliance-banner {
    padding: 40px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.compliance-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.compliance-banner .shield-icon {
    color: var(--accent-light);
    flex-shrink: 0;
}

.compliance-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}


/* ==========================================================================
   9. SECTION PROBLEM / STATS
   ========================================================================== */

.section-problem {
    padding: var(--section-padding) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}


/* ==========================================================================
   10. FEATURES / MODULES GRID
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

/* Last 2 cards center if 5 total */
.features-grid > :nth-child(4) {
    grid-column: 1 / 2;
}

.features-grid > :nth-child(5) {
    grid-column: 2 / 3;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--stroke-accent);
    transform: translateY(-4px);
}

.feature-card .icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* ==========================================================================
   11. BENEFITS SECTION
   ========================================================================== */

.benefits-section {
    padding: var(--section-padding) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                0 0 40px rgba(37, 99, 235, 0.05);
}

.benefit-number {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--accent-light);
    text-shadow: 0 0 24px rgba(96, 165, 250, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.benefit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ==========================================================================
   12. SOLUTIONS SECTION
   ========================================================================== */

.solutions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-header p {
    max-width: 600px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    overflow: hidden;
    will-change: transform;
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                0 0 40px rgba(37, 99, 235, 0.05);
}

/* Solution badge - kept for HTML compatibility but styled neutrally */
.solution-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: var(--glass-strong);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Neutral badge styles - no red/yellow/green indicators */
.solution-badge.off,
.solution-badge.risk,
.solution-badge.on {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
    border-color: rgba(37, 99, 235, 0.2);
}

.solution-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.solution-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.solution-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Featured solution (Sante) */
.solution-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, var(--glass) 100%);
}


/* ==========================================================================
   13. SECURITY SECTION
   ========================================================================== */

.security-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.security-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.security-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.security-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
}

.security-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2rem auto;
    max-width: 480px;
    text-align: left;
}

.security-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.security-check svg,
.security-check .check-icon {
    flex-shrink: 0;
    color: var(--success);
}

.security-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    transition: color var(--dur-fast);
}

.security-link:hover {
    color: var(--text-primary);
}


/* ==========================================================================
   14. DEMO AUDIO SECTION
   ========================================================================== */

.demo-audio-card {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.demo-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.demo-content {
    position: relative;
    z-index: 1;
}

.demo-header {
    margin-bottom: 2rem;
}

.demo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    /* No handwriting font - professional only */
    font-family: var(--font-stack);
}

.demo-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.demo-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.demo-cta {
    margin-bottom: 2rem;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--dur-normal) var(--ease-out);
    text-decoration: none;
}

.demo-btn:hover {
    background: var(--accent-subtle);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.demo-audio-section {
    margin-top: 1.5rem;
}

.demo-audio-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.demo-audio-player {
    display: flex;
    justify-content: center;
}

.audio-player,
audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
    border-radius: var(--radius-pill);
    outline: none;
}

/* Webkit audio styling */
audio::-webkit-media-controls-panel {
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
}


/* ==========================================================================
   15. FAQ SECTION
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    transition: color var(--dur-fast);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-question:hover span {
    color: var(--accent-light);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--dur-normal) var(--ease-out);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ==========================================================================
   16. CTA SECTION
   ========================================================================== */

.cta-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.cta-subtitle {
    font-size: 0.95rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.cta-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.benefit-check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 32px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--dur-normal) var(--ease-out);
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--accent-subtle);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.button-text {
    font-weight: 600;
}

.button-subtext {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}


/* ==========================================================================
   17. PRICING SECTION
   ========================================================================== */

.pricing-interactive {
    padding: var(--section-padding) 0;
    position: relative;
}

.pricing-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    overflow: hidden;
    will-change: transform;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                0 0 40px rgba(37, 99, 235, 0.05);
}

/* Recommended / Popular Card */
.pricing-card.popular {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--glass) 100%);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-price {
    margin-bottom: 1.5rem;
}

.price-prefix {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.price-prefix.small {
    font-size: 0.75rem;
}

.price-amount {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-amount.custom {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.price-ht {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}

.price-suffix {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-suffix.small {
    font-size: 0.8rem;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--success);
    margin-top: 1px;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--glass-strong);
    color: var(--text-primary);
    transition: all var(--dur-normal) var(--ease-out);
}

.card-cta:hover {
    background: var(--glass-hover);
    border-color: var(--stroke-strong);
}

.card-cta.primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.card-cta.primary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-subtle);
}

/* Card glow placeholder - kept minimal */
.card-glow {
    display: none;
}


/* ==========================================================================
   18. PRICING OVERLAY / DETAILS
   ========================================================================== */

.details-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.details-overlay.active {
    display: flex;
}

.overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.overlay-content {
    position: relative;
    z-index: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast);
}

.close-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.close-btn svg {
    width: 18px;
    height: 18px;
}

.overlay-inner {
    text-align: center;
}

.overlay-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.overlay-price {
    font-size: 1.25rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 2rem;
}


/* ==========================================================================
   19. FOOTER
   ========================================================================== */

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: var(--bg-surface);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-center {
    text-align: center;
}

.footer-center a {
    font-size: 0.9rem;
    color: var(--accent-light);
}

.footer-center a:hover {
    color: var(--text-primary);
}

.footer-right {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-right a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--dur-fast);
}

.footer-right a:hover {
    color: var(--text-primary);
}

/* Extended footer layout (4-column) */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color var(--dur-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-baseline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ==========================================================================
   20. SCROLL REVEAL (Enhanced)
   ========================================================================== */

/* OLD reveal system disabled — GSAP handles all scroll animations now */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.reveal.active .module-card,
.reveal.revealed .module-card,
.reveal.active .pricing-card,
.reveal.revealed .pricing-card,
.reveal.active .stat-card,
.reveal.revealed .stat-card,
.reveal.active .benefit-card,
.reveal.revealed .benefit-card,
.reveal.active .solution-card,
.reveal.revealed .solution-card,
.reveal.active .security-item,
.reveal.revealed .security-item,
.reveal.active .faq-item,
.reveal.revealed .faq-item {
    animation: staggerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.active .module-card:nth-child(1), .reveal.revealed .module-card:nth-child(1),
.reveal.active .stat-card:nth-child(1), .reveal.revealed .stat-card:nth-child(1),
.reveal.active .pricing-card:nth-child(1), .reveal.revealed .pricing-card:nth-child(1),
.reveal.active .benefit-card:nth-child(1), .reveal.revealed .benefit-card:nth-child(1) { animation-delay: 0.05s; }

.reveal.active .module-card:nth-child(2), .reveal.revealed .module-card:nth-child(2),
.reveal.active .stat-card:nth-child(2), .reveal.revealed .stat-card:nth-child(2),
.reveal.active .pricing-card:nth-child(2), .reveal.revealed .pricing-card:nth-child(2),
.reveal.active .benefit-card:nth-child(2), .reveal.revealed .benefit-card:nth-child(2) { animation-delay: 0.1s; }

.reveal.active .module-card:nth-child(3), .reveal.revealed .module-card:nth-child(3),
.reveal.active .stat-card:nth-child(3), .reveal.revealed .stat-card:nth-child(3),
.reveal.active .pricing-card:nth-child(3), .reveal.revealed .pricing-card:nth-child(3),
.reveal.active .benefit-card:nth-child(3), .reveal.revealed .benefit-card:nth-child(3) { animation-delay: 0.15s; }

.reveal.active .module-card:nth-child(4), .reveal.revealed .module-card:nth-child(4),
.reveal.active .pricing-card:nth-child(4), .reveal.revealed .pricing-card:nth-child(4),
.reveal.active .benefit-card:nth-child(4), .reveal.revealed .benefit-card:nth-child(4) { animation-delay: 0.2s; }

.reveal.active .module-card:nth-child(5), .reveal.revealed .module-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes staggerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   21. LEGAL PAGES (Light Mode)
   ========================================================================== */

.legal-page,
.legal-page body {
    background: #FAFBFC;
    color: #1E293B;
    background-image: none;
}

.legal-page main {
    padding-top: calc(var(--header-height) + 40px);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.legal-page .page-title {
    color: #1E293B;
}

/* Legal content */
.legal-content,
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section,
.privacy-section {
    margin-bottom: 3rem;
}

.legal-page h2 {
    color: #1E293B;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
    margin: 2.5rem 0 1rem;
}

.legal-page h3 {
    color: #334155;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.legal-page p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-page ul {
    margin: 0.75rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.legal-page li {
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-page strong {
    color: #1E293B;
}

.legal-page a {
    color: var(--accent-primary);
}

.legal-page a:hover {
    color: var(--accent-subtle);
}

/* Legal pages — dark mode overrides */
[data-theme="dark"] .legal-page,
[data-theme="dark"] .legal-page body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .legal-page .page-title,
[data-theme="dark"] .legal-page h2,
[data-theme="dark"] .legal-page h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .legal-page p,
[data-theme="dark"] .legal-page li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .legal-page strong {
    color: var(--text-primary) !important;
}

/* Back link (legal pages) */
.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

/* Dark theme back link */
body:not(.legal-page) .back-link {
    border-top-color: var(--border);
}

.back-link .btn {
    display: inline-flex;
}

/* Legal page footer: keep dark theme (same as main site) */


/* ==========================================================================
   22. ABOUT PAGE
   ========================================================================== */

.about-page main {
    padding-top: calc(var(--header-height) + 40px);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-intro p {
    color: var(--text-secondary);
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.about-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.5rem;
}

.about-section li {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
}

.about-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.about-section li strong {
    color: var(--text-primary);
}

.about-image {
    text-align: center;
    margin: 2rem 0;
}

/* Values cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.value-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
}

.value-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* ==========================================================================
   23. CONTACT PAGE
   ========================================================================== */

.contact-page main {
    padding-top: calc(var(--header-height) + 40px);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.contact-method {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.contact-method h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-method p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-method a {
    color: var(--accent-light);
}

/* Contact Form */
.contact-form {
    max-width: 640px;
    margin: 0 auto 3rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--dur-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.contact-info {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--text-primary);
}


/* ==========================================================================
   24. SECURITY PAGE
   ========================================================================== */

.security-page main {
    padding-top: calc(var(--header-height) + 40px);
}

.security-badges-large {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 3rem;
}

.security-badges-large .badge-trust {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.principles-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.principle-item .check-icon {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.principle-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.principle-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.architecture-placeholder {
    max-width: 700px;
    margin: 3rem auto;
    padding: 48px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-muted);
}


/* ==========================================================================
   LEGAL PAGES - Light Mode Content with Dark Header/Footer
   ========================================================================== */

.legal-page {
    background: #ffffff;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-page .legal-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.legal-page .legal-updated {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

/* Table of Contents */
.legal-page .legal-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 48px;
}

.legal-page .legal-toc h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin-bottom: 16px;
}

.legal-page .legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}

.legal-page .legal-toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.legal-page .legal-toc a {
    font-size: 0.9rem;
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.6;
}

.legal-page .legal-toc a:hover {
    color: #38BDF8;
    text-decoration: underline;
}

/* Sections */
.legal-page .legal-section {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.legal-page .legal-section.active {
    opacity: 1;
    transform: translateY(0);
}

.legal-page .legal-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #38BDF8;
    letter-spacing: -0.01em;
}

.legal-page .legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-page .legal-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 12px;
}

.legal-page .legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
}

.legal-page .legal-section li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.legal-page .legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38BDF8;
}

.legal-page .legal-section strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-page .legal-section a {
    color: #1e40af;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-page .legal-section a:hover {
    color: #38BDF8;
    border-bottom-color: #38BDF8;
}

/* Important callout box */
.legal-page .legal-callout {
    background: #f0f9ff;
    border-left: 3px solid #38BDF8;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.legal-page .legal-callout p {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0;
}

/* Back link */
.legal-page .legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e40af;
    text-decoration: none;
    padding: 10px 0;
    margin-top: 32px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.legal-page .legal-back:hover {
    color: #38BDF8;
    gap: 10px;
}

/* Bottom update note */
.legal-page .legal-footer-note {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .legal-page .legal-toc ol {
        columns: 1;
    }

    .legal-page .legal-toc {
        padding: 20px;
    }

    .legal-container {
        padding: 0 16px;
    }
}


/* ==========================================================================
   25. RESPONSIVE - TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid > :nth-child(4),
    .features-grid > :nth-child(5) {
        grid-column: auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-methods {
        grid-template-columns: 1fr 1fr;
    }

    .contact-methods .contact-method:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}


/* ==========================================================================
   26. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --header-height: 64px;
    }

    body {
        background-size: 48px 48px;
    }

    /* Header becomes hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(4, 9, 15, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 8px;
        border-radius: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--dur-normal) var(--ease-out),
                    opacity var(--dur-normal) var(--ease-out),
                    visibility var(--dur-normal);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li a {
        padding: 12px 16px;
        width: 100%;
        justify-content: center;
    }

    .btn-lang-toggle {
        position: absolute;
        right: 72px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 48px;
    }

    .hero p {
        font-size: 1rem;
    }

    .dashboard-preview {
        margin: 2rem auto;
    }

    /* Typography */
    h2, .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    /* Grids */
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-item + .stat-item::before {
        display: none;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-right {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* CTA */
    .cta-card {
        padding: 32px 24px;
    }

    .demo-audio-card {
        padding: 32px 24px;
    }

    /* Overlay */
    .overlay-content {
        padding: 32px 24px;
        width: 95%;
    }

    /* Contact */
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .contact-methods .contact-method:last-child {
        max-width: none;
    }

    .contact-form {
        padding: 28px 20px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Legal */
    .legal-page h2 {
        font-size: 1.25rem;
    }

    .back-link {
        text-align: center;
    }
}


/* ==========================================================================
   27. RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        gap: 8px;
    }

    .badge-trust {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .logo-icon {
        height: 48px;
    }

    .demo-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .pricing-container {
        padding: 0 16px;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .call-row {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
}


/* ==========================================================================
   29. LOGO TEXT & NAV CTA & MOBILE MENU BTN
   ========================================================================== */

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 8px;
}

.btn-nav-cta {
    background: var(--accent-primary);
    color: #fff !important;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all var(--dur-normal) var(--ease-out);
}

.btn-nav-cta:hover {
    background: var(--accent-subtle);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--dur-normal) var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}


/* ==========================================================================
   30. ABOUT PAGE - ENHANCED
   ========================================================================== */

/* Vision two-column layout */
.about-vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    max-width: 960px;
    margin: 2rem auto 0;
}

.about-vision-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-vision-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-stat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: border-color var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.about-stat-card:hover {
    border-color: var(--stroke-accent);
    transform: translateY(-2px);
}

.about-stat-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 4-column value cards grid */
.about-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-light);
    margin: 0 auto 1rem;
}

/* "Ce que nous ne sommes pas" list */
.about-not-list {
    max-width: 640px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-not-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: border-color var(--dur-normal) var(--ease-out);
}

.about-not-item:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.about-not-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    flex-shrink: 0;
}

.about-closing-statement {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* "Nos valeurs" list */
.about-values-list {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
}

.about-value-item:hover {
    border-color: var(--stroke-accent);
    transform: translateY(-2px);
}

.about-value-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-value-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}


/* ==========================================================================
   31. CONTACT PAGE - ENHANCED
   ========================================================================== */

/* Two-column contact layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-panel {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form-panel .form-group {
    margin-bottom: 1.25rem;
}

.contact-form-panel .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form-panel .form-group input,
.contact-form-panel .form-group textarea,
.contact-form-panel .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-stack);
    transition: border-color var(--dur-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form-panel .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-form-panel .form-group input:focus,
.contact-form-panel .form-group textarea:focus,
.contact-form-panel .form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-panel .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-panel .form-group input::placeholder,
.contact-form-panel .form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.contact-form-panel .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Right column info panel */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-block {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color var(--dur-normal) var(--ease-out);
}

.contact-info-block:hover {
    border-color: var(--stroke-accent);
}

.contact-info-block h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-block a {
    color: var(--accent-light);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info-block a:hover {
    color: var(--text-primary);
}

.contact-info-block p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.contact-info-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-info-note {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--text-muted);
}

.contact-info-note p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}


/* ==========================================================================
   32. RESPONSIVE OVERRIDES FOR NEW PAGES
   ========================================================================== */

@media (max-width: 1024px) {
    .about-vision-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-vision-stats {
        flex-direction: row;
        gap: 16px;
    }

    .about-stat-card {
        flex: 1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-vision-stats {
        flex-direction: column;
    }

    .contact-form-panel {
        padding: 28px 20px;
    }

    .about-value-item {
        padding: 20px;
    }

    .about-not-item {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-form-panel {
        padding: 20px 16px;
    }

    .contact-info-block {
        padding: 20px 16px;
    }

    .about-stat-card {
        padding: 20px 16px;
    }
}


/* ==========================================================================
   28. PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .demo-glow,
    .card-glow,
    #loading-screen,
    #cursor-particles,
    .ambient-bg {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
        background-image: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   MISSING STYLES - Index Page Specific
   ========================================================================== */

/* Header scrolled - support both class names */
.header.header-scrolled {
    background: rgba(4, 9, 15, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: var(--leading-normal);
}

/* Hero CTAs container */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Trust badges (individual badge) */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--glass);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--accent-light);
}

/* Stat cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                0 0 40px rgba(37, 99, 235, 0.05);
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Section description */
.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 700px;
    margin: -2rem auto 3rem;
    line-height: var(--leading-normal);
}

/* Modules grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
                0 0 40px rgba(37, 99, 235, 0.05);
}

/* ==========================================================================
   HORIZONTAL CAROUSEL (Modules section)
   ========================================================================== */

.modules-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.modules-carousel-wrapper::before,
.modules-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.modules-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.modules-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.modules-carousel {
    display: flex;
    gap: 24px;
    padding: 20px 0 20px 40px;
    will-change: transform;
    cursor: grab;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modules-carousel::-webkit-scrollbar {
    display: none;
}

.modules-carousel:active {
    cursor: grabbing;
}

.modules-carousel .module-card {
    flex: 0 0 340px;
    min-width: 340px;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.carousel-dot.active {
    opacity: 1;
    background: var(--accent-primary);
    transform: scale(1.3);
}

.module-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.module-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution card featured */
.solution-card-featured,
.solution-card.featured {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--glass-strong);
    border: 1px solid var(--stroke-accent);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.solution-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.solution-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solutions secondary grid */
.solutions-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Security section grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 2rem auto;
}

.security-grid > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass);
    border: 1px solid var(--stroke-weak);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.security-card:hover {
    border-color: var(--stroke-strong);
    transform: translateY(-2px);
}

.security-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.security-card span {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: var(--section-padding) 0;
}

.cta-section .glass-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.cta-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Button large */
.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Button small */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: normal;
    text-align: center;
}

/* Solution card CTA spacing */
.solution-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Audio demo placeholder */
.demo-audio-placeholder {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 0;
}

/* Pricing section */
.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card-popular {
    border-color: var(--accent-primary);
    background: var(--glass-strong);
}

.pricing-card-popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    z-index: -1;
    opacity: 0.15;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-amount.pricing-custom {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--success);
}

.pricing-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.pricing-card-enterprise {
    border-style: dashed;
}

/* Status badge transferred */
.status-badge.transferred {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

/* Footer 4-column grid layout (index.html) */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-email {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--dur-fast);
}

.footer-email:hover {
    color: var(--accent-primary);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--dur-fast);
}

.footer-links li a:hover {
    color: var(--text-primary);
}

/* Footer badges (index.html specific) */
.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--glass);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   PREMIUM HOVER & MICRO-INTERACTIONS
   ========================================================================== */

/* Glass card shimmer on hover */
.module-card,
.pricing-card,
.solution-card,
.stat-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.pricing-card-popular:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Module icon micro-animation */
.module-card:hover .module-icon {
    transform: scale(1.1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FAQ hover */
.faq-question {
    transition: color 0.2s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

/* Security items stagger */
.security-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.security-item:hover {
    transform: translateX(4px);
}

.security-item:hover svg {
    color: var(--success);
}

/* CTA button pulse */
.cta-section .btn-primary {
    position: relative;
    overflow: hidden;
}

.cta-section .btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(96, 165, 250, 0.2), rgba(37, 99, 235, 0.4));
    z-index: -1;
    animation: ctaPulse 3s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Footer link hover */
.footer-links li a {
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    transform: translateX(3px);
    color: var(--accent-light);
}

/* Trust badge hover */
.trust-badge {
    transition: transform 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.08);
}

/* Nav link active glow */
.nav-links li a:hover {
    text-shadow: 0 0 20px rgba(241, 245, 249, 0.15);
}


/* ==========================================================================
   CINEMATIC HERO
   ========================================================================== */

/* Hero gradient overlay for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.06) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Hero title entrance animation */
.hero.revealed .hero-title,
.hero.active .hero-title {
    animation: heroTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero.revealed .hero-subtitle,
.hero.active .hero-subtitle {
    animation: heroSubIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero.revealed .hero-ctas,
.hero.active .hero-ctas {
    animation: heroSubIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero.revealed .trust-badges,
.hero.active .trust-badges {
    animation: heroSubIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero.revealed .dashboard-preview,
.hero.active .dashboard-preview {
    animation: dashboardIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroSubIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboardIn {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dashboard immersive depth */
.dashboard-preview {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-preview:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(37, 99, 235, 0.15),
                0 0 80px rgba(37, 99, 235, 0.08);
}

/* Dashboard inner glow */
.dashboard-preview::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.dashboard-preview:hover::after {
    opacity: 1.5;
}

/* Status badge pulse for "En cours" */
.status-badge.processing {
    animation: processingPulse 2s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
}

/* Blinking cursor enhancement */
.blinking-cursor {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section label pill animation */
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: border-color 0.3s ease;
}

.section-label:hover {
    border-color: rgba(37, 99, 235, 0.3);
}


/* ==========================================================================
   SECTION DEPTH & ATMOSPHERE
   ========================================================================== */

/* Gradient dividers between sections */
.section + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.08), transparent);
    margin-bottom: var(--section-padding);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section with subtle depth */
.benefits-section {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.02) 50%, transparent 100%);
}

.security-section {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 50%, transparent 100%);
}

.cta-section {
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 50%, transparent 100%);
}

/* Pricing section glow */
.pricing-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */

[data-theme="light"] {
    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-elevated: #e2e8f0;

    /* Text — dark enough for readability */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    /* Borders */
    --border: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.18);

    /* Surfaces & Glass — inverted for light bg */
    --glass: rgba(0, 0, 0, 0.03);
    --glass-strong: rgba(0, 0, 0, 0.05);
    --glass-hover: rgba(0, 0, 0, 0.08);

    /* Strokes */
    --stroke-weak: rgba(0, 0, 0, 0.06);
    --stroke-strong: rgba(0, 0, 0, 0.12);
    --stroke-accent: rgba(37, 99, 235, 0.35);

    /* Shadows — softer for light mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.08);

    /* Accent stays the same blue */
    --accent-primary: #2563EB;
    --accent-light: #3B82F6;
}

[data-theme="light"] body {
    background-color: #ffffff;
    color: #0f172a;
}

/* Header light */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="light"] .logo-text {
    color: #0f172a;
}

[data-theme="light"] .nav-links a {
    color: #475569;
}

[data-theme="light"] .nav-links a:hover {
    color: #0f172a;
}

/* Toggle buttons in light mode */
[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: #475569;
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .lang-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
    border-color: #2563EB;
}

/* Hero light */
[data-theme="light"] .hero-title {
    color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .section-label {
    color: #2563EB;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Cards light */
[data-theme="light"] .module-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .solution-card,
[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .module-card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .solution-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Card text readability in light mode */
[data-theme="light"] .module-title,
[data-theme="light"] .solution-title,
[data-theme="light"] .pricing-name {
    color: #0f172a;
}

[data-theme="light"] .module-description,
[data-theme="light"] .solution-description,
[data-theme="light"] .pricing-feature {
    color: #334155;
}

[data-theme="light"] .solution-meta {
    color: #2563EB;
}

/* Card icons in light mode */
[data-theme="light"] .solution-icon,
[data-theme="light"] .module-icon {
    color: #2563EB;
}

/* Call row in dashboard */
[data-theme="light"] .call-row {
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

[data-theme="light"] .status-badge {
    color: #0f172a;
}

/* Dashboard preview light */
[data-theme="light"] .dashboard-preview {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Section titles */
[data-theme="light"] .section-title {
    color: #0f172a;
}

[data-theme="light"] .section-subtitle {
    color: #475569;
}

/* Buttons */
[data-theme="light"] .btn-outline {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .btn-nav-cta {
    background: #2563EB;
    color: #ffffff;
}

/* Trust badges */
[data-theme="light"] .trust-badge {
    color: #475569;
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

/* Stats */
[data-theme="light"] .stat-value {
    color: #0f172a;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

/* Footer light */
[data-theme="light"] footer {
    background: #f8fafc;
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer-heading {
    color: #0f172a;
}

[data-theme="light"] .footer-links a {
    color: #64748b;
}

[data-theme="light"] .footer-links a:hover {
    color: #0f172a;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
    color: #94a3b8;
}

[data-theme="light"] .footer-badge {
    background: rgba(37, 99, 235, 0.06);
    color: #2563EB;
    border-color: rgba(37, 99, 235, 0.12);
}

/* Ambient orbs in light mode — softer, bluer */
[data-theme="light"] .ambient-orb-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .ambient-orb-2 {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .ambient-orb-3 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
}

/* Process steps */
[data-theme="light"] .process-step {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .process-step-title {
    color: #0f172a;
}

[data-theme="light"] .process-step p,
[data-theme="light"] .process-step-desc {
    color: #334155;
}

/* Pricing */
[data-theme="light"] .pricing-card.featured {
    border-color: #2563EB;
}

[data-theme="light"] .pricing-price {
    color: #0f172a;
}

[data-theme="light"] .pricing-feature {
    color: #475569;
}

/* FAQ */
[data-theme="light"] .faq-question {
    color: #0f172a;
}

[data-theme="light"] .faq-answer {
    color: #475569;
}

/* CTA section light */
[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(96, 165, 250, 0.02) 100%);
}

/* Contact form light */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form select:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: #2563EB;
    background: #ffffff;
}

/* Security items */
[data-theme="light"] .security-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .security-item p,
[data-theme="light"] .security-item span {
    color: #334155;
}

/* General text in light mode */
[data-theme="light"] p {
    color: #334155;
}

[data-theme="light"] .hero p {
    color: #475569;
}

/* Benefit / Impact section */
[data-theme="light"] .benefit-card,
[data-theme="light"] .impact-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .benefit-title,
[data-theme="light"] .impact-title {
    color: #0f172a;
}

[data-theme="light"] .benefit-desc,
[data-theme="light"] .impact-desc {
    color: #334155;
}

/* Loading screen always stays dark regardless of theme */

/* Mobile menu light */
[data-theme="light"] .mobile-menu-btn span {
    background-color: #0f172a;
}

[data-theme="light"] .nav-links.active {
    background: rgba(255, 255, 255, 0.98);
}

/* Light mode glassmorphism adjustments */
[data-theme="light"] .module-card,
[data-theme="light"] .solution-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .benefit-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .module-card:hover,
[data-theme="light"] .solution-card:hover,
[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                0 0 40px rgba(37, 99, 235, 0.08);
}

/* Magnetic hover effect (controlled by JS) */
.magnetic-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ambient-orb { display: none; }
    /* Loading screen stays visible — animations auto-complete at 0.01ms */
}


/* ========== RESPONSIVE for new elements ========== */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .solutions-secondary {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .header-toggles {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
}
