/* ==========================================================================
   COMMUNALLY - CREATIVE SYSTEMS STYLESHEET
   ==========================================================================
   
   ARCHITECTURE: 5-Layer Creative System
   
   1. CORE LAYER - Base styles, always calm and minimal
   2. AMBIENT LAYER - Living backgrounds, time-aware colors, particles
   3. REFLECTIVE LAYER - Pauses, breathing space, emotional prompts
   4. EXPERIMENTAL LAYER - Diagonal scroll, constellation views, wild UI
   5. NARRATIVE LAYER - Poetic copy styling, growth indicators
   
   DESIGN PHILOSOPHY:
   - The app is an evolving experience, not a static interface
   - Creativity is layered, not dumped
   - Most features are subtle, discoverable, or contextual
   - Nothing should feel gimmicky or noisy
   
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES - Living Design Tokens
   ==========================================================================
   These variables change based on:
   - Time of day (morning warm, evening cool)
   - Season (spring green, summer gold, fall orange, winter blue)
   - User mood selection
   - Experimental mode state
   ========================================================================== */

:root {
    /* === CORE COLORS === */
    --color-primary: #22c55e;
    --color-primary-light: #a3e635;
    --color-primary-dark: #16a34a;
    --color-primary-glow: rgba(34, 197, 94, 0.2);
    
    /* === ADAPTIVE BACKGROUND (changes with time/mood) === */
    --color-bg: #fafaf9;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #18181b;
    --color-bg-card: #ffffff;
    
    /* === TEXT === */
    --color-text: #18181b;
    --color-text-secondary: #52525b;
    --color-text-muted: #a1a1aa;
    --color-text-inverse: #ffffff;
    --color-text-poetic: #71717a; /* For whispers and subtle text */
    
    /* === BORDERS === */
    --color-border: #e4e4e7;
    --color-border-light: #f4f4f5;
    
    /* === EMOTIONAL ACCENT COLORS (user-customizable) === */
    --accent-warm: #f59e0b;
    --accent-calm: #06b6d4;
    --accent-hope: #a3e635;
    --accent-energy: #f43f5e;
    
    /* === TYPOGRAPHY === */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    
    /* === SPACING === */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* === BORDER RADIUS === */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    
    /* === SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
    
    /* === TRANSITIONS === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-breath: 2000ms ease-in-out; /* For breathing animations */
    
    /* === AMBIENT LAYER: Time-based warmth === */
    --time-warmth: 0; /* 0 = neutral, -1 = cool (night), 1 = warm (golden hour) */
    --ambient-opacity: 0.03;
    
    /* === EXPERIMENTAL LAYER: Diagonal scroll settings === */
    --diagonal-angle: 37deg; /* arctan(0.75) for smooth diagonal */
    --journey-width: 400vw;
    --journey-height: 300vh;
}

/* ==========================================================================
   SEASONAL THEMES
   Emotional tone shifts by season — spring feels hopeful, winter reflective
   ========================================================================== */

[data-season="spring"] {
    --color-primary: #22c55e;
    --color-primary-light: #a3e635;
    --ambient-hue: 120;
}

[data-season="summer"] {
    --color-primary: #f59e0b;
    --color-primary-light: #fbbf24;
    --ambient-hue: 45;
}

[data-season="fall"] {
    --color-primary: #ea580c;
    --color-primary-light: #f97316;
    --ambient-hue: 25;
}

[data-season="winter"] {
    --color-primary: #0ea5e9;
    --color-primary-light: #38bdf8;
    --ambient-hue: 200;
}

/* ==========================================================================
   DARK MODE - Not Just Dark, It's Night-Themed
   Stars, slow gradients, softer language
   ========================================================================== */

[data-theme="dark"] {
    --color-bg: #0a0a0b;
    --color-bg-alt: #18181b;
    --color-bg-dark: #000000;
    --color-bg-card: #1f1f23;
    
    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-inverse: #18181b;
    --color-text-poetic: #52525b;
    
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    
    --ambient-opacity: 0.05;
}

/* Night stars background for dark mode */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: twinkle 8s ease-in-out infinite alternate;
}

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

/* ==========================================================================
   MOOD STATES
   UI adapts to emotional context
   ========================================================================== */

[data-mood="calm"] {
    --transition-base: 400ms ease;
    --ambient-opacity: 0.02;
}

[data-mood="energized"] {
    --color-primary: #f43f5e;
    --transition-base: 200ms ease;
    --ambient-opacity: 0.05;
}

[data-mood="hopeful"] {
    --color-primary: #a3e635;
    --transition-base: 300ms ease;
}

[data-mood="reflective"] {
    --color-primary: #8b5cf6;
    --transition-base: 500ms ease;
    --ambient-opacity: 0.03;
}

/* ==========================================================================
   RESET & BASE STYLES - CORE LAYER
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* === REDUCED MOTION: Respect user preferences === */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Disable diagonal scrolling for reduced motion */
    .journey-section {
        height: auto !important;
        overflow: visible !important;
    }
    
    .journey-canvas {
        transform: none !important;
        display: block !important;
    }
    
    .journey-node {
        position: relative !important;
        transform: none !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Leaflet uses absolutely positioned image tiles; global responsive img rules
   break their sizing unless explicitly reset. */
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--space-md) var(--space-xl);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-base);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   AMBIENT LAYER: Living Background Canvas
   Renders subtle particles that respond to mouse movement
   ========================================================================== */

.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: var(--ambient-opacity);
}

.ambient-canvas,
.global-pulse {
    display: none !important;
}

/* ==========================================================================
   AMBIENT LAYER: Global Pulse
   A soft breathing animation representing community heartbeat
   ========================================================================== */

.global-pulse {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: globalPulse 4s ease-in-out infinite;
}

@keyframes globalPulse {
    0%, 100% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

#main-content {
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ==========================================================================
   NAVIGATION - CORE LAYER
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
    transition: all var(--transition-base);
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.95) 0%, rgba(74, 222, 128, 0.88) 38%, rgba(255, 255, 255, 0) 78%);
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    left: -8%;
    top: -32px;
    width: 220px;
    height: 110px;
    background: radial-gradient(circle at center, rgba(187, 247, 208, 0.34) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
    opacity: 0.9;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 11, 0.9);
}

@media (min-width: 768px) {
    .navbar {
        top: 0;
        width: 100%;
        padding: 0.85rem 1.15rem;
        border-radius: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    z-index: 1001;
    position: relative;
}

.logo-image {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
        0 10px 22px rgba(34, 197, 94, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.logo-text {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
    white-space: nowrap;
    position: relative;
}

.logo-text::after {
    content: 'beta';
    display: inline-flex;
    align-items: center;
    margin-left: 0.55rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #166534;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.88) 100%);
    border: 1px solid rgba(134, 239, 172, 0.52);
    vertical-align: middle;
}

.logo:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.logo:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Nav Links */
.nav-links {
    display: none;
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    bottom: auto;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 999;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-text);
    background: rgba(240, 253, 244, 0.9);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0.3rem;
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(241, 245, 249, 0.78) 100%);
        border: 1px solid rgba(15, 23, 42, 0.05);
        border-radius: 999px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            0 8px 18px rgba(15, 23, 42, 0.03);
        gap: 0.25rem;
    }
    
    .nav-links a {
        width: auto;
        padding: 0.62rem 1.05rem;
        font-size: 0.92rem;
        letter-spacing: -0.01em;
        position: relative;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 253, 244, 0.95) 100%);
        box-shadow: 0 8px 18px rgba(34, 197, 94, 0.08);
    }
}

.nav-cta {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.82rem 1.25rem;
    background: #111827;
    color: var(--color-text-inverse);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    transition: all var(--transition-fast);
}

[data-theme="dark"] .nav-cta {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.nav-cta:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

/* ==========================================================================
   BUTTONS - CORE LAYER
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-primary-glow);
}

/* Subtle shimmer effect on primary buttons */
.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-secondary);
    background: var(--color-border-light);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #1fb7f4, #2f8dff);
    color: #0f172a;
    box-shadow: 0 18px 40px rgba(47, 141, 255, 0.25);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #18a7df, #2477e6);
    box-shadow: 0 24px 48px rgba(47, 141, 255, 0.32);
}

.hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(24, 24, 27, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(24, 24, 27, 0.18);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ==========================================================================
   SECTION STYLES - CORE LAYER
   ========================================================================== */

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

.section-header.center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-primary-glow);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

[data-theme="dark"] .section-badge {
    color: var(--color-primary-light);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

.section-header.center p {
    margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION - CORE + NARRATIVE LAYER
   ========================================================================== */

.hero {
    padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    /* Top stays fully clear so the live map reads through (avoids a “cut off / white cap”) */
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(236, 253, 245, 0) 0%,
        rgba(236, 253, 245, 0.02) 34%,
        rgba(240, 253, 244, 0.07) 58%,
        rgba(247, 254, 231, 0.52) 82%,
        rgba(247, 254, 231, 0.94) 100%
    );
    text-align: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -18%;
    transform: translateX(-50%);
    width: min(980px, 92vw);
    height: 42vh;
    background: radial-gradient(ellipse at center, rgba(163, 230, 53, 0.06) 0%, rgba(74, 222, 128, 0.04) 40%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.05) 0%,
        var(--color-bg) 100%
    );
}

@media (min-width: 768px) {
    .hero {
        padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
    }
}

.hero-content {
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    position: relative;
    z-index: 5;
    animation: heroRiseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    transform: translateY(0);
}

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

/* === NARRATIVE LAYER: Time-aware greeting badge === */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.8rem 1.35rem;
    background: rgba(248, 255, 250, 0.96);
    border: 1px solid rgba(74, 222, 128, 0.52);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: #14532d;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 14px 34px rgba(34, 197, 94, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.hero-badge.hero-badge-below {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    isolation: isolate;
}

/* Glow halos sit behind all title text (fixes “Begin.” vs first line layering). */
.hero-title::before {
    content: '';
    position: absolute;
    inset: -18px -12px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.18) 46%, transparent 74%);
    filter: blur(12px);
    z-index: 0;
    pointer-events: none;
}

.hero-title::after {
    content: '';
    position: absolute;
    inset: -6px -4px -2px;
    background: radial-gradient(ellipse 90% 70% at 50% 58%, rgba(255, 255, 255, 0.16) 0%, transparent 72%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.hero-title-text {
    position: relative;
    z-index: 1;
    display: block;
    text-shadow:
        0 1px 12px rgba(255, 255, 255, 0.9),
        0 4px 18px rgba(255, 255, 255, 0.32);
}

.title-line {
    display: block;
}

.title-line-accent {
    display: inline-block;
    color: #14532d;
    text-shadow: none;
    animation: heroTitleThump 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .title-line-accent {
        animation: none;
    }
}

@keyframes heroTitleThump {
    0%, 100% {
        transform: translateY(0) scale(1);
        text-shadow: none;
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        text-shadow: none;
    }
}

/* === REFLECTIVE LAYER: Breathing text animation === */
.breathing-text {
    animation: breathe var(--transition-breath) ease-in-out infinite;
}

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

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: #14532d;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #365314;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: 0.9rem;
}

.btn {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* === AMBIENT LAYER: Living stat with pulse === */
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
    padding: 0.65rem 1.1rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 var(--color-primary-glow);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 0 0 0 4px transparent;
    }
}

.living-stat {
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition-slow);
}

/* Phone Showcase */
.hero-phone-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    perspective: 1500px;
}

.phone-duo {
    position: relative;
    width: 320px;
    height: 380px;
    transform-style: preserve-3d;
}

.showcase-phone {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.phone-body {
    position: relative;
    width: 160px;
    background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
    border-radius: 32px;
    padding: 6px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 25px 50px rgba(0, 0, 0, 0.4);
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.phone-screen-area {
    width: 100%;
    height: 320px;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

.phone-screen-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-back {
    top: 0;
    right: 20px;
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(4deg);
    z-index: 1;
    filter: brightness(0.9);
}

.phone-front {
    bottom: 0;
    left: 20px;
    transform: rotateY(8deg) rotateX(-4deg) rotateZ(-2deg) translateZ(30px);
    z-index: 2;
}

@media (max-width: 480px) {
    .phone-duo {
        width: 260px;
        height: 300px;
    }
    
    .phone-body {
        width: 130px;
        border-radius: 26px;
        padding: 5px;
    }
    
    .phone-screen-area {
        height: 260px;
        border-radius: 22px;
    }
    
    .phone-notch {
        width: 50px;
        height: 14px;
    }
}

/* ==========================================================================
   REFLECTIVE LAYER: Breathing Space
   Visual rest between sections
   ========================================================================== */

.breathing-space {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.breath-line {
    width: 200px;
    height: 20px;
    color: var(--color-border);
}

.breath-path {
    opacity: 0.6;
}

/* ==========================================================================
   SOCIAL PROOF BAR - CORE LAYER
   ========================================================================== */

.social-proof-bar {
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 1;
}

.proof-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .proof-items {
        grid-template-columns: repeat(4, 1fr);
    }
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.proof-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Hirer vs job seeker */
.hirer-seeker-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #f8fdf9 0%, var(--color-bg-alt) 50%, #f4fcf7 100%);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    z-index: 1;
}

.hirer-seeker-title {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 400;
    text-align: center;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
    letter-spacing: -0.02em;
}

.hirer-seeker-lead {
    max-width: 42rem;
    margin: 0 auto var(--space-2xl);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.hirer-seeker-grid {
    display: grid;
    grid-template-columns: 1fr minmax(52px, auto) 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    max-width: 1040px;
    margin: 0 auto;
}

.hirer-seeker-panel {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.hirer-seeker-panel--hirer {
    border-color: rgba(59, 130, 246, 0.22);
    background: linear-gradient(165deg, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.hirer-seeker-panel--seeker {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(195deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.hirer-seeker-panel-head {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hirer-seeker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.hirer-seeker-icon--hirer {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.12);
}

.hirer-seeker-icon--seeker {
    color: var(--color-primary-dark);
    background: rgba(34, 197, 94, 0.14);
}

.hirer-seeker-panel-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hirer-seeker-panel-text {
    margin: 0 0 var(--space-lg);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.hirer-seeker-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.7;
}

.hirer-seeker-list li {
    margin-bottom: var(--space-xs);
}

.hirer-seeker-list li::marker {
    color: var(--color-primary);
}

.hirer-seeker-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 220px;
    align-self: stretch;
}

.hirer-seeker-rule {
    flex: 1 1 auto;
    width: 2px;
    min-height: 32px;
    border-radius: 1px;
    background: linear-gradient(
        180deg,
        rgba(34, 197, 94, 0),
        rgba(34, 197, 94, 0.55) 20%,
        rgba(59, 130, 246, 0.45) 80%,
        rgba(59, 130, 246, 0)
    );
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.hirer-seeker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-sm) 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #f4fcf7 100%);
    border: 2px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-full);
    box-shadow:
        0 0 0 6px rgba(248, 253, 249, 0.95),
        0 8px 20px rgba(15, 23, 42, 0.08);
    z-index: 1;
}

@media (max-width: 767px) {
    .hirer-seeker-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hirer-seeker-vs-col {
        flex-direction: row;
        min-height: unset;
        width: 100%;
        padding: var(--space-sm) 0;
    }

    .hirer-seeker-rule {
        flex: 1 1 auto;
        width: auto;
        height: 2px;
        min-height: 2px;
        min-width: 24px;
        background: linear-gradient(
            90deg,
            rgba(34, 197, 94, 0),
            rgba(34, 197, 94, 0.55) 25%,
            rgba(59, 130, 246, 0.45) 75%,
            rgba(59, 130, 246, 0)
        );
    }

    .hirer-seeker-badge {
        margin: 0 var(--space-sm);
        flex-shrink: 0;
    }
}

[data-theme="dark"] .hirer-seeker-section {
    background: linear-gradient(180deg, #18181b 0%, #141416 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hirer-seeker-lead,
[data-theme="dark"] .hirer-seeker-panel-text {
    color: var(--color-text-muted);
}

[data-theme="dark"] .hirer-seeker-panel {
    background: rgba(30, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hirer-seeker-panel--hirer {
    background: linear-gradient(165deg, rgba(30, 58, 138, 0.25) 0%, rgba(30, 30, 35, 0.9) 100%);
    border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .hirer-seeker-panel--seeker {
    background: linear-gradient(195deg, rgba(22, 101, 52, 0.22) 0%, rgba(30, 30, 35, 0.9) 100%);
    border-color: rgba(74, 222, 128, 0.18);
}

[data-theme="dark"] .hirer-seeker-badge {
    background: linear-gradient(180deg, #27272a 0%, #1f1f23 100%);
    border-color: rgba(74, 222, 128, 0.35);
    color: #f4f4f5;
    box-shadow:
        0 0 0 6px rgba(24, 24, 27, 0.95),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

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

/* ==========================================================================
   FEATURES SECTION - CORE LAYER
   ========================================================================== */

.features-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
    position: relative;
    z-index: 1;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    color: var(--color-primary-dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

[data-theme="dark"] .feature-icon {
    color: var(--color-primary-light);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === NARRATIVE LAYER: Feature whispers (poetic hints) === */
.feature-whisper {
    display: block;
    margin-top: var(--space-lg);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-text-poetic);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-slow);
}

.feature-card:hover .feature-whisper {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   JOURNEY SECTION - HOW IT WORKS
   Clean, accessible step-by-step layout
   ========================================================================== */

.journey-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.journey-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .journey-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }
}

.journey-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: var(--space-xl);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    margin: 0 auto;
}

.journey-step:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    margin-bottom: var(--space-lg);
}

.step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

.step-visual {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    margin: 0 auto;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: none;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-border), var(--color-primary), var(--color-border));
    margin: auto;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        margin-top: 80px;
    }
}

.journey-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.reflection-prompt {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    line-height: 1.4;
}

/* ==========================================================================
   TESTIMONIALS SECTION - CORE LAYER
   ========================================================================== */

.testimonials-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-card > p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.testimonial-card footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-text);
    border-radius: 50%;
    font-weight: 600;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ SECTION - CORE LAYER
   ========================================================================== */

.faq-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary);
}

.faq-item summary {
    padding: var(--space-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.faq-item summary:hover {
    background: var(--color-border-light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   CTA SECTION - CORE + AMBIENT LAYER
   ========================================================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

/* === AMBIENT LAYER: Constellation background === */
.constellation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.cta-card > p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   EMAIL SECTION - CORE LAYER
   ========================================================================== */

.email-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.email-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.email-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.email-card > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 480px) {
    .email-form {
        flex-direction: row;
    }
}

.email-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.email-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.email-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ==========================================================================
   UNIFIED LAUNCH CTA
   ========================================================================== */

.launch-cta-section {
    padding: var(--space-4xl) 0;
    background:
        radial-gradient(circle at 50% 14%, rgba(163, 230, 53, 0.16), transparent 34%),
        radial-gradient(circle at 18% 76%, rgba(187, 247, 208, 0.18), transparent 28%),
        radial-gradient(circle at 82% 28%, rgba(134, 239, 172, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fdf8 0%, #f4fcf7 52%, #f9fdf9 100%);
    position: relative;
    z-index: 1;
}

.launch-cta-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 32px;
    box-shadow:
        0 18px 60px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.45);
}

.launch-cta-card .section-badge {
    margin-bottom: var(--space-lg);
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.96) 0%, rgba(187, 247, 208, 0.92) 100%);
    border-color: rgba(74, 222, 128, 0.22);
    color: #15803d;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.12);
}

.launch-cta-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.launch-cta-copy {
    max-width: 38rem;
    margin: 0 auto var(--space-lg);
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.launch-cta-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 42rem;
    margin: 0 auto var(--space-xl);
}

.launch-cta-perk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #166534;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.9) 100%);
    border: 1px solid rgba(134, 239, 172, 0.42);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.08);
}

.launch-cta-form {
    max-width: 560px;
    margin: 0 auto;
}

.launch-cta-form input {
    background: rgba(255, 255, 255, 0.9);
}

.launch-cta-form .btn {
    min-width: 220px;
    background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
    border-color: rgba(134, 239, 172, 0.2);
    box-shadow: 0 14px 34px rgba(74, 222, 128, 0.16);
}

.launch-cta-form .btn:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 50%, #4ade80 100%);
    box-shadow: 0 18px 38px rgba(74, 222, 128, 0.2);
}

.launch-cta-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.launch-cta-note.is-success,
.phone-prompt-note.is-success,
.email-note.is-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.95rem;
    padding: 0.78rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.92) 100%);
    border: 1px solid rgba(74, 222, 128, 0.34);
    color: #166534;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.12);
}

.launch-cta-consent {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(24, 24, 27, 0.5);
}

.phone-prompt-modal[hidden] {
    display: none !important;
}

.phone-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.phone-prompt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.phone-prompt-card {
    position: relative;
    width: min(100%, 560px);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(34, 197, 94, 0.12);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
    text-align: center;
}

.phone-prompt-card .section-badge {
    margin-bottom: 0.9rem;
}

.phone-prompt-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 4.6vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
    color: var(--color-text);
}

.phone-prompt-copy {
    margin: 0 auto 1rem;
    max-width: 28rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.phone-prompt-form {
    max-width: 100%;
    margin: 0 auto;
}

.phone-prompt-form .btn {
    min-width: 250px;
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 48%, #a3e635 100%);
    color: #14532d;
    border-color: rgba(163, 230, 53, 0.22);
    box-shadow: 0 14px 32px rgba(132, 204, 22, 0.2);
}

.phone-prompt-form .btn:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 48%, #bef264 100%);
    box-shadow: 0 18px 36px rgba(132, 204, 22, 0.24);
}

.phone-prompt-note {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.phone-prompt-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.42);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.phone-prompt-close:hover {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.6);
}

.waitlist-success-card {
    max-width: 500px;
}

.waitlist-success-btn {
    min-width: 180px;
    margin-top: 0.4rem;
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 48%, #a3e635 100%);
    color: #14532d;
    border-color: rgba(163, 230, 53, 0.22);
    box-shadow: 0 14px 32px rgba(132, 204, 22, 0.2);
}

.waitlist-success-btn:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 48%, #bef264 100%);
    box-shadow: 0 18px 36px rgba(132, 204, 22, 0.24);
}

.contact-direct-section {
    padding: calc(var(--space-3xl) * 0.9) 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(187, 247, 208, 0.14), transparent 24%),
        radial-gradient(circle at 82% 82%, rgba(134, 239, 172, 0.1), transparent 22%),
        linear-gradient(180deg, #fcfffc 0%, #f6fbf7 100%);
    position: relative;
    z-index: 1;
}

.contact-direct-card {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 28px;
    box-shadow:
        0 14px 42px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.45);
}

.contact-direct-card .section-badge {
    margin-bottom: var(--space-lg);
}

.contact-direct-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.contact-direct-copy {
    max-width: 36rem;
    margin: 0 auto 1.2rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.contact-direct-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contact-direct-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #166534;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.92) 100%);
    border: 1px solid rgba(134, 239, 172, 0.38);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-direct-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.12);
}

@media (max-width: 640px) {
    .launch-cta-card {
        border-radius: 24px;
        padding: 1.5rem;
    }

    .launch-cta-copy {
        font-size: 1rem;
        line-height: 1.65;
    }

    .launch-cta-perks {
        gap: 0.6rem;
        margin-bottom: var(--space-lg);
    }

    .launch-cta-perk {
        width: 100%;
        max-width: 320px;
    }

    .launch-cta-form .btn {
        width: 100%;
        min-width: 0;
    }

    .phone-prompt-card {
        border-radius: 24px;
        padding: 1.3rem 1rem 1.1rem;
    }

    .phone-prompt-form .btn {
        width: 100%;
    }

    .contact-direct-card {
        border-radius: 24px;
        padding: 1.5rem;
    }

    .contact-direct-copy {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .contact-direct-links {
        gap: 0.65rem;
    }

    .contact-direct-link {
        width: 100%;
        max-width: 340px;
    }
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.team-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #f8fffb 0%, #eefcf4 100%);
    position: relative;
    z-index: 1;
}

.team-note {
    max-width: 720px;
    margin: var(--space-2xl) auto 0;
    text-align: center;
    padding: 1.35rem 1.35rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(34, 197, 94, 0.1);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.team-note h2 {
    margin: 0.65rem 0 0.85rem;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.team-note blockquote {
    max-width: 620px;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--color-text-secondary);
    font-size: clamp(0.94rem, 1.45vw, 1rem);
    line-height: 1.72;
    font-style: normal;
    text-align: center;
}

.team-note blockquote::before {
    content: none;
}

.team-note-signature {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
    letter-spacing: -0.01em;
}

.team-note .section-badge {
    margin-top: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 980px;
    margin: 0 auto;
}

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

.team-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 22px 54px rgba(34, 197, 94, 0.14);
}

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: linear-gradient(180deg, #dcfce7 0%, #ffffff 68%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.team-photo {
    width: auto;
    height: auto;
    max-width: 78%;
    max-height: calc(100% - 56px);
    margin-top: 28px;
    border-radius: 18px;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
    display: block;
}

.team-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14532d;
    font-weight: 600;
    background: linear-gradient(135deg, #d9f99d, #86efac);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.team-role {
    display: inline-block;
    color: #166534;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.team-bio {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.team-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.team-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: #14532d;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.92) 100%);
    border: 1px solid rgba(134, 239, 172, 0.38);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.team-contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.12);
}

.team-contact-link.is-secondary {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
    .team-note {
        margin-top: 1.5rem;
        padding: 1.05rem 0.95rem 1rem;
        border-radius: 20px;
    }

    .team-note blockquote {
        padding: 0;
    }
}

/* ==========================================================================
   FOOTER - CORE LAYER
   ========================================================================== */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.footer-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.28);
    flex-shrink: 0;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--color-text-inverse);
}

.footer-nav h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-nav a {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-text-inverse);
}

.footer-social h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-inverse);
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

/* ==========================================================================
   AMBIENT LAYER: Sound Toggle
   ========================================================================== */

.sound-toggle {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    z-index: 100;
    transition: all var(--transition-base);
}

.sound-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sound-toggle[aria-pressed="true"] {
    background: var(--color-primary-glow);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sound-toggle .sound-waves {
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sound-toggle[aria-pressed="true"] .sound-waves {
    opacity: 1;
}

/* ==========================================================================
   EXPERIMENTAL LAYER: Wild UI Mode
   Activated when user toggles experimental mode
   ========================================================================== */

[data-experimental="true"] {
    /* More dramatic animations */
    --transition-base: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-experimental="true"] .feature-card:hover {
    transform: translateY(-8px) rotate(-1deg);
}

[data-experimental="true"] .testimonial-card:hover {
    transform: translateY(-8px) rotate(1deg);
}

/* Glitch effect on section transitions */
[data-experimental="true"] .section-badge {
    animation: glitchText 5s ease-in-out infinite;
}

@keyframes glitchText {
    0%, 95%, 100% { 
        transform: none;
        text-shadow: none;
    }
    96% { 
        transform: translateX(-2px);
        text-shadow: 2px 0 var(--color-primary);
    }
    97% { 
        transform: translateX(2px);
        text-shadow: -2px 0 var(--accent-energy);
    }
    98% {
        transform: translateX(-1px);
        text-shadow: 1px 0 var(--accent-calm);
    }
}

/* === SCROLL-REACTIVE COLORS === */
[data-scroll-speed="fast"] {
    --color-primary: #f43f5e;
    --color-primary-light: #fb7185;
}

[data-scroll-speed="slow"] {
    --color-primary: #06b6d4;
    --color-primary-light: #22d3ee;
}

/* ==========================================================================
   NARRATIVE LAYER: Heartbeat Loading State
   ========================================================================== */

.loading-heartbeat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.heartbeat-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); opacity: 0.8; }
}

.heartbeat-text {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* ==========================================================================
   REFLECTIVE LAYER: Moment of Silence
   Pause overlay after meaningful actions
   ========================================================================== */

.silence-moment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.silence-moment.active {
    opacity: 1;
    pointer-events: auto;
}

.silence-message {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 400px;
}

/* ==========================================================================
   NARRATIVE LAYER: Anti-Addictive Design
   Gentle encouragement to leave
   ========================================================================== */

.enough-message {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 100;
}

.enough-message.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-hero {
    padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-2xl);
    text-align: center;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--color-bg) 100%);
}

.contact-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
}

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

.contact-content {
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

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

.contact-form-section h2,
.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

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

.info-card {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

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

.info-card a {
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
}

.info-card a:hover {
    opacity: 0.8;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary-dark);
}

/* Footer content for simple pages */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal */
.reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   REAL MAP BACKGROUND - Leaflet Integration
   ========================================================================== */

.map-background {
    position: absolute;
    top: -48px;
    left: 0;
    width: 100%;
    height: calc(100vh + 48px);
    min-height: calc(100vh + 48px);
    z-index: 0;
    overflow: hidden;
    /* Keep top airy without painting a solid band over the tiles */
    background:
        radial-gradient(circle at 14% 28%, rgba(253, 224, 71, 0.045), transparent 32%),
        radial-gradient(circle at 86% 22%, rgba(96, 165, 250, 0.035), transparent 28%),
        linear-gradient(180deg, rgba(238, 246, 240, 0.35) 0%, rgba(237, 247, 242, 0.5) 52%, #f7f8f5 100%);
}

.map-3d-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    z-index: 3;
}

#mapContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(100vh + 48px);
    filter: saturate(0.88) brightness(1.04) contrast(0.99);
    opacity: 1;
}

#mapContainer .leaflet-control-container {
    display: none;
}

.map-background::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Lighter at the top so street grid stays visible (was reading as a hard white cutoff) */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 22%,
        rgba(220, 252, 231, 0.02) 48%,
        rgba(240, 253, 244, 0.035) 72%,
        rgba(247, 254, 231, 0.06) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.map-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 46% at 50% 88%, rgba(236, 253, 245, 0.03) 0%, transparent 72%),
        radial-gradient(ellipse 24% 18% at 20% 84%, rgba(187, 247, 208, 0.025) 0%, transparent 70%),
        radial-gradient(ellipse 24% 18% at 80% 84%, rgba(134, 239, 172, 0.025) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.proof-item,
.team-card,
.review-card,
.cta-card,
.email-card {
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.proof-item:hover,
.team-card:hover,
.cta-card:hover,
.email-card:hover {
    transform: translateY(-4px);
}

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

[data-theme="dark"] .map-background::after {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 11, 0) 0%,
        rgba(10, 10, 11, 0) 18%,
        rgba(10, 10, 11, 0.22) 42%,
        rgba(10, 10, 11, 0.28) 65%,
        rgba(10, 10, 11, 0.72) 100%
    );
}

/* Leaflet Custom Markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    animation: markerPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes markerPop {
    0%   { opacity: 0; transform: scale(0.3) translateY(16px); }
    60%  { opacity: 1; transform: scale(1.08) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.marker-emoji-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    background: rgba(240, 253, 244, 0.97);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1), 0 10px 22px rgba(21, 128, 61, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.marker-emoji {
    font-size: 32px;
    line-height: 1;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: emojiBounce 2s ease-in-out infinite;
}

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

.marker-name {
    margin-top: 6px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #14532d;
    white-space: nowrap;
    border: 1px solid rgba(34, 197, 94, 0.26);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.14);
    position: relative;
    z-index: 2;
}

.marker-name.is-muted {
    display: none;
}

/* Hero with Map Background */
.hero {
    position: relative;
    z-index: 1;
}

/* Location Indicator */
.location-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    z-index: 10;
    transition: all 0.3s ease;
}

[data-theme="dark"] .location-indicator {
    background: rgba(30, 30, 35, 0.95);
}

.location-city {
    font-weight: 600;
    color: var(--color-text);
    transition: opacity 0.3s ease;
}

.location-divider {
    color: var(--color-text-muted);
}

.location-count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .map-3d-wrapper {
        inset: -8%;
        width: 116%;
        height: 116%;
        transform: perspective(900px) rotateX(6deg) scale(1.06);
    }

    .marker-name {
        font-size: 9px;
        padding: 2px 6px;
    }

    .marker-emoji {
        font-size: 26px;
    }

    .marker-emoji-wrap {
        width: 50px;
        height: 50px;
    }

    .location-indicator {
        bottom: var(--space-lg);
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .marker-name {
        font-size: 8px;
        padding: 2px 5px;
    }

    .marker-emoji {
        font-size: 22px;
    }

    .marker-emoji-wrap {
        width: 44px;
        height: 44px;
    }
}
