/*
 * DataXover Design System
 * simplydatanow.com
 *
 * Dark mode primary. Light mode ready.
 * Typography: Geist (Vercel) — engineered, not decorated.
 * Voice: Confident, technical, understated.
 */

/* ============================================
   FONT LOADING
   ============================================ */
@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   THEME: DARK (default)
   ============================================ */
:root,
[data-theme="dark"] {
    --bg-primary: #0A0A0F;
    --bg-secondary: #141418;
    --bg-tertiary: #1c1c22;
    --bg-elevated: #27272d;

    --text-primary: #F0F0F0;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --accent: #0066FF;
    --accent-dim: rgba(0, 102, 255, 0.10);
    --accent-bright: #3385FF;
    --accent-glow: rgba(0, 102, 255, 0.20);

    --border-subtle: #2A2A30;
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    --green: #10B981;
    --green-dim: rgba(16, 185, 129, 0.12);
    --orange: #F59E0B;
    --orange-dim: rgba(245, 158, 11, 0.12);
    --red: #EF4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --purple: #8B5CF6;
    --purple-dim: rgba(139, 92, 246, 0.12);
    --cyan: #06B6D4;
    --cyan-dim: rgba(6, 182, 212, 0.12);

    --nav-bg: rgba(10, 10, 15, 0.92);
    --overlay-bg: rgba(0, 0, 0, 0.6);

    color-scheme: dark;
}

/* ============================================
   THEME: LIGHT
   ============================================ */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --bg-elevated: #e8e9eb;

    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;

    --accent: #0052CC;
    --accent-dim: rgba(0, 82, 204, 0.08);
    --accent-bright: #0066FF;
    --accent-glow: rgba(0, 82, 204, 0.15);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.15);

    --green: #059669;
    --green-dim: rgba(5, 150, 105, 0.08);
    --orange: #d97706;
    --orange-dim: rgba(217, 119, 6, 0.08);
    --red: #dc2626;
    --red-dim: rgba(220, 38, 38, 0.08);
    --purple: #7c3aed;
    --purple-dim: rgba(124, 58, 237, 0.08);
    --cyan: #0891b2;
    --cyan-dim: rgba(8, 145, 178, 0.08);

    --nav-bg: rgba(255, 255, 255, 0.92);
    --overlay-bg: rgba(255, 255, 255, 0.6);

    color-scheme: light;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Typography */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --max-width: 1140px;
    --max-width-narrow: 800px;
    --max-width-wide: 1400px;
    --nav-height: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 100px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-weight: 600; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

a:hover {
    color: var(--accent-bright);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

code, .mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

blockquote {
    padding-left: var(--space-6);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
    font-style: italic;
    font-size: var(--text-xl);
    line-height: 1.7;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav__wordmark {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav__wordmark img {
    height: 48px;
    width: auto;
}

/* Variation A: Split color — Data white, X accent, over dimmer */
.wm-split .wm-data { color: var(--text-primary); }
.wm-split .wm-x { color: var(--accent); font-weight: 800; }
.wm-split .wm-over { color: var(--text-secondary); }
.wm-split .wm-tm { font-size: 0.5em; color: var(--text-tertiary); vertical-align: super; margin-left: 1px; }

/* Variation B: Monospace terminal */
.wm-mono {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 400;
    letter-spacing: 0;
}
.wm-mono .wm-x { color: var(--accent); font-weight: 700; }
.wm-mono .wm-tm { font-size: 0.5em; color: var(--text-tertiary); vertical-align: super; margin-left: 2px; }

/* Variation C: Bold X bridge — X is larger and bridges the words */
.wm-bridge { font-weight: 600; letter-spacing: -0.04em; }
.wm-bridge .wm-x {
    color: var(--accent);
    font-size: 1.4em;
    font-weight: 800;
    line-height: 0;
    display: inline-block;
    transform: translateY(1px);
    text-shadow: 0 0 20px var(--accent-glow);
}
.wm-bridge .wm-tm { font-size: 0.45em; color: var(--text-tertiary); vertical-align: super; margin-left: 1px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav__link--active {
    color: var(--accent);
}

/* Nav dropdown */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-trigger {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color var(--transition-fast);
}

.nav__dropdown-trigger:hover { color: var(--text-primary); }
.nav__dropdown-trigger--active { color: var(--accent); }

.nav__dropdown-trigger svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger svg,
.nav__dropdown.open .nav__dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav__dropdown-menu a {
    display: block;
    padding: var(--space-2) var(--space-5);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__dropdown-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav__dropdown-menu a.nav__link--active {
    color: var(--accent);
}

.nav__badge {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* Theme toggle */
.nav__theme-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-default);
}

.nav__theme-toggle svg { width: 18px; height: 18px; }

/* Mobile nav */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-primary);
}

.nav__toggle svg { width: 24px; height: 24px; }

.nav__mobile {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-4) var(--space-6);
}

.nav__mobile.active { display: block; }

.nav__mobile-link {
    display: block;
    padding: var(--space-3) 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
}

.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { color: var(--text-primary); }

/* Back link (used in deep-dive pages) */
.nav__back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-decoration: none;
}

.nav__back:hover { color: var(--text-secondary); }
.nav__back svg { width: 16px; height: 16px; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.section__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.section__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.section__text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.section__text:last-child { margin-bottom: 0; }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
    position: relative;
}

.hero--glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 500px;
    background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero__title {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    max-width: 900px;
}

.hero__title span { color: var(--accent); }

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    max-width: 700px;
}

.hero__proof {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-8);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    max-width: 700px;
}

.hero__proof strong { color: var(--accent); }

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-default);
}

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

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
}

.btn--ghost:hover { color: var(--text-primary); }

.btn--lg {
    padding: 14px 28px;
    font-size: var(--text-base);
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    padding: var(--space-6);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-base);
}

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

.card--highlight {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.card__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   GRIDS
   ============================================ */
.grid { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ============================================
   CALLOUTS
   ============================================ */
.callout {
    margin-top: var(--space-8);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
}

.callout--accent { background: var(--accent-dim); border: 1px solid var(--accent-glow); }
.callout--green { background: var(--green-dim); border: 1px solid rgba(16, 185, 129, 0.2); }
.callout--orange { background: var(--orange-dim); border: 1px solid rgba(245, 158, 11, 0.2); }
.callout--red { background: var(--red-dim); border: 1px solid rgba(239, 68, 68, 0.2); }

.callout__text {
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.stat {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.stat__value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-1);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }

/* ============================================
   EXAMPLE BLOCKS
   ============================================ */
.example {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.example__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.example__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.example__text:last-child { margin-bottom: 0; }

.example__result {
    margin-top: var(--space-5);
    padding: var(--space-5);
    background: var(--green-dim);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
}

.example__result-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   SPOTLIGHT (featured capability)
   ============================================ */
.spotlight {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
}

.spotlight__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.spotlight__title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.spotlight__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.spotlight__text:last-child { margin-bottom: 0; }

.spotlight__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.spotlight__col {
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
}

[data-theme="light"] .spotlight__col {
    background: rgba(255, 255, 255, 0.5);
}

.spotlight__col-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.spotlight__col-tag {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.spotlight__col-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    line-height: 1.5;
}

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

/* ============================================
   ENCRYPTION MODES
   ============================================ */
.enc-modes {
    margin-top: var(--space-8);
    display: grid;
    gap: var(--space-3);
}

.enc-mode {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    align-items: start;
}

.enc-mode--highlight {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.enc-mode__name {
    font-size: var(--text-sm);
    font-weight: 600;
}

.enc-mode__tag {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
    font-family: var(--font-mono);
}

.enc-mode__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 600px) { .enc-mode { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ============================================
   FLOW (stepped process)
   ============================================ */
.flow {
    margin-top: var(--space-8);
    display: grid;
    gap: 2px;
}

.flow__step {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.flow__step:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.flow__step:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.flow__num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

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

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

/* ============================================
   PILLARS (3-column feature highlights)
   ============================================ */
.pillars {
    margin-top: var(--space-8);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.pillar {
    padding: var(--space-6);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.pillar__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.pillar__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    margin: var(--space-8) 0;
}

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

th {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

td {
    padding: var(--space-4);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

tr:hover td { background: var(--bg-secondary); }

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta {
    padding: var(--space-20) 0;
    text-align: center;
}

.cta__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.cta__text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-10) 0;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer__logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
}

.footer__copy {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer__links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-decoration: none;
}

.footer__link:hover { color: var(--text-secondary); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   RESPONSIVE: MOBILE
   ============================================ */
@media (max-width: 600px) {
    .nav__links { display: none; }
    .nav__toggle { display: block; }

    .hero { padding-top: calc(var(--nav-height) + var(--space-12)); }
    .hero__title { font-size: var(--text-4xl); }

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

    .footer__inner {
        flex-direction: column;
        gap: var(--space-5);
        text-align: center;
    }

    .footer__links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-tertiary); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

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