:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0f0f0f;
  --raised: #1a1a1a;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --body: #d1d1d1;
  --muted: #ababab;
  --accent: #2997ff;
  --accent-line: #284968;
  --accent-soft: #1a2938;
  --mono: 'Commit Mono', ui-monospace, monospace;
  --display: 'Geist Variable', system-ui, sans-serif;
  --section-y: clamp(88px, 10vw, 152px);
  --pillar-y: clamp(112px, 13vw, 208px);
  font-family: 'Geist Variable', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button, summary, label { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #194977; color: white; }
.wrap { width: min(1180px, 88%); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: absolute; z-index: 5; left: 1rem; top: -8rem; padding: 12px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 8px; }
.masthead { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.masthead-inner, .masthead-primary, .masthead-actions, .masthead nav, .brand, .byline, .file-head, .footer-nav { display: flex; align-items: center; }
.masthead-inner { min-height: 72px; justify-content: space-between; gap: 20px; }
.masthead-primary { gap: clamp(24px, 3.5vw, 55px); }
.masthead-actions { gap: 16px; }
.brand { gap: 9px; font: 650 23px/1 'Geist Variable', system-ui, sans-serif; letter-spacing: -.065em; text-decoration: none; }
.brand img { border-radius: 7px; }
.masthead-links { gap: clamp(13px, 2vw, 26px); font: 13px/1.4 var(--display); }
.masthead-links a { padding-block: 10px; text-decoration: none; color: var(--body); }
.masthead-links a:hover, .masthead-socials a:hover { color: var(--accent); }
.masthead-links a[aria-current=page] { color: var(--text); text-decoration: underline; }
.masthead-socials { gap: 4px; }
.masthead-socials a { display: grid; width: 36px; height: 40px; place-items: center; color: var(--muted); }
.social-icon { width: 17px; height: 17px; background: currentColor; mask: var(--social-mark) center / contain no-repeat; }
.social-icon.discord { --social-mark: url('/logos/discord.svg'); }
.social-icon.x { --social-mark: url('/logos/x.svg'); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 7vw, 112px);
  padding-block: clamp(88px, 12vw, 184px) clamp(64px, 8vw, 128px);
}
.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; font: 12px/1.4 var(--mono); color: var(--body); text-decoration: none; }
.hero-chip:hover { border-color: var(--muted); color: var(--text); }
.hero h1 { max-width: 16ch; margin: 0 auto 28px; font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.055em; }
.hero h1 em { color: #a7d9ff; }
.hero .intro { text-wrap: pretty; max-width: 52ch; margin-inline: auto; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); }
.hero .hero-actions { justify-content: center; margin-top: 40px; gap: 12px; }
.hero-shot { box-shadow: 0 60px 160px -60px #2997ff38, 0 30px 80px -30px #000; }
.hero-shot .window-bar { padding: 11px 14px; background: var(--surface); }
.hero .get { justify-items: center; }

.get { display: grid; justify-items: start; gap: 10px; }
.get-button, .ghost-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s; }
.get-button svg, .nav-download svg { flex-shrink: 0; }
.get-button { background: white; color: var(--bg); }
.get-button:hover { background: rgb(255 255 255 / .9); }
.get-button:active, .ghost-link:active { transform: scale(.97); }
.ghost-link { border: 1px solid var(--line); color: var(--text); }
.ghost-link:hover { border-color: var(--muted); background: var(--surface); }
.ghost-link.small { height: 32px; padding: 0 14px; font-size: 13px; }
.get-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.nav-download { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; background: var(--text); color: var(--bg); font: 500 13px/1 var(--display); letter-spacing: -.005em; text-decoration: none; }
.nav-download:hover { background: var(--body); }

.stage { min-width: 0; }
.stage .hero-demo { border-color: #3a3a3a; }
.stage .window-bar { padding-inline: 14px; background: var(--surface); color: var(--body); }
.stage .window-bar span { margin: 0; }
.stage figcaption { min-height: 3.75em; font-size: .875rem; }
#ide-demo { scroll-margin-top: 88px; }
.preview-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.preview-tabs button { padding: 9px clamp(10px, 2vw, 24px); border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-size: .875rem; }
.preview-tabs button { display: grid; justify-items: center; gap: 2px; max-width: 15em; line-height: 1.3; }
.preview-tabs small { font: 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.preview-tabs button:not([aria-pressed=true]) small { color: var(--muted); }
.preview-tabs button:hover { color: var(--text); }
.preview-tabs button[aria-pressed=true] { border-color: var(--line); background: var(--surface); color: var(--text); }

/* A section's own heading, centered */
.section-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 18px 0 0; }

.section-body { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--accent); text-transform: uppercase; font: 12px/1.5 var(--mono); letter-spacing: .12em; }
.ink-rule { width: 32px; height: 1px; background: currentColor; }
h1, h2, .signature { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(48px, 5.8vw, 84px); line-height: 1.02; letter-spacing: -.05em; margin: 28px 0 28px; text-wrap: balance; }
h1 em, h2 em { color: var(--accent); font-style: normal; font-weight: inherit; }
h2 { font-weight: 560; margin: 0 0 32px; font-size: clamp(38px, 4.1vw, 66px); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.intro { max-width: 620px; margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--body); }
.creed { max-width: 620px; margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--accent-line); font-size: 16px; line-height: 1.6; color: var(--muted); }
.byline { gap: 12px; margin-top: 28px; }
.byline img { object-fit: cover; border-radius: 50%; }
.byline strong, .byline span { display: block; }
.byline strong { font-size: 14px; font-weight: 560; }
.byline span { margin-top: 4px; font: 11px/1.45 var(--mono); color: var(--muted); }
.letter a:hover { color: var(--text); }
.illustration { position: relative; isolation: isolate; padding: clamp(10px, 2vw, 32px); background-color: var(--bg); background-image: radial-gradient(var(--line) .7px, transparent 1px); background-size: 14px 14px; }
.illustration::before, .illustration::after { content: ''; position: absolute; width: 16px; height: 16px; border-color: var(--muted); border-style: solid; }
.illustration::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.illustration::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
/* The engraving's own ground is dark grey: contrast takes it to the page's black. */
.illustration img { width: 100%; height: auto; display: block; mix-blend-mode: lighten; filter: grayscale(1) contrast(1.25) brightness(.92); }
.spread { border-top: 1px solid var(--line); padding-block: var(--section-y); display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); scroll-margin-top: 84px; }
.margin-note { padding-top: 8px; font: 12px/1.6 var(--mono); color: var(--muted); }
.margin-note .kicker { margin-bottom: 8px; }
.letter { max-width: 69ch; }
.letter p, .section-intro, .after-code, .setup > p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--body); }
.letter p { margin: 0 0 26px; }
.letter a { color: var(--accent); }
.letter .signature { font-size: 32px; font-style: italic; line-height: 1.2; color: var(--accent); margin: 28px 0 0; }
.accountability-photo { width: min(100%, 28rem); margin: 32px 0; }
.accountability-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 7px; }
.accountability-photo figcaption { margin-top: 10px; font: 12px/1.5 var(--mono); }
.accountability-photo figcaption a { color: var(--muted); }
.section-intro, .setup > p { max-width: 62ch; margin-block: 0 44px; }
.inspector { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.file-head { justify-content: space-between; gap: 10px; padding: 11px 16px; background: var(--raised); border-bottom: 1px solid var(--line); font: 12px/1.5 var(--mono); }
.file-head b { color: #bea6ee; margin-right: 5px; }
.switcher { display: flex; border: 0; padding: 2px; margin: 0; border-radius: 4px; background: var(--bg); }
.switcher label { position: relative; }
.switcher input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.switcher span { display: block; padding: 5px 10px; border-radius: 3px; color: var(--muted); }
.switcher input:checked + span { background: var(--accent-soft); color: var(--accent); }
.switcher input:focus-visible + span { outline: 2px solid var(--accent); }
.code-scroll { overflow: auto; }
.code-scroll pre { margin: 0; padding: 20px 0; width: max-content; min-width: 100%; }
code { font-family: var(--mono); }
.code-scroll code { display: grid; font-size: clamp(11px, 1.04vw, 15px); line-height: 2; color: var(--body); }
.code-scroll i { display: inline-block; min-width: 3.3em; text-align: center; padding-inline: .5em; margin-right: .7em; font-style: normal; color: var(--muted); user-select: none; }
.source-line, .focus-line { white-space: pre; padding-right: 16px; }
.focus-line { color: #ebc69f; background: #382d22; box-shadow: inset 2px 0 #e8b27a; }
.after-code { margin: 22px 0 0; }
video { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.recording-note { color: var(--body); line-height: 1.6; margin: 18px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 22px; margin-top: 30px; }
.setup-section { border-top: 1px solid var(--line); padding-block: 36px; scroll-margin-top: 84px; }
.setup-section h3 { margin: 0 0 14px; font-size: 20px; font-weight: 550; }
.setup-section p { margin: 0 0 14px; line-height: 1.6; color: var(--body); }
.setup-section > :last-child { margin-bottom: 0; }
/* Footer: the brand, then columns */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-block: clamp(40px, 6vw, 78px) clamp(32px, 5vw, 64px); }
.footer-about p { max-width: 34ch; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-grid h2 { margin: 6px 0 16px; font: 570 15px/1.4 var(--display); }
.footer-grid ul { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-nav { border-top: 1px solid var(--line); justify-content: space-between; gap: 10px; padding: 24px 0 36px; color: var(--muted); font: 12px/1.5 var(--mono); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .spread { grid-template-columns: 145px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 800px) {
  .masthead-links a[href="/#faq"], .masthead-links a[href="/#about"] { display: none; }
}
@media (max-width: 680px) {
  .wrap { width: 89%; }
  .masthead-inner { width: 94%; min-height: 60px; gap: 8px; }
  .masthead-primary, .masthead-actions { gap: 8px; }
  .masthead-links { gap: 10px; font-size: 12px; }
  .masthead-links a[href="/#one-app"] { display: none; }
  .masthead-socials { gap: 0; }
  .masthead-socials a { width: 28px; }
  .social-icon { width: 16px; height: 16px; }
  .nav-download { padding-inline: 10px; gap: 5px; font-size: 12px; }
  .brand { gap: 6px; font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  h1 { font-size: clamp(40px, 10.5vw, 64px); margin: 21px 0 18px; }
  .byline { margin-top: 22px; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 72px; }
  .margin-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 0; }
  .margin-note .kicker { margin: 0; }
  h2 { margin-bottom: 17px; }
  .file-head { flex-wrap: wrap; padding: 9px 12px; }
  .footer-nav { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 400px) {
  .masthead-links a[href="/#pricing"] { display: none; }
}
@media (max-width: 360px) {
  .masthead-inner { width: 96%; flex-wrap: wrap; }
  .masthead-primary, .masthead-actions { gap: 6px; }
  .masthead .brand { font-size: 18px; }
  .masthead .brand img { width: 27px; height: 27px; }
  .nav-download svg { display: none; }
}
.proof { padding-block: clamp(24px, 3vw, 48px) clamp(40px, 5vw, 64px); display: grid; gap: 32px; }
.proof-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: clamp(25px, 4.5vw, 75px); align-items: center; }
.proof h2 { margin: 0; font: 12px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.proof ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.agent-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.builders h2 { margin-bottom: clamp(20px, 2.6vw, 32px); font: 500 clamp(17px, 1.7vw, 21px)/1.3 var(--display); letter-spacing: -.01em; text-transform: none; text-align: center; color: var(--text); }
/* Two centred rows of tiles on a wide screen: four across, then the rest. */
.proof .builder-tiles { justify-content: center; gap: 14px; max-width: 714px; margin-inline: auto; }
.builder-tiles li { display: flex; align-items: center; justify-content: center; width: 168px; height: 96px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb, var(--text) 3%, transparent); font: 600 21px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--body); transition: color .2s, border-color .2s, background-color .2s; }
.builder-tiles li:hover { border-color: color-mix(in srgb, var(--text) 26%, transparent); background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.builder-tiles img { display: block; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .9; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0 0 48px; }
.pillars li { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.pillars h3 { margin: 16px 0 12px; font: 400 23px/1.2 var(--display); letter-spacing: -.02em; }
.pillars p { margin: 0; color: var(--body); line-height: 1.6; }
.assistants { border-top: 1px solid var(--line); padding-top: 32px; }
.assistants p { margin: 0; color: var(--body); line-height: 1.6; }
.assistants ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; list-style: none; padding: 0; margin: 12px 0 14px; }
.assistants li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.assistant-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: baseline; gap: 4px 16px; margin-top: 14px; }
.assistant-kind { font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.assistant-group ul { margin: 0; gap: 10px 22px; }
.assistant-initial { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--raised); font: 600 11px/1 var(--mono); color: var(--accent); }
.assistants .assistants-note { margin-top: 18px; }
@media (max-width: 680px) { .assistant-group { grid-template-columns: minmax(0, 1fr); } }
.assistants .assistants-note { color: var(--muted); font-size: 14px; max-width: 62ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 24px; font-size: 18px; }
.faq summary::marker { color: var(--accent); }
.faq details p { max-width: 66ch; color: var(--body); line-height: 1.7; margin: 0 0 24px; }
.faq details a { color: var(--accent); }
.faq pre { padding: 16px; background: var(--surface); overflow: auto; font-size: 13px; line-height: 1.7; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .proof-row { grid-template-columns: 145px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 680px) {
  .proof-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .proof .builder-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .builder-tiles li { width: auto; height: 64px; font-size: 17px; }
  .builder-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.section-intro a { color: var(--accent); }

/* Hero product clip */
.hero-demo { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #ffffff08; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--raised); border-bottom: 1px solid var(--line); font: 11px/1.4 var(--mono); color: var(--muted); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 8px; }
.hero-demo .clip video { border: 0; border-radius: 0; }
.hero-demo figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Clips: the poster holds the space; a spinner appears only if loading takes a moment */
.clip { position: relative; }
.clip video { aspect-ratio: 16 / 9; object-fit: cover; }
.clip-loading { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid #ffffff2a; border-top-color: var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s; }
.clip[data-state=loading] .clip-loading { opacity: 1; transition-delay: .35s; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Agents as tiles */
.agent-list li { margin-right: 10px; white-space: nowrap; gap: 9px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 14px; transition: border-color .2s, transform .2s; }
.agent-list li:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.agent-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--raised); font: 600 13px/1 var(--mono); color: var(--accent); }
.agent-list li.agent-wordmark { padding: 6px 14px; min-height: 40px; }
.agent-wordmark img { display: block; width: auto; height: 22px; }

/* Agents marquee */
.marquee { position: relative; min-width: 0; overflow: hidden; contain: paint; }
/* Fixed fades over the edges: masking the moving strip would repaint it every frame */
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 72px; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); }
.marquee-track > ul { display: flex; flex-wrap: nowrap; gap: 0; }
.marquee-track > ul[aria-hidden] { display: none; }

/* Trust badge */
.local-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 28px; }
.trust-badge { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border: 1px solid var(--accent-line); border-radius: 8px; background: var(--accent-soft); color: var(--accent); text-decoration: none; transition: background-color .2s, transform .2s; }
.trust-badge:hover { background: var(--accent-soft); transform: translateY(-2px); }
.trust-badge strong, .trust-badge small { display: block; }
.trust-badge strong { color: var(--text); font-size: 15px; font-weight: 600; }
.trust-badge small { font: 11px/1.5 var(--mono); color: var(--muted); }

/* Features: chips, one panel at a time */
.features { border-top: 1px solid var(--line); padding-block: var(--section-y); scroll-margin-top: 84px; }
.feature-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); scroll-margin-top: 120px; }
.feature-tabs button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; }
.feature-tabs button:hover { color: var(--text); border-color: var(--accent-line); }
.feature-tabs button[aria-selected=true] { background: var(--text); border-color: var(--text); color: var(--bg); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-copy h3 { margin: 0 0 20px; font: 560 clamp(28px, 2.8vw, 42px)/1.08 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.feature-copy h3 em { color: var(--accent); font-style: normal; }
.feature-copy p { margin: 0; color: var(--body); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.feature-copy .recording-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.feature-row .clip video { box-shadow: 0 24px 60px -30px #000; }
.feature-still { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 24px 60px -30px #000; }

/* Everything else: recording cards, opened in a player */

/* Comparison */
.compare { border-top: 1px solid var(--line); padding-block: var(--section-y); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.compare table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; line-height: 1.45; }
.compare thead th { font: 12px/1.5 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 400; }
.compare thead th.ours { color: var(--accent); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; color: var(--text); width: 22%; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.compare-note { margin: 16px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 14px; }
.compare td { color: var(--muted); }
.compare td.ours { color: var(--text); background: var(--accent-soft); }
.compare td.ours span { color: var(--accent); margin-right: 4px; }
.compare td.strong { color: var(--text); font-weight: 600; }
@media (max-width: 680px) { .compare table { min-width: 1040px; } .compare th:first-child { width: 120px; padding: 14px 12px; font-size: 13px; } }

/* Closing band */
.closing { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(25px, 5vw, 80px); align-items: center; padding-block: var(--section-y); border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(44px, 5vw, 78px); }
.closing p { margin: 0 0 36px; max-width: 44ch; color: var(--body); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.closing h2 em { display: block; }

/* Interaction feel */
a, button, summary, .switcher span { transition: color .18s, background-color .18s, border-color .18s, transform .18s; }

@media (max-width: 900px) {
  .feature-row, .closing { grid-template-columns: minmax(0, 1fr); }
  .closing .illustration { width: min(70%, 320px); }
}

/* Motion, only for people who have not asked to reduce it */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero > * { animation: rise .65s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-shot { animation-delay: .1s; }
  .feature-row { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee-track > ul[aria-hidden] { display: flex; }
  .marquee-track.reverse { animation-duration: 70s; animation-direction: reverse; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .spread > *, .section-head, .pillars li, .proof-label, .builders, .closing > * {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after { display: none; }
  .marquee-track { width: auto; }
  .marquee-track > ul { flex-wrap: wrap; gap: 10px 0; }
}

/* FAQ answers open smoothly where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .3s cubic-bezier(.2, .7, .2, 1), content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}

/* About */
.about { border-top: 1px solid var(--line); padding-block: var(--section-y); scroll-margin-top: 84px; }
.about-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.about-head .kicker { justify-content: center; }
.about-head h2 { margin: 20px 0 28px; }
.about-head p { margin: 0 auto; max-width: 60ch; color: var(--body); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); list-style: none; padding: 0; margin: 0 0 clamp(56px, 7vw, 96px); }
.member { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 32px 20px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.member:hover, .member:focus-visible { border-color: var(--accent-line); transform: translateY(-4px); box-shadow: 0 24px 48px -28px #000; }
/* A ninja in a circle, ringed like a model at work; the real photo shows on hover */
.portrait { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; isolation: isolate; }
.portrait::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), #bea6ee, #7fb6d8, var(--accent)); opacity: .75; transition: opacity .3s; }
.portrait::after { content: ''; position: absolute; inset: -6px; z-index: -2; border-radius: 50%; background: radial-gradient(circle, #2997ff40, transparent 70%); opacity: 0; transition: opacity .3s; }
.portrait-face { position: relative; width: 92px; height: 92px; overflow: hidden; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 3px var(--surface); }
.portrait-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.portrait-face .photo { opacity: 0; transform: scale(1.1); }
.member:hover .portrait-face .photo, .member:focus-visible .portrait-face .photo { opacity: 1; transform: none; }
.member:hover .portrait-face .ninja, .member:focus-visible .portrait-face .ninja { opacity: 0; transform: scale(.92); }
.member:hover .portrait::before, .member:focus-visible .portrait::before { opacity: 1; }
.member:hover .portrait::after, .member:focus-visible .portrait::after { opacity: 1; }
.member-text { display: grid; gap: 4px; padding-top: 20px; }
.member-text strong { font-size: 18px; font-weight: 560; color: var(--text); }
.member .role { font: 12px/1.5 var(--mono); color: var(--muted); }
.member .alias { margin-top: 4px; font: italic 18px/1.25 var(--display); color: var(--accent); }
.member-link { margin-top: auto; padding-top: 18px; font: 12px/1.5 var(--mono); color: var(--muted); transition: color .2s; }
.member:hover .member-link { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .member:hover .portrait::before, .member:focus-visible .portrait::before { animation: spin 3s linear infinite; }
}
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.about-facts p { margin: 16px 0 18px; color: var(--body); line-height: 1.7; }
.about-facts a { color: var(--accent); font: 13px/1.5 var(--mono); text-decoration: none; border-bottom: 1px solid var(--accent-line); padding-bottom: 3px; }
.about-facts a:hover { color: var(--text); }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-head { text-align: left; }
  .about-head .kicker { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about-head, .team li, .about-facts > div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* Working example: one declined card traced through production */
.deploy-switch { width: fit-content; margin-bottom: 28px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font: 13px/1.5 var(--mono); }
.deploy-switch span { padding: 8px 14px; }
.trace { position: relative; display: grid; gap: 0; list-style: none; margin: 0 0 24px; padding: 0; }
.trace li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.trace li::before { content: ''; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.trace li:last-child::before { display: none; }
.trace-dot { position: relative; z-index: 1; width: 28px; height: 28px; margin-top: 2px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); }
.trace-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--muted); }
.trace-body p { margin: 0 0 6px; color: var(--text); font-size: 17px; line-height: 1.5; }
.trace-body code { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--body); overflow-wrap: anywhere; }
.trace-body small { display: block; margin-top: 6px; font: 11px/1.5 var(--mono); color: var(--muted); }
.trace li.warn .trace-dot { border-color: #8a7146; } .trace li.warn .trace-dot::after { background: #e8b27a; }
.trace li.good .trace-dot { border-color: var(--accent-line); } .trace li.good .trace-dot::after { background: var(--accent); }
.trace li.bad .trace-dot { border-color: #7a3b36; } .trace li.bad .trace-dot::after { background: #e5736a; }
.trace li.bad .trace-body code { border-color: #7a3b36; color: #f0b3ad; background: #2a1817; }
.trace li.good .trace-body code { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.verdict { display: grid; gap: 6px; margin-bottom: 28px; padding: 18px 20px; border-radius: 8px; border: 1px solid; }
.verdict strong { font-size: 18px; font-weight: 600; }
.verdict span { color: var(--body); line-height: 1.6; }
.verdict.bad { border-color: #7a3b36; background: #221514; } .verdict.bad strong { color: #f0b3ad; }
.verdict.good { border-color: var(--accent-line); background: var(--accent-soft); } .verdict.good strong { color: var(--accent); }
.file-state { color: var(--muted); }

/* Ask about the line */
.ask-demo { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px -30px #000; }
.ask-lines { list-style: none; margin: 0; padding: 14px 0; font: clamp(12px, 1.05vw, 14px)/1.9 var(--mono); }
.ask-lines button { display: flex; width: 100%; padding: 0 16px 0 0; border: 0; background: none; text-align: left; color: var(--body); }
.ask-lines button:hover { background: var(--raised); }
.ask-lines li.open button { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 var(--accent); }
.ask-lines i { flex: none; min-width: 3.3em; padding-inline: .5em; margin-right: .5em; text-align: center; font-style: normal; color: var(--muted); }
.ask-lines code { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.ask-answer { margin: 8px 16px 12px 3.8em; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 7px; background: var(--accent-soft); font-family: 'Geist Variable', system-ui, sans-serif; }
.ask-question { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 11px/1.5 var(--mono); color: var(--accent); }
.ask-answer p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.6; }
.ask-answer code { padding: 1px 5px; border-radius: 3px; background: var(--raised); color: var(--text); font-size: 12px; }

/* Review to AWS: two recordings as steps */
.cloud-steps { display: grid; gap: 18px; }
.cloud-steps figure { margin: 0; }
.cloud-steps figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 12px/1.5 var(--mono); color: var(--muted); }
.cloud-steps figcaption span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }

/* Under the hood: a wall of tools */
.stack-section { border-top: 1px solid var(--line); padding-block: var(--section-y); text-align: center; }
.stack-section .kicker { justify-content: center; }
.stack-section h2 { margin: 18px 0 clamp(32px, 5vw, 56px); }
.stack { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.stack li { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 128px; padding: 20px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 560; transition: border-color .2s, transform .2s; }
.stack li:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.stack li img { width: 36px; height: 36px; object-fit: contain; }
@media (max-width: 1100px) { .stack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ask-answer { margin-left: 16px; } }

@media (prefers-reduced-motion: no-preference) {
  .trace li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .28s); }
  .verdict { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 1.3s; }
  .ask-answer { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
  @supports (animation-timeline: view()) {
    .stack li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan { display: grid; align-content: start; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s; }
.plan:hover { transform: translateY(-3px); }
.plan-best { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.plan-name { display: flex; align-items: center; gap: 10px; font: 12px/1.5 var(--mono); color: var(--muted); text-transform: lowercase; }
.plan-name em { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; }
.setup-section .plan-price { margin: 0; font: 13px/1.4 var(--mono); color: var(--muted); }
.plan-price strong { font: 44px/1.1 var(--display); letter-spacing: -.03em; color: var(--text); }
.setup-section .plan p:not(.plan-price) { margin: 0; }
.setup-section .price-fine { font: 12px/1.6 var(--mono); color: var(--muted); }
.price-fine a { color: var(--accent); }
.stack-glyph { color: #e8b27a; }

/* Download: the release's installers, and what to check before installing */

/* How to start, under the plans: the download, and one line on where the rest happens. */
.plan-start { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.setup-section .plan-start p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.proof-label p { margin: 4px 0 0; font: 11px/1.5 var(--mono); color: var(--muted); opacity: .8; }
.agent-mark img { width: 18px; height: 18px; object-fit: contain; }
.portrait-face .ninja { filter: grayscale(1) sepia(.55) hue-rotate(165deg) saturate(1.7); }

/* How it works: an agent change, three tracks */
.how { border-top: 1px solid var(--line); padding-block: var(--section-y); scroll-margin-top: 84px; }
.how h2 { margin: 18px 0 clamp(32px, 5vw, 64px); }
.flow-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.flow { display: block; width: 100%; min-width: 960px; height: auto; font-family: 'Geist Variable', system-ui, sans-serif; }
.flow-grid path { stroke: #ffffff08; stroke-width: 1; }
.flow-main { fill: none; stroke: #686868; stroke-width: 1.4; stroke-dasharray: 6 7; }
.flow-link { fill: none; stroke: #858585; stroke-width: 1.3; stroke-dasharray: 2 4; }
.flow-line { fill: none; stroke: #686868; stroke-width: 1.3; }
.flow-stem { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 3 4; }
.flow-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 3; }
.flow-mono { fill: var(--body); font: 14px var(--mono); }
.flow-pill rect { fill: var(--text); }
.flow-pill text { fill: #000000; font-size: 15px; font-weight: 520; }
.flow-badge > circle { fill: var(--bg); stroke: #bea6ee; stroke-width: 1.5; stroke-dasharray: 4 4; }
.flow-icon { fill: var(--text); }
.flow-icon-line { fill: none; stroke: var(--text); stroke-width: 1.6; }
.flow-icon-line circle { fill: var(--bg); }
.flow-done circle { fill: #3f8f3a; }
.flow-done path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-loop { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }

@media (prefers-reduced-motion: no-preference) {
  .flow-scroll.armed .flow-step { clip-path: inset(-20px 100% -20px -20px); opacity: 0; }
  .flow-scroll.in .flow-step { animation: wipe 1.1s cubic-bezier(.3, .7, .2, 1) both; }
  .flow-scroll.in .s1 { animation-delay: .5s; }
  .flow-scroll.in .s2 { animation-delay: 1s; }
  .flow-scroll.in .s3 { animation-delay: 1.5s; }
  .flow-scroll.in .s4 { animation-delay: 2s; }
  .flow-scroll.in .s5 { animation-delay: 2.5s; }
  .flow-main, .flow-loop { animation: march 1.6s linear infinite; }
  .flow-scroll.in .flow-node { transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out 3.2s infinite; }
  .flow-scroll.in .flow-done { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) 3s both; }
}
@keyframes wipe { from { clip-path: inset(-20px 100% -20px -20px); opacity: 0; } 20% { opacity: 1; } to { clip-path: inset(-20px -20px -20px -20px); opacity: 1; } }
@keyframes march { to { stroke-dashoffset: -26; } }
@keyframes ping { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.6); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.flow-hint { display: none; margin: 14px 0 0; font: 12px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 1000px) { .flow-hint { display: block; } }
.portrait-face .still { object-position: 50% 18%; transform: scale(1.45); transform-origin: 50% 30%; }

/* Download page */
.download-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 80px); padding-block: clamp(56px, 7vw, 104px) 24px; }
.download-head { display: grid; justify-items: start; }
.download-head h1 { max-width: 11em; margin: 20px 0 18px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 620; }
.download-head .intro { max-width: 560px; }
.download-page section > h2, .download-section-head h2 { display: flex; align-items: center; gap: 12px; }
.download-section-head div p { font: 14px/1.6 var(--display); max-width: 62ch; }
.download-page section > h2, .download-section-head h2 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; }
.download-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.download-section-head p, .download-aside { margin: 0 0 18px; font: 12px/1.6 var(--mono); color: var(--muted); }
.download-section-head a, .download-aside a { color: var(--accent); }
.platform { position: relative; display: grid; gap: 6px; max-width: 420px; margin-block: 12px 18px; padding: 22px 64px 22px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.platform:hover { border-color: var(--accent); background: var(--raised); }
.platform-name { font-size: 18px; font-weight: 560; }
.platform-detail { font-size: 14px; color: var(--body); }
.platform-go { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); color: #86ceff; }
.download-unavailable { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.download-unavailable p { margin: 0 0 14px; color: var(--body); line-height: 1.5; }
.download-page .release-notes { max-width: 70ch; margin: 0 0 14px; color: var(--body); line-height: 1.6; }
.download-page .checksums { display: grid; gap: 12px; }
.download-page .checksums > div { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.download-page .checksums dd { margin: 0; color: var(--body); font-size: .875rem; }

/* Guardrails: five gates between an agent's change and main, each with a small picture of what the app shows */
.gates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: gate; }
.gates li { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.gates h3 { margin: 0; font-size: 18px; font-weight: 580; }
.gates p { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.6; }
.gates a { align-self: end; padding-top: 6px; color: var(--accent); font-size: 14px; text-decoration: none; }
.gates a:hover { text-decoration: underline; }
.gate-step { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--accent-line); border-radius: 50%; letter-spacing: 0; }
.gate-visual { display: grid; align-content: center; min-height: 136px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font: 12px/1.5 var(--mono); color: var(--body); }
.gate-visual > div { display: grid; gap: 7px; justify-items: start; }
.gate-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.gate-row s { color: var(--muted); }
.gate-row i { color: var(--muted); font-style: normal; }
.gate-row b, .gate-req b { color: var(--text); font-weight: 600; }
.gate-row small { color: var(--muted); font-size: 11px; }
.gate-when { color: var(--muted); }
.gate-tag { padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.gate-tag.good, .gate-tests .good { color: #7ee0a1; }
.gate-tag.good { background: #12301f; }
.gate-tag.bad { color: #ff8a80; background: #3a1715; }
.gate-tests .missing { color: #ffd479; }
.gate-tests b { display: inline-block; width: 16px; }
.gate-code span { display: block; }
.gate-code em { display: block; padding-left: 20px; }
.gate-code i { color: var(--muted); font-style: normal; margin-right: 10px; }
.gate-code em { font-style: normal; color: var(--accent); }
.gate-run code { color: var(--text); word-break: break-all; }
.gate-button { padding: 4px 12px; border-radius: 6px; background: var(--accent); color: var(--bg); font-family: var(--display); font-weight: 600; }
@media (max-width: 1100px) { .gates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gates { grid-template-columns: minmax(0, 1fr); } }

/* Pillar 01: the IDEs a polyglot team keeps open fold into one WTFCode window that runs every stack, its logs in Superlog. */
.fanin-ides { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; text-align: center; }
.fanin-ides li { display: grid; justify-items: center; align-content: start; gap: 4px; padding-inline: 4px; }
.ide-ij { --ide: #fe2857; }
.ide-ws { --ide: #07c3f2; }
.ide-pc { --ide: #21d789; }
.ide-rr { --ide: #f0a040; }
.ide-cl { --ide: #c9a6ff; }
.ide-as { --ide: #3ddc84; }
.ide-xc { --ide: #1f8fff; }
.ide-vs { --ide: #3ca7f5; }
.ide-mark { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 0 24px -10px var(--ide); }
.ide-mark i { width: 30px; height: 30px; background: var(--ide); mask: var(--logo) center / contain no-repeat; -webkit-mask: var(--logo) center / contain no-repeat; }
.ide-name { font-size: 14px; font-weight: 500; color: var(--text); }
.ide-langs { font: 11px/1.4 var(--mono); color: var(--muted); }
.fanin-lines { display: block; width: 100%; height: clamp(64px, 10vw, 140px); overflow: visible; }
.fanin-line, .fanin-pulse { fill: none; vector-effect: non-scaling-stroke; }
.fanin-line { stroke: var(--accent-line); stroke-width: 1.3; }
.fanin-pulse { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .14 1; stroke-dashoffset: .14; }
.fanin-window { margin: 0; overflow: hidden; border: 1px solid #3a3a3a; border-radius: 10px; background: var(--surface); box-shadow: 0 -18px 60px -30px var(--accent); }
.fanin-window .window-bar { padding: 8px 10px 8px 14px; background: var(--surface); }
.shot-tabs { display: flex; gap: 4px; margin-left: auto !important; }
.shot-tabs button { white-space: nowrap; padding: 4px 12px; border: 1px solid transparent; border-radius: 6px; background: none; font: 11px/1.4 var(--mono); color: var(--muted); }
.shot-tabs button:hover { color: var(--text); }
.shot-tabs button[aria-pressed=true] { border-color: var(--line); background: var(--raised); color: var(--text); }
.fanin-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.fanin-window .clip video { border: 0; border-radius: 0; }
.fanin-window figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Pillar 02: the deterministic triangle, then a card per layer. */
.agent-body { max-width: 760px; margin-inline: auto; }
.pyramid { display: grid; align-content: center; margin: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pyramid figcaption { display: grid; gap: 8px; margin: 0 0 22px; font-size: 17px; color: var(--text); }
.pyramid ol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0 0 18px; transform: perspective(1100px) rotateX(24deg); transform-origin: 50% 100%; }
.pyramid ol::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 60px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #2997ff40, transparent); filter: blur(6px); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; width: var(--w); min-height: 50px; padding: 8px 14px; border: 1px solid; border-radius: 6px; background-image: linear-gradient(180deg, rgb(255 255 255 / .07), transparent 70%); box-shadow: 0 10px 0 var(--side), 0 10px 0 1px var(--edge), 0 30px 40px -16px #000; transition: transform .25s; }
.band:hover { transform: translateY(-4px); }
.band strong { font-size: 14px; font-weight: 560; }
.band span { grid-row: 2; font-size: 12px; line-height: 1.35; color: var(--body); }
.band-tools { grid-row: 1 / 3; grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; margin: 0; padding: 0; }
.band-tools li { padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); font: 11px/1.5 var(--mono); color: var(--text); white-space: nowrap; }
.band.deterministic { --side: #11263a; --edge: #22405e; border-color: var(--accent-line); background-color: var(--accent-soft); }
.band.deterministic strong { color: #a7d9ff; }
.band.judgement { --side: #21182f; --edge: #3c3054; border-color: #4a3d63; background-color: #1d1726; }
.band.judgement strong { color: #bea6ee; }
.pyramid-legend { margin-top: 34px !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; font: 11px/1.4 var(--mono); color: var(--muted); }
.pyramid-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.pyramid-legend .deterministic::before { background: var(--accent); }
.pyramid-legend .judgement::before { background: #bea6ee; }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.live-grid li { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 12.5px/1.5 var(--mono); }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8f3a; box-shadow: 0 0 0 3px #3f8f3a33; align-self: center; }
.live-label { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.live-line { color: var(--muted); overflow-wrap: anywhere; }
.live-line b { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .fanin-pulse { animation: fanin-pulse 3.2s linear infinite; }
  .fanin-pulse.p1 { animation-delay: .6s; }
  .fanin-pulse.p2 { animation-delay: 1.3s; }
  .fanin-pulse.p3 { animation-delay: .3s; }
  .fanin-pulse.p4 { animation-delay: 1.9s; }
  .fanin-pulse.p5 { animation-delay: 1s; }
  .fanin-pulse.p6 { animation-delay: 2.4s; }
  .live-dot { animation: live-blink 2s ease-in-out infinite; }
  .live-grid li:nth-child(2) .live-dot { animation-delay: .4s; }
  .live-grid li:nth-child(3) .live-dot { animation-delay: .8s; }
  .live-grid li:nth-child(4) .live-dot { animation-delay: 1.2s; }
  .live-grid li:nth-child(5) .live-dot { animation-delay: 1.6s; }
  /* The pyramid is built from its foundation up, as the Health tab draws it. */
  .agent-body.armed .band { opacity: 0; transform: translateY(14px); }
  .agent-body.in .band { animation: band-rise .6s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * .16s + .2s); }
}
@keyframes fanin-pulse { from { stroke-dashoffset: .14; } to { stroke-dashoffset: -1; } }
@keyframes live-blink { 50% { opacity: .35; } }
@keyframes band-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .agent-body { grid-template-columns: minmax(0, 1fr); }
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fanin-ides li { padding-inline: 1px; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .ide-mark { width: 36px; height: 36px; border-radius: 9px; }
  .ide-mark i { width: 20px; height: 20px; }
  .ide-name { display: none; }
  .fanin-window .window-bar > span:not(.shot-tabs) { display: none; }
  .ide-langs { display: none; }
  .band { min-height: 40px; padding: 6px 10px; }
  .band span { display: none; }
  .band { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .band-tools { grid-row: auto; grid-column: 1; justify-content: flex-start; }
  .band strong { font-size: 13px; }
}

/* Watch mode in the working example: the agent's steps beside the file it is writing. */
.watch { margin: 0 0 36px; overflow: hidden; border: 1px solid #3a3a3a; border-radius: 10px; background: var(--surface); }
.watch .window-bar { padding-inline: 14px; }
.watch-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto !important; color: #7ee07a; text-transform: uppercase; letter-spacing: .1em; }
.watch-live span { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; }
.watch-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.watch-steps { display: grid; align-content: start; gap: 8px; list-style: none; margin: 0; padding: 18px; border-right: 1px solid var(--line); }
.watch-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 10px; row-gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: 12px/1.5 var(--mono); }
.watch-tool { color: var(--accent); }
.watch-text { color: var(--body); overflow-wrap: anywhere; }
.watch-steps .prompt, .watch-steps .reply { font-family: var(--display); font-size: 13.5px; }
.watch-steps .prompt .watch-tool, .watch-steps .reply .watch-tool { font: 12px/1.6 var(--mono); color: var(--muted); }
.watch-steps .reply .watch-text { color: var(--text); }
.watch-steps .edit { border-color: #7a5a2e; background: #1f1810; }
.watch-note { grid-column: 2; color: #f0c060; font-size: 11.5px; }
.diffstat b { color: #7ee07a; font-weight: 400; }
.diffstat s { color: #f08a80; text-decoration: none; }
.ok { color: #7ee07a; }
.watch-file { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.watch-file .file-head { border-top: 0; }
.watch-file pre { margin: 0; padding: 14px 0; overflow-x: auto; }
.watch-file pre code { display: grid; font: clamp(11px, 1vw, 13.5px)/1.9 var(--mono); color: var(--body); }
.watch-line { white-space: pre; padding-right: 16px; }
.watch-line i { display: inline-block; min-width: 3em; margin-right: .6em; text-align: center; font-style: normal; color: var(--muted); user-select: none; }
.watch-line.removed { background: #2a1615; color: #f0b3ad; text-decoration: line-through; text-decoration-color: #f08a8088; box-shadow: inset 2px 0 #e5736a; }
.watch-line.added { background: #12241a; color: #b6f0b0; box-shadow: inset 2px 0 #3fb950; }
.watch-line.removed i, .watch-line.added i { color: inherit; }
.watch-flag { margin: 0; padding: 12px 16px; border-top: 1px solid #7a5a2e; background: #1f1810; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.watch-flag b { display: block; margin-bottom: 2px; color: #f0c060; font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.watch-flag code { font: 12px var(--mono); color: var(--text); }
.watch figcaption { padding: 12px 18px; border-top: 1px solid var(--line); font: 12px/1.55 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .watch-live span { animation: live-blink 1.4s ease-in-out infinite; }
  .watch.armed .watch-steps li, .watch.armed .watch-line.removed, .watch.armed .watch-line.added, .watch.armed .watch-flag { opacity: 0; }
  .watch.in .watch-steps li { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .55s); }
  .watch.in .watch-line.removed { animation: rise .4s both 1.2s; }
  .watch.in .watch-line.added { animation: rise .4s both 1.5s; }
  .watch.in .watch-flag { animation: rise .45s both 1.9s; }
}
@media (max-width: 860px) {
  .watch-body { grid-template-columns: minmax(0, 1fr); }
  .watch-steps { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Everything else: the feature sections gathered after the story under one heading. */
.everything { border-top: 1px solid var(--line); padding-top: var(--section-y); scroll-margin-top: 84px; }
.everything-head { margin-bottom: 0; }
.everything-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.everything-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font: 12px/1.4 var(--mono); color: var(--body); text-decoration: none; }
.everything-nav a:hover { border-color: var(--accent-line); color: var(--accent); }
.everything > section { border-top-style: dashed; }
.everything > section h2 { font-size: clamp(30px, 3.1vw, 48px); }

/* The three pillars: no rules between them, lots of air, one big visual each. */
.pillar { padding-block: var(--pillar-y) 0; scroll-margin-top: 72px; }
#ide { padding-bottom: var(--pillar-y); }
.pillar-head { margin-bottom: clamp(48px, 6vw, 96px); }
.pillar-head h2 { max-width: 18ch; margin: 24px 0 0; font-size: clamp(40px, 5.2vw, 80px); font-weight: 500; letter-spacing: -.055em; }
.pillar-head .section-lead { max-width: 60ch; margin-top: 28px; text-wrap: pretty; }
.pillar-number { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding-inline: 6px; border: 1px solid var(--accent-line); border-radius: 4px; letter-spacing: 0; }
.pillar-sub { max-width: 640px; margin: clamp(72px, 9vw, 136px) auto clamp(32px, 4vw, 48px); text-align: center; }
.pillar-sub h3 { margin: 0 0 14px; font: 500 clamp(26px, 2.6vw, 38px)/1.12 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.pillar-sub h3 em { color: var(--accent); font-style: normal; }
.pillar-sub p { margin: 0; text-wrap: pretty; color: var(--body); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.pillar .compare-note { margin-top: 28px; }

/* One card per deterministic layer, a small picture of what the app shows on each */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; }
.layers li { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.layers h3 { margin: 0; font: 500 21px/1.2 var(--display); letter-spacing: -.02em; }
.layers p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; }
.layers a { align-self: end; color: var(--accent); font-size: 14px; text-decoration: none; }
.layers a:hover { text-decoration: underline; }

/* The same mistake fixed three ways, side by side */
.ladder-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ladder-row li { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ladder-layer { font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ladder-where { font: 11.5px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.ladder-text { font-size: 15px; line-height: 1.5; color: var(--body); overflow-wrap: anywhere; }
.ladder-row strong { margin-top: 4px; font-size: 14px; font-weight: 500; }
.ladder-row .bad strong { color: #f0a49c; }
.ladder-row .good { border-color: var(--accent-line); background: var(--accent-soft); }
.ladder-row .good .ladder-text { font: 12.5px/1.5 var(--mono); color: var(--text); }
.ladder-row .good .ladder-layer { color: var(--accent); }
.ladder-row .good strong { color: #7ee07a; }

.watch-shot { box-shadow: 0 40px 120px -40px #2997ff30, 0 30px 80px -30px #000; }

/* Pillar 03: the languages, the player, then the try-it row */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: calc(-1 * clamp(16px, 3vw, 48px)) 0 clamp(40px, 5vw, 72px); padding: 0; }
.langs li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.langs img { width: 18px; height: 18px; object-fit: contain; }
.pillar .preview-tabs { margin-bottom: 20px; }
.ide-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(72px, 9vw, 136px); }
.ide-try .kicker { margin-bottom: 16px; }

@media (max-width: 900px) {
  .ladder-row, .ide-try, .layers { grid-template-columns: minmax(0, 1fr); }
}
