:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --panel: #121214;
  --text: #ebebeb;
  --body: #bcbcbc;
  --text-2: #a1a1a1;
  --text-3: #8f8f8f;
  --hair: rgba(235, 235, 235, 0.07);
  --sep: rgba(235, 235, 235, 0.12);
  --working: #f76b15;
  --waiting: #ffb224;
  --success: #30a46c;
  --success-text: #3dd68c;
  --failed: #e5484d;
  --merged: #a371f7;
  --action: #7c85e3;
  --link: #70b8ff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }

body {
  position: relative;
  overflow-x: clip;
  z-index: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Geist, -apple-system, BlinkMacSystemFont, sans-serif;
}

main { min-width: 0; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font: 500 0.92em "Geist Mono", ui-monospace, monospace; color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 em, h1 em { font-style: normal; color: var(--text-3); }
/* A headline's second half steps back in colour, not in typeface. */
h1 .grad, h2 .grad { color: var(--text-3); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip:focus { left: 8px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font: 400 13px/1.5 "Geist Mono", ui-monospace, monospace; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, calc(var(--max) + 32px));
  height: 64px;
  margin-top: 0;
  padding: 0 16px;
  border-radius: 18px;
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transform: translateX(-50%);
  transition: width 500ms var(--ease-out), height 500ms var(--ease-out), margin-top 500ms var(--ease-out), background-color 300ms, box-shadow 300ms;
}
/* Once the page moves, the bar draws in to a floating capsule of glass. */
.nav.scrolled {
  width: min(100% - 24px, 920px);
  height: 54px;
  margin-top: 12px;
  padding: 0 8px 0 14px;
  background-color: rgba(18, 18, 21, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(124, 133, 227, 0.35); transition: transform 300ms var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav nav { position: relative; display: flex; gap: 2px; font-size: 14px; color: var(--text-2); }
.nav nav a { position: relative; padding: 7px 12px; border-radius: 999px; transition: color 160ms, background-color 160ms; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nav nav a.on::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 14px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: linear-gradient(90deg, #f76b15, #a371f7); box-shadow: 0 0 8px rgba(247, 107, 21, 0.7); }
.nav-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav .btn.primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 6px 20px rgba(247, 107, 21, 0.25); }
.gh { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); transition: color 160ms, background-color 160ms; }
.gh:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.gh svg { width: 18px; height: 18px; fill: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.btn.primary { color: var(--bg); background: var(--text); }
.btn.primary:hover { background: #fff; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--sep); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.small { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
.fine a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--sep); text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 120px 24px 0; isolation: isolate; }
.hero-copy { max-width: var(--max); margin: 0 auto; text-align: center; }
/* Dims the ASCII field behind the copy so the text stays easy to read. */
.hero-copy { position: relative; }
.hero-copy::before { content: ""; position: absolute; inset: -40px 10%; z-index: -1; background: radial-gradient(closest-side, rgba(9, 9, 10, 0.88) 40%, transparent); pointer-events: none; }
.badge-oss { color: var(--text-2); font: 400 12px/1.5 "Geist Mono", ui-monospace, monospace; }
.badge-oss:hover { color: var(--text); }
h1 { margin-top: 24px; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }

.agents { max-width: var(--max); margin: 48px auto 0; }
.agent-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.agent-item { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; white-space: nowrap; }
.agent-item svg { width: 16px; height: 16px; }
.stage { max-width: 1440px; margin: 32px auto 0; scroll-margin-top: 80px; }
.stage-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }

/* The feature list beside the window: three numbered story cards, then a quieter list of the rest, which show their
   line when selected. */
.features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.features .group { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 6px; padding: 14px 12px 0; border-top: 1px solid var(--hair); color: var(--text-3); font: 400 11px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.features .group:first-child { margin: 0 0 8px; padding-top: 0; border-top: 0; }
.features .group small { font: inherit; letter-spacing: 0; text-transform: none; }
.features button { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 8px; min-height: 32px; padding: 7px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-2); font: 400 13px/18px Geist, sans-serif; text-align: left; cursor: pointer; transition: color 160ms, background-color 160ms, border-color 160ms; }
.features button b { font-weight: 400; }
.features button i { display: flex; color: var(--text-3); }
.features button svg { width: 14px; height: 14px; }
.features button span { display: none; grid-column: 2; margin-top: 5px; color: var(--text-2); font-size: 12.5px; line-height: 18px; }
.features button:hover { color: var(--text); background: var(--bg-2); }
.features button[aria-selected="true"] { color: var(--text); background: var(--panel); border-color: var(--sep); }
.features button[aria-selected="true"] i { color: #ff9a4d; }
.features button[aria-selected="true"] span { display: block; }
.features button:focus-visible { outline: 2px solid #ff9a4d; outline-offset: 2px; }
/* Stories are cards: number and title, the line full width beneath, and a bar that fills over the story's dwell. */
.features .story { margin-bottom: 4px; padding: 12px 12px 16px; background: var(--bg-2); border-color: var(--hair); font-size: 15px; line-height: 20px; }
.features .story b { font-weight: 600; }
.features .story em { color: var(--text-3); font: 400 12px/20px "Geist Mono", ui-monospace, monospace; font-style: normal; }
.features .story span { display: block; grid-column: 1 / -1; margin-top: 6px; color: var(--text-3); }
.features .story[aria-selected="true"] em { color: #ff9a4d; }
.features .story[aria-selected="true"] span { color: var(--text-2); }
.features .story::before, .features .story::after { content: ""; position: absolute; inset: auto 12px 6px; height: 2px; background: var(--sep); opacity: 0; }
.features .story::after { background: var(--working); transform-origin: left; }
.features .story[aria-selected="true"]::before, .features .story[aria-selected="true"]::after { opacity: 1; }
.features .story.is-playing::after { animation: features-progress var(--dwell) linear both; }
@keyframes features-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.desktop-frame { position: relative; overflow: auto; border-radius: 12px; border: 1px solid var(--sep); }
.window {
  position: relative;
  margin: 0;
  border-radius: 12px;
  container-type: inline-size;
  overflow: hidden;
  background: #121212;
}
/* GPUI renders the content only; macOS draws the traffic lights. Positions are in points of the 1440pt window. */
.lights { position: absolute; top: calc(14 / 1440 * 100cqw); left: calc(14 / 1440 * 100cqw); z-index: 2; display: flex; gap: calc(8 / 1440 * 100cqw); }
.lights i { width: calc(12 / 1440 * 100cqw); height: calc(12 / 1440 * 100cqw); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.hint { display: block; margin: 28px 0 0; color: var(--text-2); font-size: 13px; }
.hint .live { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; }
.player { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--sep); color: var(--text-2); font: 500 13px Geist, sans-serif; cursor: pointer; transition: color 160ms, background-color 160ms; }
.player:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.player[aria-pressed="true"] { color: var(--text); }
.player[aria-pressed]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--text-3); }
.player[aria-pressed="true"]::before { background: var(--working); }
/* On a wide screen the selected story shows its line in the list; under the window it is for narrow ones. */
.caption { display: none; }

/* Sections */
section { position: relative; }
.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro h2, .iphone h2, .oss h2, .faq h2, .closing h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; }
.intro p { margin: 20px auto 0; max-width: 620px; color: var(--text-2); font-size: 18px; }

.tour { padding: 96px 24px 0; }

.tour-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: var(--max); margin: 48px auto 0; }
.card h3 { font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
/* Feature cards: a picture of the thing on top, the claim below it. */
.card.feat { display: flex; flex-direction: column; padding: 0; }
.feat .vis { position: relative; display: grid; place-content: center; gap: 14px; height: 208px; padding: 24px; border-bottom: 1px solid var(--sep); background: var(--bg-2); }
.feat .vis > * { position: relative; z-index: 1; }
.feat-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 24px 24px; }
.feat-body p { flex: 1; }
.feat-body .more { margin-top: 16px; color: var(--text-2); font-size: 14px; }
.feat-body .more:hover { color: var(--text); }
.lifecycle { display: grid; gap: 6px; width: 280px; margin: 0; padding: 0; list-style: none; }
.lifecycle li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 6px; color: var(--text-2); font-size: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.lifecycle li > i { width: 7px; height: 7px; border-radius: 50%; }
.lifecycle li b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.lifecycle li span { font: 12px "Geist Mono", ui-monospace, monospace; }
.s-working span { color: var(--working); }
.s-needs span { color: var(--waiting); }
.s-done span { color: var(--success-text); }
.s-failed span { color: var(--failed); }
.survive { justify-items: center; }
.survive .ghost { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--text-3); font-size: 13px; box-shadow: inset 0 0 0 1px var(--sep); opacity: 0.7; }
.survive .ghost .dots { display: flex; gap: 5px; }
.survive .ghost .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: 0.5; }
.daemon { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.daemon > div { display: flex; gap: 6px; }
.daemon code, .daemon span, .moves > * { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 6px; color: var(--text); font: 12.5px "Geist Mono", ui-monospace, monospace; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.daemon code { color: #ff9a4d; box-shadow: inset 0 0 0 1px rgba(247, 107, 21, 0.35); }
.daemon span i { width: 6px; height: 6px; border-radius: 50%; background: var(--working); }
.frame { width: 100%; justify-items: start; padding-inline: 32px; }
.frame b { font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.frame b small { margin-left: 6px; color: var(--text-3); font: 500 18px "Geist Mono", ui-monospace, monospace; letter-spacing: 0; }
.frame .meter { width: 100%; margin: 0; }
.frame .budget { margin: 0; }
.s-working > i { background: var(--working); }
.s-needs > i { background: var(--waiting); }
.s-done > i { background: var(--success); }
.s-failed > i { background: var(--failed); }

/* Handoff */
.handoff { margin-top: 96px; padding: 80px 24px; background: var(--bg-2); border-block: 1px solid var(--hair); }
.handoff .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; max-width: var(--max); text-align: left; }
.handoff .intro .eyebrow { grid-column: 1 / -1; color: #ff9a4d; }
.handoff .intro h2 { margin: 0; }
.handoff .intro p { margin: 0; }
.handoff .feat .vis { background: var(--bg); }
.handoff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--max); margin: 48px auto 0; }
.hand-flow { display: flex; align-items: center; justify-content: center; gap: 0; }
.hand-flow > span { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; background: var(--panel); box-shadow: inset 0 0 0 1px var(--sep); }
.hand-flow i { display: flex; }
.hand-flow svg { width: 18px; height: 18px; }
.wire { --run: 96px; position: relative; width: var(--run); height: 2px; background: repeating-linear-gradient(90deg, rgba(247, 107, 21, 0.6) 0 6px, transparent 6px 11px); }
.wire b { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ff9a4d; box-shadow: 0 0 12px rgba(247, 107, 21, 0.8); animation: wire 2.4s var(--ease-out) infinite; }
@keyframes wire { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(var(--run)); opacity: 0; } }
.moves { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.moves > * { height: 26px; padding: 0 10px; color: var(--text-2); font-size: 12px; }
.handoff-grid .btn { margin-top: 20px; border: 0; font-family: inherit; cursor: pointer; }

/* iPhone */
.iphone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; max-width: var(--max); margin: 0 auto; padding: 96px 24px 0; }
.iphone-copy p { margin: 20px 0 0; color: var(--text-2); font-size: 18px; max-width: 520px; }
.soon { color: var(--text-2); font: inherit; }
.checks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--body); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(48, 164, 108, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233dd68c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.phone-tabs { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.phone-tabs button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: 500 14px Geist, sans-serif; cursor: pointer; }
.phone-tabs button:hover { color: var(--text); }
.phone-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.phone-stage { position: relative; display: grid; place-items: center; overflow-x: clip; padding: 4px; }

/* CLI */
.cli { padding: 96px 24px 0; }
.cli .eyebrow { display: block; }
.term-window { max-width: 820px; margin: 48px auto 0; border-radius: 12px; overflow: hidden; background: #0c0c0d; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 0 0 1px var(--hair); text-align: left; }
.term-bar { position: relative; display: flex; justify-content: center; align-items: center; height: 36px; border-bottom: 0.5px solid var(--sep); color: var(--text-3); font-size: 12px; container-type: inline-size; }
.term-bar .lights { top: 12px; left: 14px; gap: 8px; }
.term-bar .lights i { width: 12px; height: 12px; }
.term-body { margin: 0; padding: 20px 24px; overflow: auto; color: var(--body); font: 13px/1.7 "Geist Mono", ui-monospace, monospace; white-space: pre; }
.term-body .p { color: var(--success-text); }
.term-body .c { color: var(--text); }
.term-body .o { color: var(--text-3); }
.term-body .k { color: var(--waiting); }
.term-body .g { color: var(--success-text); }
.cli-more { margin: 24px 0 0; text-align: center; }
.cli-more a { color: var(--text-2); font-size: 15px; }
.cli-more a:hover { color: var(--text); }

.meter { display: block; height: 4px; margin-top: 16px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3dd68c, #f76b15); box-shadow: 0 0 10px rgba(247, 107, 21, 0.5); transform: scaleX(var(--v)); transform-origin: left; }
.budget { display: block; margin-top: 8px; color: var(--text-3); font: 12px "Geist Mono", ui-monospace, monospace; }

/* Open source: the claim on the left, what it means on the right. */
.oss { padding: 96px 24px 0; }
.oss-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: var(--max); margin: 0 auto; }
.oss .ctas { justify-content: flex-start; }
.oss-lede { max-width: 560px; margin: 20px 0 0; color: var(--text-2); font-size: 17px; }
.card { position: relative; margin: 0; padding: 24px; overflow: hidden; border-radius: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--sep); }
.trust { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sep); }
.trust li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--sep); }
.trust i { display: flex; padding-top: 3px; color: #ff9a4d; }
.trust b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.trust span { grid-column: 2; margin-top: 4px; color: var(--text-2); font-size: 15px; }

/* Download */
.download { padding: 96px 24px 0; }
.download .intro a { color: var(--text); }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: var(--max); margin: 48px auto 0; }
.download-grid .card { display: flex; flex-direction: column; align-items: flex-start; transition: transform 200ms var(--ease-out), box-shadow 200ms; }
.download-grid .card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.download-grid .btn::after { content: ""; position: absolute; inset: 0; }
/* A pressed button's transform would shrink the card-wide hit area mid-click. */
.download-grid .btn:active { transform: none; }
.download-grid .os { display: block; width: 28px; height: 28px; margin-bottom: 20px; fill: currentColor; color: var(--text); }
.download-grid .os svg { width: 28px; height: 28px; }
.download-grid h3 { font-size: 18px; }
.download-grid p { flex: 1; margin: 8px 0 24px; font-size: 14px; }
.download-grid p a { position: relative; z-index: 1; color: var(--text); }

/* Closing */
.faq { padding: 96px 24px 0; }
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; max-width: var(--max); margin: 0 auto; }
.faq h2 { margin: 0; }
.faq-list { border-bottom: 1px solid var(--sep); }
.faq details { border-top: 1px solid var(--sep); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; list-style: none; cursor: pointer; transition: color 160ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--text-3); font: 400 22px/1 "Geist Mono", ui-monospace, monospace; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { max-width: 680px; margin: -4px 0 0; padding-bottom: 22px; color: var(--text-2); font-size: 15px; }
.faq a { color: var(--text); }
.closing { padding: 96px 24px; text-align: center; }
.closing img { margin: 0 auto 24px; border-radius: 16px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; max-width: var(--max); margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--hair); color: var(--text-3); font-size: 14px; }
.footer .mit { margin-left: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .iphone, .tour-cards, .oss-inner, .handoff .intro { grid-template-columns: 1fr; }
  /* No room for a column: the list becomes a scrolling row under the window. */
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .features { order: 1; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; scroll-padding-inline: 4px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg-2); }
  .features::-webkit-scrollbar { display: none; }
  .features .group, .features button span, .features .story span, .features button[aria-selected="true"] span { display: none; }
  .features button, .features .story { flex: none; min-height: 44px; margin: 0; padding: 10px 12px; white-space: nowrap; font-size: 13px; line-height: 20px; }
  .features .story + .group + button { margin-left: 10px; }
  .features button:focus-visible { outline-offset: -2px; }
  .features .story::before, .features .story::after { inset-inline: 12px; bottom: 4px; }
  .caption { display: block; max-width: 560px; min-height: 3em; margin: 20px auto 0; color: var(--text); font-size: 16px; text-align: center; }
  .caption + .hint { margin-top: 12px; }
  .faq-inner, .handoff-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}
.menu-button { display: none; padding: 8px; border: 0; border-radius: 8px; color: var(--text); background: transparent; font: inherit; cursor: pointer; }
.menu-button:hover { background: var(--panel); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }

@media (max-width: 720px) {
  .nav { display: flex; gap: 8px; }
  .nav .gh { display: none; }
  .nav .brand { margin-right: auto; }
  .nav .menu-button { display: block; }
  .nav nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 100%; padding: 8px; border-radius: 16px; background: #141417; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(0, 0, 0, 0.6); }
  .nav nav a { display: block; padding: 12px; border-radius: 10px; }
  .nav nav a.on::after { display: none; }
  .menu-button[aria-expanded="true"] + nav { display: block; }
  .hero { padding: 104px 24px 0; }
  .hero .ctas { gap: 8px; }
  .hero .btn { padding: 0 16px; font-size: 14px; }
  .tour, .iphone, .cli, .oss, .download, .faq, .closing { padding-top: 64px; }
  .handoff { margin-top: 64px; padding-block: 56px; }
  .wire { --run: 40px; }
  .term-body { padding: 16px; font-size: 12px; }
  .phone-tabs { display: flex; flex-wrap: wrap; }
  .footer .mit { margin-left: 0; }
}

/* Backdrop: slow aurora light and film grain behind everything, light seams between sections, and a lit grid
   behind the closing call. */
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none; background:
  radial-gradient(38% 32% at 18% 22%, rgba(247, 107, 21, 0.11), transparent 70%),
  radial-gradient(34% 30% at 82% 30%, rgba(163, 113, 247, 0.10), transparent 70%),
  radial-gradient(40% 34% at 55% 85%, rgba(124, 133, 227, 0.09), transparent 70%);
  animation: aurora 36s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.06); } to { transform: translate3d(-3%, 4%, 0) rotate(-4deg); } }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.closing::before { content: ""; position: absolute; top: -140px; left: 50%; z-index: -1; width: min(1100px, 100%); height: 360px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(247, 107, 21, 0.08), rgba(163, 113, 247, 0.045) 55%, transparent); pointer-events: none; }

.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(235, 235, 235, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(235, 235, 235, 0.05) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 54%, rgba(0, 0, 0, 0.9), transparent); mask-image: radial-gradient(ellipse 50% 46% at 50% 54%, rgba(0, 0, 0, 0.9), transparent); }
/* A dithered butterfly drifts beside the closing call; screen blending drops the video's black. */
.butterfly { position: absolute; top: 50%; left: calc(50% + 300px); z-index: -1; width: 300px; aspect-ratio: 2 / 3; transform: translateY(-50%); mix-blend-mode: screen; opacity: 0; transition: opacity 900ms; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.butterfly.on { opacity: 0.9; }
@media (max-width: 960px) { .butterfly { left: 50%; top: 0; width: 220px; transform: translate(-50%, -20%); } .butterfly.on { opacity: 0.45; } }
.closing img { box-shadow: 0 0 0 1px var(--hair), 0 20px 80px rgba(247, 107, 21, 0.35), 0 0 160px rgba(163, 113, 247, 0.25); }

/* Motion: the hero's ASCII field (site.js), the agent marquee, the window that lies flat as
   it scrolls in, status pulses and scroll reveals. Transform and opacity only, and none of it under reduced motion. */
.signal { position: absolute; inset: 0 0 auto; z-index: -1; width: 100%; height: 1000px; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 30%, transparent 75%); }
.badge-oss { display: inline-flex; align-items: center; gap: 10px; }
.badge-oss .dot, .hint .pulse { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--success-text); animation: ping 2.4s var(--ease-out) infinite; }
.hint { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hint .pulse { background: var(--working); --ring: rgba(247, 107, 21, 0.55); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ring, rgba(61, 214, 140, 0.55)); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

.agents.moving { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.agents.moving .agent-list { flex-wrap: nowrap; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.agents.moving:hover .agent-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

.stage { position: relative; perspective: 2000px; }
.glow { position: absolute; inset: 8% 5% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 107, 21, 0.2), rgba(163, 113, 247, 0.12) 55%, transparent); filter: blur(60px); pointer-events: none; }
.stage .desktop-frame { transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); transform-origin: 50% 0; will-change: transform; }

.lifecycle li { opacity: 0.45; transition: opacity 300ms; }
.lifecycle li.on { opacity: 1; color: var(--text); }
.lifecycle .spin { width: auto; height: auto; background: none; color: var(--working); font: 17px/11px Menlo, monospace; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage .desktop-frame { transform: none; }
}

.doc .nav { background: rgba(18, 18, 21, 0.94); box-shadow: inset 0 0 0 1px var(--hair); }
.doc-main { max-width: 680px; margin: 0 auto; padding: 148px 24px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.doc h2 { margin: 2.2rem 0 0.55rem; font-size: 28px; line-height: 1.15; }
.doc p, .doc li { margin: 0.75rem 0 0; color: var(--text); font-size: 16px; }
.doc .meta { margin-top: 14px; color: var(--text-3); font-size: 14px; }
.doc ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.doc li { margin: 0.4rem 0; }
.doc li::marker { color: var(--text-3); }
.doc article a { text-decoration: underline; text-underline-offset: 3px; }
.doc code { overflow-wrap: anywhere; }
@media (max-width: 720px) { .doc .nav nav { display: none; } .doc-main { padding: 120px 20px 64px; } .doc h2 { font-size: 26px; } }
