/* =============================================================
   OpenPrem homepage
   Dark, refined, enterprise. Built on a 4px spacing rhythm.
   Visual language: deep panels, faint dividers, accent rings,
   tabular numerals, soft gradients. Restrained motion.
============================================================= */

:root {
    --bg: #0a0a0a;
    --bg-elev-1: #101010;
    --bg-elev-2: #141414;
    --bg-card: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
    --bg-card-soft: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);

    --border: rgba(255, 255, 255, 0.06);
    --border-soft: rgba(255, 255, 255, 0.04);
    --border-hard: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);

    --fg: #f4f4f4;
    --fg-2: rgba(255, 255, 255, 0.78);
    --fg-3: rgba(255, 255, 255, 0.56);
    --fg-4: rgba(255, 255, 255, 0.52);
    --fg-5: rgba(255, 255, 255, 0.22);

    --teal: #4dd0c5;
    --teal-dim: rgba(77, 208, 197, 0.16);
    --lime: #a3e635;
    --orange: #fb923c;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --rose: #f472b6;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-card:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        0 8px 24px -12px rgba(0, 0, 0, 0.6);

    --container: 1200px;

    --font:
        "Public Sans", "Public Sans Fallback", ui-sans-serif, system-ui,
        -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif:
        "Literata", "Literata Fallback", ui-serif, Georgia, Cambria,
        "Times New Roman", serif;
    --font-mono:
        "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 2px solid rgba(244, 244, 244, 0.72);
    --focus-ring-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

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

html {
    scrollbar-gutter: stable;
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/public-sans-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("assets/fonts/literata-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Literata";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/literata-italic-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Public Sans Fallback";
    src: local("Arial");
    size-adjust: 104%;
    ascent-override: 94%;
    descent-override: 24%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Literata Fallback";
    src: local("Georgia");
    size-adjust: 99%;
    ascent-override: 93%;
    descent-override: 24%;
    line-gap-override: 0%;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    font-kerning: normal;
    font-optical-sizing: auto;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
}
h1,
h2,
h3 {
    text-wrap: pretty;
}
p {
    text-wrap: pretty;
}

/* =============================================================
   Page background
============================================================= */

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    background: #0a0a0a;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.page-bg__grid {
    display: none;
}

.page-bg__glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
}
.page-bg__glow--teal {
    background: radial-gradient(circle, #4dd0c5 0%, transparent 60%);
    top: -200px;
    left: -150px;
}
.page-bg__glow--violet {
    background: radial-gradient(circle, #8b5cf6 0%, transparent 60%);
    top: 200px;
    right: -200px;
}

.page-bg__noise {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =============================================================
   Nav
============================================================= */

.nav {
    --nav-edge: max(24px, calc((100vw - var(--container)) / 2 + 32px));
    position: sticky;
    top: 0;
    z-index: 50;
    will-change: transform;
    display: grid;
    /* 1fr auto 1fr keeps the centered nav links visually anchored
     even when the right-hand CTA's text width changes between
     pages (e.g. "Request a demo" vs "Open roles"). Without this,
     the middle column reflows on each navigation, causing CLS. */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    width: 100%;
    padding: 20px var(--nav-edge);
    backdrop-filter: blur(10px);
    background:
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.92),
            rgba(10, 10, 10, 0.86)
        ),
        linear-gradient(
            90deg,
            rgba(77, 208, 197, 0.04),
            transparent 24%,
            transparent 76%,
            rgba(77, 208, 197, 0.025)
        );
    border-bottom: 1px solid var(--border-soft);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    min-height: 44px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    justify-self: start;
}
.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--fg);
}

@media (max-width: 768px) {
    .nav {
        grid-template-columns: auto 1fr auto;
    }
    .nav__toggle {
        display: flex;
        order: -1;
    }
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav__links.is-open {
        display: flex;
    }
    .nav__cta a:last-child {
        display: none;
    }
    .nav__github-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        transition: background 170ms var(--ease-out-quart);
        margin-left: auto;
        flex-shrink: 0;
    }
    .nav__github-mobile:hover,
    .nav__github-mobile:focus-visible {
        background: rgba(255, 255, 255, 0.1);
    }
    .nav__github-mobile:focus-visible {
        outline: var(--focus-ring);
        outline-offset: 2px;
    }
    .footer__cols {
        flex-direction: column;
    }
}

.nav__github-mobile {
    display: none;
}

.nav__logo {
    height: 32px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
    transition:
        transform 220ms var(--ease-out-quart),
        filter 3s var(--ease-out-quart);
}

.nav__wordmark {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.nav__links {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 0.875rem;
    color: var(--fg-3);
}

.nav__links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transition: color 170ms var(--ease-out-quart);
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 4px;
    height: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) scale(0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    transition:
        opacity 170ms var(--ease-out-quart),
        transform 220ms var(--ease-out-expo),
        box-shadow 220ms var(--ease-out-quart);
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: var(--fg);
}

.nav__links a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 8px;
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

/* =============================================================
   Buttons
============================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

.btn--lg {
    padding: 12px 22px;
    font-size: 14.5px;
    border-radius: 999px;
    min-height: 44px;
}

/* Primary buttons use a near-white surface tinted very slightly
   toward the brand teal hue (oklch chroma 0.005). Pure white
   reads cold against the dark page; the tint keeps it warm. */
.btn--primary {
    background: #e7eeee
        linear-gradient(
            180deg,
            oklch(0.97 0.005 180) 0%,
            oklch(0.86 0.005 180) 100%
        );
    color: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 12px 24px -16px rgba(255, 255, 255, 0.25);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-1px);
    background: #f2f6f6
        linear-gradient(
            180deg,
            oklch(0.99 0.005 180) 0%,
            oklch(0.91 0.005 180) 100%
        );
}

.btn--primary:focus-visible,
.btn--ghost:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: var(--focus-ring-shadow);
}

.btn--ghost {
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hard);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
    color: var(--fg);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

/* Universal focus ring for keyboard users */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =============================================================
   Eyebrow + section heads
============================================================= */

.eyebrow {
    display: none;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 2px rgba(77, 208, 197, 0.18);
}
.eyebrow__dot--blue {
    background: var(--blue);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}
.eyebrow__dot--violet {
    background: var(--violet);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.18);
}
.eyebrow__dot--lime {
    background: var(--lime);
    box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.18);
}
.eyebrow__dot--rose {
    background: var(--rose);
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.18);
}

.section-head {
    max-width: 740px;
}
.section-head--centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.022em;
    font-weight: 600;
    text-wrap: pretty;
}

.section-sub {
    margin: 0;
    font-size: 18px;
    color: var(--fg-3);
}
.section-head--centered .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================
   Hero
============================================================= */

.hero {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.hero__copy {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px;
}

.hero__title {
    margin: 22px 0 22px;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--fg);
    text-wrap: pretty;
}

/* Second line of the headline uses lower opacity to step down
   the hierarchy. Same color, less weight on the eye. */
.hero__title-accent {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
}

.hero__sub {
    margin: 0 0 32px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--fg-3);
}

.hero__actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 13px;
    color: var(--fg-3);
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-4);
}
.dot--lime {
    background: var(--lime);
    box-shadow: 0 0 8px rgba(163, 230, 53, 0.5);
}
.dot--orange {
    background: var(--orange);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.5);
}
.dot--violet {
    background: var(--violet);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

/* =============================================================
   Hero stage cards
============================================================= */

.hero__stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stage-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(6px);
}

.stage-card--arch {
    width: 380px;
    top: 20px;
    right: 0;
    z-index: 2;
    transform: rotate(-1.5deg);
    padding: 22px 22px 18px;
}

.stage-card--spec {
    width: 360px;
    bottom: 0;
    left: -10px;
    z-index: 1;
    transform: rotate(2deg);
    overflow: hidden;
}

.stage-card__head {
    margin-bottom: 20px;
}
.stage-card__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.stage-card__sub {
    margin: 0;
    font-size: 13px;
    color: var(--fg-3);
}

.stage-card__filebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
.stage-card__file {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-4);
}
.stage-card__code {
    margin: 0;
    padding: 16px 20px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--fg-2);
    white-space: pre;
    overflow-x: auto;
}

/* mini architecture diagram inside the hero stage card */
.network-viz {
    height: 220px;
    width: 100%;
    position: relative;
}

.network-viz__svg {
    width: 100%;
    height: 100%;
}

.network-viz__lines {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 0.5;
}

.network-viz__node {
    fill: var(--teal);
}

.network-viz__packet {
    fill: #fff;
    filter: drop-shadow(0 0 6px #fff);
}

@keyframes node-pulse {
    0% {
        fill: var(--teal);
        transform: scale(1);
    }
    50% {
        fill: var(--rose);
        transform: scale(1.5);
    }
    100% {
        fill: var(--blue);
        transform: scale(1);
    }
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-hard);
    color: var(--fg-2);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
}
.card-cta:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-strong);
    color: var(--fg);
}

/* shared ring accent */
.ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--fg-4);
    flex-shrink: 0;
    display: inline-block;
}
.ring--lime {
    border-color: var(--lime);
}
.ring--orange {
    border-color: var(--orange);
}
.ring--blue {
    border-color: var(--blue);
}
.ring--rose {
    border-color: var(--rose);
}

/* SOL / code coloring (shared) */
.spec__dots {
    display: flex;
    gap: 6px;
}
.spec__dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.spec__dots i:first-child {
    background: rgba(251, 146, 60, 0.6);
}
.spec__dots i:nth-child(2) {
    background: rgba(163, 230, 53, 0.6);
}
.spec__dots i:nth-child(3) {
    background: rgba(96, 165, 250, 0.6);
}

.c-key {
    color: #c084fc;
}
.c-str {
    color: #86efac;
}
.c-fn {
    color: #7dd3fc;
}
.c-num {
    color: #fbbf24;
}
.c-op {
    color: #f87171;
}
.c-cmt {
    color: var(--fg-4);
    font-style: italic;
}

/* =============================================================
   The problem
============================================================= */

.problem {
    position: relative;
    padding: 80px 32px 64px;
    border-top: 1px solid var(--border-soft);
}

.problem__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.problem__inner > .section-title {
    max-width: 680px;
}
.problem__inner > .section-sub {
    max-width: 64ch;
}

.problem__compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

/* Emphasis paragraph that introduces the OpenPrem position right
   after the section-sub. Kept as a quiet tint instead of a side
   stripe so it reads as prose, not an alert. */
.problem__sub-emph {
    max-width: 64ch;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(77, 208, 197, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(77, 208, 197, 0.045);
    color: var(--fg-2);
    font-size: 15.5px;
}

.problem__col--good {
    background:
        radial-gradient(
            circle at 50% 46%,
            rgba(77, 208, 197, 0.08),
            transparent 56%
        ),
        linear-gradient(
            180deg,
            rgba(77, 208, 197, 0.05) 0%,
            rgba(77, 208, 197, 0) 64%
        ),
        var(--bg-card);
    border-color: rgba(77, 208, 197, 0.28);
}

.problem__layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 960px) {
    .problem__layout {
        flex-direction: column;
    }
}

/* Data-plane / control-plane split list inside the OpenPrem column. */
.problem__split {
    list-style: none;
    padding: 16px 0 0;
    border-top: 1px solid rgba(77, 208, 197, 0.18);
    display: grid;
    gap: 12px;
}
.problem__split li {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
}
.solution__split-key {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: green;
}
.problem__split-key {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: red;
}
.problem__split-val {
    font-size: 13px;
    line-height: 1.5;
    color: var(--fg-2);
}

@media (min-width: 721px) {
    .problem__compare {
        grid-template-columns: 1fr 1fr;
    }
    .problem__col--good {
        grid-column: 1 / -1;
    }
}

.problem__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.problem__col-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.problem__col-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.problem__col p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--fg-3);
}

.problem__chip {
    display: none;
}
.problem__chip--rose {
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-hard);
}
.problem__chip--teal {
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}

.mesh-diagram {
    align-items: center;
    height: 210px;
    display: block;
    margin-top: 22px;
    overflow: visible;
    color: var(--rose);
    shape-rendering: geometricPrecision;
    text-align: center;
}

.mesh-diagram.mesh-diagram--openprem {
    height: 230px;
}

.mesh-diagram path {
    vector-effect: non-scaling-stroke;
}

.mesh-diagram__spokes,
.mesh-diagram__mesh-lines {
    stroke: rgba(244, 114, 182, 0.46);
    stroke-width: 1.35;
    stroke-linecap: round;
    fill: none;
}

.mesh-diagram__mesh-lines--faint {
    stroke: rgba(244, 114, 182, 0.22);
    stroke-width: 1;
}

.mesh-diagram__nodes {
    fill: rgba(244, 114, 182, 0.12);
    stroke: rgba(244, 114, 182, 0.68);
    stroke-width: 1.15;
}

.mesh-diagram__hub circle {
    fill: rgba(244, 114, 182, 0.2);
    stroke: rgba(244, 114, 182, 0.86);
    stroke-width: 1.4;
    filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.18));
}

.mesh-diagram__hub text,
.mesh-diagram__control text,
.mesh-diagram__caption,
.mesh-diagram__plane-label {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    dominant-baseline: middle;
    text-anchor: middle;
    text-rendering: geometricPrecision;
    text-align: center;
}

.mesh-diagram__hub text {
    fill: rgba(255, 216, 235, 0.92);
    font-size: 7.5px;
    font-weight: 700;
}

.mesh-diagram__caption {
    fill: rgba(244, 190, 218, 0.72);
    font-size: 8px;
}

.mesh-diagram__control rect {
    fill: rgba(77, 208, 197, 0.14);
    stroke: rgba(77, 208, 197, 0.88);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 12px rgba(77, 208, 197, 0.16));
}

.mesh-diagram__control text {
    fill: rgba(185, 255, 248, 0.94);
    font-size: 8px;
    font-weight: 700;
}

.mesh-diagram__governance {
    stroke: rgba(77, 208, 197, 0.26);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    stroke-linecap: round;
    fill: none;
}

.mesh-diagram__data-plane {
    stroke: rgba(77, 208, 197, 0.62);
    stroke-width: 1.35;
    stroke-linecap: round;
    fill: none;
}

.mesh-diagram__data-plane-soft {
    stroke: rgba(77, 208, 197, 0.28);
    stroke-dasharray: 2 5;
}

.mesh-diagram__nodes--teal {
    fill: rgba(77, 208, 197, 0.12);
    stroke: rgba(77, 208, 197, 0.72);
}

.mesh-diagram__plane-label {
    fill: rgba(77, 208, 197, 0.52);
    font-size: 7.5px;
}

.mesh-diagram__caption--teal {
    fill: rgba(163, 237, 229, 0.7);
}

/* =============================================================
   SECURITY (home-page trust model)
============================================================= */

.security {
    max-width: var(--container);
    margin: 50px auto;
    padding: 80px 32px 36px;
}

.security__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px 56px;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid rgba(77, 208, 197, 0.22);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            640px 320px at 12% 0%,
            rgba(77, 208, 197, 0.1),
            transparent 68%
        ),
        linear-gradient(
            180deg,
            rgba(77, 208, 197, 0.035),
            rgba(255, 255, 255, 0.008)
        ),
        var(--bg-card);
    overflow: hidden;
}

@media (min-width: 960px) {
    .security__inner {
        grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
    }
}

.security__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            to right,
            rgba(77, 208, 197, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(77, 208, 197, 0.035) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 74%);
    pointer-events: none;
}

.security__copy,
.security__model,
.security__claims {
    position: relative;
}

.security__copy .section-title {
    margin-bottom: 16px;
}

.security__model {
    align-self: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(5, 9, 9, 0.54);
}

.security__model-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--fg-4);
}

.security__model-head span:first-child {
    color: var(--fg-2);
}

.security__steps {
    list-style: none;
    margin: 0;
    padding: 2px 0;
}

.security__steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.security__steps li:last-child {
    border-bottom: 0;
}

.security__step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--fg-4);
    padding-top: 3px;
}

.security__steps h3,
.security__claims h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.security__steps p,
.security__claims p {
    margin: 0;
    font-size: 16px;
    line-height: 1.58;
    color: var(--fg-3);
}

.security__claims {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(77, 208, 197, 0.16);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

.open-source__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 900px) {
    .open-source__grid {
        grid-template-columns: 1fr;
    }
}

.security__claims li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    align-items: start;
}

.security__claims svg {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--teal);
    opacity: 0.9;
}

/* =============================================================
   Architecture
============================================================= */

.arch {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px;
}

.arch__board {
    position: relative;
    margin: 16px 0 56px;
    padding: 40px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(77, 208, 197, 0.05),
            transparent 55%
        ),
        var(--bg-elev-1);
    overflow: hidden;
}

.arch__board::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.022) 1px,
            transparent 1px
        );
    background-size: 32px 32px;
    mask-image: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        #0a0a0a 30%,
        transparent 80%
    );
    pointer-events: none;
}

/* Generated node graphs. node-graphs.js measures the real node boxes
   and writes SVG paths that terminate on the node boundaries. */
.arch__board[data-node-graph] {
    min-height: 466px;
    padding: 0;
}

.node-graph {
    position: relative;
    isolation: isolate;
}

.node-graph__svg,
.node-graph__nodes {
    position: absolute;
    inset: 0;
}

.node-graph__svg {
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.node-graph__nodes {
    z-index: 3;
}

.node-graph__node {
    --node-border: var(--border-hard);
    --node-glow: rgba(255, 255, 255, 0.04);
    position: absolute;
    left: var(--node-x);
    top: var(--node-y);
    display: inline-grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 180px;
    padding: 12px 16px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--node-border);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(14, 14, 14, 0.98);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 42px -28px rgba(0, 0, 0, 0.86),
        0 0 24px -18px var(--node-glow);
}

.node-graph__node[data-kind="routing"] {
    min-width: 270px;
    padding: 14px 20px;
}

.node-graph__node[data-kind="app"] {
    min-width: 180px;
    opacity: 0.9;
}

.node-graph__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.node-graph__icon img {
    width: 20px;
    height: 20px;
}

.node-graph__icon svg {
    width: 18px;
    height: 18px;
}

.node-graph__label {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.node-graph__meta {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: var(--fg-4);
}

.node-graph__edge-path {
    vector-effect: non-scaling-stroke;
}

.node-graph__edge-path {
    --edge-color: rgba(255, 255, 255, 0.24);
    stroke: var(--edge-color);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-dasharray: var(--edge-length, 320);
    stroke-dashoffset: var(--edge-length, 320);
    opacity: 0.72;
    transition:
        stroke-dashoffset 980ms var(--ease-out-quart),
        opacity 420ms var(--ease-out-quart);
}

.node-graph.in-view .node-graph__edge-path {
    stroke-dashoffset: 0;
}

.node-graph__edge-path[data-kind="peer"] {
    stroke: var(--edge-color);
    stroke-width: 1;
    stroke-dasharray: 4 6;
    stroke-dashoffset: 0;
    opacity: 0.44;
}

.node-graph__edge-path[data-direction="receive"] {
    opacity: 0.46;
    stroke-dasharray: 7 7;
}

.node-graph__edge-path[data-direction="transmit"] {
    opacity: 0.66;
}

.node-graph__packets {
    opacity: 0;
    transition: opacity 360ms var(--ease-out-quart) 260ms;
}

.node-graph.in-view .node-graph__packets {
    opacity: 1;
}

.node-graph__packet {
    --packet-color: rgba(77, 208, 197, 0.95);
    filter: drop-shadow(0 0 8px var(--packet-color));
}

.node-graph__packet-dot,
.node-graph__packet-tail {
    fill: var(--packet-color);
}

.node-graph__packet-tail {
    opacity: 0.28;
}

.node-graph__node[data-tone="blue"] {
    --node-border: rgba(96, 165, 250, 0.34);
    --node-glow: rgba(96, 165, 250, 0.28);
}
.node-graph__node[data-tone="orange"] {
    --node-border: rgba(251, 146, 60, 0.34);
    --node-glow: rgba(251, 146, 60, 0.28);
}
.node-graph__node[data-tone="rose"] {
    --node-border: rgba(244, 114, 182, 0.34);
    --node-glow: rgba(244, 114, 182, 0.28);
}
.node-graph__node[data-tone="teal"],
.node-graph__node[data-kind="routing"] {
    --node-border: rgba(77, 208, 197, 0.32);
    --node-glow: rgba(77, 208, 197, 0.26);
}

.node-graph__node[data-tone="blue"] .node-graph__icon,
.node-graph__edge-path[data-tone="blue"],
.node-graph__packet[data-tone="blue"] {
    --edge-color: rgba(96, 165, 250, 0.52);
    --packet-color: rgba(96, 165, 250, 0.96);
    color: var(--blue);
}

.node-graph__node[data-tone="orange"] .node-graph__icon,
.node-graph__edge-path[data-tone="orange"],
.node-graph__packet[data-tone="orange"] {
    --edge-color: rgba(251, 146, 60, 0.52);
    --packet-color: rgba(251, 146, 60, 0.96);
    color: var(--orange);
}

.node-graph__node[data-tone="rose"] .node-graph__icon,
.node-graph__edge-path[data-tone="rose"],
.node-graph__packet[data-tone="rose"] {
    --edge-color: rgba(244, 114, 182, 0.52);
    --packet-color: rgba(244, 114, 182, 0.96);
    color: var(--rose);
}

.node-graph__node[data-tone="teal"] .node-graph__icon,
.node-graph__edge-path[data-tone="teal"],
.node-graph__packet[data-tone="teal"] {
    --edge-color: rgba(77, 208, 197, 0.54);
    --packet-color: rgba(77, 208, 197, 0.96);
    color: var(--teal);
}

/* SVG overlay is horizontally inset to match the inner content
   area of the board (board padding is 32px each side). That way
   the SVG's 0..800 x-range and the tier's grid columns share the
   same coordinate span, and line endpoints stay locked to node
   centers regardless of board width. */
.arch__wires {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 32px;
    right: 32px;
    width: auto;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.arch__tier {
    position: relative;
    z-index: 2;
}

.arch__tier--routing {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

/* Both lower tiers use a 3-column grid with center-aligned items
   so each node's center lands at exactly 16.67% / 50% / 83.33%
   of the tier width. This matches SVG x = 133, 400, 667 in the
   0..800 viewBox. */
.arch__tier--controllers,
.arch__tier--apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 16px;
}

.arch__tier--controllers {
    margin: 0 0 60px;
}
.arch__tier--apps {
    margin: 0;
}

.arch__rn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-card);
}

.arch__rn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}
.arch__rn-icon img {
    width: 22px;
    height: 22px;
}

.arch__rn-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.arch__rn-sub {
    font-size: 11.5px;
    color: var(--fg-4);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.arch__ctrl {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.arch__ctrl-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.arch__ctrl-meta {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--fg-4);
    font-family: var(--font-mono);
}

.arch__ctrl--blue {
    border-color: rgba(96, 165, 250, 0.3);
}
.arch__ctrl--orange {
    border-color: rgba(251, 146, 60, 0.3);
}
.arch__ctrl--rose {
    border-color: rgba(244, 114, 182, 0.3);
}

.arch__app {
    flex: 0 0 auto;
    width: 180px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    text-align: center;
}

.arch__app-glyph {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid var(--border);
    position: relative;
}
.arch__app-glyph::before,
.arch__app-glyph::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
}
.arch__app-glyph::before {
    top: 9px;
    left: 7px;
    right: 7px;
    height: 2px;
}
.arch__app-glyph::after {
    top: 15px;
    left: 7px;
    right: 12px;
    height: 2px;
}

.arch__app-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-2);
}
.arch__app-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--fg-4);
    font-family: var(--font-mono);
}

/* arch legend cards (3-up) */
.arch__legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.arch__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.arch__card:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.arch__card-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--fg-4);
}

.arch__card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.arch__card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-3);
}

.arch__card-bullets {
    list-style: none;
    margin: auto 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-3);
}
.arch__card-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(77, 208, 197, 0.55);
    position: relative;
    flex-shrink: 0;
}
.check::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 3px;
    height: 6px;
    border: solid var(--teal);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* =============================================================
   Hospital case study
============================================================= */

.hospital {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px;
}

.hospital__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: stretch;
}

.hospital__steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.hospital__step {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.hospital__step:hover {
    border-color: var(--border-hard);
}

.hospital__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
}

.hospital__step h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hospital__step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg-3);
}

.hospital__spec {
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.hospital__spec-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.hospital__spec-file {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-4);
}

.hospital__spec-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}

.hospital__spec-code {
    margin: 0;
    flex: 1;
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--fg-2);
    overflow-x: auto;
    tab-size: 2;
    white-space: pre;
}

/* hospital outcomes */
.hospital__outcomes {
    margin: 48px auto 8px;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px;
    border: 1px dashed var(--border-hard);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.012);
}

.outcome {
    text-align: center;
}

.outcome__num {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
}

.outcome__placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    font-feature-settings: "tnum";
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 1px;
}

.outcome__label {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--fg-3);
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hospital__placeholder-note {
    margin: 16px 0 0;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--fg-4);
    font-style: italic;
}

/* =============================================================
   Borrow / data integrity
============================================================= */

.borrow {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.borrow__bullets {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--fg-2);
}
.borrow__bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.borrow__viz {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.borrow__state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.borrow__state:hover {
    border-color: var(--border-hard);
}

.borrow__state-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.borrow__state-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}
.borrow__state-pill--lime {
    color: var(--fg-3);
}
.borrow__state-pill--orange {
    color: var(--fg-3);
}
.borrow__state-pill--blue {
    color: var(--fg-3);
}

.borrow__state-meta {
    font-size: 11.5px;
    color: var(--fg-4);
    font-family: var(--font-mono);
}

.borrow__state-body p {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--fg-3);
    line-height: 1.55;
}

.borrow__readers {
    display: flex;
    gap: 8px;
}

.borrow__reader {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hard);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2);
    font-family: var(--font-mono);
}

.borrow__reader--writer {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.4);
}

.borrow__reader--locked {
    color: var(--fg-4);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}
.borrow__reader--locked::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-4);
}

.borrow__audit {
    list-style: none;
    margin: 0;
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.borrow__audit li {
    display: flex;
    gap: 10px;
}

.borrow__audit span {
    color: var(--fg-4);
    font-variant-numeric: tabular-nums;
}

/* =============================================================
   SDK
============================================================= */

.sdk {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px;
}

.sdk__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sdk__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
}
.sdk__card:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.sdk__card-step {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-3);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.sdk__card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sdk__card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-3);
}

/* =============================================================
   CTA
============================================================= */

.open-source {
    padding: 80px 32px;
    max-width: var(--container);
    margin: 0 auto;
}

.open-source__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem auto 0;
}

.open-source__card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.open-source__card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.open-source__card p {
    color: var(--fg-3);
    line-height: 1.6;
    font-size: 17px;
}

.cta {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 32px 96px;
}

.cta__inner {
    position: relative;
    text-align: center;
    padding: 72px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-hard);
    background:
        radial-gradient(
            800px 300px at 50% 0%,
            rgba(77, 208, 197, 0.1),
            transparent 70%
        ),
        radial-gradient(
            600px 300px at 50% 100%,
            rgba(167, 139, 250, 0.08),
            transparent 70%
        ),
        var(--bg-elev-1);
    overflow: hidden;
}

.cta__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        #0a0a0a 30%,
        transparent 75%
    );
    pointer-events: none;
}

.cta__title {
    position: relative;
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
    text-wrap: pretty;
}

.cta__sub {
    position: relative;
    max-width: 540px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--fg-2);
}

.cta__actions {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* =============================================================
   Footer
============================================================= */

.footer {
    margin: 0 auto;
    padding: 48px 32px 64px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(            to bottom,            rgba(10, 10, 10, 0.92),            rgba(10, 10, 10, 0.66)        ),        linear-gradient(            90deg,            rgba(77, 208, 197, 0.04),            transparent 24%,            transparent 76%,            rgba(77, 208, 197, 0.025)        );
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    width: 100%;
}

.footer__cols h2 {
    margin: 0 0 12px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-4);
    font-weight: 500;
}

.footer__cols a {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: var(--fg-3);
    min-height: 44px;
    padding: 8px 0;
}
.footer__cols a:hover {
    color: var(--fg);
}

.footer__legal {
    grid-column: 1 / -1;
    margin: 24px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--fg-4);
    text-align: center;
}

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

@media (max-width: 1080px) {
    .arch__legend {
        grid-template-columns: 1fr;
    }
    .sdk__grid {
        grid-template-columns: 1fr;
    }
    .problem__compare {
        grid-template-columns: 1fr;
    }
    .problem__split li {
        grid-template-columns: 96px 1fr;
    }
    .hospital__outcomes {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .problem__compare {
        grid-template-columns: 1fr;
    }
    .problem__col {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 960px) {
    .nav {
        --nav-edge: 24px;
        grid-template-columns: 1fr auto;
    }
    .nav__links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 64px 32px 48px;
    }
    .hero__stage {
        height: 520px;
    }
    .stage-card--arch {
        right: 0;
        width: min(380px, 92%);
    }
    .stage-card--spec {
        left: 0;
        width: min(360px, 86%);
    }

    .arch__board {
        padding: 32px 20px;
    }
    .arch__board[data-node-graph] {
        min-height: 500px;
        padding: 0;
    }
    .node-graph__node {
        min-width: 156px;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }
    .node-graph__node[data-kind="routing"] {
        min-width: 232px;
    }
    .node-graph__node[data-kind="app"] {
        min-width: 150px;
    }
    .node-graph__icon {
        width: 30px;
        height: 30px;
    }
    .node-graph__label {
        font-size: 13px;
    }
    .node-graph__meta {
        font-size: 10.75px;
    }
    .arch__wires {
        left: 20px;
        right: 20px;
    }
    .arch__ctrl {
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
    }
    .arch__app {
        width: 100%;
        padding: 12px;
    }

    .hospital__grid {
        grid-template-columns: 1fr;
    }
    .hospital--inline .hospital__steps ol {
        grid-template-columns: 1fr;
    }
    .borrow {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav {
        --nav-edge: 20px;
        display: flex;
        gap: 12px;
        padding-block: 16px;
    }
    .nav__brand {
        flex: 0 1 auto;
        min-width: 0;
    }
    .nav__cta {
        flex: 0 0 auto;
        gap: 0;
        min-width: 0;
        display: contents;
    }
    .nav__cta .btn--ghost {
        display: none;
    }
    .nav__cta .btn--primary {
        width: 132px;
        max-width: 132px;
        padding-inline: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: none;
    }
    .nav__cta .btn--primary svg {
        display: none;
    }

    .hero__title {
        font-size: 38px;
    }
    .section-title {
        font-size: 28px;
    }

    .arch__board[data-node-graph] {
        min-height: 640px;
    }
    .node-graph__node {
        left: var(--node-mobile-x, var(--node-x));
        top: var(--node-mobile-y, var(--node-y));
        min-width: 138px;
        max-width: 150px;
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .node-graph__node[data-kind="routing"] {
        min-width: 210px;
        max-width: 230px;
        grid-template-columns: 30px minmax(0, 1fr);
    }
    .node-graph__node[data-kind="app"] {
        min-width: 132px;
    }
    .node-graph__icon {
        width: 28px;
        height: 28px;
    }
    .node-graph__meta {
        display: none;
    }

    .arch__tier--controllers,
    .arch__tier--apps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    /* On very narrow screens the SVG wiring no longer maps to a
     3-column layout. Hide it; the legend cards below the board
     already restate every connection in words. */
    .arch__wires {
        display: none;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
    }
    .stage-card--arch {
        width: 92%;
        right: 4%;
        transform: rotate(-1deg);
    }
    .stage-card--spec {
        width: 86%;
        left: 4%;
        transform: rotate(1.2deg);
    }
}

/* =============================================================
   ANIMATION SYSTEM
   --------------------------------------------------------------
   Three layers of motion:
   1. Page-load entrance (hero, stage cards, mini-arch lines)
      Plays unconditionally on load via @keyframes.
   2. Scroll-triggered reveals (data-reveal, data-reveal-stagger)
      JS adds .in-view; CSS handles the transition.
   3. Ambient signals (eyebrow dot pulse, peer dash march,
      writer pulse) loop forever to suggest a live system.

   Strict rules: only `transform`, `opacity`, and SVG stroke
   properties animate. Durations stay under 1.2s. Easing is
   ease-out family (no bounce/elastic).
============================================================= */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stage-arch-in {
    from {
        opacity: 0;
        transform: translateY(28px) rotate(-3.5deg) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-1.5deg) scale(1);
    }
}

@keyframes stage-spec-in {
    from {
        opacity: 0;
        transform: translateY(28px) rotate(4.5deg) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(2deg) scale(1);
    }
}

@keyframes draw-in {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dash-march-7 {
    to {
        stroke-dashoffset: -7;
    } /* dash 3 + gap 4 = 7 */
}

@keyframes dash-march-5 {
    to {
        stroke-dashoffset: -5;
    } /* dash 2 + gap 3 = 5 */
}

@keyframes peer-fade {
    to {
        opacity: 1;
    }
}

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

@keyframes writer-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.2);
    }
}

/* -------------------------------------------------------------
   Hero entrance: stagger copy, then settle stage cards.
   Tied to load, not to scroll.
------------------------------------------------------------- */

.hero__copy > .eyebrow,
.hero__copy > .hero__title,
.hero__copy > .hero__sub,
.hero__copy > .hero__actions,
.hero__copy > .hero__meta {
    opacity: 0;
    animation: fade-up 700ms var(--ease-out-quart) forwards;
}
.hero__copy > .eyebrow {
    animation-delay: 80ms;
}
.hero__copy > .hero__title {
    animation-delay: 160ms;
}
.hero__copy > .hero__sub {
    animation-delay: 280ms;
}
.hero__copy > .hero__actions {
    animation-delay: 380ms;
}
.hero__copy > .hero__meta {
    animation-delay: 460ms;
}

.stage-card--arch {
    opacity: 0;
    animation: stage-arch-in 900ms var(--ease-out-quart) 520ms forwards;
}
.stage-card--spec {
    opacity: 0;
    animation: stage-spec-in 900ms var(--ease-out-quart) 700ms forwards;
}

/* Mini-arch lines draw themselves in after stage cards arrive.
   The peer dashed lines fade in last and march continuously. */
.mini-arch__paths .curve {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: draw-in 1000ms var(--ease-out-quart) forwards;
}
.mini-arch__paths .curve:nth-child(1) {
    animation-delay: 1000ms;
}
.mini-arch__paths .curve:nth-child(2) {
    animation-delay: 1080ms;
}
.mini-arch__paths .curve:nth-child(3) {
    animation-delay: 1160ms;
}
.mini-arch__paths .curve:nth-child(4) {
    animation-delay: 1280ms;
}
.mini-arch__paths .curve:nth-child(5) {
    animation-delay: 1360ms;
}
.mini-arch__paths .curve:nth-child(6) {
    animation-delay: 1440ms;
}

.mini-arch__paths .peer {
    opacity: 0;
    animation:
        peer-fade 600ms var(--ease-out-quart) 1700ms forwards,
        dash-march-5 700ms linear infinite 1700ms;
}

/* -------------------------------------------------------------
   Scroll reveal system.
------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 650ms var(--ease-out-quart),
        transform 650ms var(--ease-out-quart);
}
[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 600ms var(--ease-out-quart),
        transform 600ms var(--ease-out-quart);
}
[data-reveal-stagger].in-view > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger] > *:nth-child(1) {
    transition-delay: 0ms;
}
[data-reveal-stagger] > *:nth-child(2) {
    transition-delay: 70ms;
}
[data-reveal-stagger] > *:nth-child(3) {
    transition-delay: 140ms;
}
[data-reveal-stagger] > *:nth-child(4) {
    transition-delay: 210ms;
}
[data-reveal-stagger] > *:nth-child(5) {
    transition-delay: 280ms;
}
[data-reveal-stagger] > *:nth-child(6) {
    transition-delay: 350ms;
}
[data-reveal-stagger] > *:nth-child(7) {
    transition-delay: 420ms;
}
[data-reveal-stagger] > *:nth-child(8) {
    transition-delay: 490ms;
}

/* Hospital steps slide in from the left for variety against the
   vertical fade-ups elsewhere. */
.hospital__steps [data-reveal-stagger] > * {
    transform: translateX(-16px);
}
.hospital__steps [data-reveal-stagger].in-view > * {
    transform: translateX(0);
}

/* -------------------------------------------------------------
   Architecture board: wires draw in once the board scrolls into
   view, peer-to-peer dashed lines fade in and march forever.
------------------------------------------------------------- */

.arch__paths .curve {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    transition: stroke-dashoffset 1100ms var(--ease-out-quart);
}
.arch__paths .curve:nth-child(1) {
    transition-delay: 0ms;
}
.arch__paths .curve:nth-child(2) {
    transition-delay: 80ms;
}
.arch__paths .curve:nth-child(3) {
    transition-delay: 160ms;
}
.arch__paths .curve:nth-child(4) {
    transition-delay: 280ms;
}
.arch__paths .curve:nth-child(5) {
    transition-delay: 360ms;
}
.arch__paths .curve:nth-child(6) {
    transition-delay: 440ms;
}

.arch__board.in-view .arch__paths .curve {
    stroke-dashoffset: 0;
}

.arch__paths .peer {
    opacity: 0;
    transition: opacity 600ms var(--ease-out-quart) 900ms;
    animation: dash-march-7 900ms linear infinite;
}
.arch__board.in-view .arch__paths .peer {
    opacity: 1;
}

.arch__dots circle {
    opacity: 0;
    transition: opacity 400ms var(--ease-out-quart) 1300ms;
}
.arch__board.in-view .arch__dots circle {
    opacity: 1;
}

/* -------------------------------------------------------------
   Ambient signals.
------------------------------------------------------------- */

.eyebrow__dot {
    animation: dot-pulse 2.6s var(--ease-out-quart) infinite;
}

.borrow__reader--writer {
    animation: writer-pulse 2.4s ease-in-out infinite;
}

/* -------------------------------------------------------------
   Tactile micro-interactions.
   Buttons compress on press. Card CTAs nudge their arrow.
   Cards lift more crisply. Logo nudges on hover.
------------------------------------------------------------- */

.btn {
    will-change: transform;
}
.btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.btn:hover svg,
.btn:focus-visible svg,
.card-cta:hover svg,
.card-cta:focus-visible svg {
    transform: translateX(3px);
}

/* Card hover refinements */
.arch__card,
.sdk__card,
.hospital__step,
.borrow__state,
.problem__col,
.stage-card {
    will-change: transform;
}

.arch__card:hover,
.sdk__card:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 24px 40px -28px rgba(0, 0, 0, 0.7),
        0 4px 16px -8px rgba(0, 0, 0, 0.5);
}

.hospital__step:hover .hospital__step-num {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-strong);
    transform: scale(1.04);
}
.stage-card--arch:hover {
    transform: rotate(-0.5deg) translateY(-4px);
}
.stage-card--spec:hover {
    transform: rotate(1deg) translateY(-4px);
}

.nav__brand:hover {
    opacity: 0.85;
}
.nav__brand:hover .nav__logo {
    transform: rotate(-0.1deg) scale(1.02);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
}

/* Eyebrow dot pulse pauses on hover so it doesn't fight focus */
.eyebrow:hover .eyebrow__dot {
    animation-play-state: paused;
}

/* -------------------------------------------------------------
   Reduced motion: snap everything to its final state. We keep
   only the smallest possible state transitions so focus rings
   and color shifts still appear, just instantly.
------------------------------------------------------------- */

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

    .hero__copy > * {
        opacity: 1 !important;
        transform: none !important;
    }

    .stage-card--arch,
    .stage-card--spec {
        opacity: 1 !important;
    }
    /* Preserve the resting tilt that the keyframes also end on. */
    .stage-card--arch {
        transform: rotate(-1.5deg);
    }
    .stage-card--spec {
        transform: rotate(2deg);
    }

    .mini-arch__paths .curve,
    .arch__paths .curve {
        stroke-dashoffset: 0 !important;
    }
    .mini-arch__paths .peer,
    .arch__paths .peer {
        opacity: 1 !important;
    }
    .arch__dots circle {
        opacity: 1 !important;
    }

    /* Live view: SVG SMIL <animateMotion> isn't governed by CSS
     animation timing, so hide the moving packets entirely. The
     colored routes and node pulses remain to tell the data
     story as a static diagram. */
    .node-graph__packets {
        display: none;
    }
    .node-graph__edge-path {
        stroke-dashoffset: 0 !important;
    }

    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* In the JS-detected fallback class we apply the same snapping
   without relying on the media query. Useful for browsers that
   advertise reduced motion via JS but not via @media. */
.reduce-motion .hero__copy > *,
.reduce-motion .stage-card--arch,
.reduce-motion .stage-card--spec,
.reduce-motion [data-reveal],
.reduce-motion [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
.reduce-motion .stage-card--arch {
    transform: rotate(-1.5deg) !important;
}
.reduce-motion .stage-card--spec {
    transform: rotate(2deg) !important;
}
.reduce-motion .mini-arch__paths .curve,
.reduce-motion .arch__paths .curve {
    stroke-dashoffset: 0 !important;
    animation: none !important;
}
.reduce-motion .arch__paths .peer,
.reduce-motion .mini-arch__paths .peer {
    opacity: 1 !important;
    animation: none !important;
}
.reduce-motion .node-graph__packets {
    display: none !important;
}
.reduce-motion .node-graph__edge-path {
    stroke-dashoffset: 0 !important;
    animation: none !important;
}
.reduce-motion .eyebrow__dot,
.reduce-motion .borrow__reader--writer {
    animation: none !important;
}

/* =============================================================
   ICONS (Nucleo, curated)
   The sprite is inlined at the top of <body>. Each <symbol>
   uses currentColor for strokes and fills, so we color icons
   by setting `color` on the consuming <svg> or its parent.

   Two consumption patterns:

     1. <svg class="icon icon--meta"><use href="#i-foo"/></svg>
        Standalone HTML icon. Sized via CSS width/height.

     2. <use class="node__icon" href="#i-foo" x y width height/>
        Inline within an existing <svg>. Sized by SVG attrs.
   ============================================================= */

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    vertical-align: -0.15em;
    /* Nucleo authors at stroke-width=2 on a 24-grid, which reads
     thick at small target sizes. CSS slims it down to a hairline
     when icons are 16px or smaller. */
    stroke-width: 1.6;
    pointer-events: none;
}

/* ---------- hero meta row ---------- */

.icon--meta {
    width: 14px;
    height: 14px;
    color: var(--fg-3);
    /* Slimmer stroke at small sizes; the original 2px reads chunky
     at 14px. */
    stroke-width: 1.5;
}
.hero__meta-item:hover .icon--meta {
    color: var(--fg-2);
}

/* The hospital walkthrough swap created markup we reverted. The
   `dot--lime/orange/violet` rules above are now unused but kept
   as utilities; they don't ship to any visible element today. */

/* ---------- live-view topology nodes ---------- */

/* SVG <use> inherits `color` from CSS, and our symbols stroke
   with currentColor. Each node class drives its icon hue. */
.node__icon {
    color: rgba(255, 255, 255, 0.78);
    /* Drop the chunky 2px stroke down a notch so the icons sit
     visually equal with the 1px node border + small text. */
    stroke-width: 1.7;
}

.node--rn .node__icon {
    color: rgba(255, 255, 255, 0.92);
}
.node--blue .node__icon {
    color: var(--blue);
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.35));
}
.node--orange .node__icon {
    color: var(--orange);
    filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.35));
}
.node--rose .node__icon {
    color: var(--rose);
    filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.35));
}

/* App-level data-type accents tie each app's identity to the
   color of the data it produces or owns. */
.node--app-cyan .node__icon {
    color: #5eead4;
    filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.4));
}
.node--app-lime .node__icon {
    color: var(--lime);
    filter: drop-shadow(0 0 4px rgba(163, 230, 53, 0.4));
}
.node--app-rose .node__icon {
    color: var(--rose);
    filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.4));
}

@media (prefers-reduced-motion: reduce) {
    .icon--meta {
        transition: none;
    }
}

/* Grid styling */
.post__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.post__body th, .post__body td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    text-align: left;
}
.post__body th {
    background: rgba(255, 255, 255, 0.05);
}
.post__body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.team-intro__animation {
    margin: 40px 0;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.mountain-animation {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: crazy-animation 15s infinite linear;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base layer - now also shifts shape */
.mountain-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    animation: shape-shift 12s infinite alternate, pulse-size 5s infinite alternate;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Dynamic lines spawning - now also shifts shape */
.mountain-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.1) 20px, rgba(255,255,255,0.1) 40px);
    animation: line-spit 4s infinite linear, shape-shift 12s infinite alternate;
}

/* Extra layers for complexity - added smooth transition/fade */
.mountain-animation span {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: shape-shift 12s infinite alternate, random-color 5s infinite alternate, fade-pulse 4s infinite ease-in-out;
    transform: translateZ(var(--z));
    border: 1px solid rgba(255,255,255,0.2);
    transition: all .7s ease;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.3; transform: translateZ(var(--z)) scale(0.9); }
    50% { opacity: 1; transform: translateZ(calc(var(--z) * 1.5)) scale(1.1); }
}

/* Synchronize shape-shifting with the 15s rotation cycle */
@keyframes shape-shift {
    /* 0s (0%) - Front view */
    0%, 22% { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
    /* 3.75s (25%) - Side view (transition here) */
    32%, 70% { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
    /* 7.5s (50%) - Back view (transition here) */
    85%, 100% { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
    /* 11.25s (75%) - Side view (transition here) */

}

/* Match the duration to the rotation cycle (15s) */
.mountain-animation::before,
.mountain-animation::after,
.mountain-animation span {
    animation-duration: 15s !important;
}

@keyframes pulse-size {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.2); }
}

@keyframes line-spit {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes random-color {
    0% { background: hsl(0, 0%, 50%); }
    50% { background: hsl(180, 100%, 50%); }
    100% { background: hsl(360, 0%, 80%); }
}

@keyframes crazy-animation {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(20deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}


/* Active nav link, when any page chooses to add [aria-current]. */
.nav__links a[aria-current="page"] {
    color: var(--fg);
}
.nav__links a[aria-current="page"]::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    box-shadow: none;
}

/* =============================================================
   CORPORATE HERO (home variant)
   --------------------------------------------------------------
   On the home, the hero's right column stacks two cards
   vertically instead of layering them in absolute positioning:
     1. .stage-card--ledger    ROI numbers, the "stat row"
     2. .stage-card--mini-arch the "one diagram tease"
   The earlier .stage-card--arch / --spec variants stay defined
   above (for backward reference) but aren't used on this page.
============================================================= */

.hero__stage--corp {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero__stage--corp .stage-card {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
    padding: 22px;
}

/* Ledger: the placeholder-friendly ROI numbers in the hero. */
.stage-card--ledger {
    z-index: 2;
}

.ledger__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.ledger__title {
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-2);
    font-weight: 500;
}
.ledger__hint {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-4);
    letter-spacing: 0.04em;
}

.ledger {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ledger__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}
.ledger__row:last-child {
    border-bottom: none;
}

.ledger__num {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    font-feature-settings: "tnum";
}

.ledger__label {
    font-size: 13px;
    color: var(--fg-3);
    line-height: 1.4;
}

/* Placeholder digits read as "the number lives here, pending
   real data." Dashed underline + slightly muted weight. The
   `<em>` carrier strips italic so the text stays neutral. */
.ledger__placeholder {
    font-style: normal;
    color: rgba(255, 255, 255, 0.34);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
    padding: 0 2px;
    letter-spacing: 0.04em;
}

.ledger__note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--fg-4);
    line-height: 1.5;
}

/* Mini-arch card: cleaner than the original layered variant.
   Sits flat, no rotation, no shadow stack. */
.stage-card--mini-arch {
    padding: 22px 22px 18px;
}

.stage-card--mini-arch .stage-card__head {
    margin-bottom: 16px;
}

/* Override the earlier blue/orange/rose ring family for the
   corporate mini-arch — we paint all three controllers teal
   so the diagram doesn't reintroduce the rainbow on the home. */
.ring--teal {
    border-color: var(--teal);
    box-shadow: 0 0 0 1.5px rgba(77, 208, 197, 0.18);
}

/* =============================================================
   PILLARS (CEO summary, three pillars)
============================================================= */

.pillars {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px 24px;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pillar:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.pillar__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(77, 208, 197, 0.08);
    border: 1px solid rgba(77, 208, 197, 0.22);
    display: grid;
    place-items: center;
    color: var(--teal);
}
.pillar__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.6;
}

.pillar__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pillar__num {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    line-height: 1.05;
}

.pillar__label {
    font-size: 12.5px;
    letter-spacing: 0;
    color: var(--fg-3);
    font-family: var(--font);
}

.pillar h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.pillar p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-3);
}

.pillars__note {
    max-width: 720px;
    margin: 28px auto 0;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: var(--fg-4);
    text-align: center;
}

/* =============================================================
   HOW (corporate, simplified three-layer overview)
   --------------------------------------------------------------
   The full architecture diagram with wires + animations lives on
   platform.html. Here we keep a quiet, type-driven three-row
   summary so the home doesn't lead with engineering detail.
============================================================= */

.how {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px;
}

.how__layers {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 24px 0 36px;
    border-top: 1px solid var(--border);
}

.how__layer {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 32px;
    padding: 28px 4px;
    border-bottom: 1px solid var(--border);
}
.how__layer:hover {
    background: rgba(255, 255, 255, 0.015);
}

.how__layer-num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--fg-4);
    padding-top: 4px;
}
.how__layer-num i {
    display: block;
    margin-top: 12px;
    font-size: 50px;
}

.how__layer-body h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.how__layer-body p {
    margin: 0;
    max-width: 64ch;
    font-size: 15px;
    line-height: 1.65;
    color: var(--fg-3);
}

.how__cta {
    text-align: center;
    margin: 8px 0 0;
}

.how__cta .card-cta {
    display: inline-flex;
    width: auto;
    gap: 12px;
}

/* =============================================================
   EXAMPLE (worked customer-record case on the home)
============================================================= */

.example {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.example__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 32px;
    margin-top: 8px;
    align-items: start;
}

.example__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.example__step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.example__step:hover {
    border-color: var(--border-hard);
}

.example__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
}
.example__step:hover .example__step-num {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-strong);
}

.example__step-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.example__step-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-3);
}

/* Panel: a compact teaser of the SOL policy. The full policy
   lives on platform.html. We show four lines here so a reader
   gets a feel for how human-readable the language is. */
.example__panel {
    position: sticky;
    top: 96px;
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.example__panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
.example__panel-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}
.example__panel-file {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-4);
}

.example__panel-tease {
    margin: 18px 20px 6px;
    font-size: 13.5px;
    color: var(--fg-3);
    line-height: 1.55;
}

.example__panel-code {
    margin: 0;
    padding: 14px 20px 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--fg-2);
    white-space: pre;
    overflow-x: auto;
    tab-size: 2;
}

.example__panel .card-cta {
    margin: 4px 20px 20px;
}

/* =============================================================
   VERTICALS (use-case grid)
============================================================= */

.verticals {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px 32px 80px;
}

.verticals__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vertical {
    position: relative;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vertical:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.vertical__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hard);
    display: grid;
    place-items: center;
    color: var(--fg-2);
}
.vertical__icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
}

.vertical h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.vertical p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg-3);
}

.vertical__kpi {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--fg-2);
}
.vertical__kpi .ledger__placeholder {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--teal);
}

/* =============================================================
   FOOTER EXTENSIONS
   --------------------------------------------------------------
   The original footer was brand + 3 link cols + legal line. The
   redesign carries engineering names and primary social links,
   with GitHub elevated.
============================================================= */

.footer__mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer__tagline {
    margin: 0;
    font-size: 13.5px;
    color: var(--fg-3);
    max-width: 22ch;
    line-height: 1.45;
}

.footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--fg-3);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}
.social:hover,
.social:focus-visible {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border-hard);
}
.social:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: var(--focus-ring-shadow);
}
.social svg {
    width: 16px;
    height: 16px;
}
.social--primary {
    padding-right: 14px;
    color: var(--fg-2);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--border-hard);
}
.social--primary:hover,
.social--primary:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-strong);
    color: var(--fg);
}

.footer__people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__people li {
    font-size: 13px;
    line-height: 1.4;
    color: var(--fg-3);
}
.footer__person-name {
    color: var(--fg-2);
    font-weight: 500;
}
.footer__person-role {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-4);
    letter-spacing: 0.02em;
}

/* =============================================================
   RESPONSIVE — additions for new page sections
============================================================= */

@media (max-width: 1080px) {
    .pillars__grid {
        grid-template-columns: 1fr;
    }
    .security__inner {
        grid-template-columns: 1fr;
    }
    .security__claims {
        grid-template-columns: 1fr;
    }
    .verticals__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .example__grid {
        grid-template-columns: 1fr;
    }
    .example__panel {
        position: static;
    }
}

@media (max-width: 960px) {
    .how__layer {
        grid-template-columns: 64px 1fr;
        gap: 20px;
        padding: 24px 4px;
    }
    .footer {
        grid-template-columns: 1fr;
    }
    .footer__brand {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }
    .problem {
        padding: 80px 10px 60px;
    }
    .hero__meta {
        justify-content: center;
        gap: 16px;
    }
    .hero__actions a {
        margin-bottom: 10px;
    }
    .security__model {
        display: none;
    }
    .verticals__grid {
        grid-template-columns: 1fr;
    }
    .how__layer {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .how__layer-num {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .how__layer-num i {
        margin-top: 8px;
        text-align: center;
    }
    .footer__cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ledger__row {
        grid-template-columns: 110px 1fr;
    }
}
    .security {
        padding-inline: 24px;
    }
    .security__inner {
        padding: 26px 22px;
    }
    .security__model-head {
        flex-direction: column;
        gap: 4px;
    }
    .security__steps li,
    .security__claims li {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   PLATFORM PAGE — technical hero + docs TOC layout
   --------------------------------------------------------------
   The platform page is engineer-facing: dense, navigated, and
   sticky-TOC structured. It reuses every existing component
   (arch board, live view, borrow viz, SDK, hospital steps) and
   wraps them in a docs grid. Inline variants (--inline) reset
   max-width and padding so each component sits inside the docs
   column, not as a full-width page section.
============================================================= */

.tech-hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 88px 32px 56px;
}

.tech-hero__inner {
    max-width: 760px;
}

.tech-hero__title {
    margin: 18px 0 18px;
    font-size: clamp(36px, 4.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--fg);
}

.tech-hero__sub {
    margin: 0 0 28px;
    max-width: 62ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--fg-3);
}

.tech-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.tech-hero__chip svg {
    width: 14px;
    height: 14px;
    color: var(--fg-4);
    stroke-width: 1.6;
}

/* ---------- docs grid (sticky TOC + body) ---------- */

.docs {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 32px 80px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.docs__toc {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 0 0 16px;
}

.docs__toc-title {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-4);
    font-weight: 500;
}

.docs__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    counter-reset: toc;
}

.docs__toc-list li {
    counter-increment: toc;
}

.docs__toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--fg-3);
}
.docs__toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-5);
    letter-spacing: 0.04em;
}
.docs__toc-list a:hover,
.docs__toc-list a:focus-visible,
.docs__toc-list a.is-active {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.03);
}
.docs__toc-list a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}
.docs__toc-list a.is-active::before {
    color: var(--teal);
}

.docs__toc-foot {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.docs__toc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
}
.docs__toc-link:hover,
.docs__toc-link:focus-visible {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hard);
}
.docs__toc-link:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: var(--focus-ring-shadow);
}
.docs__toc-link svg {
    width: 14px;
    height: 14px;
}

/* ---------- docs body ---------- */

.docs__body {
    min-width: 0;
}

.docs__body > section {
    margin: 0 0 88px;
}
.docs__body > section:last-child {
    margin-bottom: 0;
}

.docs__body > section[id] {
    scroll-margin-top: 96px;
}

.docs__section-head {
    max-width: 720px;
    margin: 0 0 32px;
}

.docs__section-head .section-title {
    font-size: clamp(26px, 2.8vw, 36px);
    margin-top: 14px;
}

.docs__section-head .section-sub {
    font-size: 15.5px;
    max-width: 64ch;
}

/* Inline variants of the existing rich sections: remove the
   page-wide max-width and outer padding so each sits inside the
   docs column. */
.arch--inline,
.sdk--inline,
.borrow--inline,
.hospital--inline {
    max-width: none;
    margin: 0;
    padding: 0;
}

.sdk--inline .section-head--centered {
    text-align: left;
    margin: 0 0 24px;
}

.borrow--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}

.hospital--inline {
    padding: 0;
}

.hospital--inline .hospital__grid {
    display: block;
}

.hospital--inline .hospital__steps ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: auto;
}

.hospital--inline .hospital__step {
    min-height: 156px;
    align-content: start;
}

@media (max-width: 760px) {
    .hospital--inline .hospital__steps ol {
        grid-template-columns: 1fr;
    }

    .hospital--inline .hospital__step {
        min-height: 0;
    }
}

/* ---------- docs split (prose + code) ---------- */

.docs__split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
}

.docs__split-prose h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.docs__split-prose p,
.docs__split-prose ul {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--fg-3);
}

.docs__list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--fg-3);
}
.docs__list li {
    padding-left: 18px;
    position: relative;
}
.docs__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(77, 208, 197, 0.55);
    box-shadow: 0 0 0 2px rgba(77, 208, 197, 0.12);
}
.docs__list strong {
    color: var(--fg);
    font-weight: 600;
}

.docs__split-code {
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ---------- standalone docs panel (full-width code sample) ---------- */

.docs__panel {
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.docs__panel-code {
    margin: 0;
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.75;
    color: var(--fg-2);
    white-space: pre;
    overflow-x: auto;
    tab-size: 2;
}

.docs__caption {
    margin: 14px 0 0;
    max-width: 64ch;
    font-size: 13.5px;
    color: var(--fg-4);
    line-height: 1.55;
}

/* ---------- docs 3-card grid (security, deployment) ---------- */

.docs__grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.docs__card {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.docs__card:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.docs__card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(77, 208, 197, 0.08);
    border: 1px solid rgba(77, 208, 197, 0.22);
    display: grid;
    place-items: center;
    color: var(--teal);
}
.docs__card-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
}

.docs__card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.docs__card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--fg-3);
}

/* ---------- responsive: docs collapse to single column ---------- */

@media (max-width: 1080px) {
    .docs {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs__toc {
        position: relative;
        top: 0;
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: 16px;
    }
    .docs__toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .docs__toc-list a {
        padding: 6px 10px;
    }
    .docs__split {
        grid-template-columns: 1fr;
    }
    .docs__grid-3 {
        grid-template-columns: 1fr;
    }
    .borrow--inline {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =============================================================
   SHARED HELPERS for new pages
   --------------------------------------------------------------
   .section-head is already defined earlier (see "section-head"
   block near top of file). We only add the helpers that didn't
   exist there.
============================================================= */

.btn--full {
    width: 100%;
}

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

/* Skip link: hidden offscreen until a keyboard user tabs to it,
   then reveals as a pill anchored to the top-left. Lets screen-reader
   and keyboard users bypass the nav on every page. */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    background: var(--bg-2, #0f1a1a);
    color: var(--fg, #e7eef0);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: 500 0.8125rem/1 var(--font);
    text-decoration: none;
    transform: translateY(-160%);
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* =============================================================
   ENTERPRISE PAGE
============================================================= */

.roi {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 32px 80px;
}

.roi__inner > .section-title,
.roi__inner > .section-sub {
    max-width: 720px;
}

.roi__grid {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.roi__grid--before-after {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
}

.roi__cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.roi__cell:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.roi__cell-num {
    font-size: clamp(28px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
    line-height: 1.05;
}

.roi__grid--before-after .roi__cell-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-4);
}

.roi__cell-label {
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--fg-2);
    line-height: 1.45;
    font-weight: 500;
}

.roi__cell-meta {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--fg-4);
    line-height: 1.55;
}

.roi__note {
    max-width: 720px;
    margin: 28px 0 0;
    font-size: 12.5px;
    color: var(--fg-4);
}

/* ---------- pricing tiers ---------- */

.tiers {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 32px 80px;
}

.tiers__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 50px 0px;
}

.tier {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tier:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.tier--featured {
    border-color: var(--border-strong);
    background:
        radial-gradient(
            600px 200px at 50% -10%,
            rgba(255, 255, 255, 0.04),
            transparent 70%
        ),
        var(--bg-card);
    box-shadow: var(--shadow-card);
}

.tier__badge {
    position: absolute;
    top: -10px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-3);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
}

.tier__kind {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-4);
}

.tier__name {
    margin: 4px 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.tier__sub {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-3);
}

.tier__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.tier__price-num {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.tier__price-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-4);
}

.tier__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--fg-2);
    line-height: 1.45;
}
.tier__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tier__bullets .check {
    margin-top: 3px;
}

.tier .btn {
    margin-top: auto;
}

.tiers__note {
    max-width: 720px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--fg-4);
}

/* ---------- timeline ---------- */

.timeline {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 32px 88px;
}

.timeline__list {
    list-style: none;
    position: relative;
    max-width: 920px;
    margin: 40px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.timeline__list::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 126px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(77, 208, 197, 0),
        rgba(77, 208, 197, 0.3) 14%,
        rgba(77, 208, 197, 0.18) 86%,
        rgba(77, 208, 197, 0)
    );
}

.timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 48px;
    padding: 30px 0 30px;
    border-bottom: 1px solid var(--border);
}
.timeline__step:hover {
    background: rgba(255, 255, 255, 0.015);
}

.timeline__mark {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 5px;
}
.timeline__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--fg-4);
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline__body {
    position: relative;
    max-width: 640px;
}

.timeline__body::before {
    content: "";
    position: absolute;
    top: 7px;
    left: -54px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(77, 208, 197, 0.72);
    box-shadow: 0 0 0 4px rgba(77, 208, 197, 0.08);
}

.timeline__body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fg);
}
.timeline__body p {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9375rem;
    line-height: 1.62;
    color: var(--fg-3);
}

/* ---------- trust grid ---------- */

.trust {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 32px 80px;
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.trust__card {
    padding: 22px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.trust__card:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}
.trust__card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.trust__card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--fg-3);
    line-height: 1.6;
}

/* ---------- quote ---------- */

.quote {
    display: none;                   /* -------------- HERERERERERERERRERERERERERE*/
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px 32px 80px;
}

.quote__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    border: 1px dashed var(--border-hard);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.012);
}

.quote__body p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.45;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.005em;
}

.quote__placeholder {
    color: var(--fg-3);
    font-style: italic;
}

.quote__attribution {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quote__attribution-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg-2);
}
.quote__attribution-role {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-4);
    letter-spacing: 0.02em;
}

/* =============================================================
   BLOG INDEX
   --------------------------------------------------------------
   Editorial, list-format, Thinking-Machines-inspired. Title +
   short tagline + a chronological list with date, author,
   reading-time stamps and a one-paragraph lede per post. The
   first post is highlighted as the latest.
============================================================= */

.blog-index {
    max-width: 880px;
    margin: 0 auto;
    padding: 88px 32px 96px;
}

.blog-index__head {
    margin: 0 0 40px;
}

.blog-index__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.blog-index__kicker svg {
    color: var(--teal);
}

.blog-index__title {
    margin: 0 0 16px;
    font-family: var(--font);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--fg);
}

.blog-index__tagline {
    margin: 0;
    max-width: 58ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--fg-3);
}

.blog-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.post-entry {
    border-bottom: 1px solid var(--border);
}

.post-entry__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 4px;
}
.post-entry__link:hover,
.post-entry__link:focus-visible {
    background: rgba(255, 255, 255, 0.018);
}
.post-entry__link:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
}

.post-entry[aria-disabled="true"] .post-entry__link,
.post-entry__link[aria-disabled="true"] {
    cursor: not-allowed;
}
.post-entry__link[aria-disabled="true"] {
    opacity: 0.78;
}

.post-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--fg-4);
    text-transform: lowercase;
}

.post-entry__meta time {
    color: var(--fg-3);
}

.post-entry__title {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--fg);
    max-width: 32ch;
}

.post-entry__lede {
    margin: 4px 0 0;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-3);
}

.post-entry__cta {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-entry--featured .post-entry__link {
    padding-top: 36px;
    padding-bottom: 36px;
}
.post-entry--featured .post-entry__title {
    color: var(--fg);
}

.blog-index__note {
    margin: 28px 0 0;
    font-size: 13.5px;
    color: var(--fg-4);
}
.blog-index__note a {
    color: var(--teal);
}

/* =============================================================
   BLOG POST PAGE
   --------------------------------------------------------------
   Editorial typography. Body switches to Literata serif at a
   comfortable measure. Citations as superscript links. Figures
   are framed and captioned in monospace.
============================================================= */

.post {
    max-width: 70%;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

.post__head {
    margin: 0 0 40px;
}

.post__crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-4);
}
.post__crumb a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    margin-left: -7px;
    padding: 0 7px;
    color: var(--fg-3);
}
.post__crumb a:hover {
    color: var(--fg);
}
.post__crumb a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
}
.post__crumb span[aria-hidden] {
    color: var(--fg-5);
}

.post__title {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.8vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fg);
}

.post__lede {
    margin: 0 0 28px;
    max-width: 58ch;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.55;
    color: var(--fg-2);
    font-style: italic;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--fg-2);
}
.post__meta-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-4);
}

.post__body {
    font-family: var(--font-serif);
    font-size: 18.5px;
    line-height: 1.65;
    color: var(--fg-2);
    letter-spacing: -0.003em;
}

.post__body p {
    margin: 0 0 18px;
    max-width: 62ch;
}

.post__body h2 {
    margin: 48px 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--fg);
}

.post__body h2[id] {
    scroll-margin-top: 96px;
}

.post__drop {
    margin: 0 0 18px;
}

.post__drop-cap {
    float: left;
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 500;
    line-height: 0.95;
    margin: 8px 12px 0 0;
    letter-spacing: -0.03em;
    color: var(--fg);
}

.post__ref a {
    font-family: var(--font-mono);
    font-size: 0.7em;
    color: var(--teal);
    padding: 0 1px;
    vertical-align: super;
    text-decoration: none;
}
.post__ref a:hover {
    color: var(--fg);
}

.post__figure {
    margin: 32px 0 28px;
    padding: 0;
}

.post__figure-frame {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.post__figure-frame svg {
    display: block;
    width: 100%;
    height: auto;
}

.post__figure figcaption {
    margin-top: 12px;
    padding: 0 4px;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 60ch;
}

.post__rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 56px 0 24px;
}

.post__notes {
    list-style: decimal;
    margin: 0;
    padding-left: 24px;
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--fg-3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.post__notes li {
    padding-left: 6px;
}
.post__notes li[id] {
    scroll-margin-top: 96px;
}

.post__foot {
    margin: 56px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.post__share {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: var(--fg-3);
    max-width: 60ch;
}

.post__share-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================================
   TEAM PAGE
============================================================= */

.team-intro {
    max-width: var(--container);
    margin: 0 auto;
    padding: 88px 32px 32px;
}


.team-intro__title {
    margin: 18px 0;
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.team-intro__sub {
    margin: 0 0 14px;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--fg-3);
}

.team-group--roster {
    padding-bottom: 72px;
}

.founding-roster {
    position: relative;
    display: grid;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    --trace-y: 0px;
}

.founding-roster::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 208, 197, 0.36),
        transparent
    );
    opacity: 0.72;
}

.founding-roster::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--trace-y);
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scaleX(0.62);
    transform-origin: center;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(77, 208, 197, 0.15) 24%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(77, 208, 197, 0.15) 76%,
        transparent 100%
    );
    filter: drop-shadow(0 0 8px rgba(77, 208, 197, 0.16));
    transition:
        opacity 180ms var(--ease-out-quart),
        transform 280ms var(--ease-out-expo),
        top 280ms var(--ease-out-quart);
}

.founding-roster[data-has-active="true"]::after {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

.founding-roster__aside {
    padding: 24px 28px 24px 0;
    border-right: 1px solid var(--border);
}

.founding-roster__label,
.roster-person__num,
.roster-person__role {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.founding-roster__label {
    margin: 0 0 18px;
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--fg-4);
}

.founding-roster__count {
    margin: 0;
    font-size: clamp(54px, 7.2vw, 96px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.055em;
    color: var(--fg);
}

.founding-roster__note {
    margin: 18px 0 0;
    max-width: 24ch;
    font-size: 13px;
    line-height: 1.55;
    color: var(--fg-4);
}

.founding-roster__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roster-person {
    position: relative;
    display: grid;
    grid-template-columns: 52px 66px minmax(0, 1fr) minmax(148px, 0.32fr);
    align-items: center;
    min-height: 96px;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid var(--border);
    transition:
        background 180ms var(--ease-out-quart),
        border-color 180ms var(--ease-out-quart);
}

.roster-person:hover,
.roster-person:focus-within,
.roster-person[data-active="true"] {
    z-index: 3;
}

.roster-person::before {
    content: "";
    position: absolute;
    inset: 0 -1px;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(90deg, rgba(77, 208, 197, 0.055), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent);
    transition: opacity 180ms var(--ease-out-quart);
}

.roster-person:last-child {
    border-bottom: 0;
}

.roster-person__num {
    position: relative;
    font-size: 11px;
    color: var(--fg-5);
    transition: color 180ms var(--ease-out-quart);
}

.roster-person__mark {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(77, 208, 197, 0.13),
            transparent 62%
        ),
        rgba(255, 255, 255, 0.026);
    color: var(--fg-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        background 180ms var(--ease-out-quart),
        border-color 180ms var(--ease-out-quart),
        color 180ms var(--ease-out-quart),
        transform 220ms var(--ease-out-expo);
}

.roster-person__name {
    position: relative;
    margin: 0;
    font-size: clamp(21px, 2.1vw, 30px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--fg);
    transition: color 180ms var(--ease-out-quart);
}

.roster-person__role {
    position: relative;
    justify-self: end;
    margin: 0;
    padding-right: 4px;
    font-size: 12px;
    color: var(--fg-4);
    text-align: right;
    transition:
        color 180ms var(--ease-out-quart),
        opacity 180ms var(--ease-out-quart),
        transform 220ms var(--ease-out-expo);
}

.roster-person__popover {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 0;
    width: min(310px, 36vw);
    padding: 13px 15px;
    border: 1px solid var(--border-hard);
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        rgba(24, 24, 24, 0.98),
        rgba(12, 12, 12, 0.98)
    );
    box-shadow:
        0 18px 48px -28px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(10px) scale(0.98);
    transform-origin: 100% 50%;
    transition:
        opacity 170ms var(--ease-out-quart),
        transform 240ms var(--ease-out-expo),
        visibility 0ms linear 170ms;
}

.roster-person__popover::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--border-hard);
    border-right: 1px solid var(--border-hard);
    background: rgba(15, 15, 15, 0.98);
    transform: translateY(-50%) rotate(45deg);
}

.roster-person__popover p {
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--fg-2);
}

.roster-person__popover span {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-5);
}

.roster-person__popover a {
    display: inline-flex;
    max-width: 100%;
    min-height: 44px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-3);
    overflow-wrap: anywhere;
    transition: color 160ms var(--ease-out-quart);
}

.roster-person__popover a:hover,
.roster-person__popover a:focus-visible {
    color: var(--fg);
}

.roster-person:hover::before,
.roster-person:focus-within::before,
.roster-person[data-active="true"]::before {
    opacity: 1;
}

.roster-person:hover .roster-person__num,
.roster-person:focus-within .roster-person__num,
.roster-person[data-active="true"] .roster-person__num {
    color: var(--teal);
}

.roster-person:hover .roster-person__mark,
.roster-person:focus-within .roster-person__mark,
.roster-person[data-active="true"] .roster-person__mark {
    border-color: rgba(77, 208, 197, 0.26);
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(77, 208, 197, 0.18),
            transparent 64%
        ),
        rgba(255, 255, 255, 0.035);
    color: var(--fg);
    transform: translateX(2px);
}

.roster-person:hover .roster-person__role,
.roster-person:focus-within .roster-person__role,
.roster-person[data-active="true"] .roster-person__role {
    color: var(--fg-2);
}

.roster-person:hover .roster-person__role,
.roster-person:focus-within .roster-person__role,
.roster-person[data-active="true"] .roster-person__role {
    opacity: 0;
    transform: translateX(-8px);
}

.roster-person {
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.roster-person:hover::after {
    content: "View Profile";
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--fg-3);
    pointer-events: none;
}

.roster-person[data-expanded="true"] {
    display: block;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

/* Disable dropdowns for founding engineers */
#engineering .roster-person {
    pointer-events: none;
}
#engineering .roster-person .roster-person__popover {
    display: none !important;
}

.roster-person[data-expanded="true"]::after {
    display: none;
}

.roster-person[data-expanded="true"] .roster-person__popover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    position: static;
    box-shadow: none;
}

.roster-person:focus-visible {
    box-shadow: var(--focus-ring-shadow);
}

.roster-person:focus-visible .roster-person__mark {
    outline: var(--focus-ring);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .founding-roster {
        grid-template-columns: 1fr;
    }

    .founding-roster__aside {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: end;
        gap: 6px 22px;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .founding-roster__label {
        grid-column: 1 / -1;
        margin: 0;
    }

    .founding-roster__count {
        font-size: 64px;
    }

    .founding-roster__note {
        margin: 0 0 5px;
        max-width: 36ch;
    }

    .roster-person {
        grid-template-columns: 46px 62px minmax(0, 1fr) minmax(144px, 0.34fr);
        padding-left: 0;
    }

    .roster-person__popover {
        width: min(300px, 40vw);
    }
}

@media (max-width: 640px) {
    .team-intro {
        padding: 72px 24px 28px;
        width: 100%;
    }

    .team-intro__inner,
    .team-group__head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .team-intro__title {
        max-width: 11ch;
        font-size: clamp(34px, 10vw, 38px);
        overflow-wrap: break-word;
    }

    .team-intro__sub,
    .team-group__sub {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .team-jump {
        max-width: 100%;
        flex-wrap: wrap;
        padding-block: 4px;
        border-radius: 22px;
    }

    .team-jump a {
        min-height: 44px;
    }

    .founding-roster__aside {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }

    .founding-roster__count {
        font-size: 52px;
    }

    .founding-roster__note {
        max-width: 32ch;
    }

    .roster-person {
        grid-template-columns: 42px 54px minmax(0, 1fr);
        gap: 0 10px;
        min-height: 84px;
        align-items: start;
        padding: 16px 0;
    }

    .roster-person__mark {
        width: 44px;
        height: 44px;
    }

    .roster-person__name {
        font-size: 22px;
    }

    .roster-person__role {
        grid-column: 3;
        justify-self: start;
        margin-top: 6px;
        padding-right: 0;
        text-align: left;
    }

    .roster-person:hover .roster-person__role,
    .roster-person:focus-within .roster-person__role,
    .roster-person[data-active="true"] .roster-person__role {
        opacity: 1;
        transform: none;
    }

    .roster-person__popover {
        position: relative;
        grid-column: 3;
        top: auto;
        right: auto;
        width: min(100%, 320px);
        margin-top: 10px;
        max-height: 0;
        padding: 0 14px;
        overflow: hidden;
        border-color: transparent;
        box-shadow: none;
        opacity: 0;
        transform: translateY(-6px);
    }

    .roster-person__popover::before {
        display: none;
    }

    .roster-person:focus-within .roster-person__popover,
    .roster-person[data-active="true"] .roster-person__popover,
    .roster-person[data-expanded="true"] .roster-person__popover {
        max-height: 500px;
        padding: 12px 14px;
        border-color: var(--border);
        transform: translateY(0);
    }
}

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

.contact {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 32px 96px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.contact__title {
    margin: 18px 0 14px;
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}
.contact__sub {
    margin: 0 0 28px;
    max-width: 48ch;
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg-3);
}

.contact__reasons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.contact__reason {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}
.contact__reasons li:last-child .contact__reason {
    border-bottom: 1px solid var(--border);
}
.contact__reason:hover {
    background: rgba(255, 255, 255, 0.012);
}
.contact__reason:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
    background: rgba(77, 208, 197, 0.035);
}

.contact__reason-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--fg-4);
    padding-top: 4px;
}

.contact__reason h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.contact__reason p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 50ch;
}

/* ---------- form panel ---------- */

.contact__form-wrap {
    position: sticky;
    top: 96px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.contact-form__head {
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.contact-form__head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.contact-form__head p {
    margin: 0;
    font-size: 12.5px;
    font-family: var(--font-mono);
    color: var(--fg-4);
    letter-spacing: 0.02em;
}

.contact-form__fields {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__fields[aria-hidden="true"],
.contact-form__foot[aria-hidden="true"] {
    display: none;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-column: 1 / -1;
}
.field--half {
    grid-column: span 1;
}

.field label {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fg-2);
}

.field input,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-hard);
    border-radius: 8px;
    transition:
        border-color 160ms var(--ease-out-quart),
        background 160ms var(--ease-out-quart),
        box-shadow 160ms var(--ease-out-quart);
}
.field input:focus,
.field textarea:focus {
    outline: var(--focus-ring);
    outline-offset: 2px;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--focus-ring-shadow);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--rose);
    background: rgba(244, 114, 182, 0.04);
}
.field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.55;
}

.field__hint {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--fg-4);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.field__error {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--rose);
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        opacity 160ms var(--ease-out-quart),
        max-height 160ms var(--ease-out-quart);
}
.field__error.is-shown {
    max-height: 40px;
    opacity: 1;
}

/* Reason chips: radio buttons that look like pills. */
.reason-group {
    border: none;
    padding: 0;
    margin: 0;
}
.reason-group legend {
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--fg-2);
}
.reason-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.reason-option {
    position: relative;
    cursor: pointer;
}
.reason-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.reason-option__pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    transition:
        color 160ms var(--ease-out-quart),
        background 160ms var(--ease-out-quart),
        border-color 160ms var(--ease-out-quart);
}
.reason-option input:checked + .reason-option__pill {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.reason-option input:focus-visible + .reason-option__pill {
    outline: var(--focus-ring);
    outline-offset: 2px;
    box-shadow: var(--focus-ring-shadow);
}

.consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 12.5px;
    color: var(--fg-3);
    line-height: 1.5;
}
.consent input {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 0 12px rgba(5, 5, 5, 0.92);
    cursor: pointer;
    transition:
        background 160ms var(--ease-out-quart),
        border-color 160ms var(--ease-out-quart),
        box-shadow 160ms var(--ease-out-quart);
}
.consent input:checked {
    border-color: rgba(77, 208, 197, 0.48);
    background:
        radial-gradient(circle at center, var(--teal) 0 5px, transparent 5.5px),
        rgba(77, 208, 197, 0.12);
    box-shadow:
        inset 0 0 0 12px rgba(5, 5, 5, 0.86),
        0 0 18px rgba(77, 208, 197, 0.14);
}
.consent input:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    box-shadow: var(--focus-ring-shadow);
}

.contact-form__foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-form__sla {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-4);
    letter-spacing: 0.02em;
}

/* Submit button loading state. */
#cf-submit .btn__spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cf-spin 800ms linear infinite;
}
#cf-submit.is-loading .btn__spinner {
    display: inline-block;
}
#cf-submit.is-loading .btn__label::after {
    content: "ing...";
}
#cf-submit.is-loading svg {
    display: none;
}
@keyframes cf-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-form__result {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    padding: 20px 22px 18px;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(77, 208, 197, 0.08),
            rgba(77, 208, 197, 0.035)
        ),
        rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(77, 208, 197, 0.24);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    display: grid;
    gap: 14px;
}
.contact-form__result[hidden] {
    display: none !important;
}
.contact-form__result[data-kind="offline"] {
    background:
        linear-gradient(
            180deg,
            rgba(251, 146, 60, 0.08),
            rgba(251, 146, 60, 0.035)
        ),
        rgba(255, 255, 255, 0.018);
    border-color: rgba(251, 146, 60, 0.24);
}

.contact-form__result-inner {
    display: none;
}
.contact-form__result[data-kind="success"] .contact-form__result-inner--success,
.contact-form__result[data-kind="offline"]
    .contact-form__result-inner--offline {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: start;
}

.contact-form__result h3 {
    margin: 1px 0 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.contact-form__result p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 48ch;
    grid-column: 2;
}

.contact-form__result-icon {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(77, 208, 197, 0.1);
    border: 1px solid rgba(77, 208, 197, 0.3);
    display: grid;
    place-items: center;
    color: var(--teal);
}
.contact-form__result-icon--offline {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.3);
    color: var(--orange);
}
.contact-form__result-icon svg {
    width: 18px;
    height: 18px;
}

#cf-restart {
    justify-self: start;
    margin-left: 52px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 12.5px;
}

@media (max-width: 520px) {
    #cf-submit {
        width: 100%;
        justify-content: center;
    }

    #cf-restart {
        margin-left: 0;
    }
}

/* =============================================================
   RESPONSIVE — additions for enterprise / blog / team / contact
============================================================= */

@media (max-width: 1080px) {
    .roi__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tiers__grid {
        grid-template-columns: 1fr;
    }
    .trust__grid {
        grid-template-columns: 1fr;
    }
    .contact {
        grid-template-columns: 1fr;
    }
    .contact__form-wrap {
        position: relative;
        top: 0;
    }
    .timeline__step {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 40px;
    }
    .timeline__list::before {
        left: 118px;
    }
    .timeline__body::before {
        left: -46px;
    }
}

@media (max-width: 760px) {
    .roi__grid {
        grid-template-columns: 1fr;
    }
    .timeline__list {
        margin-top: 32px;
        padding-left: 18px;
    }
    .timeline__list::before {
        top: 24px;
        bottom: 24px;
        left: 4px;
    }
    .timeline__step {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 26px 0;
    }
    .timeline__mark {
        justify-content: flex-start;
        padding-top: 0;
    }
    .timeline__body::before {
        top: -24px;
        left: -18px;
    }
    .contact-form__fields {
        grid-template-columns: 1fr;
    }
    .field--half {
        grid-column: 1 / -1;
    }
    .post {
        padding: 48px 24px 64px;
    }
    .post__title {
        font-size: 36px;
    }
}

/* =============================================================
   REDUCED MOTION — additions for new sections
============================================================= */

@media (prefers-reduced-motion: reduce) {
    .pillar,
    .vertical,
    .example__step,
    .docs__card,
    .roi__cell,
    .tier,
    .trust__card,
    .post-entry__link,
    .founding-roster::after,
    .roster-person,
    .roster-person::before,
    .roster-person__mark,
    .roster-person__num,
    .roster-person__role,
    .roster-person__popover,
    .docs-chapter {
        transition: none !important;
    }
    #cf-submit.is-loading .btn__spinner {
        animation: none !important;
    }
}

/* =============================================================
   TEAM PAGE EXTENSIONS
   The team page now centers the actual founding roster. The
   .team-jump subnav sits inside the intro and links to the
   roster and hiring call-to-action.
============================================================= */

.team-jump {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.team-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 2px;
    color: var(--fg-3);
}
.team-jump a:hover,
.team-jump a:focus-visible {
    color: var(--teal);
}
.team-jump a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 4px;
}
.team-jump span {
    color: var(--fg-5);
}

.team-group {
    max-width: var(--container);
    margin: 0 auto;
    margin-top: 100px;
}
.team-group + .team-group {
    padding-top: 24px;
}

.team-group__head {
    max-width: 680px;
    margin: 0 0 36px;
}
.team-group__title {
    margin: 14px 0 12px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.team-group__sub {
    margin: 0;
    max-width: 60ch;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--fg-3);
}

/* =============================================================
   DOCS COMING-SOON PAGE
   Distinct from the .docs__* layout used inside platform.html.
   Hero + chapter preview + notify hook. Calm, scannable, with
   "drafting / queued / planned" status pills per chapter.
============================================================= */

.docs-hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 32px 48px;
}
.docs-hero__inner {
    max-width: 780px;
}

.docs-hero__status {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    color: var(--fg-3);
    font-size: 10.5px;
    letter-spacing: 0.05em;
}

.docs-hero__title {
    margin: 18px 0 24px;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.docs-hero__sub {
    margin: 0 0 14px;
    max-width: 62ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--fg-3);
}

.docs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0 16px;
}

.docs-hero__note {
    margin: 0;
    font-size: 13px;
    color: var(--fg-4);
    font-style: italic;
}

/* ---------- TOC preview ---------- */

.docs-preview {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 32px 48px;
}

.docs-toc {
    display: block;
    border-top: 1px solid var(--border-hard);
    border-bottom: 1px solid var(--border);
}

.docs-chapter {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
    gap: 36px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.docs-chapter:last-child {
    border-bottom: 0;
}
.docs-chapter:hover {
    background: linear-gradient(
        90deg,
        rgba(77, 208, 197, 0.025),
        transparent 42%
    );
}

.docs-chapter__head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin: 0;
}

.docs-chapter__num {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--fg-4);
    letter-spacing: -0.01em;
    padding-top: 2px;
}

.docs-chapter__heading h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.docs-chapter__heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 60ch;
}

.docs-chapter__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    grid-column: 2;
    justify-self: start;
    margin-top: 14px;
    padding: 0;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    align-self: start;
}
.docs-chapter__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.docs-chapter__status--writing {
    color: var(--fg-3);
    background: none;
    border: 0;
}
.docs-chapter__status--writing .docs-chapter__dot {
    background: var(--fg-4);
    box-shadow: none;
    animation: docs-pulse 2.4s ease-in-out infinite;
}

.docs-chapter__status--queued {
    color: var(--fg-3);
    background: none;
    border: 0;
}
.docs-chapter__status--queued .docs-chapter__dot {
    background: var(--fg-4);
}

.docs-chapter__status--planned {
    color: var(--fg-4);
    background: none;
    border: 0;
}
.docs-chapter__status--planned .docs-chapter__dot {
    background: var(--fg-5);
}

@keyframes docs-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.docs-chapter__list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 24px;
    align-content: start;
}
.docs-chapter__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--fg-3);
    line-height: 1.45;
}
.docs-chapter__bullet {
    width: 6px;
    height: 1px;
    background: var(--fg-5);
    flex-shrink: 0;
}

/* ---------- notify hook ---------- */

.docs-notify {
    max-width: var(--container);
    margin: 24px auto 80px;
    padding: 0 32px;
}
.docs-notify__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-hard);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.docs-notify__copy h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.docs-notify__copy p {
    margin: 0;
    max-width: 56ch;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--fg-3);
}
.docs-notify__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 240px;
}

/* ---------- docs page responsive ---------- */

@media (max-width: 900px) {
    .docs-chapter {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .docs-chapter__head {
        grid-template-columns: 48px 1fr;
    }
    .docs-chapter__status {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
    }
    .docs-chapter__list {
        grid-template-columns: 1fr;
        padding-left: 68px;
    }
}

@media (max-width: 720px) {
    .team-group {
        padding: 40px 24px 32px;
    }

    .docs-hero {
        padding: 72px 24px 36px;
    }
    .docs-preview {
        padding: 40px 24px 32px;
    }
    .docs-chapter {
        padding: 24px 0;
    }
    .docs-chapter__head {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }
    .docs-chapter__list {
        padding-left: 56px;
    }
    .docs-notify {
        padding: 0 24px;
    }
    .docs-notify__inner {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 20px;
    }
    .docs-notify__actions {
        min-width: 0;
    }
    .team-jump {
        font-size: 11px;
        padding: 0 12px;
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .docs-hero__title {
        font-size: 34px;
    }
    .docs-chapter__bullet {
        width: 5px;
    }
}

.legal-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    line-height: 1.6;
    background-color: #0a0a0a75
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.unified-deployment {
    max-width: var(--container);
    margin: 150px auto;
    padding: 80px 32px;
}

.unified-deployment__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.unified-deployment__usecases {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.usecase-card {
    padding: 32px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.usecase-card:hover {
    border-color: var(--border-hard);
    transform: translateY(-2px);
}

.usecase-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.usecase-card p {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.6;
}



.jenga {
    margin-top: 50px;
    padding: 80px 32px;
    background: var(--bg-card-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.jenga__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.jenga__tower {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 150px;
    margin: 0 auto;
    align-items: center;
}

.jenga__block {
    height: 18px;
    background: var(--teal);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jenga__block[data-state="unstable"] {
    background: var(--rose);
    opacity: 0.7;
}

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