/* ==========================================================================
   WHITE BELT / AWREAi - ENHANCED STYLES (Preview Version)
   Premium Design System with Glassmorphism, Micro-interactions & Polish
   ========================================================================== */

/* --------------------------------------------------------------------------
   PREVIEW BANNER - Remove this section when approved
   -------------------------------------------------------------------------- */
body::before {
    content: 'ENHANCED PREVIEW - Visual Upgrades Active';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #722F37 0%, #8B3A44 50%, #722F37 100%);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 10000;
    box-shadow: 0 2px 20px rgba(114, 47, 55, 0.4);
}

/* --------------------------------------------------------------------------
   Enhanced Design Tokens (CSS Custom Properties)
   Refined color palette with depth, warmth, and professional elegance
   -------------------------------------------------------------------------- */
:root {
    /* Primary Palette - Deep Forest Greens with more nuance */
    --primary: #2C3E2D;
    --primary-light: #3D5A3F;
    --primary-lighter: #4A6B4D;
    --primary-dark: #1E2A1F;
    --primary-darker: #141C15;
    --primary-glow: rgba(61, 90, 63, 0.4);

    /* Secondary Palette - Warm Cream tones */
    --secondary: #E8E4C9;
    --secondary-light: #F2EFD8;
    --secondary-dark: #D4D0B8;
    --secondary-darker: #C5C1A8;

    /* Accent Palette - Wine/Burgundy with glow capability */
    --accent: #722F37;
    --accent-light: #8B3A44;
    --accent-lighter: #A44D58;
    --accent-dark: #5C2028;
    --accent-darker: #461820;
    --accent-glow: rgba(114, 47, 55, 0.5);
    --accent-glow-strong: rgba(114, 47, 55, 0.7);

    /* Warm Accents - For trust and approachability */
    --warm-gold: #C9A227;
    --warm-gold-light: #E0B83A;
    --warm-terracotta: #C97A63;
    --warm-saffron: #E2A93B;

    /* Neutrals - Enhanced with warm undertones */
    --text-dark: #1A1A1A;
    --text-medium: #3D3D3D;
    --text-light: #F5F4F0;
    --text-muted: #6B6B6B;
    --text-subtle: #8A8A8A;
    --bg-dark: #1A1A1A;
    --bg-light: #F5F4F0;
    --bg-cream: #FAF9F5;
    --bg-warm: #F8F6EE;

    /* Glassmorphism colors */
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-white-strong: rgba(255, 255, 255, 0.15);
    --glass-dark: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-dark: rgba(0, 0, 0, 0.08);

    /* Typography - Enhanced scale */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Font Sizes - Refined scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    --text-8xl: 6rem;        /* 96px */

    /* Enhanced Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */

    /* Enhanced Border Radius */
    --radius-xs: 0.125rem;   /* 2px */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.25rem;   /* 20px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Enhanced Shadows - With color tints */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);

    /* Colored shadows */
    --shadow-primary: 0 10px 40px -10px rgba(44, 62, 45, 0.3);
    --shadow-accent: 0 10px 40px -10px rgba(114, 47, 55, 0.3);
    --shadow-accent-glow: 0 0 30px rgba(114, 47, 55, 0.4), 0 0 60px rgba(114, 47, 55, 0.2);
    --shadow-warm: 0 10px 40px -10px rgba(201, 162, 39, 0.2);

    /* Card-specific shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-card-glass: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Enhanced Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 700ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 800px;
    --nav-height: 80px;
    --nav-height-scrolled: 70px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--accent);
    color: var(--text-light);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Enhanced Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-6xl);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-4xl);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--text-2xl);
    line-height: 1.2;
}

h4 {
    font-size: var(--text-xl);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h5 {
    font-size: var(--text-lg);
    line-height: 1.4;
}

h6 {
    font-size: var(--text-base);
    line-height: 1.5;
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.highlight {
    color: var(--accent);
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Enhanced Layout Components
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-28) 0;
    position: relative;
}

/* Alternating section rhythm */
.section:nth-child(odd) {
    padding: var(--space-24) 0;
}

.section:nth-child(even) {
    padding: var(--space-28) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-14);
    position: relative;
}

/* Section accent line - MORE VISIBLE */
.section-header::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #722F37 20%, #A44D58 50%, #722F37 80%, transparent 100%);
    border-radius: var(--radius-full);
    opacity: 1;
    box-shadow: 0 0 15px rgba(114, 47, 55, 0.4);
}

.section-title {
    margin-bottom: var(--space-5);
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Enhanced Navigation - Glassmorphism
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 28px; /* Account for preview banner */
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(245, 244, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(245, 244, 240, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--glass-border-dark);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-8);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.nav.scrolled .logo-img {
    height: 38px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-medium);
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-2) var(--space-1);
}

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

/* Enhanced underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

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

.nav-link.active {
    color: var(--primary);
}

/* Enhanced CTA button in nav */
.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light) !important;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(44, 62, 45, 0.4);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    position: relative;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--glass-dark);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.hamburger {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before,
.hamburger::after {
    content: '';
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* --------------------------------------------------------------------------
   Enhanced Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Button shimmer effect on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #722F37 0%, #A44D58 50%, #722F37 100%);
    background-size: 200% 100%;
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(114, 47, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(114, 47, 55, 0.5), 0 0 20px rgba(114, 47, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--text-dark);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--glass-white);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   Enhanced Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + 28px); /* Account for preview banner */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-dark) 35%,
            #243425 60%,
            var(--accent-dark) 100%
        );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    pointer-events: none; /* Let events pass through to zones */
}

/* Noise texture overlay for depth */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Gradient fade at bottom */
.hero-background::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 400px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245, 244, 240, 0.08) 25%,
        rgba(245, 244, 240, 0.2) 45%,
        rgba(245, 244, 240, 0.45) 65%,
        rgba(245, 244, 240, 0.75) 85%,
        var(--bg-light) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Decorative orbs */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(53, 79, 55, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-10) var(--space-8);
    max-width: 1100px;
    width: 95%;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, var(--text-7xl));
    color: var(--text-light);
    margin-bottom: var(--space-8);
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--secondary);
    text-shadow: 0 0 60px rgba(232, 228, 201, 0.3);
}

.hero-subtitle {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    color: var(--secondary);
    margin-bottom: var(--space-12);
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    display: flex;
    gap: var(--space-5);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-cta .btn {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-base);
}

.hero-badge {
    margin-top: var(--space-6);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.badge:hover {
    background: rgba(114, 47, 55, 0.25);
    border-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(114, 47, 55, 0.3);
}

/* Enhanced scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--secondary);
    opacity: 0.7;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator span {
    display: block;
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

/* --------------------------------------------------------------------------
   Hero Radial Overlay (Revealed on "See How It Works" click)
   -------------------------------------------------------------------------- */
.hero-radial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
    pointer-events: none; /* Let events pass through to zones */
}

.hero-radial-overlay.active {
    opacity: 1;
    visibility: visible;
    /* pointer-events stays none - children handle their own */
}

/* When radial is active, make entire hero pass-through except interactive elements */
.hero.radial-active {
    pointer-events: none;
}

/* Fade hero content when radial is active */
.hero.radial-active .hero-content {
    opacity: 0.08;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(6px);
    transition: all 0.5s ease;
}

.hero.radial-active .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Enhanced close button */
.hero-radial-close {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-6));
    right: var(--space-10);
    width: 52px;
    height: 52px;
    border: 2px solid rgba(232, 228, 201, 0.25);
    border-radius: 50%;
    background: rgba(44, 62, 45, 0.7);
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 20;
    backdrop-filter: blur(15px);
    pointer-events: auto; /* Keep close button clickable */
}

.hero-radial-close:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-accent-glow);
}

/* Hero radial container */
.hero-radial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    padding-top: var(--space-10);
    pointer-events: none; /* Let events pass through to zones */
}

/* Pie chart sizing for hero */
.pie-chart-hero {
    width: 675px;
    height: 675px;
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    pointer-events: none; /* Let events pass through to zones */
}

.pie-chart-hero .pie-svg {
    width: 100%;
    height: 100%;
}

.pie-chart-hero .pie-center {
    width: 162px;
    height: 162px;
}

.pie-chart-hero .center-orb {
    width: 108px;
    height: 108px;
}

.pie-chart-hero .orb-icon {
    font-size: 25px;
}

.pie-chart-hero .slice-text {
    font-size: 14px;
    letter-spacing: 0.16em;
}

.pie-chart-hero .sub-slice-text {
    font-size: 18px;
}

/* Hero description panel */
.pie-description-hero {
    text-align: center;
    min-height: 90px;
    width: 520px;
    max-width: 100%;
}

.pie-description-hero .desc-content h4 {
    font-size: var(--text-2xl);
    color: var(--secondary);
    margin-bottom: var(--space-3);
}

.pie-description-hero .desc-content p {
    font-size: var(--text-lg);
    color: rgba(232, 228, 201, 0.8);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Patent Pending Overlay - Glassmorphism
   -------------------------------------------------------------------------- */
.hero-patent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
}

.hero-patent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero.patent-active .hero-content {
    opacity: 0.08;
    transform: scale(0.95);
    pointer-events: none;
    filter: blur(6px);
}

.hero.patent-active .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

.hero-patent-close {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-6));
    right: var(--space-10);
    width: 52px;
    height: 52px;
    border: 2px solid rgba(232, 228, 201, 0.25);
    border-radius: 50%;
    background: rgba(44, 62, 45, 0.7);
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 20;
    backdrop-filter: blur(15px);
}

.hero-patent-close:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-accent-glow);
}

/* Enhanced patent content - Glassmorphism */
.patent-content {
    background: rgba(44, 62, 45, 0.85);
    border: 1px solid rgba(232, 228, 201, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-14);
    max-width: 620px;
    text-align: center;
    backdrop-filter: blur(30px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.patent-header {
    margin-bottom: var(--space-10);
}

.patent-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(114, 47, 55, 0.25);
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-5);
}

.patent-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
}

.patent-header h3 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--text-light);
    margin: 0;
    letter-spacing: -0.02em;
}

.patent-highlights {
    margin-bottom: var(--space-10);
    padding: var(--space-8) 0;
    border-top: 1px solid rgba(232, 228, 201, 0.1);
    border-bottom: 1px solid rgba(232, 228, 201, 0.1);
}

.highlight-item {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--secondary);
    padding: var(--space-3) 0;
    margin: 0;
    position: relative;
    padding-left: var(--space-8);
    text-align: left;
}

.highlight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
}

.patent-description {
    font-size: var(--text-base);
    color: rgba(232, 228, 201, 0.8);
    line-height: 1.8;
    margin-bottom: var(--space-10);
}

.patent-cta {
    min-width: 220px;
}

/* --------------------------------------------------------------------------
   Bio-Circuitry Wave Transition
   -------------------------------------------------------------------------- */
.wave-transition-overlay {
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 650px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
    --wave-progress: 0;
}

.wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: normal;
}

.wave-transition-overlay::before {
    display: none;
}

/* --------------------------------------------------------------------------
   Enhanced Problem Section
   -------------------------------------------------------------------------- */
.problem {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--space-28) + 150px);
    margin-top: -150px;
    background: transparent;
}

.problem::before {
    content: '';
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245, 244, 240, 0.05) 10%,
        rgba(245, 244, 240, 0.15) 25%,
        rgba(245, 244, 240, 0.35) 45%,
        rgba(245, 244, 240, 0.65) 65%,
        rgba(245, 244, 240, 0.9) 85%,
        var(--bg-light) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.problem::after {
    content: '';
    position: absolute;
    top: 400px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    z-index: -1;
}

.problem .section-header,
.problem .container {
    position: relative;
    z-index: 10;
}

.wave-bleed-overlay {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(245, 244, 240, 0.15) 60%,
        rgba(245, 244, 240, 0.35) 80%,
        rgba(245, 244, 240, 0.5) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Enhanced Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-10);
    align-items: stretch;
    position: relative;
    z-index: 10;
}

/* Enhanced Comparison Cards - Glassmorphism + Dramatic Styling */
.comparison-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative corner accent - MORE VISIBLE */
.comparison-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, currentColor 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.comparison-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.comparison-old {
    border: 3px solid #D4D0B8;
    color: var(--text-muted);
    background: linear-gradient(180deg, white 0%, #FAFAF8 100%);
}

.comparison-old:hover {
    border-color: #B8B4A0;
}

.comparison-new {
    border: 3px solid var(--primary);
    background: linear-gradient(180deg, white 0%, rgba(44, 62, 45, 0.08) 100%);
    color: var(--primary);
    box-shadow: 0 8px 40px rgba(44, 62, 45, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-new::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(44, 62, 45, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-new:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--primary-light);
}

.comparison-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--secondary-dark);
}

.comparison-label {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.comparison-old .comparison-label {
    color: var(--text-muted);
}

.comparison-new .comparison-label {
    color: var(--primary);
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: var(--text-base);
    line-height: 1.5;
}

.comparison-list li:last-child {
    margin-bottom: 0;
}

.icon-x,
.icon-check {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 12px;
    font-weight: 700;
}

.icon-x {
    background: rgba(107, 107, 107, 0.08);
    color: var(--text-muted);
}

.icon-x::before {
    content: '\2715';
}

.icon-check {
    background: rgba(44, 62, 45, 0.1);
    color: var(--primary);
}

.icon-check::before {
    content: '\2713';
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-divider span {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--secondary-darker);
    font-weight: 600;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Enhanced Technology Section
   -------------------------------------------------------------------------- */
.technology {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(114, 47, 55, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 228, 201, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.technology .section-header::before {
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.technology .section-title {
    color: var(--text-light);
}

.technology .section-subtitle {
    color: var(--secondary);
    opacity: 0.9;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

/* Enhanced Tech Cards - Glassmorphism + DRAMATIC */
.tech-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Gradient overlay on hover */
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

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

.tech-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(232, 228, 201, 0.3);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(114, 47, 55, 0.15);
}

/* Accent line on left */
.tech-card::after {
    content: '';
    position: absolute;
    top: var(--space-8);
    bottom: var(--space-8);
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.tech-card:hover::after {
    opacity: 1;
}

.tech-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-6);
    color: var(--secondary);
    transition: all var(--transition-base);
}

.tech-card:hover .tech-icon {
    color: var(--warm-gold);
    transform: scale(1.1);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.tech-description {
    font-size: var(--text-base);
    color: var(--secondary);
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Enhanced Architecture Section
   -------------------------------------------------------------------------- */
.architecture {
    background: var(--bg-warm);
    padding: var(--space-20) 0;
    position: relative;
}

/* Subtle top border */
.architecture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-dark), transparent);
}

.arch-diagram-svg {
    max-width: 720px;
    margin: var(--space-10) auto 0;
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}

.arch-svg {
    width: 100%;
    height: auto;
    display: block;
}

.arch-node-group rect {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: all var(--transition-base);
}

.arch-node-group:hover rect {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.arch-svg path {
    transition: all var(--transition-base);
}

.arch-svg:hover path {
    stroke-width: 4;
}

/* --------------------------------------------------------------------------
   Enhanced Elvara Pie Chart Section
   -------------------------------------------------------------------------- */
.elvara-core {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Decorative elements */
.elvara-core::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.elvara-core::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 228, 201, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.elvara-core .section-header {
    margin-bottom: var(--space-8);
}

.elvara-core .section-header::before {
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.elvara-core .section-title {
    color: var(--text-light);
}

.elvara-core .section-subtitle {
    color: var(--secondary);
}

/* Pie Container */
.pie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
}

/* The Pie Chart */
.pie-chart {
    position: relative;
    width: 550px;
    height: 550px;
}

.pie-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Slice Group */
.slice-group {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.slice-path {
    fill: url(#sliceGrad);
    stroke: rgba(232, 228, 201, 0.2);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.slice-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    fill: var(--secondary);
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.3s ease;
}

.slice-group:hover {
    transform: scale(1.05);
}

.slice-group:hover .slice-path {
    fill: url(#sliceHover);
    stroke: rgba(232, 228, 201, 0.5);
    filter: url(#glow);
}

.slice-group:hover .slice-text {
    fill: var(--text-light);
    opacity: 1;
}

.slice-group.active .slice-path {
    fill: url(#sliceActive);
    stroke: var(--accent);
    stroke-width: 2;
}

.slice-group.active .slice-text {
    fill: var(--text-light);
    opacity: 1;
}

.slice-group.expanded {
    transform: scale(1.08);
}

.slice-group.expanded .slice-path {
    opacity: 0.3;
}

.slice-group.expanded .slice-text {
    opacity: 0;
    pointer-events: none;
}

/* Sub-slice styling */
.sub-slice-group {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-slice-path {
    fill: rgba(232, 228, 201, 0.12);
    stroke: rgba(232, 228, 201, 0.25);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-box: view-box;
    transform-origin: 50% 50%;
}

.sub-slice-path.hovered {
    fill: rgba(114, 47, 55, 0.35);
    stroke: var(--accent);
    stroke-width: 2;
    filter: url(#glow);
    transform: scale(1.08);
}

.sub-slice-path.dimmed {
    fill: rgba(232, 228, 201, 0.06);
    stroke: rgba(232, 228, 201, 0.12);
    stroke-width: 0.5;
    opacity: 0.5;
    transform: scale(0.92);
}

.sub-slice-path.selected {
    fill: rgba(114, 47, 55, 0.5);
    stroke: var(--accent-light);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(114, 47, 55, 0.7));
    transform: scale(1.1);
}

.sub-slice-path.playing {
    fill: rgba(114, 47, 55, 0.6);
    stroke: var(--accent-light);
    stroke-width: 2.5;
    animation: subSliceGlow 1s ease-in-out infinite;
}

.sub-slice-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    fill: var(--secondary);
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.25s ease;
}

.sub-slice-group.hovered .sub-slice-text {
    fill: var(--text-light);
    opacity: 1;
    font-size: 14px;
}

.sub-slice-group.dimmed .sub-slice-text {
    opacity: 0.4;
    font-size: 10px;
}

.sub-slice-group.selected .sub-slice-text {
    fill: var(--text-light);
    opacity: 1;
    font-size: 15px;
    font-weight: 700;
}

/* Center Orb */
.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    z-index: 10;
}

.center-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.3) 0%, transparent 70%);
    animation: centerPulse 2.5s ease-in-out infinite;
}

.center-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow:
        0 0 30px rgba(114, 47, 55, 0.5),
        0 0 60px rgba(114, 47, 55, 0.25),
        inset 0 -6px 15px rgba(0, 0, 0, 0.4),
        inset 0 6px 15px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.center-orb::before {
    content: '';
    position: absolute;
    width: 65%;
    height: 30%;
    top: 12%;
    left: 17.5%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.orb-icon {
    color: var(--text-light);
    font-size: 22px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.center-orb:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow:
        0 0 50px rgba(114, 47, 55, 0.7),
        0 0 90px rgba(114, 47, 55, 0.4);
}

.pie-chart.playing .center-orb {
    animation: orbPulse 1s ease-in-out infinite;
}

.pie-chart.playing .center-pulse {
    animation: centerPulseActive 0.8s ease-out infinite;
}

/* Description Panel */
.pie-description {
    text-align: center;
    min-height: 90px;
    position: relative;
    width: 480px;
    max-width: 100%;
}

.desc-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.desc-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.desc-content h4 {
    font-size: var(--text-xl);
    color: var(--text-light);
    margin-bottom: var(--space-3);
}

.desc-content p {
    font-size: var(--text-base);
    color: var(--secondary);
    line-height: 1.6;
}

/* Pie Chart Animations */
@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes centerPulseActive {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes orbPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 40px rgba(114, 47, 55, 0.6),
            0 0 80px rgba(114, 47, 55, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 60px rgba(114, 47, 55, 0.8),
            0 0 100px rgba(114, 47, 55, 0.4);
    }
}

@keyframes subSliceGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(114, 47, 55, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(114, 47, 55, 0.8));
    }
}

/* --------------------------------------------------------------------------
   Speech Bubble Player - New Interactive Design
   Replaces pie chart with speech bubble + spawning blobs
   -------------------------------------------------------------------------- */
.speech-bubble-player {
    position: relative !important;
    width: 680px;
    height: 680px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 0 auto;
    display: block;
    pointer-events: none; /* Let events pass through container */
}

.speech-bubble-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none; /* Let events pass through SVG background */
}

/* Constrain blobs on mobile to prevent overflow */
@media (max-width: 768px) {
    .speech-bubble-svg {
        overflow: hidden;
    }
}

/* Zone groups capture their own events */
.speech-bubble-svg .zone-group {
    pointer-events: auto;
}

/* Spawned blobs capture their own events */
.speech-bubble-svg .spawned-blob {
    pointer-events: auto;
}

/* Speech bubble outline */
.speech-bubble-outline {
    transition: all 0.4s ease;
    pointer-events: none; /* Don't block zone hover detection */
}

.speech-bubble-player:hover .speech-bubble-outline {
    filter: url(#softShadow) brightness(1.1);
}

/* Zone Groups */
.zone-group {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

/* Radial slot-out on hover - moves slice outward */
.zone-group:hover {
    transform: translate(var(--hover-tx, 0), var(--hover-ty, 0));
}

.zone-path {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: zoneBreathe 4s ease-in-out infinite;
}

/* Subtle idle breathing animation */
@keyframes zoneBreathe {
    0%, 100% {
        opacity: 0.85;
        filter: brightness(1);
    }
    50% {
        opacity: 0.92;
        filter: brightness(1.05);
    }
}

/* Enhanced pulsing glow on hover */
@keyframes zoneHoverGlow {
    0%, 100% {
        filter: brightness(1.3) drop-shadow(0 0 8px var(--zone-color, rgba(232, 228, 201, 0.4)));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 18px var(--zone-color, rgba(232, 228, 201, 0.7)));
    }
}

.zone-group:hover .zone-path {
    /* No scale transform - it causes hit detection issues in Safari */
    fill: rgba(232, 228, 201, 0.22);
    stroke: rgba(232, 228, 201, 0.5);
    stroke-width: 2;
    animation: zoneHoverGlow 0.8s ease-in-out infinite;
}

.zone-group.hovered .zone-path {
    stroke: rgba(232, 228, 201, 0.5);
    stroke-width: 2;
}

/* Flash on activation */
@keyframes zoneFlash {
    0% {
        filter: brightness(2.5) drop-shadow(0 0 35px var(--zone-color, white));
        fill: rgba(255, 255, 255, 0.5);
    }
    30% {
        filter: brightness(1.8) drop-shadow(0 0 25px var(--zone-color));
    }
    100% {
        filter: brightness(1.4) drop-shadow(0 0 12px var(--zone-color));
        fill: var(--zone-color, rgba(232, 228, 201, 0.3));
    }
}

/* Sustained glow after flash */
@keyframes zoneActiveGlow {
    0%, 100% {
        filter: brightness(1.4) drop-shadow(0 0 12px var(--zone-color));
    }
    50% {
        filter: brightness(1.6) drop-shadow(0 0 20px var(--zone-color));
    }
}

.zone-group.active .zone-path {
    fill: var(--zone-color, rgba(232, 228, 201, 0.3));
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    animation: zoneFlash 0.35s ease-out, zoneActiveGlow 1.5s ease-in-out 0.35s infinite;
}

.zone-group.expanded .zone-path {
    animation: zoneFlash 0.35s ease-out, zoneActiveGlow 1.5s ease-in-out 0.35s infinite;
}

.zone-group.dimmed {
    opacity: 0.3;
    pointer-events: none;
}

.zone-text {
    fill: var(--secondary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, fill 0.3s ease;
}

/* Text glow on hover */
.zone-group:hover .zone-text,
.zone-group:hover textPath {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--zone-color, rgba(232, 228, 201, 0.6)));
}

/* Text flash on activation */
@keyframes textFlash {
    0% {
        opacity: 1;
        filter: drop-shadow(0 0 15px white) drop-shadow(0 0 30px var(--zone-color));
    }
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 4px var(--zone-color));
    }
}

.zone-group.active .zone-text,
.zone-group.active textPath {
    animation: textFlash 0.35s ease-out forwards;
    fill: white;
}

.zone-group.dimmed .zone-text {
    opacity: 0.4;
}

/* Spawned Blobs */
/* Smooth radial spawn animation - JS handles position, CSS handles hover transitions */
.spawned-blob {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blob-circle {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spawned-blob:hover .blob-circle {
    filter: url(#blobGlow) brightness(1.3);
}

.spawned-blob.hovered .blob-circle {
    filter: url(#blobGlow) brightness(1.4);
}

.spawned-blob.selected .blob-circle {
    filter: url(#blobGlow) brightness(1.5);
    stroke: white;
    stroke-width: 2;
}

.spawned-blob.playing .blob-circle {
    animation: blobPulse 0.8s ease-in-out infinite;
}

.blob-text {
    font-family: var(--font-heading);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Blob floating animation class */
.blob-circle.floating {
    animation: blobFloat 3s ease-in-out infinite;
}

/* Center Orb */
.bubble-center {
    position: absolute;
    top: calc(50% + 53px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Let events pass through container */
}

.bubble-center .center-orb {
    pointer-events: auto; /* But the button itself should be clickable */
}

.center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.4) 0%, transparent 70%);
    animation: centerPulse 3s ease-in-out infinite;
    pointer-events: none; /* Don't block zone hover detection */
}

.center-orb {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 3px 15px rgba(114, 47, 55, 0.5),
        0 0 30px rgba(114, 47, 55, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: orbPulse 4s ease-in-out infinite;
}

.center-orb:hover {
    transform: scale(1.08);
    box-shadow:
        0 4px 20px rgba(114, 47, 55, 0.6),
        0 0 40px rgba(114, 47, 55, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

.orb-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Speech Tail (the pointer part of the bubble) */
.speech-tail {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    z-index: -1;
}

.tail-svg {
    width: 100%;
    height: 100%;
}

/* Playing state */
.speech-bubble-player.playing .center-orb {
    animation: orbPulse 1.5s ease-in-out infinite;
}

.speech-bubble-player.playing .center-pulse {
    animation: centerPulseActive 0.8s ease-out infinite;
}

/* Speech Bubble Animations */
@keyframes zoneGlow {
    0%, 100% {
        filter: brightness(1.2);
    }
    50% {
        filter: brightness(1.5);
    }
}

@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes blobPulse {
    0%, 100% {
        transform: scale(1);
        filter: url(#blobGlow) brightness(1.4);
    }
    50% {
        transform: scale(1.15);
        filter: url(#blobGlow) brightness(1.7);
    }
}

@keyframes blobBirth {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Speech bubble player in hero overlay - classes on SAME element */
.pie-chart-hero.speech-bubble-player {
    width: 720px !important;
    height: 720px !important;
}

.pie-chart-hero.speech-bubble-player .speech-bubble-svg {
    width: 100%;
    height: 100%;
}

.pie-chart-hero.speech-bubble-player .bubble-center {
    top: calc(50% + 53px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.pie-chart-hero.speech-bubble-player .center-orb {
    width: 110px;
    height: 110px;
}

.pie-chart-hero.speech-bubble-player .center-pulse {
    width: 150px;
    height: 150px;
}

.pie-chart-hero.speech-bubble-player .orb-text {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.pie-chart-hero.speech-bubble-player .zone-text {
    font-size: 20px;
}

/* Responsive speech bubble - Apple device optimized */
@media (max-width: 768px) {
    .speech-bubble-player {
        width: 85vw;
        height: 85vw;
        max-width: 520px;
        max-height: 520px;
    }

    .speech-bubble-svg {
        height: 100%;
    }

    .bubble-center {
        top: calc(50% + 42px);
    }

    .zone-text {
        font-size: clamp(10px, 2.5vw, 15px);
        letter-spacing: 0.1em;
    }

    .center-orb {
        width: clamp(50px, 12vw, 72px);
        height: clamp(50px, 12vw, 72px);
    }

    .center-pulse {
        width: clamp(70px, 16vw, 100px);
        height: clamp(70px, 16vw, 100px);
    }

    .orb-text {
        font-size: clamp(8px, 2vw, 12px);
    }

    .pie-chart-hero.speech-bubble-player {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 580px !important;
        max-height: 580px !important;
    }

    .pie-chart-hero.speech-bubble-player .bubble-center {
        top: calc(50% + 42px);
    }

    .pie-chart-hero.speech-bubble-player .center-orb {
        width: clamp(60px, 14vw, 80px);
        height: clamp(60px, 14vw, 80px);
    }

    .pie-chart-hero.speech-bubble-player .center-pulse {
        width: clamp(85px, 18vw, 110px);
        height: clamp(85px, 18vw, 110px);
    }

    .pie-chart-hero.speech-bubble-player .zone-text {
        font-size: clamp(11px, 3vw, 17px);
    }
}

/* iPhone Plus / Pro Max sizes (430px and below) */
@media (max-width: 480px) {
    .speech-bubble-player {
        width: 88vw;
        height: 88vw;
        max-width: 400px;
        max-height: 400px;
    }

    .speech-bubble-svg {
        height: 100%;
    }

    .bubble-center {
        top: calc(50% + 31px);
    }

    .zone-text {
        font-size: clamp(9px, 2.8vw, 13px);
        letter-spacing: 0.08em;
    }

    .center-orb {
        width: clamp(44px, 13vw, 60px);
        height: clamp(44px, 13vw, 60px);
    }

    .center-pulse {
        width: clamp(60px, 17vw, 85px);
        height: clamp(60px, 17vw, 85px);
    }

    .orb-text {
        font-size: clamp(7px, 2.2vw, 10px);
    }

    .pie-chart-hero.speech-bubble-player {
        width: 92vw !important;
        height: 92vw !important;
        max-width: 420px !important;
        max-height: 420px !important;
    }

    .pie-chart-hero.speech-bubble-player .bubble-center {
        top: calc(50% + 31px);
    }

    .pie-chart-hero.speech-bubble-player .center-orb {
        width: clamp(50px, 14vw, 65px);
        height: clamp(50px, 14vw, 65px);
    }

    .pie-chart-hero.speech-bubble-player .zone-text {
        font-size: clamp(10px, 3.2vw, 14px);
    }
}

/* iPhone standard sizes (390px and below) */
@media (max-width: 414px) {
    .speech-bubble-player {
        width: 90vw;
        height: 90vw;
        max-width: 360px;
        max-height: 360px;
    }

    .bubble-center {
        top: calc(50% + 26px);
    }

    .zone-text {
        font-size: clamp(8px, 2.6vw, 11px);
    }

    .center-orb {
        width: clamp(40px, 12vw, 52px);
        height: clamp(40px, 12vw, 52px);
    }

    .center-pulse {
        width: clamp(55px, 16vw, 75px);
        height: clamp(55px, 16vw, 75px);
    }

    .orb-text {
        font-size: clamp(6px, 2vw, 9px);
    }

    .pie-chart-hero.speech-bubble-player {
        width: 94vw !important;
        height: 94vw !important;
        max-width: 380px !important;
        max-height: 380px !important;
    }

    .pie-chart-hero.speech-bubble-player .bubble-center {
        top: calc(50% + 26px);
    }

    .pie-chart-hero.speech-bubble-player .center-orb {
        width: clamp(46px, 13vw, 58px);
        height: clamp(46px, 13vw, 58px);
    }

    .pie-chart-hero.speech-bubble-player .zone-text {
        font-size: clamp(9px, 3vw, 12px);
    }
}

/* iPhone SE and smaller (375px and below) */
@media (max-width: 375px) {
    .speech-bubble-player {
        width: 92vw;
        height: 92vw;
        max-width: 340px;
        max-height: 340px;
    }

    .bubble-center {
        top: calc(50% + 22px);
    }

    .zone-text {
        font-size: clamp(7px, 2.4vw, 10px);
        letter-spacing: 0.06em;
    }

    .center-orb {
        width: clamp(36px, 11vw, 46px);
        height: clamp(36px, 11vw, 46px);
    }

    .center-pulse {
        width: clamp(50px, 15vw, 65px);
        height: clamp(50px, 15vw, 65px);
    }

    .orb-text {
        font-size: clamp(5px, 1.8vw, 8px);
    }

    .pie-chart-hero.speech-bubble-player {
        width: 95vw !important;
        height: 95vw !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }

    .pie-chart-hero.speech-bubble-player .bubble-center {
        top: calc(50% + 22px);
    }

    .pie-chart-hero.speech-bubble-player .center-orb {
        width: clamp(40px, 12vw, 50px);
        height: clamp(40px, 12vw, 50px);
    }

    .pie-chart-hero.speech-bubble-player .zone-text {
        font-size: clamp(8px, 2.6vw, 10px);
    }
}

/* --------------------------------------------------------------------------
   Enhanced Use Cases Section
   -------------------------------------------------------------------------- */
.use-cases {
    background: white;
    position: relative;
}

/* Subtle background pattern */
.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, var(--secondary-dark) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    position: relative;
    z-index: 1;
}

/* Enhanced Use Case Cards - DRAMATIC */
.use-case-card {
    text-align: center;
    padding: var(--space-10);
    background: linear-gradient(180deg, white 0%, #FAF9F5 100%);
    border-radius: var(--radius-2xl);
    border: 2px solid #E8E4C9;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.use-case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, var(--accent) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(114, 47, 55, 0.2);
    background: white;
    border-color: #722F37;
}

.use-case-card:hover::before {
    opacity: 1;
}

.use-case-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    color: var(--accent);
    transition: all var(--transition-base);
}

.use-case-card:hover .use-case-icon {
    transform: scale(1.1);
    color: var(--accent-light);
}

.use-case-icon svg {
    width: 100%;
    height: 100%;
}

.use-case-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.use-case-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Enhanced About Section
   -------------------------------------------------------------------------- */
.about {
    background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-light) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-darker), transparent);
}

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

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

.about .section-title {
    margin-bottom: var(--space-8);
}

.about-description {
    font-size: var(--text-lg);
    color: var(--text-dark);
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

/* Enhanced About Philosophy Card */
.about-philosophy {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    margin: var(--space-12) 0;
    text-align: left;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.about-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.about-philosophy h3 {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.about-philosophy p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
}

.about-patent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.patent-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-primary);
}

.patent-text {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Enhanced Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact .section-title {
    color: var(--text-light);
    text-align: left;
    margin-bottom: var(--space-8);
}

.contact-description {
    color: var(--secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-10);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-label {
    font-size: var(--text-sm);
    color: var(--secondary);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-value {
    font-size: var(--text-base);
    color: var(--text-light);
}

/* Enhanced Contact Form - Glassmorphism */
.contact-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--secondary);
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(232, 228, 201, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.2);
}

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

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23E8E4C9' d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

select.form-input option {
    background: var(--primary);
    color: var(--text-light);
}

.contact-form .btn {
    margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Enhanced Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #0A0A0A;
    color: var(--text-light);
    padding: var(--space-12) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-8);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-base);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-legal {
    color: var(--text-subtle);
    font-size: var(--text-xs);
    text-align: right;
}

.footer-legal span {
    display: block;
    margin-bottom: var(--space-1);
}

.footer-legal span:last-child {
    margin-bottom: 0;
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        gap: var(--space-3);
    }
    .footer-legal {
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Lead Capture Gate - Full Screen Overlay with Fireflies
   -------------------------------------------------------------------------- */
.lead-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.lead-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Firefly Canvas - Behind the card */
.firefly-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content Layer */
.lead-gate-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: var(--space-6);
}

/* Glassmorphism Card */
.lead-gate-card {
    background: rgba(30, 42, 31, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(232, 228, 201, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(114, 47, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: cardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header */
.lead-gate-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.lead-gate-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-6);
    filter: brightness(1.1);
}

.lead-gate-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-light);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.lead-gate-header p {
    font-size: var(--text-base);
    color: var(--secondary);
    opacity: 0.85;
    line-height: 1.6;
}

/* Form Styles */
.lead-gate-form .form-group {
    margin-bottom: var(--space-5);
}

.lead-gate-form .form-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--secondary);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.lead-gate-form .form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 228, 201, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.lead-gate-form .form-input:hover {
    border-color: rgba(232, 228, 201, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.lead-gate-form .form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.25);
}

.lead-gate-form .form-input::placeholder {
    color: rgba(232, 228, 201, 0.4);
}

/* Email/Phone Toggle */
.contact-toggle {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
}

.toggle-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-light);
}

.toggle-btn.active {
    background: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.4);
}

/* Hidden field */
.lead-gate-form .form-group.hidden {
    display: none;
}

/* Submit Button */
.lead-gate-form .btn {
    margin-top: var(--space-6);
    gap: var(--space-3);
}

.lead-gate-form .btn svg {
    transition: transform var(--transition-fast);
}

.lead-gate-form .btn:hover svg {
    transform: translateX(4px);
}

/* Privacy Text */
.lead-gate-privacy {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-xs);
    color: var(--secondary);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 480px) {
    .lead-gate-content {
        padding: var(--space-4);
    }

    .lead-gate-card {
        padding: var(--space-8);
    }

    .lead-gate-header h2 {
        font-size: var(--text-xl);
    }

    .lead-gate-logo {
        height: 48px;
    }
}

/* Body blur when gate is active */
body.gate-active > *:not(.lead-gate) {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

/* --------------------------------------------------------------------------
   Email Verification States - Pending, Error, Loading
   -------------------------------------------------------------------------- */

/* Verification state card transition */
.lead-gate-card.verification-state {
    animation: stateTransition 0.4s ease;
}

@keyframes stateTransition {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pending verification UI */
.verification-pending,
.verification-error {
    text-align: center;
    padding: var(--space-4) 0;
}

.verification-pending h2,
.verification-error h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-light);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.verification-pending p,
.verification-error p {
    font-size: var(--text-base);
    color: var(--secondary);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.verification-pending .subtext {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-top: var(--space-4);
}

/* Pending/Error Icons */
.pending-icon,
.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-icon {
    background: rgba(114, 47, 55, 0.15);
    animation: iconPulse 2.5s ease-in-out infinite;
}

.pending-icon svg {
    color: var(--accent-light);
}

.error-icon {
    background: rgba(114, 47, 55, 0.25);
}

.error-icon svg {
    color: var(--accent-lighter);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(114, 47, 55, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px 10px rgba(114, 47, 55, 0.2);
    }
}

/* Email display box */
.email-display {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--accent-light);
    background: rgba(114, 47, 55, 0.12);
    border: 1px solid rgba(114, 47, 55, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-5) 0;
    word-break: break-all;
}

/* Verification buttons */
.verification-pending .btn,
.verification-error .btn {
    margin-top: var(--space-4);
}

.resend-btn {
    width: 100%;
}

.back-btn {
    margin-top: var(--space-3) !important;
}

.retry-btn {
    width: 100%;
}

/* Button link style */
.btn-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--secondary) !important;
    text-decoration: underline;
    opacity: 0.7;
    padding: var(--space-2) var(--space-4) !important;
}

.btn-link:hover {
    opacity: 1;
    transform: none !important;
    box-shadow: none !important;
}

/* Button secondary for verification */
.verification-pending .btn-secondary,
.verification-error .btn-secondary {
    background: rgba(232, 228, 201, 0.1);
    border: 1px solid rgba(232, 228, 201, 0.25);
    color: var(--secondary);
}

.verification-pending .btn-secondary:hover,
.verification-error .btn-secondary:hover {
    background: rgba(232, 228, 201, 0.15);
    border-color: rgba(232, 228, 201, 0.35);
}

/* Loading state button */
.lead-gate-form .btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for verification states */
@media (max-width: 480px) {
    .verification-pending h2,
    .verification-error h2 {
        font-size: var(--text-xl);
    }

    .pending-icon,
    .error-icon {
        width: 80px;
        height: 80px;
    }

    .pending-icon svg,
    .error-icon svg {
        width: 48px;
        height: 48px;
    }

    .email-display {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }
}
