:root {
    color-scheme: dark;
    --background: #050506;
    --background-elevated: #09090b;
    --surface: rgba(14, 14, 17, 0.88);
    --surface-solid: #0d0d10;
    --surface-raised: #121216;
    --text: #f5f5f7;
    --text-soft: #c8c8cf;
    --muted: #92929d;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.19);
    --violet: #a68cff;
    --blue: #4ba7ff;
    --pink: #ff5d86;
    --green: #7ce2b2;
    --site-width: 1180px;
    --radius: 10px;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--background);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

button,
a,
canvas {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

code,
pre,
kbd {
    font-family: var(--mono);
}

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

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.site-shell::before {
/*     display: none; */
    opacity: 0.8;
    position: absolute;
    z-index: -2;
    inset: -12rem -12rem auto;
    height: 62rem;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(41, 120, 255, 0.18), transparent 30%),
        radial-gradient(circle at 78% 12%, rgba(174, 67, 255, 0.16), transparent 29%),
        radial-gradient(circle at 52% 48%, rgba(255, 72, 124, 0.08), transparent 34%);
    filter: blur(10px);
}

.site-shell::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 58rem);
}

.site-width {
    width: min(calc(100% - 40px), var(--site-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    width: 164px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 140ms ease, background 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.site-nav .external-link {
    margin-left: 5px;
    color: var(--text-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    margin: 5px 0;
    background: currentColor;
}

.hero {
    max-width: 1040px;
    padding-top: clamp(72px, 10vw, 132px);
    padding-bottom: clamp(56px, 7vw, 92px);
    text-align: center;
}

/* mkd */
.section-kicker {
    display: none;
}

/* mkd */
/* .eyebrow { */
/*     display: none; */
/* } */

.eyebrow,
.section-kicker,
.panel-label,
.source-language {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.eyebrow span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(124, 226, 178, 0.7);
}

.hero h1,
.page-hero h1,
.api-placeholder h1 {
    margin: 24px auto 0;
    color: var(--text);
/*     font-size: clamp(3rem, 7.2vw, 6.15rem); */
/*     font-size: clamp(2.8rem, 5.6vw, 5rem); */
    font-size: clamp(2.4rem, 4.8vw, 3.9rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.hero-summary {
    max-width: 760px;
    margin: 28px auto 0;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    border-color: white;
    color: #08080a;
    background: white;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #e7e7eb;
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.07);
}

.demo-section {
    scroll-margin-top: 88px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
}

.section-heading h2,
.product-copy h2,
.final-callout h2,
.architecture-copy h2,
.source-context h2,
.download-panel h2,
.download-notes h2 {
    margin: 7px 0 0;
/*     font-size: clamp(1.9rem, 3.8vw, 3.25rem); */
/*     font-size: clamp(1.7rem, 3vw, 2.65rem); */
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-note {
    max-width: 420px;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 0.93rem;
}

.demo-frame {
/*     opacity: 0.8; */
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(4, 4, 6, 0.88);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.38), 0 0 90px rgba(99, 75, 255, 0.08);
/*     box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32); */
}

.demo-stage {
    position: relative;
    min-width: 0;
    aspect-ratio: 5 / 3;
    overflow: hidden;
/*     border-right: 1px solid var(--line); */
    border-right: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 25%),
        #6d88a4;
}

/*.demo-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    object-fit: contain;
}*/

.demo-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    outline: none;
}

.demo-stage canvas:focus-visible {
    box-shadow: inset 0 0 0 2px var(--violet);
}

.demo-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 28px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(16, 24, 32, 0.32);
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.demo-status[hidden] {
    display: none;
}

.demo-status code {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.demo-status-error {
    color: white;
    background: rgba(38, 25, 32, 0.77);
}

.status-spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 850ms linear infinite;
}

.demo-status-error .status-spinner {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.demo-controls {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 25px 23px;
    border-left: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 50%),
        var(--background-elevated);
}

.controls-intro,
.controls-footnote {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.controls-intro {
    margin: 9px 0 0;
}

.controls-footnote {
    margin: auto 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.control-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.control-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
}

.control-list dt,
.control-list dd {
    margin: 0;
}

.control-list dd {
    color: var(--text-soft);
    font-size: 0.82rem;
}

kbd,
.mouse-icon {
    display: inline-flex;
    min-width: 28px;
    height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid var(--line-strong);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--text);
    background: var(--surface-raised);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
}

.evidence-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 10, 0.7);
}

.evidence-strip article {
    min-height: 205px;
    padding: 28px;
}

.evidence-strip article + article {
    border-left: 1px solid var(--line);
}

.evidence-index {
    margin: 0 0 32px;
    color: var(--violet);
    font-family: var(--mono);
    font-size: 0.76rem;
}

.evidence-strip h3 {
    margin: 0;
    font-size: 1.05rem;
}

.evidence-strip article > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
    padding-top: clamp(100px, 13vw, 170px);
    padding-bottom: clamp(100px, 13vw, 170px);
}

.product-copy > p:not(.section-kicker) {
    margin: 23px 0 0;
    color: var(--muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 28px;
}

.inline-links a,
.code-preview-link,
.source-repository-link,
.download-list a {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.inline-links a:hover,
.inline-links a:focus-visible,
.code-preview-link:hover,
.code-preview-link:focus-visible,
.source-repository-link:hover,
.source-repository-link:focus-visible,
.download-list a:hover,
.download-list a:focus-visible {
    color: var(--violet);
    outline: none;
}

.code-preview {
/*     opacity: 0.8; */
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(9, 9, 12, 0.95);
/*     box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 80px rgba(60, 115, 255, 0.08); */
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.code-preview-header,
.source-view-header {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.code-preview-header span:first-child {
    color: var(--text-soft);
}

.code-preview pre {
    margin: 0;
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    color: #d4d4dc;
    font-size: clamp(0.72rem, 1.3vw, 0.88rem);
    line-height: 1.8;
}

.code-preview-link {
    display: block;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.syntax-keyword,
.syntax-preprocessor { color: #d8a0ff; }
.syntax-type { color: #7ed7ff; }
.syntax-string { color: #a7dfa4; }
.syntax-number { color: #ffbd86; }
.syntax-comment { color: #70727e; font-style: italic; }

.final-callout {
    margin-bottom: clamp(90px, 12vw, 150px);
    padding: clamp(44px, 7vw, 78px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(105, 79, 255, 0.18), transparent 45%),
        rgba(10, 10, 13, 0.9);
}

.final-callout h2 {
    max-width: 760px;
    margin-inline: auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.75);
}

.footer-inner {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: var(--muted);
    font-size: 0.78rem;
}

.footer-inner p {
    margin: 0;
}

.inner-page {
    padding-bottom: 120px;
}

.page-hero {
    max-width: 1000px;
    padding-top: clamp(72px, 9vw, 120px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.page-hero h1,
.api-placeholder h1 {
    max-width: 970px;
    margin-inline: 0;
/*     font-size: clamp(3rem, 6.1vw, 5.7rem); */
font-size: clamp(2.7rem, 4.8vw, 4.5rem);
}

.page-hero > p:last-child,
.api-placeholder > p {
    max-width: 740px;
    margin: 28px 0 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.page-hero-compact {
    padding-bottom: 68px;
}

.page-hero-compact h1 {
    max-width: 850px;
/*     font-size: clamp(2.75rem, 5.4vw, 5rem); */
/*     font-size: clamp(2.5rem, 4.3vw, 4rem); */
    font-size: clamp(2.25rem, 3.2vw, 3rem);
}

.architecture-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
    align-items: center;
    gap: clamp(54px, 8vw, 110px);
    padding: clamp(72px, 9vw, 118px) 0;
    border-top: 1px solid var(--line);
}

.architecture-section-stacked {
    display: block;
}

.architecture-copy > p:not(.section-kicker) {
    margin: 22px 0 0;
    color: var(--muted);
}

.architecture-copy-wide {
    max-width: 800px;
}

.ownership-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 11, 0.82);
}

.diagram-node {
    display: flex;
    width: min(100%, 300px);
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--text-soft);
    background: var(--surface-raised);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.diagram-node-primary {
    border-color: rgba(166, 140, 255, 0.5);
    color: var(--text);
    background: linear-gradient(135deg, rgba(84, 61, 188, 0.3), rgba(33, 33, 42, 0.95));
}

.diagram-connector {
    width: 1px;
    height: 24px;
    background: var(--line-strong);
}

.diagram-branches {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 37px;
}

.diagram-branches::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 24px;
    content: "";
    background: var(--line-strong);
}

.diagram-branches::after {
    position: absolute;
    top: 24px;
    left: 25%;
    width: 50%;
    height: 1px;
    content: "";
    background: var(--line-strong);
}

.diagram-node-small {
    position: relative;
    width: 100%;
    min-height: 48px;
    font-size: 0.7rem;
}

.diagram-node-small::before {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 1px;
    height: 13px;
    content: "";
    background: var(--line-strong);
}

.cycle-diagram {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 50px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
    background: rgba(8, 8, 11, 0.82);
}

.cycle-diagram li {
    position: relative;
    min-height: 190px;
    padding: 24px 19px;
}

.cycle-diagram li + li {
    border-left: 1px solid var(--line);
}

.cycle-diagram li:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -7px;
    width: 13px;
    height: 13px;
    border-top: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
    content: "";
    background: var(--background-elevated);
    transform: translateY(-50%) rotate(45deg);
}

.cycle-diagram span {
    color: var(--violet);
    font-family: var(--mono);
    font-size: 0.7rem;
}

.cycle-diagram strong,
.cycle-diagram small {
    display: block;
}

.cycle-diagram strong {
    margin-top: 35px;
    font-size: 0.92rem;
}

.cycle-diagram small {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.plain-list {
    display: grid;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    list-style: none;
}

.plain-list li::before {
    margin-right: 10px;
    color: var(--violet);
    content: "—";
}

.clock-panel {
    padding: 34px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(71, 127, 255, 0.14), transparent 38%),
        rgba(8, 8, 11, 0.9);
}

.clock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.clock-row strong {
    color: var(--text);
    font-weight: 600;
}

.clock-divider {
    height: 1px;
    margin: 21px 0;
    background: var(--line);
}

.clock-ticks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.clock-ticks span {
    height: 9px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.clock-ticks span.active {
    background: linear-gradient(90deg, var(--blue), var(--violet));
    box-shadow: 0 0 20px rgba(113, 105, 255, 0.3);
}

.clock-panel > p {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.boundary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 45px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.boundary-grid article {
    min-height: 250px;
    padding: 25px;
    background: rgba(8, 8, 11, 0.78);
}

.boundary-grid article + article {
    border-left: 1px solid var(--line);
}

.boundary-grid p {
    margin: 0 0 48px;
    color: var(--violet);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.boundary-grid h3 {
    margin: 0;
    font-size: 1rem;
}

.boundary-grid span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.architecture-callout {
    margin-top: 80px;
    margin-bottom: 0;
}

.source-page {
    width: min(calc(100% - 40px), 1380px);
}

.source-browser {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 690px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--background-elevated);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.35);
}

.source-file-list {
    display: flex;
    flex-direction: column;
    padding: 18px 13px;
    border-right: 1px solid var(--line);
    background: #09090b;
}

.source-list-heading {
    padding: 6px 10px 18px;
    border-bottom: 1px solid var(--line);
}

.source-list-heading span {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-file-list button {
    width: 100%;
    padding: 13px 11px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.source-file-list button:first-of-type {
    margin-top: 10px;
}

.source-file-list button:hover,
.source-file-list button:focus-visible,
.source-file-list button[data-selected] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.source-file-list button strong,
.source-file-list button small {
    display: block;
}

.source-file-list button strong {
    font-family: var(--mono);
    font-size: 0.79rem;
}

.source-file-list button small {
    margin-top: 3px;
    color: inherit;
    font-size: 0.69rem;
    opacity: 0.72;
}

.source-repository-link {
    margin-top: auto;
    padding: 18px 10px 5px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
}

.source-view {
    min-width: 0;
    background: #0c0c0f;
}

.source-view-header {
    height: 58px;
    background: rgba(255, 255, 255, 0.015);
}

.source-view-header div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.source-view-header strong {
    color: var(--text-soft);
    font-weight: 500;
}

.source-language {
    padding: 3px 6px;
    border: 1px solid rgba(126, 215, 255, 0.25);
    border-radius: 4px;
    color: #7ed7ff;
    font-size: 0.6rem;
}

.source-code {
    height: 630px;
    overflow: auto;
    padding: 17px 0 30px;
    color: #d4d4dc;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.72;
    tab-size: 4;
}

.code-line {
    display: flex;
    min-width: max-content;
    padding-right: 32px;
}

.code-line:hover {
    background: rgba(255, 255, 255, 0.025);
}

.line-number {
    position: sticky;
    left: 0;
    width: 58px;
    flex: 0 0 58px;
    padding-right: 17px;
    color: #51515b;
    background: #0c0c0f;
    text-align: right;
    user-select: none;
}

.code-line code {
    white-space: pre;
}

.source-loading,
.source-error {
    padding: 42px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.9rem;
}

.source-error code {
    color: var(--text-soft);
}

.source-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(45px, 8vw, 110px);
    padding: 100px 0 0;
}

.source-context > p {
    margin: 31px 0 0;
    color: var(--muted);
}

.download-panel {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(8, 8, 11, 0.88);
}

.download-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 32px;
    border-bottom: 1px solid var(--line);
}

.download-panel-heading > p {
    margin: 0 0 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.download-list article {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    min-height: 108px;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
}

.download-list article + article {
    border-top: 1px solid var(--line);
}

.platform-mark {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--text-soft);
    background: var(--surface-raised);
    font-family: var(--mono);
    font-size: 0.64rem;
}

.download-list h3,
.download-list p {
    margin: 0;
}

.download-list h3 {
    font-size: 1rem;
}

.download-list p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.download-status {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.67rem;
}

.download-panel + .download-panel {
    margin-top: 22px;
}

.download-status[aria-disabled="true"] {
    pointer-events: none;
}

.download-status:not([aria-disabled="true"]) {
    border-color: rgba(166, 140, 255, 0.38);
    color: var(--text-soft);
    background: rgba(105, 79, 255, 0.08);
}

.download-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}

.download-notes article {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 11, 0.66);
}

.download-notes h2 {
    font-size: 1.55rem;
}

.download-notes article > p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
}

.api-placeholder {
    display: flex;
    min-height: calc(100vh - 161px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 110px;
    text-align: center;
}

.api-placeholder h1 {
    max-width: 820px;
    margin-inline: auto;
}

.api-placeholder > p {
    margin-inline: auto;
}

@media (max-width: 980px) {
    .demo-frame {
        grid-template-columns: 1fr;
    }

    .demo-stage {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .demo-controls {
        display: grid;
        grid-template-columns: 1fr 1.25fr;
    }

    .controls-footnote {
        grid-column: 1 / -1;
    }

    .product-section,
    .architecture-section {
        grid-template-columns: 1fr;
    }

    .ownership-diagram,
    .clock-panel {
        max-width: 700px;
        width: 100%;
    }

    .cycle-diagram {
        grid-template-columns: repeat(3, 1fr);
    }

    .cycle-diagram li:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .cycle-diagram li:nth-child(5),
    .cycle-diagram li:nth-child(6) {
        border-top: 1px solid var(--line);
    }

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

    .boundary-grid article:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .boundary-grid article:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .source-browser {
        grid-template-columns: 190px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .site-width,
    .source-page {
        width: min(calc(100% - 28px), var(--site-width));
    }

    .header-inner {
        min-height: 62px;
    }

    .site-logo {
        width: 142px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        background: rgba(10, 10, 12, 0.98);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    }

    .site-nav[data-open] {
        display: flex;
    }

    .site-nav .external-link {
        margin-left: 0;
    }

    .hero h1 {
/*         font-size: clamp(2.7rem, 13vw, 4.4rem); */
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .section-heading-row,
    .footer-inner,
    .download-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .evidence-strip {
        grid-template-columns: 1fr;
    }

    .evidence-strip article {
        min-height: 0;
    }

    .evidence-strip article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .product-section,
    .source-context,
    .download-notes {
        grid-template-columns: 1fr;
    }

    .cycle-diagram,
    .boundary-grid {
        grid-template-columns: 1fr;
    }

    .cycle-diagram li + li,
    .cycle-diagram li:nth-child(4),
    .cycle-diagram li:nth-child(5),
    .cycle-diagram li:nth-child(6),
    .boundary-grid article + article,
    .boundary-grid article:nth-child(3),
    .boundary-grid article:nth-child(4) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .cycle-diagram li:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -7px;
        transform: translateX(50%) rotate(135deg);
    }

    .source-browser {
        grid-template-columns: 1fr;
    }

    .source-file-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .source-list-heading,
    .source-repository-link {
        grid-column: 1 / -1;
    }

    .source-file-list button:first-of-type {
        margin-top: 0;
    }

    .source-repository-link {
        margin-top: 4px;
    }

    .source-view-header > span:last-child {
        display: none;
    }

    .download-list article {
        grid-template-columns: 50px 1fr;
    }

    .download-list article > :last-child {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .demo-controls {
        grid-template-columns: 1fr;
    }

    .controls-footnote {
        grid-column: auto;
    }

    .diagram-branches {
        grid-template-columns: 1fr;
    }

    .diagram-branches::after,
    .diagram-node-small::before {
        display: none;
    }

    .source-file-list {
        grid-template-columns: 1fr;
    }

    .source-list-heading,
    .source-repository-link {
        grid-column: auto;
    }

    .footer-inner {
        padding: 24px 0;
    }
}

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