@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b1018;
  --ink-2: #121924;
  --ink-3: #1b2431;
  --line-dark: #2a3543;
  --on-ink: #eef2f7;
  --on-ink-2: #a9b6c6;
  --paper: #f6f4ef;
  --paper-2: #ece9e1;
  --line: #d8d3c7;
  --text: #171c24;
  --text-2: #4a5361;
  --sky: #4cc2ff;
  --sky-deep: #005a9e;
  --ember: #ff8a65;
  --ember-deep: #b23c17;
  --go: #4fdc9f;
  --go-deep: #0b7a4b;
  --amber: #ffc24d;
  --sans: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font: 0.88em/1.5 var(--mono); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: #fff; color: #000; border-radius: 6px; }
.skip:focus { top: 12px; }
.eyebrow { margin-bottom: 14px; font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--sky-deep); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; background: var(--sky); color: #04121c; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s; }
.btn:hover { background: #7ad3ff; }
.btn-ghost { background: transparent; border-color: var(--line-dark); color: var(--on-ink); }
.btn-ghost:hover { background: var(--ink-3); border-color: #41505f; }
.btn-small { min-height: 36px; padding: 5px 14px; font-size: 0.92rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(11 16 24 / 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(255 255 255 / 0.07); color: var(--on-ink); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--mono); text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav nav a:not(.btn) { color: var(--on-ink-2); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--on-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 48px; color: var(--on-ink); background: radial-gradient(900px 480px at 78% -8%, rgb(0 120 212 / 0.3), transparent 70%), var(--ink); }
.hero .eyebrow, .ink .eyebrow { color: var(--sky); }
.hero h1 { max-width: 16em; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 span { color: var(--ember); }
.lede { max-width: 46em; margin: 18px 0 24px; color: var(--on-ink-2); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero demo */
.demo { display: grid; grid-template-columns: minmax(0, 1.15fr) 58px minmax(0, 1fr); margin: 40px 0 0; }
.demo figcaption, .demo-transcript { grid-column: 1 / -1; }
.demo figcaption { margin-top: 14px; color: var(--on-ink-2); font-size: 0.9rem; line-height: 1.45; }
.demo figcaption a { color: var(--sky); }
.demo-chat, .sbx { display: flex; flex-direction: column; min-width: 0; height: min(440px, 70vh); min-height: 280px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); overflow: hidden; }
.demo-transcript { margin-top: 12px; color: var(--on-ink-2); font-size: 0.9rem; }
.demo-transcript summary { color: var(--sky); cursor: pointer; }
.demo-transcript ol { margin: 10px 0 0; padding-left: 1.5rem; list-style: decimal; }
.demo-transcript li { margin: 4px 0; }
.demo-transcript p { margin: 10px 0 0; }
.pane-bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 10px 0 14px; background: var(--ink-3); color: var(--on-ink-2); font: 0.78rem var(--mono); }
.pill { padding: 2px 8px; border: 1px solid var(--line-dark); border-radius: 99px; color: var(--amber); }
.log { flex: 1; min-height: 0; padding: 14px; overflow-y: auto; scroll-behavior: smooth; }
.bubble { max-width: 92%; margin: 0 0 12px; padding: 10px 14px; line-height: 1.42; font-size: 0.95rem; }
.bubble-you { min-height: 3.6em; margin-left: auto; border-radius: 12px 12px 3px 12px; background: #0a4a78; color: #f2f8fd; }
.bubble-agent { margin: 12px 0 0; border-radius: 12px 12px 12px 3px; background: var(--ink-3); color: var(--on-ink); }
.call { padding: 8px 0; border-top: 1px solid var(--line-dark); font-size: 0.82rem; }
.call-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.call-head code { color: var(--sky); font-weight: 600; }
.call-head .args { color: var(--on-ink-2); font-weight: 400; font-size: 0.74rem; overflow-wrap: anywhere; }
.call p { margin: 3px 0 0; color: var(--on-ink); line-height: 1.4; }
.tree { margin: 4px 0 0; color: var(--go); font: 0.74rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tree code { font: inherit; }
.thumb { display: grid; gap: 3px; width: 150px; margin-top: 6px; padding: 0 0 5px; border-radius: 4px; background: #f4f4f4; color: #1a1a1a; font-size: 0.62rem; overflow: hidden; }
.thumb b { padding: 2px 5px; background: #eaf3dc; font-weight: 500; }
.thumb i { padding: 0 5px; font-style: normal; }
.thumb u { margin: 1px 5px 0; padding: 5px; border: 1px solid #6aa5d8; border-radius: 2px; background: #dfecf8; text-align: center; text-decoration: none; font-weight: 700; }
.demo.playing .call, .demo.playing .bubble-agent { display: none; }
.demo.playing .call.shown, .demo.playing .bubble-agent.shown { display: block; animation: rise .25s ease-out; }
.call.running .call-head code:first-child::after { content: " running"; color: var(--amber); font-weight: 400; }
.call.running > :not(.call-head) { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.wire { position: relative; display: grid; place-items: center; }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line-dark); }
.wire span { position: relative; padding: 3px 7px; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--ink); color: var(--sky); font: 600 0.7rem var(--mono); }
.wire.on::before { border-top-color: var(--sky); }
.wire.on::after { content: ""; position: absolute; top: calc(50% - 4px); left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); animation: packet .7s linear infinite; }
@keyframes packet { to { left: calc(100% - 8px); } }

.desktop { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #05080d; transition: background .5s; }
.s-desk .desktop { background: linear-gradient(160deg, #17527f, #0c2c47 70%); }
.boot, .file-in, .gone, .flash, .app, .taskbar { position: absolute; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; }
.boot { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--on-ink-2); font-size: 0.92rem; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-dark); border-top-color: var(--sky); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-boot .boot { opacity: 1; }
.taskbar { left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; padding: 7px; background: rgb(10 18 28 / 0.75); }
.taskbar i { width: 16px; height: 16px; border-radius: 3px; background: #4a6175; }
.taskbar i:first-child { background: var(--sky); }
.s-desk .taskbar { opacity: 1; }
.file-in { top: 44%; left: 50%; display: grid; gap: 8px; width: 190px; padding: 12px 14px; border-radius: 8px; background: rgb(8 14 22 / 0.86); color: var(--on-ink); font-size: 0.82rem; transform: translate(-90%, -50%); }
.file-in b { font: 500 0.8rem var(--mono); }
.file-in i { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky) 70%, var(--line-dark) 70%); }
.s-copy .file-in { opacity: 1; transform: translate(-50%, -50%); }

.app { top: 50%; left: 50%; display: flex; flex-direction: column; width: min(84%, 370px); height: 220px; border-radius: 8px; background: #f0f0f0; color: #111; box-shadow: 0 16px 36px rgb(0 0 0 / 0.5); font-family: "Segoe UI", var(--sans); transform: translate(-50%, -44%) scale(.97); }
.s-app .app { opacity: 1; transform: translate(-50%, -52%); }
.app-title { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 8px 8px 0 0; background: #eaf3dc; font-size: 0.78rem; }
.app-title em { font-style: normal; }
.app-field { min-height: 36px; padding: 5px 8px; border-bottom: 1px solid #888; background: #fff; font-size: 1.05rem; }
.app-typed { opacity: 0; }
.s-typed .app-typed { opacity: 1; }
.app-label { min-height: 44px; padding: 6px 8px; font-size: 1.05rem; }
.say-after { display: none; }
.s-greet .say-before { display: none; }
.s-greet .say-after { display: inline; }
.app-button { display: grid; flex: 1; place-items: center; margin: 2px; border: 1px solid #6aa5d8; border-radius: 3px; background: #dfecf8; font-weight: 700; font-size: 1.1rem; }
.s-tree .ctl { position: relative; outline: 2px solid var(--ember-deep); outline-offset: -2px; }
.s-tree .ctl::after { content: attr(data-tag); position: absolute; right: 4px; top: 4px; padding: 1px 5px; border-radius: 3px; background: var(--ember-deep); color: #fff; font: 600 0.64rem var(--mono); }
.flash { inset: 0; background: #fff; }
.s-flash .flash { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.gone { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: var(--on-ink-2); font-size: 0.88rem; }
.gone strong { color: var(--ember); font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.gone code { color: var(--on-ink); }
.s-gone .gone { opacity: 1; }
.sbx-status { flex: none; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line-dark); color: var(--on-ink); font-size: 0.85rem; }

/* Buttons and terminal text */
.replay { margin-left: auto; padding: 3px 10px; border: 1px solid var(--line-dark); border-radius: 6px; background: transparent; color: var(--on-ink); font: inherit; cursor: pointer; }
.replay:hover { background: var(--ink-2); }
.cmd { color: var(--sky); }
.bad, .bad b { color: var(--ember); font-weight: 600; }

table.measured { min-width: 560px; }

/* Section shells */
.paper, .ink { padding: clamp(56px, 7vw, 88px) 0; }
.paper { background: var(--paper); color: var(--text); }
.paper-alt { background: var(--paper-2); }
.paper a:not(.btn), .tabs a:not(.btn) { color: var(--sky-deep); }
.paper code { padding: 1px 5px; border-radius: 4px; background: rgb(23 28 36 / 0.07); }
.paper pre code { padding: 0; background: none; }
.ink { background: var(--ink); color: var(--on-ink); }
.ink p { color: var(--on-ink-2); }
.ink p strong { color: var(--on-ink); }
.ink a:not(.btn) { color: var(--sky); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.section-lede { max-width: 42em; margin-bottom: 36px; color: var(--text-2); font-size: 1.1rem; }
.section-foot { margin: 24px 0 0; color: var(--text-2); }
.h-code { font: 600 0.9em var(--mono); background: none !important; padding: 0 !important; }
.out-cli { max-width: 760px; }

/* Tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tablist button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-2); font: 500 0.98rem var(--sans); cursor: pointer; transition: background-color .15s, color .15s; }
.tablist button:hover { background: rgb(23 28 36 / 0.06); color: var(--text); }
.tablist button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; }
.panel[hidden] { display: none; }
.tabs:not(.tabs-ink) .panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.panel-copy h3 { margin-bottom: 12px; }
.panel-copy p { color: var(--text-2); }
.test-script { margin-top: 16px; }
.test-script summary { color: var(--sky-deep); cursor: pointer; }
.test-script pre { max-height: 320px; margin: 10px 0 0; padding: 14px; overflow: auto; border-radius: 8px; background: var(--ink); color: #d6deea; font: 0.75rem/1.55 var(--mono); white-space: pre; }
.test-script pre code { padding: 0; background: none; font: inherit; }
.out { margin: 0; padding: 20px; overflow-x: auto; border-radius: 8px; background: var(--ink); color: #d6deea; font: 0.78rem/1.62 var(--mono); }
.out code { font: inherit; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.dot.red { background: #ff5a4f; }
.dot.amber { background: var(--amber); }
.note { margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--ember-deep); font-size: 0.92rem; }

/* MCP architecture */
.arch { display: grid; grid-template-columns: minmax(0, 2.6fr) 104px minmax(0, 1fr); margin: 8px 0 0; }
.zone { padding: 16px; border-radius: 12px; }
.zone-host { border: 1px dashed #41505f; background: rgb(255 255 255 / 0.02); }
.zone-guest { display: flex; flex-direction: column; border: 2px solid var(--go); background: rgb(79 220 159 / 0.06); }
.zone-name { margin: 0 0 12px; font: 600 0.78rem var(--mono); }
.ink .zone-guest .zone-name { color: var(--go); }
.arch-host { display: grid; grid-template-columns: minmax(0, 1fr) 30px 190px; align-items: center; }
.lanes { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: stretch; }
.node { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 8px; background: var(--ink-2); }
.node strong { font-weight: 600; font-size: 0.97rem; line-height: 1.25; }
.node span { color: var(--on-ink-2); font-size: 0.8rem; line-height: 1.35; }
.node-sky { border-color: var(--sky); }
.node-engine { border-color: var(--ember); background: #2a1c17; }
.node-go { flex: 1; border-color: var(--go); }
.node-evidence { border-style: dashed; }
.engine-col { display: grid; gap: 10px; }
.link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 20px; }
.link::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; border-top: 2px solid #55677a; }
.link::after { content: ""; position: absolute; right: 2px; top: calc(50% - 4px); border-left: 7px solid #55677a; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.link span { position: relative; padding: 1px 4px; background: var(--ink); color: var(--on-ink-2); font: 0.68rem/1.25 var(--mono); text-align: center; }
.link-bridge span { color: var(--go); }
.link-down { flex: none; height: 26px; }
.link-down::before { left: 50%; right: auto; top: 3px; bottom: 3px; border-top: 0; border-left: 2px solid var(--go); }
.link-down::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 1px; border-top: 7px solid var(--go); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
.tool-tag { display: inline-block; margin-top: 4px; color: var(--sky-deep); font-size: 0.74rem; font-weight: 500; letter-spacing: 0; }

/* Comparison */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.96rem; line-height: 1.35; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
tbody th { font-weight: 550; }
td.yes { color: var(--go-deep); font-weight: 550; }

/* The sandbox */
.boundary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); margin: 0; }
.side { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); background: #fffdf8; line-height: 1.35; }
.side span { color: var(--text-2); font-size: 0.9rem; }
.side strong { font-weight: 650; }
.side-guest { border: 2px solid var(--go-deep); border-radius: 0 var(--radius) var(--radius) 0; }
.pipes { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; border-block: 1px solid var(--line); background: var(--ink); color: var(--on-ink); }
.pipes li { display: grid; grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--ink-3); font-size: 0.88rem; }
.pipes code { padding: 0; background: none; color: var(--sky); }
.pipes em { color: var(--on-ink-2); font-size: 0.8rem; font-style: normal; text-align: right; }
.dir { color: var(--go); font-weight: 700; text-align: center; }
.dir-back { color: var(--amber); }
.pipe-off { background: transparent !important; color: var(--on-ink-2); }
.pipe-off .dir { color: var(--ember); }
.note-wide { margin: 28px 0 0; color: var(--text-2); }

/* Get it */
.code-enable { max-width: 760px; margin-bottom: 32px; }
.code { position: relative; border: 1px solid var(--line-dark); border-radius: 8px; background: #06090e; }
.code pre { margin: 0; padding: 14px 72px 14px 14px; overflow-x: auto; color: #d6deea; font: 0.8rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.code code { font: inherit; }
.copy { position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 3px 10px; border: 1px solid var(--line-dark); border-radius: 6px; background: var(--ink-3); color: var(--on-ink); font: 500 0.78rem var(--sans); cursor: pointer; }
.copy:hover { background: #2a3543; }
.tabs-ink .tablist button { border-color: var(--line-dark); color: var(--on-ink-2); }
.tabs-ink .tablist button:hover { background: var(--ink-3); color: var(--on-ink); }
.tabs-ink .tablist button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #04121c; }
.tabs-ink .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink-2); border-color: var(--line-dark); }
.tabs-ink .panel-copy p { color: var(--on-ink-2); }
.tabs-ink a:not(.btn) { color: var(--sky); }
.code-label { margin: 0 0 8px; color: var(--on-ink-2); font: 0.78rem var(--mono); }

/* Limits, footer */
.limits li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.5; }
.limits li:first-child { border-top: 0; padding-top: 0; }
.limits strong { color: var(--text); }
.foot { padding: 26px 0; border-top: 1px solid var(--line-dark); color: var(--on-ink-2); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 404 */
.lost { display: grid; place-content: center; min-height: 100vh; padding: 24px; color: var(--on-ink); text-align: center; }
.lost p { color: var(--on-ink-2); }

@media (max-width: 1100px) {
  .arch { grid-template-columns: minmax(0, 1fr); }
  .link-bridge { height: 44px; }
  .link-bridge::before { left: 50%; right: auto; top: 2px; bottom: 2px; border-top: 0; border-left: 2px solid #55677a; }
  .link-bridge::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 0; border-top: 7px solid #55677a; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .zone-guest { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; }
  .zone-guest .zone-name { grid-column: 1 / -1; }
  .zone-guest .link-down { height: auto; }
  .zone-guest .link-down::before { left: 2px; right: 2px; top: 50%; bottom: auto; border-left: 0; border-top: 2px solid var(--go); }
  .zone-guest .link-down::after { left: auto; right: 0; top: calc(50% - 4px); bottom: auto; border-left: 7px solid var(--go); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 0; }
}
@media (max-width: 980px) {
  .split, .panel, .tabs-ink .panel, .boundary { grid-template-columns: minmax(0, 1fr); }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sbx { order: -1; height: min(340px, 55vh); min-height: 260px; }
  .app { height: 184px; }
  .app-field { min-height: 30px; }
  .app-label { min-height: 36px; }
  .wire { order: 0; height: 40px; }
  .wire::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line-dark); }
  .wire.on::before { border-left-color: var(--sky); }
  .wire.on::after { display: none; }
  .demo-chat { order: 1; height: min(380px, 62vh); min-height: 280px; }
  .demo figcaption { order: 2; }
  .arch-host { grid-template-columns: minmax(0, 1fr); }
  .link-short { height: 24px; }
  .link-short::before { left: 50%; right: auto; top: 2px; bottom: 2px; border-top: 0; border-left: 2px solid #55677a; }
  .link-short::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 0; border-top: 7px solid #55677a; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .engine-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .side, .side-guest { border-radius: var(--radius) var(--radius) 0 0; }
  .side-guest { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0 44px; }
  .demo { margin-top: 28px; }
  .nav nav a:not(.btn) { display: none; }
  .tablist button { flex: 1 1 100%; text-align: left; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .lanes { gap: 26px; }
  .lane .link { height: 30px; }
  .lane .link::before { left: 50%; right: auto; top: 2px; bottom: 2px; border-top: 0; border-left: 2px solid #55677a; }
  .lane .link::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 0; border-top: 7px solid #55677a; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .engine-col, .zone-guest { grid-template-columns: minmax(0, 1fr); }
  .zone-guest .link-down { height: 26px; }
  .zone-guest .link-down::before { left: 50%; right: auto; top: 3px; bottom: 3px; border-top: 0; border-left: 2px solid var(--go); }
  .zone-guest .link-down::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 1px; border-top: 7px solid var(--go); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .pipes li { grid-template-columns: 22px minmax(0, 1fr); }
  .pipes em { grid-column: 2; text-align: left; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .log { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
