/* =========================================================================
   Nodali — main.css
   Vanilla CSS3. No framework. Mobile-first, fluid type, BEM-ish naming.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Fonts
   Self-hosted variable fonts. Place real files at:
     /public/assets/fonts/sora-var.woff2
     /public/assets/fonts/inter-var.woff2
   Until then, the system-font fallback stack keeps text readable.
   ---------------------------------------------------------------------- */
@font-face {
    font-family: 'Sora';
    src: url('/assets/fonts/sora-var.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------------------
   Tokens
   ---------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --color-navy-950: #071521;
    --color-navy-900: #0F1B2D;
    --color-navy-800: #13233A;
    --color-navy-700: #1B3150;

    --color-green-500: #2FD39A;
    --color-green-600: #23B982;
    --color-green-300: #9DE8CC;
    --color-green-100: #E5FAF2;

    --color-white: #FFFFFF;
    --color-gray-50: #F4F7FA;
    --color-gray-100: #E8EDF2;
    --color-gray-500: #6D7885;
    --color-gray-800: #263442;

    --color-warning: #F4A340;
    --color-danger: #E55C67;

    /* Semantic aliases */
    --bg-page: var(--color-white);
    --bg-surface: var(--color-gray-50);
    --text-body: var(--color-gray-800);
    --text-muted: var(--color-gray-500);
    --border-subtle: var(--color-gray-100);
    --focus-ring: var(--color-green-600);

    /* Typography */
    --font-heading: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --fs-xs: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
    --fs-sm: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
    --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
    --fs-md: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem);
    --fs-lg: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
    --fs-xl: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
    --fs-2xl: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
    --fs-3xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);

    /* Spacing scale */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.25rem;
    --space-xl: 3.5rem;
    --space-2xl: 5.5rem;
    --space-3xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(7, 21, 33, 0.06), 0 1px 1px rgba(7, 21, 33, 0.04);
    --shadow-md: 0 8px 24px rgba(7, 21, 33, 0.08);
    --shadow-lg: 0 20px 48px rgba(7, 21, 33, 0.16);

    --container-w: 1240px;
    --navbar-h: 76px;
    --transition-fast: 160ms ease;
    --transition-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   Reset / base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 var(--space-sm); color: var(--color-navy-900); }
p { margin: 0 0 var(--space-sm); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: var(--space-sm);
    top: -60px;
    background: var(--color-navy-900);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-sm); }

.container {
    width: 100%;
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* -------------------------------------------------------------------------
   Generic building blocks
   ---------------------------------------------------------------------- */
.section { padding-block: var(--space-2xl); }
.section__head { max-width: 720px; margin-bottom: var(--space-xl); }
.section__head--light h2, .section__head--light .eyebrow--light { color: var(--color-white); }
.section__intro { color: var(--text-muted); font-size: var(--fs-md); }
.section__intro--light { color: var(--color-green-100); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green-600);
    margin-bottom: var(--space-2xs);
}
.eyebrow--light { color: var(--color-green-300); }

h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: var(--space-3xs) var(--space-sm);
    border-radius: var(--radius-full);
    background: rgba(47, 211, 154, 0.12);
    color: var(--color-green-300);
}
.badge--outline {
    border: 1px solid rgba(157, 232, 204, 0.35);
    background: rgba(47, 211, 154, 0.08);
}
.badge--outline::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-green-500);
    box-shadow: 0 0 0 3px rgba(47, 211, 154, 0.25);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
    min-height: 44px;
}
.button--primary {
    background: var(--color-green-500);
    color: var(--color-navy-950);
    box-shadow: var(--shadow-sm);
}
.button--primary:hover { background: var(--color-green-600); }
.button--primary:active { transform: translateY(1px); }
.button--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.28);
}
.button--ghost:hover { border-color: var(--color-green-500); color: var(--color-green-300); }
.button--sm { padding: 0.55rem 1rem; font-size: var(--fs-xs); min-height: 38px; }
.button--lg { padding: 1rem 1.7rem; font-size: var(--fs-base); }

.card-grid { display: grid; gap: var(--space-md); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--modules { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-green-300); }
.card h3 { margin-bottom: var(--space-2xs); }
.card p { color: var(--text-muted); margin: 0; }

.status-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.status-tag--in_development { background: var(--color-green-100); color: var(--color-green-600); }
.status-tag--planned { background: var(--color-gray-100); color: var(--color-gray-500); }
.status-tag--future { background: rgba(244, 163, 64, 0.15); color: #a8661c; }

/* -------------------------------------------------------------------------
   Navbar
   ---------------------------------------------------------------------- */
.navbar {
    /* Fixed, not sticky: "sticky" stays in normal flow until it scrolls to
       the top, so at scroll=0 it sits *above* the hero rather than over it —
       a transparent background there just shows the page background (white)
       instead of the hero. Fixed removes it from flow entirely, so it can
       overlay the hero; #main below gets compensating padding-top. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.navbar__brand { display: inline-flex; align-items: center; }
.navbar__logo { display: block; height: 28px; width: auto; }

.navbar__nav { display: flex; }
.navbar__links { display: flex; align-items: center; gap: var(--space-md); }
.navbar__links a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    padding: var(--space-2xs) 0;
    position: relative;
}
.navbar__links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-green-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}
.navbar__links a:hover::after,
.navbar__links a.is-active::after { transform: scaleX(1); }
.navbar__links a.is-active { color: var(--color-white); }

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

/* <details>/<summary> disclosure — opens/closes natively without JS;
   main.js only adds "close on outside click / Escape" on top of that. */
.lang-switch { position: relative; font-size: var(--fs-sm); }
.lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3xs);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    padding: var(--space-3xs) var(--space-2xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    list-style: none;
}
.lang-switch__toggle::-webkit-details-marker { display: none; }
.lang-switch__toggle:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.06); }
.lang-switch[open] .lang-switch__toggle { color: var(--color-white); background: rgba(255, 255, 255, 0.08); }
.lang-switch__chevron { transition: transform var(--transition-fast); }
.lang-switch[open] .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + var(--space-2xs));
    right: 0;
    min-width: 9rem;
    margin: 0;
    background: var(--color-navy-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xs);
    z-index: 110;
    list-style: none;
}
.lang-switch__option {
    display: block;
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: var(--fs-sm);
}
.lang-switch__option:hover { background: rgba(255, 255, 255, 0.08); color: var(--color-white); }
.lang-switch__option.is-active { color: var(--color-green-300); font-weight: 700; }

/* Footer variant: menu opens upward, slightly muted toggle to match the rest of the footer */
.lang-switch--footer .lang-switch__toggle { color: rgba(255, 255, 255, 0.55); }
.lang-switch--footer .lang-switch__toggle:hover { color: var(--color-white); }
.lang-switch--footer .lang-switch__menu { top: auto; bottom: calc(100% + var(--space-2xs)); }

.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
}
.navbar__toggle-bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Dark/transparent state (over hero) vs scrolled state */
.navbar[data-scrolled="true"] {
    background: rgba(15, 27, 45, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Static navbar variant used on legal pages (always solid) */
.navbar--static { position: static; background: var(--color-navy-900); }

/* Compensate for the now-fixed navbar so content isn't hidden underneath it.
   The hero is the one exception: it pulls itself back up so its own dark
   background still extends behind the transparent navbar at the top. */
#main { padding-top: var(--navbar-h); }
.legal-page #main { padding-top: 0; }

/* -------------------------------------------------------------------------
   Mobile nav
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .navbar__nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        /* Belt-and-braces height: bottom:0 already pins it, but some mobile
           browsers resize the viewport (address bar show/hide) in ways that
           can leave a fixed element short. dvh tracks the *current* visible
           viewport; vh is the fallback for browsers without dvh support. */
        height: calc(100vh - var(--navbar-h));
        height: calc(100dvh - var(--navbar-h));
        z-index: 90;
        background: var(--color-navy-900);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
        overflow-y: auto;
        padding: var(--space-lg) var(--space-md);
    }
    .navbar__nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .navbar__links { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
    .navbar__links a { font-size: var(--fs-lg); }
    .navbar__toggle { display: inline-flex; }
    .navbar__actions .button--primary.button--sm { display: none; }
}

@media (min-width: 901px) {
    .navbar__nav { display: flex; }
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--color-navy-950) 0%, var(--color-navy-900) 55%, var(--color-navy-800) 100%);
    color: var(--color-white);
    /* Pull back up by the #main padding-top above, so this dark background
       still reaches all the way to the top, behind the transparent navbar —
       then re-add that space (plus breathing room) as real padding so the
       title/badge don't render underneath the fixed navbar. */
    margin-top: calc(-1 * var(--navbar-h));
    padding-top: calc(var(--navbar-h) + var(--space-xl));
    padding-bottom: var(--space-3xl);
    overflow: hidden;
}
.hero__network {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}
.hero__network svg { width: 100%; height: 100%; }

.node-net__path { stroke-dasharray: 6 8; animation: dash-flow 14s linear infinite; }
.node-net__nodes circle { animation: node-pulse 4.5s ease-in-out infinite; }
.node-net__nodes circle:nth-child(odd) { animation-delay: 1.2s; }
.node-net__nodes circle:nth-child(3n) { animation-delay: 2.1s; }

@keyframes dash-flow { to { stroke-dashoffset: -280; } }
@keyframes node-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: center;
}
.hero__title {
    font-size: var(--fs-3xl);
    color: var(--color-white);
    margin-block: var(--space-md) var(--space-sm);
    max-width: 16ch;
}
.hero__subtitle {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.75);
    max-width: 46ch;
    margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* -------------------------------------------------------------------------
   Landing pages (SEO) — same navbar-compensation trick as .hero, simpler,
   text-only content block.
   ---------------------------------------------------------------------- */
.landing-hero {
    position: relative;
    background: linear-gradient(160deg, var(--color-navy-950) 0%, var(--color-navy-900) 55%, var(--color-navy-800) 100%);
    color: var(--color-white);
    margin-top: calc(-1 * var(--navbar-h));
    padding-top: calc(var(--navbar-h) + var(--space-xl));
    padding-bottom: var(--space-2xl);
}
.landing-hero__inner { max-width: 62ch; }
.landing-hero__breadcrumb { margin-bottom: var(--space-md); }
.landing-hero__breadcrumb a { color: rgba(255, 255, 255, 0.65); font-size: var(--fs-sm); font-weight: 600; }
.landing-hero__breadcrumb a:hover { color: var(--color-green-300); }
.landing-hero h1 { color: var(--color-white); margin-block: var(--space-sm) var(--space-sm); }
.landing-hero__intro { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin-bottom: var(--space-lg); }

.landing-solution .card--use-case { background: var(--color-navy-950); color: var(--color-white); }
.landing-solution .card--use-case h3 { color: var(--color-white); }
.landing-solution .card--use-case p { color: rgba(255, 255, 255, 0.75); }

.landing-cta {
    background: var(--color-navy-950);
    color: var(--color-white);
}
.landing-cta__inner { max-width: 60ch; text-align: center; margin-inline: auto; }
.landing-cta h2 { color: var(--color-white); }
.landing-cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: var(--space-md); }

/* -------------------------------------------------------------------------
   Dashboard mockup (hero visual)
   ---------------------------------------------------------------------- */
.dashboard-mock {
    background: linear-gradient(155deg, var(--color-navy-800), var(--color-navy-900));
    border: 1px solid rgba(157, 232, 204, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.dashboard-mock__chrome {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-mock__chrome span {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.dashboard-mock__chrome p {
    margin: 0 0 0 var(--space-xs);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
}
.dashboard-mock__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.dashboard-mock__panel { background: var(--color-navy-900); padding: var(--space-md); }
.dashboard-mock__panel--wide { grid-column: 1 / -1; }
.dashboard-mock__panel-title {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}
.dashboard-mock__pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--fs-xs);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}
.pill b { color: var(--color-white); }
.pill--ok::before, .dot--ok { background: var(--color-green-500); }
.pill--warn::before, .dot--warn { background: var(--color-warning); }
.pill--danger::before, .dot--danger { background: var(--color-danger); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }

.dashboard-mock__bars { display: flex; flex-direction: column; gap: var(--space-xs); }
.dashboard-mock__bars li { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--fs-xs); color: rgba(255,255,255,0.65); }
.dashboard-mock__bars li span { width: 52px; flex-shrink: 0; }
.dashboard-mock__bar-track {
    flex: 1 1 auto;
    min-width: 0;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.dashboard-mock__bar-track i {
    display: block; height: 100%; border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--color-green-600), var(--color-green-500));
    width: var(--val);
}

.dashboard-mock__list, .dashboard-mock__sources { display: flex; flex-direction: column; gap: var(--space-xs); }
.dashboard-mock__list li, .dashboard-mock__sources li {
    display: flex; align-items: center; gap: var(--space-xs);
    font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.75);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot--muted { background: var(--color-gray-500); }

.dashboard-mock__compare-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.dashboard-mock__compare-row span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.6); }
.dashboard-mock__compare-track { position: relative; height: 14px; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-full); overflow: hidden; }
.dashboard-mock__compare-track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--radius-full); }
.dashboard-mock__compare-track i.is-plan { width: var(--val); background: rgba(157, 232, 204, 0.35); }
.dashboard-mock__compare-track i.is-actual { width: var(--val); height: 6px; top: 4px; background: var(--color-green-500); }
.dashboard-mock__legend { display: flex; gap: var(--space-md); margin-top: var(--space-xs); font-size: var(--fs-xs); color: rgba(255,255,255,0.6); }
.dashboard-mock__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-mock__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dashboard-mock__legend i.is-plan { background: rgba(157, 232, 204, 0.35); }
.dashboard-mock__legend i.is-actual { background: var(--color-green-500); }

.dashboard-mock__caption {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* -------------------------------------------------------------------------
   Problem section
   ---------------------------------------------------------------------- */
.sources-diagram {
    display: grid;
    grid-template-columns: 1fr auto 220px;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}
.sources-diagram__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sources-diagram__item {
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-navy-800);
}
.sources-diagram__arrow { width: 100px; }
.sources-diagram__target {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--space-3xs);
    padding: var(--space-md);
    background: var(--color-navy-900);
    border-radius: var(--radius-md);
    color: var(--color-white);
}
.sources-diagram__target span { font-family: var(--font-heading); font-weight: 700; }
.sources-diagram__target small { color: rgba(255, 255, 255, 0.55); font-size: var(--fs-xs); }

/* -------------------------------------------------------------------------
   How it works — flow diagram + pillars
   ---------------------------------------------------------------------- */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.flow-diagram__step {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-2xs);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    min-width: 160px;
}
.flow-diagram__step--primary { background: var(--color-navy-900); color: var(--color-white); border-color: var(--color-navy-900); }
.flow-diagram__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-green-500); }
.flow-diagram__connector { width: 90px; flex-shrink: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.pillars__item {
    padding: var(--space-lg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
}
.pillars__index {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-green-100);
    color: var(--color-green-600);
    font-family: var(--font-heading); font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* -------------------------------------------------------------------------
   Modules
   ---------------------------------------------------------------------- */
.card--module__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-2xs); }
.card--module__tagline { color: var(--text-muted); margin-bottom: var(--space-sm); }
.card--module__features { display: flex; flex-direction: column; gap: 6px; }
.card--module__features li {
    font-size: var(--fs-sm);
    color: var(--color-navy-800);
    padding-left: 1.2rem;
    position: relative;
}
.card--module__features li::before {
    content: '';
    position: absolute; left: 0; top: 0.55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-green-500);
}

/* -------------------------------------------------------------------------
   Integrations
   ---------------------------------------------------------------------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.tag-grid__item {
    font-weight: 600;
    font-size: var(--fs-sm);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--color-navy-900);
    color: var(--color-white);
}
.tag-grid__item--planned {
    background: var(--color-white);
    border: 1px dashed var(--color-gray-100);
    color: var(--text-muted);
}
.integrations__note { color: var(--text-muted); max-width: 65ch; margin-bottom: var(--space-xl); }
.integrations__planned {
    padding: var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}
.integrations__planned h3 { margin-bottom: var(--space-3xs); }
.integrations__planned-note { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-sm); }

/* -------------------------------------------------------------------------
   Use cases
   ---------------------------------------------------------------------- */
.card--use-case { background: var(--color-white); border: 1px solid var(--border-subtle); }
.impact-panel {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-navy-900);
    color: var(--color-white);
    border-radius: var(--radius-lg);
}
.impact-panel h3 { color: var(--color-white); margin-bottom: var(--space-md); }
.impact-panel__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.impact-panel__list li {
    padding-left: 1.4rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}
.impact-panel__list li::before {
    content: '';
    position: absolute; left: 0; top: 0.5em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-green-500);
}

/* -------------------------------------------------------------------------
   Sustainability
   ---------------------------------------------------------------------- */
.sustainability {
    background: linear-gradient(150deg, var(--color-navy-950), var(--color-navy-800));
    color: var(--color-white);
}
.card--sustain {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(157, 232, 204, 0.16);
}
.card--sustain h3 { color: var(--color-white); }
.card--sustain p { color: rgba(255, 255, 255, 0.68); }
.sustainability__disclaimer {
    margin-top: var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--color-green-300);
    max-width: 60ch;
}

/* -------------------------------------------------------------------------
   Implementation
   ---------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-xl); }
.steps__item { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-md); align-items: start; }
.steps__index {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--color-green-500);
    color: var(--color-navy-950);
    font-family: var(--font-heading); font-weight: 700;
    font-size: var(--fs-md);
}
.steps__item h3 { margin-bottom: 4px; }
.steps__item p { color: var(--text-muted); margin: 0; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.check-list li {
    padding-left: 1.6rem;
    position: relative;
    font-weight: 500;
}
.check-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: var(--color-green-600);
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   Development / roadmap
   ---------------------------------------------------------------------- */
.development__points { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); margin-bottom: var(--space-xl); }
.development__points li {
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}
.roadmap { padding: var(--space-lg); background: var(--color-navy-900); border-radius: var(--radius-lg); color: var(--color-white); }
.roadmap h3 { color: var(--color-white); margin-bottom: 4px; }
.roadmap__note { color: rgba(255, 255, 255, 0.5); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.roadmap__list { display: flex; flex-direction: column; gap: 0; border-left: 2px solid rgba(255, 255, 255, 0.12); margin-left: 6px; }
.roadmap__item {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
    position: relative;
}
.roadmap__marker {
    position: absolute; left: -7px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-gray-500);
    border: 2px solid var(--color-navy-900);
}
.roadmap__marker--in_development { background: var(--color-green-500); }
.roadmap__marker--planned { background: var(--color-gray-100); }
.roadmap__marker--future { background: var(--color-warning); }
.roadmap__title { font-weight: 600; flex: 1; }

/* -------------------------------------------------------------------------
   Early access / contact form
   ---------------------------------------------------------------------- */
.early-access { background: var(--bg-surface); }
.early-access__form-wrap {
    max-width: 760px;
    background: var(--color-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.form-notice {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}
.form-notice--success { background: var(--color-green-100); color: var(--color-green-600); }
.form-notice--success h3 { color: var(--color-green-600); margin-bottom: 4px; }
.form-notice--error { background: rgba(229, 92, 103, 0.1); color: #a5313c; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); margin-bottom: var(--space-sm); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-navy-800); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 44px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
    border-color: var(--color-green-500);
    box-shadow: 0 0 0 3px rgba(47, 211, 154, 0.18);
}
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: var(--fs-xs); margin: 0; }

.checkbox-label { display: flex; align-items: flex-start; gap: var(--space-xs); font-weight: 500; font-size: var(--fs-sm); cursor: pointer; }
.checkbox-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-green-600); flex-shrink: 0; }

.form-required-hint { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--space-md); }

/* Honeypot: hidden from sighted users and keyboard/AT users, but present for bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.site-footer { background: var(--color-navy-950); color: rgba(255, 255, 255, 0.7); padding-block: var(--space-2xl) var(--space-lg); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-lg); margin-bottom: var(--space-xl); }
.site-footer__logo { height: 24px; width: auto; margin-bottom: var(--space-sm); }
.site-footer__by { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.5); margin-bottom: var(--space-2xs); }
.site-footer__by a { font-weight: 400; color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 2px; }
.site-footer__by a:hover { color: var(--color-green-300); text-decoration-color: currentColor; }
.site-footer__tagline { font-size: var(--fs-sm); max-width: 30ch; }
.site-footer__col-title { font-weight: 700; color: var(--color-white); font-size: var(--fs-sm); margin-bottom: var(--space-sm); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.site-footer__col a:hover { color: var(--color-green-300); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: var(--space-md); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.4); }

/* -------------------------------------------------------------------------
   Legal pages
   ---------------------------------------------------------------------- */
.legal-page { background: var(--bg-page); }
.legal { max-width: 760px; padding-block: var(--space-2xl); }
.legal h1 { font-size: var(--fs-2xl); }
.legal h2 { font-size: var(--fs-lg); margin-top: var(--space-xl); }
.legal p { color: var(--text-body); }
.legal__updated { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.legal-footer { padding-block: var(--space-lg); color: var(--text-muted); font-size: var(--fs-xs); border-top: 1px solid var(--border-subtle); }

.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-sm); padding: var(--space-xl); }
.not-found__eyebrow { font-family: var(--font-heading); font-size: var(--fs-3xl); color: var(--color-green-500); margin: 0; }

/* -------------------------------------------------------------------------
   Scroll-reveal
   ---------------------------------------------------------------------- */
/* Only hide reveal targets when JS is confirmed present (see no-fouc.js) —
   otherwise a no-JS visitor would never see this content. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease var(--delay, 0ms), transform 640ms ease var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   Reduced motion: disable movement, keep all content instantly visible
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .node-net__path, .node-net__nodes circle { animation: none; }
}

/* =========================================================================
   Responsive breakpoints
   ========================================================================= */

/* Large desktop */
@media (min-width: 1440px) {
    .container { max-width: 1360px; }
}

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .card-grid--modules, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .section { padding-block: var(--space-xl); }
    .card-grid--2, .card-grid--3, .card-grid--4, .card-grid--modules { grid-template-columns: 1fr; }
    .sources-diagram { grid-template-columns: 1fr; text-align: center; }
    .sources-diagram__arrow { transform: rotate(90deg); width: 60px; margin-inline: auto; }
    .flow-diagram { flex-direction: column; }
    .flow-diagram__connector { transform: rotate(90deg); width: 50px; }
    .pillars { grid-template-columns: 1fr; }
    .impact-panel__list, .development__points, .check-list { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .steps__item { grid-template-columns: 40px 1fr; }
}

/* Mobile */
@media (max-width: 480px) {
    :root { --navbar-h: 68px; }
    .hero { padding-top: calc(var(--navbar-h) + var(--space-lg)); padding-bottom: var(--space-xl); }
    .hero__title { max-width: none; }
    .hero__actions .button { width: 100%; }
    .dashboard-mock__grid { grid-template-columns: 1fr; }
    .early-access__form-wrap { padding: var(--space-md); }
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* Very small devices (320px) */
@media (max-width: 340px) {
    .container { padding-inline: var(--space-sm); }
    .navbar__logo { height: 22px; }
}
