/* ========================================
   MELANIN NETWORK - PROFESSIONAL BRAND SYSTEM
   Version: 4.2 | Updated: 2026-05-17

   A comprehensive, production-ready CSS framework
   maintaining Melanin's unique brand identity.

   Canonical design system: docs/DESIGN.md (v1.0, April 2026)
   Brand voice:             docs/BRAND_GUIDELINES.md (v1.2)
   Deterministic linter:    scripts/ux_lint.py
   Page template:           template.html
======================================== */

/* ============================================================
   TABLE OF CONTENTS — cmd-F any section name to jump there
   ============================================================
   §1   Design Tokens & Variables ............................ L10
        :root tokens, light-theme overrides, motion tokens
   §2   Reset & Base ......................................... L176
   §3   Layout ............................................... L288
   §4   Typography ........................................... L312
   §5   Components (buttons, cards, base) .................... L426
   §6   Header & Navigation .................................. L680
   §7   Hero & Animations .................................... L903
   §8   Footer ............................................... L1206
   §9   Modals & Widgets ..................................... L1302
   §10  Step Diagrams (How It Works) ......................... L1412
   §11  Checklists ........................................... L1466
   §12  Trust Strip .......................................... L1500
   §13  Responsive ........................................... L1551
   §-   Compact Design System ................................ L1741
   §-   UI Improvements (March 2026) ......................... L2479
   §-   Compact & Concise (March 2026) ....................... L2629
   §-   Tooltip Component .................................... L2810
   §-   Connection Wizard (network.html) ..................... L2850
   §-   Accessibility: Reduced Motion ........................ L2945
   §-   Subliminal Solar Section Glow ........................ L2976
   §-   Button Press Effect (Emil press scale) ............... L2994
   §-   Section Dividers ..................................... L3004
   §-   Component-Level Focus States ......................... L3011
   §-   Smooth Theme Toggle + Reduced-Motion ................. L3027
   §-   Device-Mode Selector ................................. L3059
   §-   FAQ + Glossary ....................................... L3205
   §-   Segmenter Modal ...................................... L3372
   §-   Progressive-Disclosure Checklist ..................... L3520
   §-   MSBX Reservation ..................................... L3590
   §-   Consulting Booking ................................... L3748
   §-   Hero Segment Prompt .................................. L3758
   §-   Footer Waitlist ...................................... L3788
   §-   Payout Odometer + Block Ticker ....................... L3858
   §-   Fee Calculator + Fee Transparency .................... L3912
   §-   Light-Mode Overrides ................................. L4128
   §-   Brand-Aligned UI/UX Refinements ...................... L4163
   §-   Floating Download CTA ................................ L4288
   §-   Sprint J — Aesthetic Upgrade Sweep ................... L4345
   §-   Hero Motion + Floating CTA Spacing ................... L4646
   §-   Compact Hero + Private Click Access .................. L4839
   §-   Phase A.3 — Touch Hover Overrides (Emil guard) ....... L5032

   Line numbers may drift by ±10 after edits — use the section
   delimiter banner (the long-equals comment that starts each section)
   as the canonical anchor instead of these line numbers.
   ============================================================ */

/* ========================================
   1. DESIGN TOKENS & VARIABLES
======================================== */
:root {
    /* === CORE BRAND COLORS === */
    --melanin-maroon: #2F1B1B;        /* Primary brand color */
    --melanin-gold: #DAA520;           /* Secondary brand color */
    --melanin-accent: #FFD700;         /* Accent highlights */
    --melanin-beige: #F5DEB3;          /* Text color */
    --melanin-brown: #8B4513;          /* Supporting color */
    --melanin-dark: #1A0F0F;           /* Deep backgrounds */
    
    /* === SEMANTIC COLOR MAPPING (Dark Mode Default) === */
    --color-primary: var(--melanin-maroon);
    --color-secondary: var(--melanin-gold);
    --color-accent: var(--melanin-gold); 
    --color-highlight: var(--melanin-accent); 
    --color-text: var(--melanin-beige);
    --color-text-secondary: #D4B88C;
    --color-text-muted: #C4A882;
    --color-text-inverse: var(--melanin-maroon);

    /* === STATUS COLORS === */
    --color-success: #4CAF50;
    --color-warning: #eab308;
    --color-info: #3b82f6;
    --color-live: #22c55e;

    /* === BACKGROUND SYSTEM === */
    --bg-primary: var(--melanin-maroon);
    --bg-secondary: rgba(47, 27, 27, 0.95);
    --bg-glass: rgba(47, 27, 27, 0.7);
    --bg-card: rgba(245, 222, 179, 0.05);
    --bg-hover: rgba(245, 222, 179, 0.08);
    --bg-tertiary: rgba(245, 222, 179, 0.1);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --bg-gradient: radial-gradient(ellipse at center, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
    
    /* === EXTENDED GOLD SWATCH (Clay-inspired) === */
    --gold-pale: #F8CC65;
    --gold-primary: #DAA520;
    --gold-deep: #D08A11;

    /* === BORDER & SHADOW SYSTEM === */
    --border-subtle: rgba(245, 222, 179, 0.08);
    --border-color: rgba(245, 222, 179, 0.15);
    --border-strong: rgba(245, 222, 179, 0.25);
    --border-glass: rgba(245, 222, 179, 0.2);
    --border-accent: rgba(218, 165, 32, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 32px rgba(218, 165, 32, 0.25);

    /* Awesome Design Enhancements (Claude + Notion + Stripe inspired) */
    --shadow-ring: 0 0 0 1px rgba(245, 222, 179, 0.1);
    --shadow-ring-accent: 0 0 0 1px rgba(218, 165, 32, 0.25);
    --shadow-ambient: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
    --shadow-elevated: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.04);
    --shadow-chromatic: 0 8px 30px -12px rgba(218, 165, 32, 0.15), 0 16px 45px -20px rgba(0, 0, 0, 0.12);
    
    /* === TYPOGRAPHY === */
    --font-heading: 'Raleway', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family: var(--font-body); /* Legacy alias — prefer --font-body / --font-heading for new code */
    --font-mono: 'Monaco', 'Cascadia Code', monospace;
    
    --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 */
    
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    
    /* === SPACING (Compact) === */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 0.75rem;    /* 12px */
    --spacing-lg: 1rem;       /* 16px */
    --spacing-xl: 1.5rem;     /* 24px */
    --spacing-2xl: 2rem;      /* 32px */
    --spacing-3xl: 2.5rem;    /* 40px */
    --spacing-4xl: 3rem;      /* 48px */
    
    --container-xl: 1200px;           /* Compact: was 1280px */
    --container-padding: 2.5rem;      /* 40px - container side padding */
    --header-height: 60px;            /* Balanced: proportionate */
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Phase B (May 2026) — Emil Kowalski motion additions. Asymmetric
       enter/exit timing makes exits feel snappier than entrances. The
       quart curve is the recommended general-purpose UI ease — slightly
       more pronounced than Material's --ease-out. */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-enter: 220ms;
    --duration-exit:  160ms;

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
}

/* Light Theme Override */
[data-theme="light"] {
    --bg-primary: #FAF7F2;
    --bg-secondary: #FFFFFF;
    --bg-glass: rgba(250, 247, 242, 0.8);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-hover: rgba(218, 165, 32, 0.1);
    --bg-tertiary: rgba(139, 69, 19, 0.1);

    --color-text: #5C2E0C;            /* darker saddle-brown: ~9.1:1 on #FAF7F2 (WCAG AAA) */
    --color-text-secondary: #7A4B1C;  /* ~6.8:1 on #FAF7F2 (WCAG AA, AAA for large text) */
    --color-text-muted: #8B5A2B;      /* ~5.1:1 on #FAF7F2 (WCAG AA for body text ≥14px) */
    --color-text-inverse: #F5DEB3;

    --border-subtle: rgba(139, 69, 19, 0.06);
    --border-color: rgba(139, 69, 19, 0.15);
    --border-strong: rgba(139, 69, 19, 0.25);

    --shadow-glow: 0 0 32px rgba(218, 165, 32, 0.15);
    --shadow-ring: 0 0 0 1px rgba(139, 69, 19, 0.08);
    --shadow-ring-accent: 0 0 0 1px rgba(218, 165, 32, 0.2);
    --shadow-ambient: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.02);
    --shadow-elevated: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.03);
    --shadow-chromatic: 0 8px 30px -12px rgba(218, 165, 32, 0.1), 0 16px 45px -20px rgba(0, 0, 0, 0.08);
}

/* Light Theme Button Fixes */
[data-theme="light"] .btn-primary {
    background: var(--melanin-maroon);
    color: var(--melanin-beige);
}

[data-theme="light"] .btn-primary:hover {
    background: var(--melanin-brown);
}

[data-theme="light"] .btn-secondary {
    border-color: var(--melanin-maroon);
    color: var(--melanin-maroon);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(47, 27, 27, 0.1);
}

/* ========================================
   2. RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--color-text);
    line-height: 1.60;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .hero-subtitle, .display-font {
    font-family: var(--font-heading);
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-text-inverse);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 9999;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Campaign Banner */
.campaign-banner {
    background: linear-gradient(90deg, var(--melanin-dark), var(--melanin-maroon));
    color: var(--color-text);
    padding: var(--spacing-sm) 0;
    font-size: var(--text-sm);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.campaign-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.campaign-banner p {
    margin: 0;
}

.campaign-banner a {
    color: var(--color-highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.campaign-banner a:hover {
    color: var(--color-accent);
}

.banner-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--text-xl);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.banner-close:hover {
    color: var(--color-text);
}

/* ========================================
   3. LAYOUT
======================================== */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

/* ========================================
   4. TYPOGRAPHY
======================================== */
.hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    letter-spacing: -0.02em;
    animation: heroFadeUp 0.8s ease-out both;
}

.hero-subtitle {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--weight-medium);
    background: linear-gradient(135deg, var(--melanin-gold) 0%, var(--melanin-accent) 50%, var(--melanin-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: var(--spacing-xs);
    animation: heroFadeUp 0.8s ease-out 0.15s both, shimmer 4s linear infinite;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 540px;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
    animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    animation: heroFadeUp 0.8s ease-out 0.45s both;
}

/* Hero entrance animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-description span {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.hero-description span:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    font-weight: var(--weight-bold);
}

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

/* === Type scale: distinctive heading hierarchy (Sprint J) === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    line-height: 1.2;
}
/* Phase visible-polish (May 2026): tighten display tracking one step closer
   to Notion/Linear editorial. Headings feel more confident at large sizes
   when negative tracking is slightly more pronounced. */
h1, .h1 { font-size: var(--text-5xl); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2, .h2, .section-title { font-size: var(--text-4xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
h3, .h3 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
h4, .h4 { font-size: var(--text-xl);  font-weight: 600; line-height: 1.4; }
h5, .h5 { font-size: var(--text-lg);  font-weight: 500; line-height: 1.45; }
h6, .h6 { font-size: var(--text-sm);  font-weight: 600; line-height: 1.5;
          text-transform: uppercase; letter-spacing: 0.08em;
          color: var(--color-text-secondary); }

.hero-title { font-size: var(--text-5xl); line-height: 1.05; letter-spacing: -0.03em; }
.hero-subtitle {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
    letter-spacing: -0.01em;
}

p { margin-bottom: var(--spacing-md); }

/* Small text: positive tracking for readability (Zapier-inspired) */
small, .text-sm, .text-xs,
.feature-card p, .tool-card p, .community-card p {
    letter-spacing: 0.01em;
}

/* Tabular numerals for data displays (Stripe-inspired) */
.stat-value, .hero-metric-value, .pool-stat-value, .sun-index-value,
[data-numeric] {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   5. COMPONENTS
======================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: var(--weight-medium);
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                filter var(--duration-fast) var(--ease-out);
    cursor: pointer;
    min-height: 48px;
    white-space: nowrap;
}

.btn-sm {
    min-height: 40px;
    padding: 0 var(--spacing-lg);
    font-size: var(--text-sm);
}

.btn-xs {
    min-height: 36px;  /* Extra small button */
    padding: 0 var(--spacing-md);
    font-size: var(--text-sm);
}

/* Nav button - balanced style */
.nav-menu .btn {
    min-height: 36px;
    padding: 0 var(--spacing-lg);
    font-size: var(--text-sm);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
}

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

.btn-ghost:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Cards */
.feature-card, .tool-card, .community-card, .config-card, .step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    /* Phase visible-polish: use ease-out-quart (Emil) for a slightly more
       confident lift, and lengthen exit on transform so leaving feels less
       abrupt than entering. */
    transition: transform var(--duration-normal) var(--ease-out-quart),
                border-color var(--duration-normal) var(--ease-out-quart),
                box-shadow var(--duration-normal) var(--ease-out-quart),
                background-color var(--duration-normal) var(--ease-out-quart);
    height: 100%;
    box-shadow: var(--shadow-ring), var(--shadow-ambient);
}

/* Phase visible-polish: unified hover shadow stack across card variants —
   ring-accent + elevated + chromatic gives a layered warm glow that reads
   on both dark and light themes. Lift bumped from -4px to -6px. */
.feature-card:hover, .tool-card:hover, .community-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-ring-accent), var(--shadow-elevated), var(--shadow-chromatic);
}

.feature-card:hover {
    background: rgba(47, 27, 27, 0.85);
}

.feature-card h3, .tool-card h3, .community-card h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-card p, .tool-card p, .community-card p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.tool-card .btn, .community-card .btn {
    margin-top: auto;
}

.brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Solar Design Tokens - for solar-themed pages (solar, box, index household sections) */
:root {
    --sunrise-gradient: linear-gradient(180deg, var(--melanin-gold) 0%, var(--melanin-accent) 100%);
    --solar-glow: 0 0 40px rgba(255, 215, 0, 0.3);
    --solar-ray-color: rgba(218, 165, 32, 0.4);
}

/* Solar Accent - sunrise CTA variant */
.btn-solar {
    background: var(--sunrise-gradient);
    color: var(--color-text-inverse);
    border: none;
    font-weight: var(--weight-bold);
}

.btn-solar:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: var(--solar-glow);
}

/* Solar Badge - for trust strip and feature callouts */
.solar-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    color: var(--color-accent);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}

.solar-badge::before {
    content: "☀";
    font-size: var(--text-sm);
}

/* Solar Section - warm accent treatment for solar-related sections */
.solar-section {
    position: relative;
    background: radial-gradient(ellipse at top, rgba(218, 165, 32, 0.08) 0%, transparent 60%);
}

/* Hero Solar - sun-inspired hero variant (replaces orbital animation) */
.hero-solar-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-solar-visual svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* Solar Ray Animation */
@keyframes solar-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.hero-solar-visual .sun-core {
    animation: solar-pulse 4s var(--ease-out) infinite;
    transform-origin: center;
}

/* Sun Index Display - geographic solar metric */
.sun-index {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-left: 3px solid var(--melanin-gold);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.sun-index-value {
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    font-size: var(--text-base);
}

.sun-index-label {
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

/* Science Callout - peer-reviewed research references */
.science-callout {
    background: var(--bg-card);
    border-left: 3px solid var(--melanin-gold);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.science-callout p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

.science-callout cite {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-style: normal;
}

/* ========================================
   6. HEADER & NAVIGATION
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    height: 100%;
    width: 100%;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);  /* Compact: reduced gap */
    /* Uses same max-width and padding as other containers */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-img {
    height: 28px;  /* Balanced: proportionate */
    width: auto;
    display: inline-block;
}

.alpha-badge {
    font-size: var(--text-xs);  /* 12px - proportionate */
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 1rem;  /* 16px - balanced spacing */
    align-items: center;
    height: 100%;
}

.nav-link {
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);  /* 14px - standard nav size */
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--color-accent); }
.nav-link.active { box-shadow: inset 0 -2px 0 0 var(--color-accent); }

/* Mega Menu */
.has-dropdown { 
    position: relative; 
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--text-sm);  /* Match nav-link */
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    width: max-content;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    /* Phase D: asymmetric enter/exit — close fast (--duration-exit), open
       with a slightly more premium settle (--duration-enter + ease-out-quart). */
    transition: opacity var(--duration-exit) var(--ease-out-quart),
                visibility var(--duration-exit) var(--ease-out-quart),
                transform var(--duration-exit) var(--ease-out-quart);
    box-shadow: var(--shadow-lg);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-duration: var(--duration-enter);
}

.mega-menu-content {
    display: grid;
    gap: var(--spacing-sm);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.mega-menu-item:hover {
    background: var(--bg-hover);
}

.item-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-details strong {
    font-size: var(--text-sm);
    color: var(--color-text);
}

.item-details span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--text-xs);
    margin-right: var(--spacing-lg);
    border-right: 1px solid var(--border-color);
    padding-right: var(--spacing-lg);
}

.nav-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
}

.stat-icon {
    width: 16px;
    height: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--spacing-xs);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;  /* Balanced */
    height: 36px;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-hover);
}

.theme-toggle .icon-container {
    width: 20px;  /* Standard icon size */
    height: 20px;
}

/* Light mode is paused; keep the brand in its canonical dark surface. */
.theme-toggle {
    display: none;
}

.nav-toggle { display: none; }

/* ========================================
   7. HERO & ANIMATIONS
======================================== */
.hero {
    margin-top: calc(var(--header-height) + 40px);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    min-height: calc(85vh - var(--header-height) - 40px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero content */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(218, 165, 32, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Chat Hero - Centered text-only hero */
.chat-hero {
    margin-top: calc(var(--header-height) + 40px);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: center;
}

.chat-hero .hero-title {
    text-align: center;
}

.chat-hero .hero-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-content {
    justify-self: start;
    text-align: left;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-visual {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 3D Animation Objects */
.hero-anim {
    width: 300px;
    height: 300px;
    position: relative;
    perspective: 1000px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .hero-anim {
        width: 380px;
        height: 380px;
    }
}

.orbital-system {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 25s ease-in-out infinite, heroVisualFadeIn 1.2s ease-out both;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(5deg); }
    50% { transform: rotateY(180deg) rotateX(-5deg); }
    100% { transform: rotateY(360deg) rotateX(5deg); }
}

@keyframes heroVisualFadeIn {
    from { opacity: 0; transform: scale(0.85) rotateY(0deg); }
    to { opacity: 1; transform: scale(1) rotateY(0deg); }
}

.orbital-main {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.glass-orb-1, .glass-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: orbFloat 6s ease-in-out infinite;
}

.glass-orb-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--melanin-accent) 0%, transparent 70%);
    opacity: 0.5;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.glass-orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--melanin-gold) 0%, transparent 70%);
    opacity: 0.35;
    bottom: -20px;
    left: -20px;
    animation-delay: -3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8px, -12px) scale(1.05); }
    66% { transform: translate(-6px, 8px) scale(0.95); }
}

/* Orbital Elements */
.orbital-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbital-element.orbit-1 {
    width: 200px;
    height: 200px;
    animation: spin 15s linear infinite;
}

.orbital-element.orbit-2 {
    width: 280px;
    height: 280px;
    animation: spin 25s linear infinite reverse;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulse Rings — smoother, more layered */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--melanin-gold);
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pulse-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.pulse-ring-2 { width: 80px; height: 80px; animation-delay: 2s; }

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; border-width: 2px; }
    50% { transform: translate(-50%, -50%) scale(2); opacity: 0.3; border-width: 1px; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 0.5px; }
}

/* Throb Animation with Glow */
@keyframes throb {
    0% { 
        transform: scale(1); 
        text-shadow: 0 0 0 transparent;
    }
    50% { 
        transform: scale(1.05); 
        text-shadow: 0 0 8px var(--color-accent), 0 0 16px var(--color-accent);
    }
    100% { 
        transform: scale(1); 
        text-shadow: 0 0 0 transparent;
    }
}

.throb {
    display: inline-block;
    animation: throb 2s infinite ease-in-out;
}

.nav-link.throb {
    font-weight: var(--weight-medium);
}

/* Youtube Video */
.youtube-video {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--melanin-dark);
}

/* Downloads Section */
.downloads {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.download-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.download-platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.download-platform-icon:hover {
    color: var(--color-accent);
    transform: translateY(-4px);
}

.platform-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.platform-icon-box svg {
    width: 40px;
    height: 40px;
}

.download-platform-icon:hover .platform-icon-box {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    background: var(--bg-hover);
}

.platform-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

/* ========================================
   8. FOOTER
======================================== */
.site-footer {
    margin-top: var(--spacing-4xl);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

/* Phase L.1 (June 2026) — new footer rhythm:
   - .footer-brand: logo + tagline + social (left column or top band)
   - .footer-nav: single horizontal row of main-nav items
   - .footer-waitlist: launch-updates form
   Three logical bands; ONE row for all menu items per direction. */
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--border-color);
}
.footer-brand {
    max-width: 480px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.footer-nav a {
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .footer-nav a:hover {
        color: var(--color-accent);
    }
}
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .footer-nav {
        gap: var(--spacing-sm) var(--spacing-md);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-section h4 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--color-text-secondary);
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

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

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

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

/* ========================================
   9. MODALS & WIDGETS
======================================== */
.floating-chat {
    position: fixed;
    bottom: var(--spacing-2xl);
    right: var(--spacing-2xl);
    z-index: var(--z-sticky);
}

.chat-bubble {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration-fast);
    cursor: pointer;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.melanie-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--duration-fast);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.floating-chat:hover .chat-label { opacity: 1; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    padding: var(--spacing-md);
}

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

body.modal-open {
    overflow: hidden;
}

.modal-container {
    background: var(--bg-primary);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px;
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

/* ========================================
   10. STEP DIAGRAMS (How It Works)
======================================== */
.step-diagram {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    position: relative;
    margin-top: var(--spacing-xl);
}

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    z-index: 1;
    /* Phase visible-polish: stagger entry. Each card uses the same keyframe
       with a per-child delay so they land sequentially, not all at once. */
    animation: step-card-reveal 600ms var(--ease-out-expo) both;
}
.step-card:nth-child(1) { animation-delay: 0ms; }
.step-card:nth-child(2) { animation-delay: 80ms; }
.step-card:nth-child(3) { animation-delay: 160ms; }

@keyframes step-card-reveal {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .step-card { animation: none; }
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.step-content {
    text-align: center;
}

.step-content h3 {
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

/* ========================================
   11. CHECKLISTS
======================================== */
.checklist-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.checklist-item {
    display: flex;
    gap: var(--spacing-md);
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.checklist-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    flex-shrink: 0;
}

/* ========================================
   12. TRUST STRIP
======================================== */
.trust-strip-section {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    background: var(--bg-tertiary);
}

.trust-strip {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.trust-badge:hover { opacity: 1; }

.trust-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--text-sm);
}

.trust-item .trust-icon {
    color: var(--color-accent);
    font-weight: bold;
    width: auto;
    height: auto;
}

.trust-label {
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ========================================
   13. RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1001;
    }
    
    .nav-toggle .bar {
        width: 24px;
        height: 2px;
        background: var(--color-text);
        transition: transform var(--duration-normal) var(--ease-out),
                    opacity var(--duration-normal) var(--ease-out),
                    background-color var(--duration-normal) var(--ease-out);
    }
    
    .nav-stats { display: none; }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-secondary);
        padding: var(--spacing-xl);
        overflow-y: auto;
        gap: var(--spacing-lg);
        align-items: flex-start;
        border-top: 1px solid var(--border-color);
    }
    
    .mega-menu {
        position: static;
        width: 100%;
        min-width: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: var(--spacing-sm);
        margin-left: var(--spacing-md);
        display: none;
    }
    
    .has-dropdown.active .mega-menu {
        display: block;
    }
    
    .dropdown-trigger {
        font-size: var(--text-lg);
        font-weight: 600;
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-trigger::after {
        content: '+';
        font-weight: normal;
    }
    
    .has-dropdown.active .dropdown-trigger::after {
        content: '-';
    }
}

/* Tablet breakpoint */
@media (max-width: 992px) {
    :root {
        --container-padding: 2rem;    /* 32px on tablet */
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

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

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

@media (max-width: 768px) {
    :root {
        --spacing-xl: 1rem;
        --spacing-2xl: 1.5rem;
        --spacing-4xl: 3rem;
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;   /* 30px on mobile */
        --text-3xl: 1.75rem;
        --text-2xl: 1.25rem;    /* 20px on mobile */
        --header-height: 60px;
        --container-padding: 1rem;    /* 16px on mobile */
    }

    .container { padding: 0 var(--container-padding); }

    .hero {
        margin-top: calc(var(--header-height) + 32px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        padding: 0 var(--container-padding);
    }
    
    .hero-content {
        justify-self: center;
        text-align: center;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-anim {
        width: 240px;
        height: 240px;
    }
    
    .hero-description { margin: 0 auto var(--spacing-xl); }
    .hero-buttons { justify-content: center; }
    
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .step-diagram, .checklist-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .step-card::after { display: none; } /* Remove connecting lines */
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-legal { flex-direction: column; gap: var(--spacing-sm); align-items: center; }
    
    .trust-strip { justify-content: center; }
    
    .download-icons-row {
        gap: var(--spacing-lg);
    }
    
    .platform-icon-box {
        width: 64px;
        height: 64px;
    }
    
    .platform-icon-box svg {
        width: 32px;
        height: 32px;
    }
    
    .campaign-banner .container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .floating-chat {
        display: none;
    }
}

/* ========================================
   COMPACT DESIGN SYSTEM
   For concise, high-impact pages
======================================== */

/* === HERO METRICS === */
.hero-metric {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--melanin-gold);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.hero-metric-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-metrics-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.hero-metric-item {
    text-align: center;
}

/* === STATS BAR === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--melanin-gold);
}

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

/* === COMPACT HERO === */
.hero-compact {
    padding: 3rem 0 2rem;
    min-height: auto;
}

.hero-compact .hero-title {
    font-size: var(--text-4xl);
    margin-bottom: 0.5rem;
}

.hero-compact .hero-subtitle {
    font-size: var(--text-lg);
}

.hero-compact .hero-description {
    font-size: var(--text-base);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* === COMPACT FEATURE CARDS === */
.feature-card-compact {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: background-color var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.feature-card-compact:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.feature-card-compact .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--melanin-gold);
}

.feature-card-compact h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.feature-card-compact p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

/* === COMPACT GRID === */
.grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* === STEP INDICATORS (Compact) === */
.steps-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.step-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-compact .step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--melanin-gold);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-compact .step-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
}

.step-compact .step-sublabel {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--melanin-gold);
    opacity: 0.5;
}

/* === STRONG CTA === */
.btn-strong {
    background: linear-gradient(135deg, var(--melanin-gold), var(--melanin-accent));
    color: var(--melanin-maroon);
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.btn-strong:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

/* === TRUST STRIP (Compact) === */
.trust-strip-compact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.trust-badge-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.trust-badge-compact .trust-icon {
    font-size: 1.25rem;
    color: var(--melanin-gold);
}

/* === SECTION STYLES === */
.section,
.how-it-works,
.benefits,
.get-started,
.learn-more,
.support {
    padding: var(--spacing-3xl) 0;
}

.section {
    background: var(--bg-primary);
}

.how-it-works {
    background: var(--bg-secondary);
}

.benefits {
    background: var(--bg-primary);
}

.get-started {
    background: var(--bg-secondary);
}

.learn-more {
    background: var(--bg-primary);
}

.support {
    background: var(--bg-secondary);
}

/* === FLOW DIAGRAM === */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 160px;
    transition: border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

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

.flow-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

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

.flow-label {
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-xs);
}

.flow-sublabel {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.flow-arrow {
    font-size: var(--text-2xl);
    color: var(--color-accent);
    font-weight: bold;
}

/* === LAUNCHER SECTION === */
/* Additional section styling */
.section-header {
    margin-bottom: var(--spacing-xl);
}

.ventures-portfolio {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.explorer-section {
    padding: var(--spacing-3xl) 0;
}

.launcher-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-gradient);
}

.launcher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.launcher-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.launcher-card .brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
}

.launcher-card h3 {
    margin-bottom: var(--spacing-sm);
}

.launcher-card p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.launcher-card .btn {
    margin-top: auto;
}

/* === ECOSYSTEM SECTION === */
.ecosystem-section {
    padding: var(--spacing-3xl) 0;
}

.ecosystem-section .section-title {
    margin-bottom: var(--spacing-xl);
}

.subsection-title {
    font-size: var(--text-lg);
    color: var(--color-accent);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.subsection-title:first-of-type {
    margin-top: 0;
}

.ecosystem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.ecosystem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.ecosystem-card .brand-icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--spacing-sm);
}

.ecosystem-card h4 {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-xs);
}

.ecosystem-card p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.ecosystem-card .btn {
    margin-top: auto;
}

/* === INFO CARD === */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.info-card:hover {
    border-color: var(--border-accent);
}

.info-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.info-card ul {
    text-align: left;
}

.info-card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    position: relative;
    padding-left: var(--spacing-lg);
}

.info-card ul li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Description */
.section-description {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Specs List */
.specs-list {
    text-align: left;
}

.specs-list li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

/* Simple Checklist (non-interactive) */
ul.checklist {
    text-align: left;
}

ul.checklist li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    position: relative;
    padding-left: var(--spacing-lg);
}

ul.checklist li::before {
    content: "✓";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* === STEPS CONTAINER === */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .steps-container .step-arrow {
        transform: rotate(90deg);
    }
}

/* === RESPONSIVE TABLE === */
.responsive-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.data-table th,
.data-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: var(--weight-medium);
    color: var(--color-accent);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    background: var(--bg-tertiary);
    color: var(--color-text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-live);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: var(--color-warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-info);
}

.badge-accent {
    background: var(--color-accent);
    color: var(--color-text-inverse);
}

/* === SECTION NOTE === */
.section-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-top: var(--spacing-lg);
    font-style: italic;
}

/* === VISION SECTION === */
.vision-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-gradient);
}

.vision-section .section-title {
    margin-bottom: var(--spacing-md);
}

.vision-section .section-description {
    margin-bottom: var(--spacing-2xl);
}

.vision-note {
    text-align: center;
    margin-top: var(--spacing-2xl);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* === CTA SECTION === */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: var(--bg-glass);
}

.cta-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* === SECTION COMPACT === */
.section-compact {
    padding: 2rem 0;
}

.section-compact .section-title {
    font-size: var(--text-2xl);
    margin-bottom: 1.5rem;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .hero-metric {
        font-size: 2.5rem;
    }

    .hero-metrics-row {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .steps-compact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .trust-strip-compact {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .flow-diagram {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-item {
        width: 100%;
        min-width: unset;
    }
}

/* ========================================
   UI IMPROVEMENTS — March 2026
   Proof section, stats, scroll UX
======================================== */

/* Proof Section */
.proof-section {
    padding: 4rem 0;
}

.proof-card {
    background: rgba(47, 27, 27, 0.6);
    border: 1px solid var(--melanin-gold);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.1);
}

.proof-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.proof-stat {
    text-align: center;
    min-width: 140px;
}

.proof-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--melanin-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.proof-label {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Pool Live Stats Bar */
.pool-stats-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(47, 27, 27, 0.8);
    border: 1px solid var(--melanin-gold);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    justify-content: space-around;
    align-items: center;
}

.pool-stat-item {
    text-align: center;
}

.pool-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--melanin-gold);
    font-family: var(--font-heading);
}

.pool-stat-label {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.pool-stat-live {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--melanin-gold);
    z-index: 9999;
    transition: width 0.1s linear;
    width: 0;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--melanin-gold);
    color: var(--melanin-maroon);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.5);
}

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

/* Compatible devices table styling */
.compatible-devices-section {
    padding: 4rem 0;
}

/* Responsive proof stats */
@media (max-width: 600px) {
    .proof-stats {
        gap: 1.5rem;
    }
    .proof-number {
        font-size: 1.8rem;
    }
    .proof-card {
        padding: 2rem 1.5rem;
    }
    .pool-stats-bar {
        gap: 1rem;
        padding: 1rem;
    }
}

/* ========================================
   COMPACT & CONCISE — March 2026
   Tighter vertical rhythm, better spacing
======================================== */

/* Tighter section titles */
.section-title {
    margin-bottom: var(--spacing-lg) !important;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.section-subtitle,
.section-description {
    margin-bottom: var(--spacing-xl) !important;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature cards — compact, uniform height */
.feature-card {
    padding: var(--spacing-xl) var(--spacing-lg) !important;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs) !important;
    font-size: 1rem;
    font-weight: 600;
}

.feature-card p {
    margin-bottom: 0 !important;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Brand icon — tighter */
.brand-icon {
    margin-bottom: var(--spacing-sm) !important;
    width: 36px;
    height: 36px;
}

/* Launcher / product cards */
.launcher-card {
    padding: var(--spacing-xl) var(--spacing-lg) !important;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.launcher-card h3 {
    margin-bottom: var(--spacing-xs) !important;
    font-size: 1.1rem;
}

.launcher-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    flex: 1;
    margin-bottom: var(--spacing-lg) !important;
}

/* Hero tighter */
.hero {
    padding-top: var(--spacing-2xl) !important;
    padding-bottom: var(--spacing-2xl) !important;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem) !important;
    line-height: 1.65 !important;
    max-width: 560px !important;
    margin-bottom: var(--spacing-xl) !important;
}

/* Get-started checklist — compact rows */
.checklist-item {
    padding: var(--spacing-md) var(--spacing-lg) !important;
    gap: var(--spacing-md);
}

.checklist-content h4 {
    margin-bottom: 0.1rem !important;
    font-size: 0.95rem;
}

.checklist-content p {
    font-size: 0.85rem;
    margin-bottom: 0 !important;
    color: var(--color-text-secondary);
}

/* Vision section cards */
.vision-section .feature-card p,
.vision-section .vision-card p {
    font-size: 0.87rem;
    line-height: 1.5;
}

/* How-it-works steps — compact */
.how-it-works .step,
.step-content p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Proof section — tighter */
.proof-card {
    padding: var(--spacing-2xl) var(--spacing-xl) !important;
}

.proof-number {
    font-size: 1.9rem !important;
}

/* Buttons — consistent, compact */
.btn {
    padding: 0.55rem 1.25rem !important;
    font-size: 0.88rem !important;
    border-radius: 6px !important;
}

.btn-sm {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.8rem !important;
}

/* Ecosystem section — dense grid links */
.ecosystem-section .grid a,
.ecosystem-section .site-link {
    font-size: 0.85rem;
    padding: var(--spacing-sm) var(--spacing-md) !important;
}

/* Support section — compact */
.support .feature-card p {
    font-size: 0.85rem;
}

/* Ensure no orphaned single words on their own line */
h1, h2, h3, h4, .hero-title, .section-title {
    text-wrap: balance;
}

p, .hero-description, .section-subtitle {
    text-wrap: pretty;
}

/* Tablet: 2-column grid between 769px-1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg) !important;
    }
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md) !important;
    }
}

/* Desktop: full column count above 1024px */
@media (min-width: 1025px) {
    .grid.grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md) !important;
    }
    .grid.grid-cols-3 {
        gap: var(--spacing-lg) !important;
    }
    .grid.grid-cols-2 {
        gap: var(--spacing-lg) !important;
    }
}

/* ========================================
   TOOLTIP COMPONENT (jargon definitions)
======================================== */
.tooltip {
    position: relative;
    border-bottom: 1px dotted var(--melanin-gold);
    cursor: help;
}
.tooltip:hover::after,
.tooltip:focus::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    max-width: 250px;
    white-space: normal;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    pointer-events: none;
}
.tooltip:hover::before,
.tooltip:focus::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-secondary);
    z-index: 101;
    pointer-events: none;
}

/* ========================================
   CONNECTION WIZARD (network.html)
======================================== */
.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}
.wizard-step {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}
.wizard-step h3 {
    color: var(--melanin-gold);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-lg);
}
.wizard-options {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}
.wizard-option {
    flex: 1;
    min-width: 140px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    color: var(--color-text);
    font-weight: 500;
}
.wizard-option:hover {
    border-color: var(--melanin-gold);
    transform: translateY(-2px);
}
.wizard-option.selected {
    border-color: var(--melanin-gold);
    background: rgba(218, 165, 32, 0.15);
    box-shadow: 0 0 0 1px var(--melanin-gold);
}
.wizard-option .option-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}
.wizard-option .option-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
.wizard-result {
    display: none;
    margin-top: var(--spacing-xl);
}
.wizard-result.visible {
    display: block;
}
.wizard-result .config-card {
    max-width: 480px;
    margin: 0 auto;
}

/* Copy button for endpoints */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--melanin-gold);
    color: var(--melanin-dark);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease;
}
.copy-btn:hover {
    background: var(--melanin-accent);
}
.copy-btn.copied {
    background: var(--color-success);
    color: white;
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile: full-width, tight stacking */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-lg) 0 !important;
    }
    .feature-card,
    .launcher-card {
        padding: var(--spacing-lg) !important;
    }
    .proof-stats {
        gap: var(--spacing-lg) !important;
    }
    .hero-description {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   SUBLIMINAL SOLAR SECTION GLOW
======================================== */
main section {
    position: relative;
}
main section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(218,165,32,0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   BUTTON PRESS EFFECT
======================================== */
.btn-primary:active,
.btn-secondary:active,
.btn-solar:active {
    transform: scale(0.97);
    transition: transform var(--duration-fast) var(--ease-out);
}

/* ========================================
   SECTION DIVIDERS
======================================== */
main section + section {
    border-top: 1px solid var(--solar-ray-color);
}

/* ========================================
   COMPONENT-LEVEL FOCUS STATES
======================================== */
.nav-toggle:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--melanin-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.footer-links a:focus-visible,
.social-link:focus-visible,
.download-platform-icon:focus-visible {
    outline: 2px solid var(--melanin-gold);
    outline-offset: 2px;
}

/* ========================================
   SMOOTH THEME TOGGLE + REDUCED-MOTION
   (UI/UX Standard §5, §6)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    html {
        transition:
            background-color 220ms ease-out,
            color 220ms ease-out;
    }
    body {
        transition: background-color 220ms ease-out;
    }
    .btn:active,
    .nav-cta:active {
        transform: scale(0.98);
        filter: brightness(0.96);
    }
}

/* Honor system reduced-motion preference across the app */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   DEVICE-MODE SELECTOR (D-6, 2026-04-17)
   4-chip tablist on click.html that maps device class → VIBE/COLLAB/ASIC,
   expected hashrate, recommended coin, and canonical pool port.
======================================== */
.device-selector-section {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-gradient);
    border-top: 1px solid var(--border-subtle);
}

.device-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin: var(--spacing-2xl) 0 var(--spacing-xl);
}

.device-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.device-chip:hover {
    border-color: var(--color-accent);
    background: var(--bg-hover);
}

.device-chip:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.device-chip.is-active {
    background: var(--color-accent);
    color: var(--melanin-maroon);
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.device-chip-icon {
    width: 18px;
    height: 18px;
}

.device-recommendation {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-ring-accent), var(--shadow-ambient);
}

.dr-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-subtle);
}

.dr-tier-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-accent);
    color: var(--melanin-maroon);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
}

.dr-hardware {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text);
}

.dr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.dr-stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.dr-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dr-value {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.5;
}

.dr-value code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.dr-note {
    margin: var(--spacing-lg) 0 0;
    padding-top: var(--spacing-md);
    border-top: 1px dashed var(--border-subtle);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.6;
}

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

/* ========================================
   FAQ + GLOSSARY (D-3, 2026-04-17)
   Shared list/item styling for both pages.
======================================== */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 var(--spacing-xl);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item[open] {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-ring);
}

.faq-item > summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    cursor: pointer;
    list-style: none;
}

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

.faq-item > summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.faq-item > summary > h3 {
    flex: 1;
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
}

.faq-chev {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform var(--duration-fast) var(--ease-out);
}

.faq-item[open] .faq-chev {
    transform: rotate(-135deg);
    border-color: var(--color-accent);
}

.faq-body {
    padding: 0 0 var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

.faq-body p {
    margin: 0 0 var(--spacing-md);
}

.faq-body p:last-child {
    margin-bottom: 0;
}

.faq-body ul,
.faq-body ol {
    margin: var(--spacing-sm) 0 var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.faq-body li {
    margin-bottom: var(--spacing-xs);
}

.faq-body .inline-link {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent);
}

.faq-body .inline-link:hover {
    border-bottom-style: solid;
}

.faq-footer {
    max-width: 640px;
    margin: var(--spacing-4xl) auto 0;
    padding: var(--spacing-2xl);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
}

.faq-footer h2 {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--text-2xl);
    color: var(--color-text);
}

.faq-footer p {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text-secondary);
}

.faq-footer .hero-buttons {
    justify-content: center;
    gap: var(--spacing-md);
}

/* Glossary — definition list */
.glossary-list {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

.glossary-list dt {
    margin-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--header-height) + var(--spacing-lg));
}

.glossary-list dt:first-child {
    margin-top: 0;
}

.glossary-list dd {
    margin: var(--spacing-md) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

.glossary-list dd .inline-link {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent);
}

.glossary-list dd .inline-link:hover {
    border-bottom-style: solid;
}

/* ========================================
   SEGMENTER MODAL (C-6, 2026-04-17)
======================================== */
.segmenter {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: var(--spacing-lg);
}

.segmenter[hidden] {
    display: none;
}

.segmenter-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
}

.segmenter-card {
    position: relative;
    max-width: 560px;
    width: 100%;
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: segmenter-in 220ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
    .segmenter-card { animation: none; }
}

@keyframes segmenter-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.segmenter-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--duration-fast) var(--ease-out);
}

.segmenter-close:hover,
.segmenter-close:focus-visible {
    background: var(--bg-hover);
    color: var(--color-text);
}

.segmenter-title {
    margin: 0 0 var(--spacing-xs);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
}

.segmenter-desc {
    margin: 0 0 var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
}

.segmenter-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.segmenter-choice {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.segmenter-choice:hover,
.segmenter-choice:focus-visible {
    border-color: var(--color-accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
    outline: none;
}

.segmenter-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.segmenter-choice-label {
    font-size: var(--text-base);
    font-weight: 600;
}

.segmenter-choice-sub {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.segmenter-skip {
    display: block;
    margin: 0 auto;
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: underline;
    cursor: pointer;
}

.segmenter-skip:hover,
.segmenter-skip:focus-visible {
    color: var(--color-text);
}

@media (max-width: 560px) {
    .segmenter-choices {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PROGRESSIVE-DISCLOSURE CHECKLIST (C-7, 2026-04-17)
   Wraps each existing .checklist-item in <details><summary>. Keeps the
   original visual while adding click-to-expand wallet / setup guides.
======================================== */
details.checklist-item {
    padding: 0;
}

details.checklist-item > summary {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    list-style: none;
    cursor: pointer;
    position: relative;
}

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

details.checklist-item > summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.checklist-chev {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform var(--duration-fast) var(--ease-out);
    align-self: center;
}

details.checklist-item[open] .checklist-chev {
    transform: rotate(-135deg);
}

.checklist-body {
    padding: 0 0 var(--spacing-lg) calc(20px + var(--spacing-md));
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.checklist-body ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.checklist-body li {
    margin-bottom: var(--spacing-xs);
}

.checklist-body .inline-link {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-accent);
}

.checklist-body .inline-link:hover {
    border-bottom-style: solid;
}

/* ========================================
   MSBX RESERVATION (B-4, 2026-04-17)
======================================== */
.reserve-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.reserve-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-live);
    box-shadow: 0 0 8px var(--color-live);
}

.reserve-section {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-gradient);
    border-top: 1px solid var(--border-subtle);
}

.reserve-card,
.booking-card {
    max-width: 720px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-ring), var(--shadow-ambient);
}

.reserve-form,
.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.reserve-form-row,
.booking-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.booking-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reserve-field,
.booking-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.reserve-label,
.booking-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reserve-label .req,
.booking-label .req {
    color: var(--color-accent);
    text-transform: none;
}

.reserve-hint,
.booking-hint {
    font-weight: 400;
    text-transform: none;
    color: var(--color-text-muted);
    margin-left: var(--spacing-xs);
}

.reserve-form input,
.reserve-form textarea,
.booking-form input,
.booking-form textarea {
    padding: var(--spacing-md);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-base);
    resize: vertical;
}

.reserve-form input:focus-visible,
.reserve-form textarea:focus-visible,
.booking-form input:focus-visible,
.booking-form textarea:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-ring-accent);
}

.reserve-actions,
.booking-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.reserve-status,
.booking-status {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    min-height: 1.2em;
}

.reserve-status.is-ok,
.booking-status.is-ok {
    color: var(--color-success);
}

.reserve-status.is-err,
.booking-status.is-err {
    color: var(--color-warning);
}

.reserve-fineprint,
.booking-fineprint {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.reserve-fineprint a,
.booking-fineprint a {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .reserve-form-row,
    .booking-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONSULTING BOOKING (B-5, 2026-04-17)
   Shares .booking-* styles with reserve (defined above).
======================================== */
.booking-section {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-gradient);
    border-top: 1px solid var(--border-subtle);
}

/* ========================================
   HERO SEGMENT PROMPT (B-2, 2026-04-17)
   Single primary CTA carries the action. The prompt below routes visitors
   by role without diluting the hero button hierarchy.
======================================== */
.hero-segment-prompt {
    margin-top: var(--spacing-lg);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.hero-segment-prompt a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.hero-segment-prompt a:hover,
.hero-segment-prompt a:focus-visible {
    border-bottom-color: var(--color-accent);
}

.hero-segment-prompt .hsp-dot {
    margin: 0 var(--spacing-xs);
    color: var(--color-text-muted);
}

/* ========================================
   FOOTER WAITLIST (B-3, 2026-04-17)
   Single-field email capture. On submit opens a prefilled mailto to
   accounts@qwainaina.com and caches the entry in localStorage. Swap the
   JS handler for a real endpoint once MELANIE is provisioned.
======================================== */
.footer-waitlist {
    min-width: 220px;
}

.waitlist-lede {
    margin: 0 0 var(--spacing-md);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.waitlist-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: stretch;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 160px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-sm);
}

.waitlist-form input[type="email"]:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-ring-accent);
}

.waitlist-form button {
    flex: 0 0 auto;
}

.waitlist-status {
    width: 100%;
    margin: 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    min-height: 1.2em;
}

.waitlist-status.is-ok {
    color: var(--color-success);
}

.waitlist-status.is-err {
    color: var(--color-warning);
}

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

/* ========================================
   PAYOUT ODOMETER + BLOCK TICKER (C-2, 2026-04-17)
======================================== */
.proof-number[data-odometer] {
    font-variant-numeric: tabular-nums;
    transition: color var(--duration-normal) var(--ease-out);
}

.block-ticker {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

.bt-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-live);
    box-shadow: 0 0 12px var(--color-live);
    animation: bt-pulse 1800ms ease-in-out infinite;
}

@keyframes bt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

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

.bt-value {
    color: var(--color-text);
    font-weight: 600;
}

.bt-meta {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

@media (prefers-reduced-motion: reduce) {
    .bt-dot { animation: none; }
}

/* ========================================
   FEE CALCULATOR + FEE TRANSPARENCY (B-1, 2026-04-17)
   Calculator lives on network.html#calculator. Compact callout lives on
   click.html below the hero download buttons. Math is in script.js →
   initFeeCalculator(). Reads live BTC price from the existing nav ticker.
======================================== */
.fee-calculator-section {
    padding: var(--spacing-4xl) 0;
    background: var(--bg-gradient);
    border-top: 1px solid var(--border-color);
}

.fee-calculator {
    max-width: 860px;
    margin: var(--spacing-2xl) auto 0;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-ring), var(--shadow-ambient);
}

.fee-calc-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.fc-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.fc-field-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fc-field-row {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-xs);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 var(--spacing-sm);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.fc-field-row:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-ring-accent);
}

.fc-field-row input {
    flex: 1;
    min-width: 0;
    padding: var(--spacing-md) var(--spacing-sm);
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-lg);
    font-weight: 500;
}

.fc-field-row input:focus {
    outline: none;
}

.fc-field-row select {
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    cursor: pointer;
}

.fc-field-row select:focus {
    outline: none;
}

.fc-prefix,
.fc-suffix {
    align-self: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.fee-calc-output {
    padding: var(--spacing-xl);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.fc-empty {
    margin: 0;
    color: var(--color-text-muted);
    text-align: center;
    font-size: var(--text-base);
}

.fc-split {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.fc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px dashed var(--border-subtle);
}

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

.fc-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.fc-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.fc-primary .fc-label {
    color: var(--color-accent);
    font-weight: 600;
}

.fc-primary .fc-value {
    color: var(--color-accent);
    font-size: var(--text-xl);
}

.fc-fee .fc-value {
    color: var(--color-text-muted);
}

.fc-profit .fc-label {
    font-weight: 600;
}

.fc-profit .fc-value {
    color: var(--color-success);
}

.fc-assumption {
    margin: var(--spacing-lg) 0 0;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .fee-calc-inputs {
        grid-template-columns: 1fr;
    }
    .fc-primary .fc-value {
        font-size: var(--text-lg);
    }
}

/* Compact fee-transparency callout (click.html hero) */
.fee-transparency {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-hover);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    max-width: 520px;
}

.fee-transparency .ft-headline {
    color: var(--color-accent);
    font-size: var(--text-base);
    font-weight: 600;
}

.fee-transparency .ft-line {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.fee-transparency .ft-link {
    align-self: flex-start;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.fee-transparency .ft-link:hover {
    text-decoration: underline;
}

/* ========================================
   LIGHT-MODE OVERRIDES FOR HARDCODED DARK BACKGROUNDS (F-5a, 2026-04-17)
   Root cause: four elements used hardcoded rgba(47, 27, 27, …) or dark-gradient
   backgrounds that did not respond to the [data-theme="light"] switch, making
   the page appear to "stay dark" even when the toggle flipped. Rather than
   rewrite the base rules (which are battle-tested in dark mode), we override
   each in light mode with a tonally-matched light surface.
======================================== */
[data-theme="light"] .campaign-banner {
    background: linear-gradient(90deg, var(--gold-pale), var(--melanin-accent));
    color: var(--melanin-maroon);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .campaign-banner a {
    color: var(--melanin-brown);
    text-decoration: underline;
}

[data-theme="light"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-ring-accent), var(--shadow-elevated);
}

[data-theme="light"] .proof-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--melanin-gold);
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.08);
}

[data-theme="light"] .pool-stats-bar {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--melanin-gold);
}

/* ========================================
   BRAND-ALIGNED UI/UX REFINEMENTS (2026-04-27)
   Warm-only polish that follows docs/DESIGN.md and BRAND_GUIDELINES.md.
======================================== */
.site-header {
    box-shadow: 0 1px 0 var(--border-subtle);
}

.campaign-banner {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) - 1);
}

.campaign-banner:not([style*="display: none"]) ~ main .hero,
.campaign-banner:not([style*="display: none"]) ~ main .chat-hero {
    margin-top: calc(var(--header-height) + 76px);
}

.navbar.scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-title,
.section-title {
    text-wrap: balance;
}

.hero-description,
.section-description,
.section-subtitle,
.feature-card p,
.tool-card p,
.community-card p,
.ecosystem-card p,
.launcher-card p {
    text-wrap: pretty;
}

.feature-card,
.tool-card,
.community-card,
.ecosystem-card,
.launcher-card,
.info-card,
.step-card,
.flow-item,
.checklist-item {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.feature-card:hover,
.tool-card:hover,
.community-card:hover,
.ecosystem-card:hover,
.launcher-card:hover,
.info-card:hover {
    box-shadow: var(--shadow-ring-accent), var(--shadow-elevated), var(--shadow-glow);
}

.hero-segment-prompt {
    max-width: 100%;
    color: var(--color-text-secondary);
}

.hero-segment-prompt a {
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

.proof-card {
    box-shadow: var(--shadow-ring-accent), var(--shadow-chromatic), var(--shadow-glow);
}

.ecosystem-section .subsection-title {
    margin-top: var(--spacing-3xl);
}

.segmenter-card {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        max-width: 36rem;
    }

    .hero-visual {
        margin-top: var(--spacing-lg);
    }

    .hero-segment-prompt {
        width: 100%;
        margin-top: var(--spacing-lg);
        line-height: 1.7;
    }

    .campaign-banner .container {
        justify-content: space-between;
    }

    .campaign-banner p {
        max-width: calc(100% - 2rem);
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* ========================================
   FLOATING DOWNLOAD CTA (B-9)
   Appears on desktop after the visitor scrolls past the hero.
   Hidden on mobile (the nav's Download Click button is sufficient).
======================================== */
.floating-cta {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--melanin-gold);
    color: var(--melanin-maroon);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow-glow, 0 8px 24px rgba(218, 165, 32, 0.35));
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.floating-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-cta:hover {
    filter: brightness(1.05);
}

.floating-cta:focus-visible {
    outline: 2px solid var(--melanin-maroon);
    outline-offset: 3px;
}

.floating-cta .floating-cta-arrow {
    display: inline-block;
    transition: transform 180ms ease-out;
}

.floating-cta:hover .floating-cta-arrow {
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .floating-cta {
        display: none;
    }
}

/* ============================================================
   SPRINT J — AESTHETIC UPGRADE SWEEP
   foundations + polish + flourishes (CSS additions, additive only)
   ============================================================ */

/* --- Phase 1.2 — Motion curve library (4 named cubic-beziers) --- */
:root {
    --ease-snappy:   cubic-bezier(0.34, 1.56, 0.64, 1);    /* slight overshoot */
    --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94); /* natural ease-out */
    --ease-quick:    cubic-bezier(0.4, 0, 0.2, 1);         /* material standard */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);        /* premium settle */
    --duration-slow: 480ms;
}

/* --- Phase 1.3 — Universal card hover (lift + glow on every card variant) --- */
.feature-card, .tool-card, .community-card, .ecosystem-card,
.launcher-card, .product-card, .step-card, .config-card {
    transition: transform 280ms var(--ease-out-expo),
                box-shadow 280ms var(--ease-out-expo),
                border-color 200ms var(--ease-quick);
    will-change: transform;
}
.feature-card:hover, .tool-card:hover, .community-card:hover, .ecosystem-card:hover,
.launcher-card:hover, .product-card:hover, .step-card:hover, .config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28),
                0 0 32px rgba(218, 165, 32, 0.18);
    border-color: var(--border-accent);
}
@media (prefers-reduced-motion: reduce) {
    .feature-card, .tool-card, .community-card, .ecosystem-card,
    .launcher-card, .product-card, .step-card, .config-card { transition: none; }
    .feature-card:hover, .tool-card:hover, .community-card:hover, .ecosystem-card:hover,
    .launcher-card:hover, .product-card:hover, .step-card:hover, .config-card:hover {
        transform: none;
    }
}

/* --- Phase 1.4 — Focus ring system (accessible + brand-on) --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
    transition: outline-offset 120ms var(--ease-quick);
}
.btn:focus-visible, .nav-cta:focus-visible {
    outline-offset: 4px;
}
.nav-link:focus-visible {
    outline-offset: 6px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.18);
}

/* --- Phase 1.5 — Theme toggle micro-interaction (rotate + scale) --- */
.theme-toggle {
    transition: transform var(--duration-fast) var(--ease-snappy),
                background var(--duration-fast) var(--ease-quick);
}
.theme-toggle:hover  { transform: rotate(15deg)  scale(1.08); }
.theme-toggle:active { transform: rotate(-5deg)  scale(0.94); }

/* --- Phase 1.6 — Button polish (press response, primary glow on hover) --- */
.btn {
    transition: filter 180ms var(--ease-quick),
                transform 180ms var(--ease-snappy),
                box-shadow 180ms var(--ease-quick),
                background 180ms var(--ease-quick);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.25);
}
.btn:active { transform: translateY(0) scale(0.98); }

/* --- Phase 2.1 — Modal + segmenter entrance animation --- */
@keyframes modalFadeUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-overlay {
    transition: opacity 240ms var(--ease-quick);
}
.modal-overlay.active .modal-container,
.segmenter[style*="display: grid"],
.segmenter.is-open {
    animation: modalFadeUp 320ms var(--ease-out-expo) both;
}
@media (prefers-reduced-motion: reduce) {
    .modal-overlay.active .modal-container,
    .segmenter[style*="display: grid"],
    .segmenter.is-open { animation: none; }
}

/* --- Phase 2.2 — Tooltip fade-in --- */
@keyframes tipFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tooltip[data-tip]:hover::after,
.tooltip[data-tip]:hover::before {
    animation: tipFade 160ms var(--ease-out-expo) both;
}

/* --- Phase 2.3 — Scroll-reveal stagger (CSS half; JS adds .is-revealed) --- */
@media (prefers-reduced-motion: no-preference) {
    .feature-card, .tool-card, .ecosystem-card,
    .launcher-card, .community-card {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 600ms var(--ease-out-expo),
                    transform 600ms var(--ease-out-expo),
                    box-shadow 280ms var(--ease-out-expo),
                    border-color 200ms var(--ease-quick);
    }
    .feature-card.is-revealed, .tool-card.is-revealed,
    .ecosystem-card.is-revealed, .launcher-card.is-revealed,
    .community-card.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Phase 2.5 — Subtle grain overlay (premium tactile texture) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: overlay;
}
[data-theme="light"] body::before { opacity: 0.012; }

/* --- Phase 2.6 — Decorative section-title underline (opt-in via .has-underline) --- */
.section-title.has-underline::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--melanin-gold), transparent);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* --- Phase 3.1 — Aurora hero gradient (warm-tone, animated, on .hero-aurora) --- */
.hero-aurora {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-aurora::before {
    content: '';
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 75%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 25% 35%, rgba(218, 165, 32, 0.22), transparent 65%),
        radial-gradient(ellipse 50% 40% at 75% 25%, rgba(255, 215, 0, 0.10), transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 75%, rgba(139, 69, 19, 0.14), transparent 55%);
    filter: blur(80px);
    animation: auroraDrift 22s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-aurora::before {
    opacity: 0.55;
    background:
        radial-gradient(ellipse 60% 50% at 25% 35%, rgba(218, 165, 32, 0.30), transparent 65%),
        radial-gradient(ellipse 50% 40% at 75% 25%, rgba(255, 215, 0, 0.18), transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 75%, rgba(139, 69, 19, 0.10), transparent 55%);
}
.hero-aurora > * { position: relative; z-index: 1; }
@keyframes auroraDrift {
    0%   { transform: translate3d(0,    0,   0) scale(1); }
    50%  { transform: translate3d(40px, -20px, 0) scale(1.08); }
    100% { transform: translate3d(-30px, 20px,  0) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-aurora::before { animation: none; }
}

/* --- Phase 3.3 — Bento grid (asymmetric two-cell showcase) --- */
.bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}
.bento-cell {
    position: relative;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: transform 280ms var(--ease-out-expo),
                box-shadow 280ms var(--ease-out-expo),
                border-color 200ms var(--ease-quick);
}
.bento-cell:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28),
                0 0 48px rgba(218, 165, 32, 0.18);
}
.bento-cell--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(218, 165, 32, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.bento-cell > * { position: relative; z-index: 1; }
.bento-cell .brand-icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent);
}
.bento-cell h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
}
.bento-cell .bento-lede {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--spacing-md);
}
.bento-stat {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--melanin-gold);
    line-height: 1;
    font-feature-settings: "tnum";
}
.bento-stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
    display: block;
}
.bento-platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}
.bento-platform-pill {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    background: var(--bg-tertiary);
}
.bento-live-row {
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.bento-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: bentoLivePulse 2s ease-in-out infinite;
    margin-right: var(--spacing-sm);
}
@keyframes bentoLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
.bento-cta-row {
    margin-top: auto;
    padding-top: var(--spacing-md);
}
@media (prefers-reduced-motion: reduce) {
    .bento-live-dot { animation: none; }
}
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
}
/* === END SPRINT J === */

/* === Hero animation enhancements from upstream === */
/* ========================================
   HERO MOTION + FLOATING CTA SPACING (2026-04-27)
   Warm, bio-inspired energy absorption animation using brand colors only.
======================================== */
.hero-anim {
    filter: drop-shadow(0 18px 42px rgba(218, 165, 32, 0.12));
}

.hero-anim::before,
.hero-anim::after {
    content: '';
    position: absolute;
    inset: 16%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-anim::before {
    inset: -22%;
    background:
        radial-gradient(circle, rgba(47, 27, 27, 0) 0%, rgba(47, 27, 27, 0.08) 54%, var(--bg-primary) 78%),
        image-set(
            url("./assets/hero-melanin-aura.webp") type("image/webp"),
            url("./assets/hero-melanin-aura.png") type("image/png")
        ) center / contain no-repeat;
    opacity: 0.5;
    mix-blend-mode: screen;
    filter: saturate(0.9) contrast(1.03);
    animation: melanin-absorb-glow 7s var(--ease-out) infinite;
}

.hero-anim::after {
    inset: 10%;
    border: 1px solid rgba(245, 222, 179, 0.12);
    box-shadow: inset 0 0 30px rgba(218, 165, 32, 0.12), 0 0 42px rgba(218, 165, 32, 0.08);
    animation: melanin-field-breathe 8s var(--ease-out) infinite;
}

.orbital-system {
    position: relative;
    z-index: 2;
    animation: melanin-orbit-tilt 18s ease-in-out infinite, heroVisualFadeIn 1.2s ease-out both;
}

.orbital-main svg {
    overflow: visible;
    animation: melanin-core-breathe 4.6s var(--ease-out) infinite;
    filter: drop-shadow(0 0 18px rgba(218, 165, 32, 0.22));
}

.sun-core line {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    animation: melanin-ray-draw 3.4s ease-in-out infinite;
}

.sun-core line:nth-of-type(2n) {
    animation-delay: 0.5s;
}

.sun-core line:nth-of-type(3n) {
    animation-delay: 1s;
}

.orbital-element.orbit-1 {
    animation: spin 18s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.22));
}

.orbital-element.orbit-2 {
    animation: spin 30s linear infinite reverse;
    filter: drop-shadow(0 0 6px rgba(218, 165, 32, 0.18));
}

.pulse-ring {
    animation: melanin-absorb-pulse 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pulse-ring-1 {
    width: 74px;
    height: 74px;
}

.pulse-ring-2 {
    width: 96px;
    height: 96px;
    animation-delay: 2.2s;
}

.brand-icon,
.item-icon,
.trust-icon,
.segmenter-icon {
    filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.16));
    transition: color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                filter var(--duration-fast) var(--ease-out);
}

.feature-card:hover .brand-icon,
.tool-card:hover .brand-icon,
.community-card:hover .brand-icon,
.ecosystem-card:hover .brand-icon,
.launcher-card:hover .brand-icon,
.mega-menu-item:hover .item-icon,
.segmenter-choice:hover .segmenter-icon {
    color: var(--color-highlight);
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.26));
}

.chat-bubble {
    border: 1px solid rgba(245, 222, 179, 0.22);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(218, 165, 32, 0.08);
}

.chat-bubble:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.floating-cta {
    right: calc(var(--spacing-2xl) + 72px);
    bottom: var(--spacing-2xl);
}

.floating-cta.is-visible + .floating-chat,
.floating-chat:has(+ .floating-cta.is-visible) {
    bottom: calc(var(--spacing-2xl) + 64px);
}

@keyframes melanin-orbit-tilt {
    0%, 100% { transform: rotateY(-10deg) rotateX(5deg) rotateZ(0deg); }
    50% { transform: rotateY(10deg) rotateX(-4deg) rotateZ(1deg); }
}

@keyframes melanin-core-breathe {
    0%, 100% { transform: scale(0.98); opacity: 0.92; }
    45% { transform: scale(1.035); opacity: 1; }
    70% { transform: scale(1.01); opacity: 0.96; }
}

@keyframes melanin-ray-draw {
    0% { stroke-dashoffset: 22; opacity: 0.2; }
    38% { stroke-dashoffset: 0; opacity: 0.9; }
    72% { stroke-dashoffset: -8; opacity: 0.45; }
    100% { stroke-dashoffset: -22; opacity: 0.2; }
}

@keyframes melanin-absorb-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0;
        border-width: 2px;
    }
    22% {
        opacity: 0.55;
    }
    72% {
        opacity: 0.14;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.7);
        opacity: 0;
        border-width: 0.5px;
    }
}

@keyframes melanin-absorb-glow {
    0%, 100% { opacity: 0.38; transform: scale(0.92) rotate(-2deg); }
    50% { opacity: 0.58; transform: scale(1.04) rotate(2deg); }
}

@keyframes melanin-field-breathe {
    0%, 100% { opacity: 0.26; transform: scale(0.92) rotate(0deg); }
    50% { opacity: 0.5; transform: scale(1.04) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-anim::before,
    .hero-anim::after,
    .orbital-system,
    .orbital-main svg,
    .sun-core line,
    .orbital-element.orbit-1,
    .orbital-element.orbit-2,
    .pulse-ring {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ========================================
   COMPACT HERO + PRIVATE CLICK ACCESS (2026-04-27)
   Keep the hero art proportional to the copy column and reduce first-screen
   vertical slack across desktop and mobile.
======================================== */
.hero {
    margin-top: calc(var(--header-height) + 28px);
    padding-top: clamp(2rem, 4.5vw, 3.25rem) !important;
    padding-bottom: clamp(2rem, 4vw, 3rem) !important;
    min-height: auto;
}

.campaign-banner:not([style*="display: none"]) ~ main .hero,
.campaign-banner:not([style*="display: none"]) ~ main .chat-hero {
    margin-top: calc(var(--header-height) + 56px);
}

.hero-container {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(1rem, 3vw, 2rem);
}

.hero-content {
    max-width: 620px;
}

.hero-description {
    margin-bottom: var(--spacing-lg) !important;
}

.network-hero .hero-subtitle {
    background: none;
    color: var(--melanin-gold);
    -webkit-text-fill-color: var(--melanin-gold);
    text-shadow: 0 1px 14px rgba(218, 165, 32, 0.22);
}

.network-hero .hero-description {
    color: rgba(245, 232, 211, 0.82);
}

.hero-buttons {
    margin-top: var(--spacing-lg);
}

.hero-segment-prompt {
    margin-top: var(--spacing-md);
}

.hero-visual {
    justify-self: end;
    max-width: clamp(270px, 31vw, 360px);
    min-height: 0;
    aspect-ratio: 1;
}

.hero-anim {
    width: clamp(250px, 27vw, 340px);
    height: clamp(250px, 27vw, 340px);
}

.hero-anim::before {
    inset: -14%;
    opacity: 0.4;
}

.glass-orb-1 {
    width: clamp(150px, 18vw, 210px);
    height: clamp(150px, 18vw, 210px);
    opacity: 0.34;
}

.glass-orb-2 {
    width: clamp(130px, 15vw, 180px);
    height: clamp(130px, 15vw, 180px);
    opacity: 0.25;
}

.orbital-element.orbit-1 {
    width: 62%;
    height: 62%;
}

.orbital-element.orbit-2 {
    width: 82%;
    height: 82%;
}

.downloads-access-note {
    max-width: 760px;
    margin: 0 auto var(--spacing-2xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    text-align: center;
    box-shadow: var(--shadow-ring-accent), var(--shadow-chromatic);
}

.downloads-access-note p {
    margin: var(--spacing-sm) auto 0;
    max-width: 620px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.downloads-access-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.download-platform-icon {
    min-width: 112px;
}

.platform-access {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    }

    .hero-visual {
        max-width: 290px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: calc(var(--header-height) + 24px);
        padding-top: var(--spacing-2xl) !important;
        padding-bottom: var(--spacing-2xl) !important;
    }

    .campaign-banner:not([style*="display: none"]) ~ main .hero,
    .campaign-banner:not([style*="display: none"]) ~ main .chat-hero {
        margin-top: calc(var(--header-height) + 60px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content {
        max-width: 34rem;
    }

    .hero-visual {
        justify-self: center;
        max-width: 250px;
        margin-top: var(--spacing-sm);
        margin-bottom: 0;
    }

    .hero-anim {
        width: 240px;
        height: 240px;
    }

    .hero-description {
        line-height: 1.55 !important;
    }

    .download-icons-row {
        gap: var(--spacing-lg);
    }
}

/* Alpha access pages need their gating copy to remain readable on the dark hero. */
.network-hero .hero-title {
    color: rgba(245, 232, 211, 0.92) !important;
}

.network-hero .hero-subtitle {
    background: none !important;
    color: #ffe3a1 !important;
    -webkit-text-fill-color: #ffe3a1 !important;
    text-shadow: 0 1px 18px rgba(255, 227, 161, 0.34) !important;
}

.network-hero .hero-description {
    color: rgba(245, 232, 211, 0.88) !important;
}

/* ============================================================
   Phase A.3 — Touch hover overrides (Emil Kowalski guard)
   ============================================================
   Eliminates the "sticky hover" bug on touch devices, where tap
   events leave hover styles applied until the next tap elsewhere.

   Canonical fix is to wrap each :hover rule in
   `@media (hover: hover) and (pointer: fine) { ... }`. We use the
   inverted form below as a single override block so the 60+ :hover
   rules above don't need restructuring in this sprint. Phase E
   per-page polish will progressively migrate component-level
   :hover rules into the canonical wrapped form.
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Interactive surfaces — disable transform-based lifts on tap */
    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-ghost:hover,
    .btn-solar:hover,
    .btn-strong:hover,
    .feature-card:hover,
    .tool-card:hover,
    .community-card:hover,
    .config-card:hover,
    .step-card:hover,
    .feature-card-compact:hover,
    .launcher-card:hover,
    .ecosystem-card:hover,
    .info-card:hover,
    .checklist-item:hover,
    .flow-item:hover,
    .download-platform-icon:hover,
    .platform-icon-box:hover,
    .social-link:hover,
    .footer-links a:hover,
    .mega-menu-item:hover,
    .nav-link:hover,
    .wizard-option:hover,
    .copy-btn:hover,
    .device-chip:hover,
    .chat-bubble:hover,
    .theme-toggle:hover,
    .data-table tbody tr:hover,
    #back-to-top:hover {
        transform: none;
    }

    /* Hover-color shifts that read as "this is interactive" are kept,
       but hover-only emphasis (glow, lift) is suppressed to avoid
       stuck-state confusion on touch. */
    .feature-card:hover,
    .tool-card:hover,
    .community-card:hover,
    .launcher-card:hover,
    .ecosystem-card:hover {
        box-shadow: var(--shadow-sm);
    }
}

/* ============================================================
   Phase visible-polish (May 2026) — Hero trust row + scroll reveal
   ============================================================
   The hero CTA used to stand alone. The compact trust row gives
   immediate non-custodial / 97% / Stratum V2 reassurance above the
   fold, before users scroll to find the canonical 6-badge strip.

   Scroll-reveal uses [data-reveal] paired with the IntersectionObserver
   in script.js. When a card enters the viewport, JS adds
   data-reveal="visible" which transitions opacity + translateY.
   ============================================================ */

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--weight-semibold);
    animation: heroFadeUp 0.8s ease-out 0.6s both;
}

/* ============================================================
   .live-price-card — Phase J (June 2026)
   ============================================================
   Operational price display for active miners. Replaces the old nav
   ticker (removed from all pages — it framed Melanin as a "watch the
   price" site rather than an energy→compute thesis platform).

   Appears ONLY on pages where price is operationally relevant:
   global.html (live data), click.html (install context),
   mobile.html (preview), network.html (operator), rewards.html (convert).

   Bitcoin = primary, full-size. Whive = secondary, 70% scale, muted.
   No flicker, no auto-refresh on every page, no red/green change.
   ============================================================ */
.live-price-card {
    display: inline-flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 180px;
    transition: border-color var(--duration-fast) var(--ease-out);
}
.live-price-card .lpc-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.live-price-card .lpc-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-live, var(--color-accent));
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.live-price-card .lpc-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}
.live-price-card .lpc-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* Whive variant — secondary, 70% scale, muted. Always visually subordinate
   to Bitcoin per POSITIONING.md §2 (Whive = bonus CPU mining). */
.live-price-card[data-coin="whive"] {
    transform: scale(0.85);
    transform-origin: left center;
    opacity: 0.78;
    min-width: 150px;
}
.live-price-card[data-coin="whive"] .lpc-value {
    font-size: var(--text-lg);
}

/* Row layout — two cards side by side on global.html / rewards.html etc. */
.live-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

/* Inline single-line variant — used on click.html / network.html where
   the price appears in flowing prose ("Currently Bitcoin = $X"). */
.live-price-inline {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

@media (hover: hover) and (pointer: fine) {
    .live-price-card:hover {
        border-color: var(--border-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-price-card {
        transition: none;
    }
}

/* .hero-meta — the canonical thesis cross-reference line on every consumer
   page hero. Lives under the trust-row. Replaces the inline-style version
   that was scattered across 16+ pages — a real source of asymmetry. */
.hero-meta {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    animation: heroFadeUp 0.8s ease-out 0.7s both;
}
.hero-meta strong {
    color: var(--color-text);
    font-weight: var(--weight-semibold);
}
.hero-meta a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--weight-medium);
}
@media (hover: hover) and (pointer: fine) {
    .hero-meta a:hover {
        color: var(--color-highlight);
        text-decoration: underline;
    }
}
.hero-trust-row .htr-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
}
.hero-trust-row .htr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px rgba(218, 165, 32, 0.6);
    display: inline-block;
}
.hero-trust-row .htr-sep {
    width: 1px;
    height: 12px;
    background: var(--border-color);
    display: inline-block;
}

/* Secondary CTA — quieter than the gold primary, gives the hero a
   two-action hierarchy without visual competition. */
.hero-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
}
.hero-buttons .btn-quiet {
    color: var(--color-text-secondary);
    font-weight: var(--weight-medium);
    text-decoration: none;
    padding: 0 var(--spacing-sm);
    font-size: var(--text-base);
    transition: color var(--duration-fast) var(--ease-out-quart),
                transform var(--duration-fast) var(--ease-out-quart);
}
@media (hover: hover) and (pointer: fine) {
    .hero-buttons .btn-quiet:hover {
        color: var(--color-accent);
        transform: translateX(2px);
    }
}

/* Scroll-reveal — initial hidden state. JS toggles data-reveal="visible". */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
    will-change: opacity, transform;
}
[data-reveal="visible"] {
    opacity: 1;
    transform: translateY(0);
}
/* Per-child stagger for grids of revealed items. */
[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
