/* ==========================================================================
   NexLedger — style.css
   AI-native finance applications design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color — Dark palette */
    --navy-deep:    oklch(0.07 0.012 252);
    --navy-base:    oklch(0.10 0.015 252);
    --navy-mid:     oklch(0.13 0.018 252);
    --navy-card:    oklch(0.16 0.020 252);
    --navy-border:  oklch(0.23 0.025 252);
    --navy-hover:   oklch(0.19 0.022 252);
    --navy-surface: oklch(0.20 0.023 252);

    /* Color — Accent (amber/gold — signal color, earned not decorative) */
    --accent:       oklch(0.69 0.13 75);
    --accent-hover: oklch(0.60 0.12 72);
    --accent-glow:  oklch(0.69 0.13 75 / 0.18);
    --accent-dim:   oklch(0.69 0.13 75 / 0.10);

    /* Color — Product accents */
    --product-dna:      oklch(0.69 0.13 75);      /* TransactionDNA — amber */
    --product-dna-dim:  oklch(0.69 0.13 75 / 0.10);
    --product-ros:      oklch(0.68 0.14 285);      /* Enterprise Reasoning OS — violet */
    --product-ros-dim:  oklch(0.68 0.14 285 / 0.10);
    --product-rca:      oklch(0.70 0.15 162);      /* Revenue Close Agent — emerald */
    --product-rca-dim:  oklch(0.70 0.15 162 / 0.10);

    /* Color — Status */
    --status-error:     oklch(0.65 0.20 25);
    --status-exception: oklch(0.77 0.15 80);
    --status-success:   oklch(0.70 0.15 162);
    --status-info:      oklch(0.68 0.14 240);

    /* Color — Text on dark */
    --text-primary:   oklch(0.94 0.005 252);
    --text-secondary: oklch(0.68 0.012 252);
    --text-muted:     oklch(0.52 0.012 252);
    --text-faint:     oklch(0.38 0.010 252);

    /* Color — Light surfaces (for contrast in mixed-mode sections) */
    --surface-white: #ffffff;
    --surface-off:   #f8fafc;
    --surface-alt:   #f1f5f9;
    --surface-card:  #ffffff;
    --border-light:  #e2e8f0;
    --border-mid:    #cbd5e1;

    /* Color — Text on light */
    --text-dark:       #0f172a;
    --text-dark-mid:   #1e293b;
    --text-dark-body:  #334155;
    --text-dark-muted: #64748b;

    /* Typography */
    --font-sans:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-mono:    'SF Mono', 'Fira Code', 'Roboto Mono', Consolas, monospace;

    --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;
    --text-7xl:  4.5rem;

    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;
    --weight-extrabold:800;

    --leading-tight:   1.08;
    --leading-snug:    1.25;
    --leading-normal:  1.6;
    --leading-relaxed: 1.75;

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

    /* Border radius */
    --radius-xs:   3px;
    --radius-sm:   5px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-2xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs:   0 1px 2px oklch(0 0 0 / 0.12);
    --shadow-sm:   0 1px 3px oklch(0 0 0 / 0.16), 0 1px 2px oklch(0 0 0 / 0.10);
    --shadow-md:   0 4px 12px oklch(0 0 0 / 0.22), 0 2px 4px oklch(0 0 0 / 0.10);
    --shadow-lg:   0 10px 32px oklch(0 0 0 / 0.28), 0 4px 8px oklch(0 0 0 / 0.14);
    --shadow-xl:   0 20px 48px oklch(0 0 0 / 0.36), 0 8px 16px oklch(0 0 0 / 0.18);
    --shadow-card: 0 1px 3px oklch(0 0 0 / 0.08), 0 4px 16px oklch(0 0 0 / 0.08);
    --shadow-dark: 0 8px 32px oklch(0 0 0 / 0.5);
    --shadow-glow: 0 0 32px var(--accent-glow);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   220ms ease;
    --transition-slow:   350ms cubic-bezier(0.22, 1, 0.36, 1);

    /* Layout */
    --container-max: 1200px;
    --container-sm:  720px;
    --container-md:  960px;
    --header-height: 72px;

    /* Z-index scale */
    --z-base:    0;
    --z-above:   10;
    --z-sticky:  100;
    --z-dropdown:200;
    --z-modal:   300;
    --z-toast:   400;
    --z-cursor:  500;
}

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

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

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--navy-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul, ol { list-style: none; }

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

/* --------------------------------------------------------------------------
   3. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--sp-4);
    background: var(--accent);
    color: oklch(0.10 0 0);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-8);
}
.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }

@media (max-width: 640px) {
    .container { padding-inline: var(--sp-4); }
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    background: oklch(0.07 0.012 252 / 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    transition: background var(--transition-slow);
}

.site-header.is-elevated {
    background: oklch(0.07 0.012 252 / 0.98);
    border-bottom-color: oklch(1 0 0 / 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: var(--sp-8);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
    text-decoration: none;
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    position: relative;
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 2px solid oklch(1 0 0 / 0.55);
    border-radius: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Primary nav */
.primary-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
}

.nav-link:hover,
.nav-link--active {
    color: var(--text-primary);
    background: oklch(1 0 0 / 0.06);
}

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

.nav-dropdown-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.nav-item:hover .nav-dropdown-arrow,
.nav-item:focus-within .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--text-secondary);
}

/* Products dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + var(--sp-3));
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-4);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast),
                visibility var(--transition-fast),
                transform var(--transition-fast);
    transform: translateX(-50%) translateY(-6px);
    z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-4);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: var(--navy-hover);
}

.nav-dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.nav-dropdown-icon--amber { background: var(--product-dna-dim); color: var(--product-dna); }
.nav-dropdown-icon--violet { background: var(--product-ros-dim); color: var(--product-ros); }
.nav-dropdown-icon--green { background: var(--product-rca-dim); color: var(--product-rca); }

.nav-dropdown-text {}
.nav-dropdown-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nav-dropdown-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    margin-left: auto;
}

.nav-toggle:hover { background: oklch(1 0 0 / 0.08); }

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav open state */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--navy-card);
        border-bottom: 1px solid var(--navy-border);
        padding: var(--sp-4);
        flex-direction: column;
        justify-content: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-slow),
                    opacity var(--transition-slow),
                    visibility var(--transition-slow);
        max-height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        z-index: calc(var(--z-sticky) - 1);
    }

    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--sp-1);
        width: 100%;
    }

    .nav-link {
        font-size: var(--text-base);
        padding: var(--sp-3) var(--sp-4);
    }

    .nav-dropdown {
        position: static;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: var(--radius-md);
        background: var(--navy-mid);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .nav-item:hover .nav-dropdown { display: block; }

    .nav-dropdown-arrow { display: none; }

    .header-cta { display: none; }

    .header-cta-mobile {
        display: flex;
        flex-direction: column;
        gap: var(--sp-3);
        padding-top: var(--sp-4);
        border-top: 1px solid var(--navy-border);
        margin-top: var(--sp-4);
    }

    .header-cta-mobile .btn { text-align: center; justify-content: center; }
}

@media (min-width: 901px) {
    .header-cta-mobile { display: none; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--font-sans);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn:active { transform: translateY(1px); }

.btn--sm  { padding: 0.4rem var(--sp-4);  font-size: var(--text-sm); }
.btn--md  { padding: 0.65rem var(--sp-6); font-size: var(--text-base); }
.btn--lg  { padding: 0.85rem var(--sp-8); font-size: var(--text-lg); }

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: oklch(0.10 0.005 75);
    font-weight: var(--weight-bold);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    border-color: oklch(1 0 0 / 0.18);
    color: var(--text-secondary);
}
.btn--ghost:hover {
    border-color: oklch(1 0 0 / 0.36);
    color: var(--text-primary);
    background: oklch(1 0 0 / 0.04);
}

.btn--outline {
    background: transparent;
    border-color: var(--border-mid);
    color: var(--text-dark-body);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline-white {
    background: transparent;
    border-color: oklch(1 0 0 / 0.28);
    color: var(--text-primary);
}
.btn--outline-white:hover {
    background: oklch(1 0 0 / 0.06);
    border-color: oklch(1 0 0 / 0.48);
}

.btn--dark {
    background: var(--navy-card);
    border-color: var(--navy-border);
    color: var(--text-primary);
}
.btn--dark:hover {
    background: var(--navy-hover);
    border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Badges & Tags
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 2px var(--sp-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge--accent   { background: var(--accent-dim); color: var(--accent); border: 1px solid oklch(0.69 0.13 75 / 0.3); }
.badge--green    { background: oklch(0.70 0.15 162 / 0.1); color: var(--status-success); border: 1px solid oklch(0.70 0.15 162 / 0.2); }
.badge--warn     { background: oklch(0.77 0.15 80 / 0.1); color: var(--status-exception); border: 1px solid oklch(0.77 0.15 80 / 0.2); }
.badge--error    { background: oklch(0.65 0.20 25 / 0.1); color: var(--status-error); border: 1px solid oklch(0.65 0.20 25 / 0.2); }
.badge--muted    { background: oklch(1 0 0 / 0.06); color: var(--text-secondary); border: 1px solid oklch(1 0 0 / 0.1); }
.badge--violet   { background: var(--product-ros-dim); color: var(--product-ros); border: 1px solid oklch(0.68 0.14 285 / 0.25); }

.tag {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    background: var(--navy-mid);
    color: var(--text-secondary);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. Section Layout Utilities
   -------------------------------------------------------------------------- */
.section {
    padding-block: clamp(var(--sp-16), 9vw, var(--sp-32));
}

.section--dark {
    background: var(--navy-base);
    color: var(--text-primary);
}

.section--navy {
    background: var(--navy-mid);
    color: var(--text-primary);
}

.section--card {
    background: var(--navy-card);
    color: var(--text-primary);
}

.section--off {
    background: var(--navy-mid);
    color: var(--text-primary);
}

.section--alt {
    background: var(--navy-surface);
    color: var(--text-primary);
}

.section--amber {
    background: oklch(0.10 0.02 75);
    border-top: 1px solid oklch(0.69 0.13 75 / 0.15);
    border-bottom: 1px solid oklch(0.69 0.13 75 / 0.15);
}

.section-header {
    max-width: 700px;
    margin-bottom: clamp(var(--sp-12), 6vw, var(--sp-20));
}

.section-header--center {
    text-align: center;
    margin-inline: auto;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--sp-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, 3rem);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--sp-5);
    text-wrap: balance;
}

.section-body {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 65ch;
}

/* Legacy compat */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-4);
}

@media (max-width: 768px) {
    .section { padding-block: var(--sp-16); }
    .section-title { font-size: var(--text-3xl); }
}

/* --------------------------------------------------------------------------
   9. Hero — Static
   -------------------------------------------------------------------------- */
.hero {
    background: var(--navy-deep);
    padding-top: calc(var(--header-height) + var(--sp-20));
    padding-bottom: var(--sp-24);
    position: relative;
    overflow: hidden;
}

/* Subtle top-edge amber line */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        oklch(0.69 0.13 75 / 0.55) 40%,
        oklch(0.69 0.13 75 / 0.55) 60%,
        transparent 100%);
}

/* Radial glow from top-center */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%,
            oklch(0.69 0.13 75 / 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

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

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

.hero-content {
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual {
    animation: heroReveal 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content, .hero-visual { animation: none; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
    background: var(--accent-dim);
    border: 1px solid oklch(0.69 0.13 75 / 0.28);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-6);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--sp-6);
    text-wrap: balance;
}

.hero-title .accent-word {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(var(--text-base), 1.8vw, var(--text-xl));
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-10);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.hero-proof {
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid oklch(1 0 0 / 0.08);
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.hero-proof-item {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.hero-proof-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--status-success);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-12);
    }
    .hero-content { max-width: none; }
    .hero-subtitle { max-width: none; }
}

/* --------------------------------------------------------------------------
   9b. Hero Story Carousel (repurposed as "How it works" story)
   -------------------------------------------------------------------------- */
.hero--carousel {
    padding-top: calc(var(--header-height) + var(--sp-20));
    padding-bottom: var(--sp-16);
}

.hero-carousel {
    position: relative;
    z-index: 1;
    animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-track {
    display: grid;
    align-items: center;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

.hero-slide:not(:first-child) { visibility: hidden; opacity: 0; }

.carousel-ready .hero-slide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.6s;
}
.carousel-ready .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero-slide-content { max-width: 580px; }

.hero-carousel-actions { margin-top: var(--sp-10); }

/* Controls bar */
.hero-controls {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-top: var(--sp-10);
    padding-top: var(--sp-6);
    border-top: 1px solid oklch(1 0 0 / 0.10);
}

.hero-toggle,
.hero-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid oklch(1 0 0 / 0.18);
    background: oklch(1 0 0 / 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast),
                border-color var(--transition-fast),
                background var(--transition-fast);
}
.hero-toggle:hover,
.hero-arrow:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-dim);
}
.hero-toggle:focus-visible,
.hero-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-toggle .hero-toggle-play { display: none; }
.hero-toggle.is-paused .hero-toggle-pause { display: none; }
.hero-toggle.is-paused .hero-toggle-play { display: block; }

.hero-arrows { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* Tabs */
.hero-tabs {
    display: flex;
    gap: var(--sp-2);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.hero-tabs::-webkit-scrollbar { display: none; }

.hero-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + 4px);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.hero-tab:hover { color: var(--text-secondary); background: oklch(1 0 0 / 0.04); }
.hero-tab[aria-selected="true"] { color: var(--text-primary); font-weight: var(--weight-semibold); }
.hero-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero-tab-index {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}
.hero-tab[aria-selected="true"] .hero-tab-index { color: var(--accent); opacity: 1; }

.hero-tab::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: oklch(1 0 0 / 0.08);
    border-radius: 2px;
}

.hero-tab-progress {
    position: absolute;
    left: 0; bottom: 0;
    z-index: 1;
    height: 2px;
    width: 0;
    background: var(--accent);
    border-radius: 2px;
}

/* Slide visuals */
.hero-systems,
.exception-panel,
.trace-panel {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-dark);
}

.hero-systems-label,
.exception-panel-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero-systems-label { display: block; margin-bottom: var(--sp-4); }

/* Exception panel */
.exception-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--navy-border);
}
.exception-panel-count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
}
.exception-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--navy-border);
}
.exception-row:last-child { border-bottom: none; }
.exception-row-name {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: var(--weight-medium);
}
.exception-row-impact {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Causal trace chain */
.trace-panel { display: flex; flex-direction: column; gap: var(--sp-2); }
.trace-step {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border: 1px solid var(--navy-border);
    background: var(--navy-mid);
}
.trace-step-tag {
    font-size: 10px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}
.trace-step--exception { border-color: oklch(0.65 0.20 25 / 0.3); color: oklch(0.80 0.15 25); }
.trace-step--exception .trace-step-tag { background: oklch(0.65 0.20 25 / 0.15); color: oklch(0.80 0.15 25); }
.trace-step--origin { border-color: oklch(0.77 0.15 80 / 0.3); color: var(--status-exception); }
.trace-step--origin .trace-step-tag { background: oklch(0.77 0.15 80 / 0.15); color: var(--status-exception); }
.trace-step--policy { border-color: oklch(0.69 0.13 75 / 0.3); color: var(--accent); }
.trace-step--policy .trace-step-tag { background: var(--accent-dim); color: var(--accent); }
.trace-step--evidence { border-color: oklch(0.70 0.15 162 / 0.3); color: var(--status-success); }
.trace-step--evidence .trace-step-tag { background: oklch(0.70 0.15 162 / 0.15); color: var(--status-success); }
.trace-arrow {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding-block: 2px;
}

/* Domain tiles */
.domain-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}
.domain-tile {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    transition: border-color var(--transition-base), transform var(--transition-base);
    border-top-width: 2px;
}
.domain-tile:hover { transform: translateY(-2px); }
.domain-tile-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.domain-tile-note { font-size: var(--text-xs); color: var(--text-muted); }
.domain-tiles-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--sp-2);
    font-family: var(--font-mono);
}
.domain-tile--green  { border-top-color: oklch(0.70 0.15 162 / 0.5); }
.domain-tile--green:hover  { border-color: oklch(0.70 0.15 162 / 0.35); border-top-color: oklch(0.70 0.15 162 / 0.7); }
.domain-tile--cyan   { border-top-color: oklch(0.72 0.13 210 / 0.5); }
.domain-tile--cyan:hover   { border-color: oklch(0.72 0.13 210 / 0.35); border-top-color: oklch(0.72 0.13 210 / 0.7); }
.domain-tile--amber  { border-top-color: oklch(0.69 0.13 75 / 0.55); }
.domain-tile--amber:hover  { border-color: oklch(0.69 0.13 75 / 0.35); border-top-color: oklch(0.69 0.13 75 / 0.8); }
.domain-tile--blue   { border-top-color: oklch(0.68 0.14 240 / 0.5); }
.domain-tile--blue:hover   { border-color: oklch(0.68 0.14 240 / 0.35); border-top-color: oklch(0.68 0.14 240 / 0.7); }

/* Hero section disconnect */
.hero-systems .system-disconnect {
    border: 1px dashed oklch(0.65 0.20 25 / 0.35);
    border-radius: var(--radius-md);
    background: oklch(0.65 0.20 25 / 0.04);
    padding: var(--sp-3) var(--sp-4);
    margin-top: var(--sp-3);
}

@media (max-width: 900px) {
    .hero-slide { grid-template-columns: 1fr; gap: var(--sp-10); }
    .hero-slide-content { max-width: none; }
    .hero-controls { flex-wrap: wrap; }
    .hero-tabs { order: 3; width: 100%; flex: 1 0 100%; }
}

@media (max-width: 560px) {
    .hero-tab-label { display: none; }
    .hero-tab { padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + 4px); }
    .hero-tab-index { font-size: 13px; opacity: 0.85; }
    .domain-tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel { animation: none; }
    .carousel-ready .hero-slide { transition: none; transform: none; }
    .hero-tab-progress { display: none; }
}

/* --------------------------------------------------------------------------
   10. Lineage Visual
   -------------------------------------------------------------------------- */
.lineage-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-dark);
    position: relative;
}

.lineage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--navy-border);
}

.lineage-card-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dna-hash {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    opacity: 0.8;
    background: var(--accent-dim);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.04em;
}

.lineage-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lineage-node {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: start;
    gap: var(--sp-3);
    position: relative;
}

.lineage-node:not(:last-child) {
    padding-bottom: var(--sp-4);
}

.lineage-node-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.icon-quote   { background: oklch(0.68 0.14 285 / 0.15); border: 1px solid oklch(0.68 0.14 285 / 0.3); color: var(--product-ros); }
.icon-order   { background: oklch(0.68 0.14 240 / 0.12); border: 1px solid oklch(0.68 0.14 240 / 0.25); color: var(--status-info); }
.icon-invoice { background: oklch(0.72 0.13 210 / 0.12); border: 1px solid oklch(0.72 0.13 210 / 0.25); color: oklch(0.72 0.13 210); }
.icon-revenue { background: oklch(0.70 0.15 162 / 0.12); border: 1px solid oklch(0.70 0.15 162 / 0.25); color: var(--status-success); }
.icon-audit   { background: var(--accent-dim); border: 1px solid oklch(0.69 0.13 75 / 0.25); color: var(--accent); }

.lineage-node-body { min-width: 0; }

.lineage-node-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.lineage-node-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.lineage-node-badge { align-self: center; }

.lineage-connector-wrap {
    grid-column: 1;
    display: flex;
    justify-content: center;
    padding: 2px 0;
}

.lineage-connector {
    display: none;
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom,
        var(--navy-border),
        oklch(0.69 0.13 75 / 0.25));
    margin: 0 auto;
}

.lineage-node:not(:last-child) .lineage-connector-wrap .lineage-connector { display: block; }

.lineage-footer {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lineage-footer-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
}

.lineage-footer-value {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    font-weight: var(--weight-semibold);
}

/* --------------------------------------------------------------------------
   11. Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--navy-mid);
    border-top: 1px solid var(--navy-border);
    border-bottom: 1px solid var(--navy-border);
    padding-block: var(--sp-5);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
    justify-content: center;
}

.trust-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-right: var(--sp-6);
    border-right: 1px solid var(--navy-border);
    white-space: nowrap;
}

.trust-items {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    white-space: nowrap;
}

.trust-item::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Problem Section
   -------------------------------------------------------------------------- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: start;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-top: var(--sp-8);
}

.problem-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-4);
    align-items: start;
}

.problem-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: oklch(0.65 0.20 25 / 0.08);
    border: 1px solid oklch(0.65 0.20 25 / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-icon svg { width: 16px; height: 16px; color: var(--status-error); }

.problem-item h4 {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--sp-1);
}

.problem-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.problem-visual {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-dark);
    position: sticky;
    top: calc(var(--header-height) + var(--sp-8));
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-3);
}

.system-node {
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-3) var(--sp-4);
    text-align: center;
}

.system-node-name {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.system-node--broken {
    border-color: oklch(0.65 0.20 25 / 0.3);
    background: oklch(0.65 0.20 25 / 0.04);
}

.system-node--broken .system-node-name { color: var(--status-error); opacity: 0.7; }

.system-disconnect {
    text-align: center;
    padding: var(--sp-4) 0;
    color: var(--status-error);
    font-size: var(--text-xs);
    opacity: 0.8;
    font-weight: var(--weight-medium);
}

/* Systems chips list (problem narrative) */
.systems-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-block: var(--sp-6);
}

.systems-chip {
    padding: var(--sp-1) var(--sp-3);
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* What this creates list */
.creates-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.creates-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.creates-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--status-error);
    flex-shrink: 0;
    margin-top: 7px;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .problem-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
    .problem-visual { position: static; }
}

/* --------------------------------------------------------------------------
   13. Product Suite
   -------------------------------------------------------------------------- */
.product-suite {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    align-items: start;
}

.product-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    transition: border-color var(--transition-base), transform var(--transition-base),
                box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.product-card--dna {
    border-top: 2px solid oklch(0.69 0.13 75 / 0.6);
}
.product-card--dna:hover { border-color: oklch(0.69 0.13 75 / 0.5); }

.product-card--ros {
    border-top: 2px solid oklch(0.68 0.14 285 / 0.6);
}
.product-card--ros:hover { border-color: oklch(0.68 0.14 285 / 0.5); }

.product-card--rca {
    border-top: 2px solid oklch(0.70 0.15 162 / 0.6);
}
.product-card--rca:hover { border-color: oklch(0.70 0.15 162 / 0.5); }

.product-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-icon--amber { background: var(--product-dna-dim); }
.product-card-icon--violet { background: var(--product-ros-dim); }
.product-card-icon--green { background: var(--product-rca-dim); }

.product-card-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.product-card-tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.product-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
}

.product-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.product-feature-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.product-card--dna .product-feature-dot  { background: var(--product-dna); }
.product-card--ros .product-feature-dot  { background: var(--product-ros); }
.product-card--rca .product-feature-dot  { background: var(--product-rca); }

.product-card-footer {
    padding-top: var(--sp-5);
    border-top: 1px solid var(--navy-border);
}

.product-card-personas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.product-persona-tag {
    font-size: 11px;
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    padding: 2px var(--sp-2);
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
    .product-suite { grid-template-columns: 1fr; gap: var(--sp-5); }
}

@media (min-width: 640px) and (max-width: 960px) {
    .product-suite { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   14. Solution / Capabilities
   -------------------------------------------------------------------------- */
.caps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.caps-featured {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    grid-row: span 2;
    border-top: 2px solid oklch(0.69 0.13 75 / 0.55);
}

.caps-secondary {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.cap-item {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    transition: border-color var(--transition-base);
}

.cap-item:hover { border-color: var(--navy-surface); }

.cap-item-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.cap-item-icon,
.card-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cap-item-title,
.card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
}

.cap-item-title { font-size: var(--text-base); margin-bottom: 0; }

.card-body,
.cap-item-body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 65ch;
}

.card-list {
    margin-top: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.card-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.card-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
    opacity: 0.7;
}

/* Icon color variants */
.card-icon--amber  { background: var(--accent-dim); }
.card-icon--green  { background: oklch(0.70 0.15 162 / 0.1); }
.card-icon--cyan   { background: oklch(0.72 0.13 210 / 0.1); }
.card-icon--blue   { background: oklch(0.68 0.14 240 / 0.1); }
.card-icon--purple { background: var(--product-ros-dim); }

@media (max-width: 900px) {
    .caps-layout { grid-template-columns: 1fr; }
    .caps-featured { grid-row: auto; }
}

/* --------------------------------------------------------------------------
   15. How It Works — Steps
   -------------------------------------------------------------------------- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: steps;
    max-width: 760px;
    margin-inline: auto;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--sp-6);
    align-items: start;
    padding-bottom: var(--sp-8);
    position: relative;
}

.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    width: 1px;
    bottom: 0;
    background: linear-gradient(to bottom, var(--navy-border), transparent);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
}

.step-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 60ch;
}

.step-systems {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   16. Use Case Grid
   -------------------------------------------------------------------------- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.use-case-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    text-decoration: none;
    transition: border-color var(--transition-base), transform var(--transition-base),
                box-shadow var(--transition-base);
    cursor: pointer;
}

.use-case-card:hover {
    border-color: var(--navy-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.use-case-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.use-case-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: var(--leading-snug);
}

.use-case-card-body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    flex: 1;
}

.use-case-card-link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    transition: gap var(--transition-fast);
}

.use-case-card:hover .use-case-card-link { gap: var(--sp-3); }

@media (max-width: 960px) {
    .use-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .use-case-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   17. Why NexLedger — Differentiators
   -------------------------------------------------------------------------- */
.differentiator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.differentiator-item {
    padding: var(--sp-6) 0;
    border-top: 1px solid var(--navy-border);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.differentiator-item:hover {
    border-top-color: var(--accent);
}

.differentiator-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.differentiator-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.differentiator-body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 40ch;
}

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

/* --------------------------------------------------------------------------
   18. Buyer Personas
   -------------------------------------------------------------------------- */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.persona-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-6);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.persona-card:hover {
    border-color: var(--navy-surface);
    transform: translateY(-2px);
}

.persona-role {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
}

.persona-value {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

/* --------------------------------------------------------------------------
   19. Proof Narrative
   -------------------------------------------------------------------------- */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}

.proof-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    transition: border-color var(--transition-base);
}

.proof-card:hover {
    border-color: var(--navy-surface);
}

.proof-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-4);
}

.proof-card-body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

/* --------------------------------------------------------------------------
   20. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--navy-base);
    border-top: 1px solid var(--navy-border);
    padding-block: clamp(var(--sp-20), 10vw, var(--sp-32));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 100%,
        oklch(0.69 0.13 75 / 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.cta-inner {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4.5vw, 3.25rem);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--sp-6);
    text-wrap: balance;
}

.cta-body {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-10);
    max-width: 60ch;
    margin-inline: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   21. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    background: var(--navy-deep);
    padding-top: calc(var(--header-height) + var(--sp-16));
    padding-bottom: var(--sp-16);
    border-bottom: 1px solid var(--navy-border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%,
        oklch(0.69 0.13 75 / 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: var(--container-md);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.page-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.10em;
    color: var(--accent);
    margin-bottom: var(--sp-5);
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, 3.5rem);
    font-weight: var(--weight-extrabold);
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: var(--sp-6);
    text-wrap: balance;
    max-width: 820px;
}

.page-hero-body {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 700px;
}

/* --------------------------------------------------------------------------
   22. Platform / Module Sections
   -------------------------------------------------------------------------- */
.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: start;
}

.module-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.10em;
    color: var(--accent);
    margin-bottom: var(--sp-4);
}

.module-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, 2.25rem);
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: var(--sp-5);
    text-wrap: balance;
}

.module-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--sp-5);
    max-width: 65ch;
}

.module-features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.module-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.feature-check {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    background: oklch(0.70 0.15 162 / 0.12);
    border: 1px solid oklch(0.70 0.15 162 / 0.25);
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.feature-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--status-success);
    border-bottom: 1.5px solid var(--status-success);
    transform: rotate(-45deg) translateY(-1px);
}

.module-visual {
    background: var(--surface-off);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-card);
}

.module-visual--dark {
    background: var(--navy-card);
    border-color: var(--navy-border);
    box-shadow: var(--shadow-dark);
}

@media (max-width: 900px) {
    .module-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* --------------------------------------------------------------------------
   23. Cards
   -------------------------------------------------------------------------- */
.cards-grid {
    display: grid;
    gap: var(--sp-6);
}

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

.card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    transition: border-color var(--transition-base), transform var(--transition-base),
                box-shadow var(--transition-base);
}

.card:hover {
    border-color: var(--navy-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* --------------------------------------------------------------------------
   24. Domain sections (use-cases.php)
   -------------------------------------------------------------------------- */
.role-section {}

.role-header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-5);
    margin-bottom: var(--sp-8);
}

.role-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.role-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, 2rem);
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: var(--sp-2);
}

.role-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

.role-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.role-point {}

.role-point-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--sp-3);
}

.role-point-body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

/* --------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-base);
    border-top: 1px solid var(--navy-border);
    padding-block: var(--sp-16) var(--sp-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-12);
    padding-bottom: var(--sp-12);
    border-bottom: 1px solid var(--navy-border);
}

.footer-brand {}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    margin-top: var(--sp-4);
    max-width: 360px;
}

.footer-nav {}

.footer-nav__heading {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-5);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--sp-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

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

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

.footer-product-tag {
    margin-left: var(--sp-3);
    padding: 2px var(--sp-2);
    background: var(--navy-mid);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   26. Divider
   -------------------------------------------------------------------------- */
.divider {
    border: none;
    border-top: 1px solid var(--navy-border);
}

/* --------------------------------------------------------------------------
   27. Inline link style
   -------------------------------------------------------------------------- */
.link-underline {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: oklch(1 0 0 / 0.18);
    transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.link-underline:hover {
    color: var(--text-primary);
    text-decoration-color: var(--accent);
}

/* --------------------------------------------------------------------------
   28. Custom Cursor Ring
   -------------------------------------------------------------------------- */
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    width: 32px;
    height: 32px;
    border: 1.5px solid oklch(0.69 0.13 75 / 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.15s, width 0.2s, height 0.2s;
    opacity: 0;
    will-change: transform;
}

@media (pointer: fine) {
    body:hover .cursor-ring { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   29. Motion — Scroll Reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 1;
    transform: none;
}

.js-loaded [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

.js-loaded [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

/* --------------------------------------------------------------------------
   30. Magnetic button (data-magnetic)
   -------------------------------------------------------------------------- */
[data-magnetic] {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow var(--transition-fast);
    will-change: transform;
}

/* --------------------------------------------------------------------------
   31. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mt-16 { margin-top: var(--sp-16); }

/* Pre code blocks */
pre {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
}
