@font-face {
  font-family: "Space Grotesk";
  src: url("/brand/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0d151e;
  --panel: #14202b;
  --ink: #f3f7f8;
  --muted: #b1c0ca;
  --line: #334654;
  --mint: #a4eed3;
  --paper: #eaf0ee;
  --paper-ink: #17262c;
  --paper-muted: #475e61;
  --paper-line: #becfcb;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(19px, 5.8vw, 96px);
  background: var(--night);
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #46b289; outline-offset: 4px; }
::selection { background: var(--mint); color: #103124; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 12px auto auto 12px; transform: translateY(-160%); color: var(--night); background: var(--mint); padding: 12px 15px; border-radius: 4px; }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 1; border-bottom: 1px solid #253641; background: #0d151e; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font-size: 1.27rem; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.brand img { display: block; flex: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3.1vw, 44px); }
.site-header nav a, .site-footer nav a { text-decoration: none; font-size: .94rem; color: var(--muted); }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; width: fit-content; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; text-align: center; font-size: .95rem; line-height: 1.25; font-weight: 650; transition: background-color .17s, border-color .17s; }
.button.primary { background: var(--mint); color: #152e27; border-color: #a4eed3; }
.button.primary:hover { background: #c5f8e6; border-color: #c5f8e6; }
.button.outline { border-color: #526775; background: #131e28b5; color: var(--ink); }
.button.outline:hover { background: #233644; border-color: #8196a2; }
.nav-signin { justify-self: end; min-height: 40px; }

.opening { position: relative; overflow: hidden; padding-bottom: clamp(54px, 7vw, 86px); background: radial-gradient(ellipse at 85% 75%, #132632, transparent 48%), var(--night); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(420px, 35vw, 525px); padding-block: 59px 66px; }
.hero-art { position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(-1 * min(var(--gutter), 56px)); width: min(76%, 930px); background: url("/brand/instrument.webp") center 49% / cover no-repeat; mask-image: radial-gradient(ellipse 88% 76% at 59% 41%, #000 29%, transparent 97%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d151e 1%, #0d151ee0 16%, #0d151e2b 50%, transparent 88%, #0d151e), linear-gradient(0deg, #0d151e, transparent 18%, transparent 90%, #0d151e); }
.hero-main { position: relative; max-width: 58rem; }
.section-label { display: flex; align-items: center; gap: 10px; color: var(--mint); text-transform: uppercase; font: 600 .755rem/1.45 var(--mono); letter-spacing: .091em; }
.section-label > span { display: inline-block; width: 13px; height: 7px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: skewX(-28deg); }
.hero h1 { margin-block: 16px 21px; color: #f5fafb; font-size: clamp(3.25rem, 7.2vw, 6.7rem); font-weight: 650; line-height: .94; letter-spacing: -.078em; word-spacing: .035em; }
.hero h1 em { display: block; color: #c6f3e5; font: italic 400 .98em/.97 Georgia, serif; letter-spacing: -.071em; }
.hero-description { max-width: 32rem; color: #d1dce2; font-size: clamp(1.05rem, 1.55vw, 1.22rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; }

.workflow { position: relative; }
.flow-heading { display: flex; flex-wrap: wrap; gap: 8px 21px; align-items: baseline; justify-content: space-between; padding: 13px 0 16px; border-top: 1px solid #48606e; }
.flow-heading h2 { font-size: clamp(1.45rem, 2.5vw, 2.08rem); line-height: 1.08; font-weight: 650; letter-spacing: -.048em; }
.flow-heading p { color: #adc1ca; font: .76rem/1.4 var(--mono); }
.flow-heading p span { color: #75d4b4; margin-inline: 4px; }
.workbench { overflow: hidden; border: 1px solid #4b6471; border-radius: 13px; background: linear-gradient(157deg, #142430, #101b25 65%); box-shadow: 0 14px 44px #020b1250; }
.demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #3b4d59; border-bottom: 1px solid #3b4d59; }
.demo-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; min-width: 0; padding: 9px; border: 0; border-bottom: 2px solid transparent; background: #14212b; color: #b8c9d3; cursor: pointer; font-size: .91rem; font-weight: 650; }
.demo-tabs button:hover { background: #1d303d; color: var(--ink); }
.demo-tabs button[aria-selected="true"] { border-bottom-color: var(--mint); background: #243f46; color: #e5fff6; }
.demo-tabs button:focus-visible { outline-color: #95e7cb; outline-offset: -4px; }
.step-icon { position: relative; display: inline-block; flex: none; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 3px; opacity: .85; }
.step-icon::after { content: ""; position: absolute; }
.is-diff::after { inset: 2px auto 2px 6px; border-left: 1px solid currentColor; }
.is-test::after { top: 6px; left: 3px; width: 7px; border-bottom: 1px solid currentColor; transform: rotate(-35deg); }
.is-revise { border-bottom-right-radius: 8px; border-top-left-radius: 8px; }
.is-revise::after { width: 6px; height: 6px; inset: 4px auto auto 4px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg); }
.is-apply::after { width: 7px; height: 4px; inset: 3px auto auto 3px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); }
.flow-panel { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr); align-items: center; gap: clamp(22px, 5.4vw, 82px); min-height: 262px; padding: clamp(19px, 3.25vw, 43px); }
.flow-panel:focus-visible { outline-color: #9ee9d2; outline-offset: -4px; }
.flow-state { display: inline-flex; gap: 7px; align-items: center; color: #a5e7d2; font: 550 .76rem/1.4 var(--mono); }
.flow-state span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-fail { color: #ffb4ad; }
.state-pass { color: #e0f7a8; }
.flow-copy h3 { margin-block: 9px 8px; color: #f3f8fb; font-size: clamp(1.3rem, 2.6vw, 2.18rem); font-weight: 650; letter-spacing: -.049em; line-height: 1.09; }
.flow-copy > p:last-child { color: #beced7; font-size: 1rem; line-height: 1.55; }
.code-window { min-width: 0; border: 1px solid #3b5563; border-radius: 8px; overflow: hidden; background: #0b141d; }
.code-head, .code-foot { display: flex; align-items: center; gap: 6px 11px; color: #c0cdd5; background: #1a2a35; font: .75rem/1.44 var(--mono); padding: 9px 12px; }
.code-head { justify-content: space-between; border-bottom: 1px solid #3b5563; }
.code-head span:first-child { font-weight: 650; color: #f2f8fa; }
.code-body { min-height: 124px; padding-block: 10px; }
.code-body pre { overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-body code { color: #d8e5eb; font: .83rem/1.74 var(--mono); }
.code-body code > span { display: block; padding-inline: 12px; }
.code-body .remove { color: #ffbdbb; background: #432e35; }
.code-body .add { color: #c7f0dd; background: #1d3a35; }
.term-command { color: #a8e9d2; }
.term-fail { color: #ffaea8; }
.term-pass, .code-body b { color: #bceea1; font-weight: 650; }
.code-foot { border-top: 1px solid #3b5563; }
.file-symbol { width: 8px; height: 10px; border: 1px solid #a5c7d1; border-radius: 2px; }

.context-section { padding-block: clamp(52px, 7.4vw, 105px); background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.context-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(26px, 7.6vw, 111px); align-items: start; }
.section-intro h2, .close-section h2 { margin-top: 13px; font-size: clamp(2.42rem, 4.6vw, 4.65rem); font-weight: 650; line-height: 1.015; letter-spacing: -.067em; word-spacing: .02em; }
.section-intro > p:last-child { max-width: 31em; margin-top: 15px; font-size: 1.06rem; line-height: 1.58; }
.context-section .section-label, .downloads .section-label { color: #287458; }
.context-list { border-top: 1px solid var(--paper-line); }
.context-list > div { display: grid; grid-template-columns: minmax(0, 144px) minmax(0, 1fr); gap: 8px 15px; align-items: baseline; border-bottom: 1px solid var(--paper-line); padding-block: 19px; }
.context-list dt, .route-list dt, .client h3 { font-size: 1.16rem; font-weight: 650; letter-spacing: -.028em; }
.context-list dd { color: var(--paper-muted); font-size: .98rem; line-height: 1.5; }

.models { color: var(--ink); background: #18272f; padding-block: clamp(56px, 7vw, 90px); }
.models-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.1fr); align-items: center; gap: clamp(31px, 8vw, 115px); }
.models .section-intro > p:last-child { color: #c4d0d6; }
.route-list { border-top: 1px solid #4b6571; }
.route-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 19px 0; border-bottom: 1px solid #4b6571; }
.route-row dd { margin-top: 3px; color: #c3d4da; font-size: 1rem; line-height: 1.48; }
.route-mark { position: relative; width: 37px; height: 37px; border: 1px solid #597c7b; border-radius: 6px; background: #23373e; }
.route-mark::before, .route-mark::after { content: ""; position: absolute; }
.route-mark::before { inset: 8px; border: 1px solid #a4eed3; border-radius: 2px; }
.route-mark::after { inset: 12px; border: 1px solid #a4eed3; border-radius: 2px; }
.route-gpu::after { inset: 12px 11px; border: 0; border-inline: 3px double #a4eed3; }
.route-endpoint::before { inset: 9px 9px 19px; }
.route-endpoint::after { inset: 19px 9px 9px; }

.downloads { padding-block: clamp(53px, 7.9vw, 108px); background: #f0f4f3; color: var(--paper-ink); color-scheme: light; }
.download-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 19px 40px; margin-bottom: 30px; }
.download-intro > p:last-child { max-width: 27em; color: var(--paper-muted); margin-bottom: 4px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.client { min-width: 0; border-bottom: 1px solid var(--paper-line); padding: 19px 20px 19px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.client:nth-child(2) { padding: 19px 0 19px 23px; border-left: 1px solid var(--paper-line); }
.client-terminal { grid-column: 1 / -1; padding-right: 0; }
.client p { margin-top: 4px; color: var(--paper-muted); font-size: 1rem; line-height: 1.49; }
.download-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; width: fit-content; padding: 7px 11px; border: 1px solid #aabfb7; border-radius: 5px; text-decoration: none; font-size: .88rem; font-weight: 650; color: #23583f; background: #e3eeea; }
.download-button:hover { background: #d2eade; border-color: #719f8d; }
.download-button span { color: #526e63; font: .68rem var(--mono); }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.manifest-link { display: inline-block; color: #405f53; text-underline-offset: 4px; font-size: .91rem; margin-top: 17px; }
.manifest-link:hover { color: #1b503c; }

.close-section { background: #d3e7e0; color: #16372d; border-block: 1px solid #a7c5ba; }
.close-inner { display: flex; flex-wrap: wrap; gap: 19px 32px; align-items: center; justify-content: space-between; padding-block: clamp(32px, 5vw, 69px); }
.close-inner h2 { margin-top: 0; font-size: clamp(2.1rem, 4vw, 3.85rem); }
.close-inner p { margin-top: 8px; color: #3d6457; font-size: 1rem; line-height: 1.48; }
.close-section .button.primary { background: #224b3c; color: #effff8; border-color: #224b3c; }
.close-section .button.primary:hover { background: #315f4e; border-color: #315f4e; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-block: 24px; }
.site-footer .brand { font-size: 1.08rem; }

@media (max-width: 820px) {
  .hero-art { width: 89%; }
  .hero-art::after { background: linear-gradient(90deg, #0d151e, #0d151ed0 21%, #0d151e66 74%, #0d151e), linear-gradient(0deg, #0d151e, transparent 24%, transparent 82%, #0d151e); }
  .hero { min-height: 0; }
  .context-grid, .models-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-panel { gap: 20px; }
}

@media (max-width: 580px) {
  .nav-inner { min-height: 0; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-top: 10px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; min-height: 43px; gap: 20px; }
  .site-header nav a { padding-block: 8px; }
  .hero { padding-block: 46px 40px; }
  .hero h1 { margin-block: 13px 14px; font-size: clamp(2.8rem, 11.9vw, 4.25rem); }
  .hero-art { top: -20px; bottom: auto; height: 240px; width: min(100vw, 440px); right: calc(-1 * var(--gutter)); opacity: .64; background-position: 65% center; mask-image: none; }
  .hero-art::after { background: linear-gradient(90deg, #0d151e, #0d151e7f 62%, #0d151e4d), linear-gradient(0deg, #0d151e 0, transparent 41%, transparent 77%, #0d151e); }
  .hero-actions { gap: 7px; margin-top: 21px; }
  .hero-actions .button { padding-inline: 11px; font-size: .89rem; }
  .flow-heading { padding-bottom: 12px; }
  .workbench { border-radius: 9px; }
  .flow-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 17px; padding: 14px; }
  .flow-copy h3 { margin-block: 6px; }
  .demo-tabs button { gap: 5px; min-height: 48px; padding-inline: 3px; font-size: .88rem; }
  .step-icon { width: 12px; height: 12px; }
  .is-diff::after { left: 4px; }
  .is-test::after { top: 4px; left: 2px; }
  .is-revise::after { top: 3px; left: 3px; width: 5px; height: 5px; }
  .is-apply::after { left: 2px; }
  .code-head, .code-foot { padding-inline: 9px; font-size: .7rem; }
  .code-body { min-height: 0; }
  .code-body code { font-size: .75rem; }
  .code-body code > span { padding-inline: 9px; }
  .context-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-block: 15px; }
  .route-row { padding-block: 15px; }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .client, .client:nth-child(2) { border-left: 0; padding: 14px 0; }
  .footer-inner { align-items: start; }
  .site-footer nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
