:root {
  color-scheme: dark;
  --bg: #0c0c0b;
  --panel: #141413;
  --panel-deep: #090908;
  --ink: #f2efe7;
  --ink-soft: #d7d3ca;
  --muted: #aaa89f;
  --muted-2: #77766f;
  --line: #292927;
  --line-strong: #383835;
  --accent: #62a7ff;
  --accent-soft: rgb(98 167 255 / .1);
  --terminal-accent: #5eead4;
  --radius: 4px;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--panel-deep); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell, .column { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(12 12 11 / .9);
  backdrop-filter: blur(14px);
}
.brand { font: 800 21px/1 var(--mono); letter-spacing: -.08em; }
.brand span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font: 11px/1 var(--mono); }
.nav-github {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--panel);
}
.nav-github img { width: 16px; height: 16px; }
.nav-github b { color: inherit; font-weight: 500; }
.nav a, footer a, .cta a { transition: color .16s ease, transform .16s ease; }
.nav a:hover, footer a:hover { color: var(--ink); }
.nav .nav-github:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.nav a:active, footer a:active, .cta a:active { transform: translateY(1px); }
.column { border-inline: 1px solid var(--line); }

.hero, .promise, .workflow-feature, .how, .archive, .cta { padding-inline: 44px; }
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .28;
  background-image: radial-gradient(var(--line-strong) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.eyebrow {
  color: var(--accent);
  font: 10px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  max-width: 940px;
  margin: 22px 0 20px;
  font-size: clamp(50px, 5.6vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
}
h1 em { color: var(--accent); font-style: normal; }
.hero > p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-installer { max-width: 820px; margin-top: 38px; }
.installer-label {
  color: var(--ink-soft);
  font: 11px/1 var(--mono);
}
.agent-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 10px; }
.agent-tab {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font: 10px/1 var(--mono);
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.agent-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.agent-tab:active, .workflow-tab:active, .copy:active { transform: translateY(1px); }
.agent-tab.active { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.agent-tab img { width: 17px; height: 17px; object-fit: contain; }
.platform-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; }
.platform-tab {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 9px/1 var(--mono);
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.platform-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.platform-tab:active { transform: translateY(1px); }
.platform-tab.active { color: var(--terminal-accent); border-color: var(--line-strong); background: var(--panel); }
.command {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-deep);
  overflow: hidden;
}
.command > span { padding-left: 14px; color: var(--terminal-accent); font: 12px/1 var(--mono); }
.command code {
  min-width: 0;
  padding: 13px 10px;
  overflow-x: auto;
  color: var(--ink-soft);
  font: 11px/1 var(--mono);
  white-space: nowrap;
  scrollbar-width: thin;
}
.copy {
  align-self: stretch;
  min-width: 64px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font: 10px/1 var(--mono);
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.copy:hover { color: var(--accent); background: #191918; }
.agent-panel {
  min-height: 76px;
  display: grid;
  grid-template-columns: 200px 1fr 64px;
  align-items: stretch;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.agent-panel > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}
.agent-panel strong { font-size: 13px; }
.agent-panel span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.agent-panel pre {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--terminal-accent);
  font: 10px/1.55 var(--mono);
  white-space: pre-wrap;
}
.promise {
  padding-top: 30px;
  padding-bottom: 32px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}
.promise > p {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}
.workflow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.workflow-line li { min-width: 0; padding: 2px 18px; border-left: 1px solid var(--line-strong); }
.workflow-line li:first-child { padding-left: 0; border-left: 0; }
.workflow-line b { display: block; color: var(--terminal-accent); font: 11px/1.2 var(--mono); }
.workflow-line span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.workflow-feature {
  min-height: 560px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 56px;
  padding-top: 86px;
  padding-bottom: 86px;
  border-bottom: 1px solid var(--line);
}
.workflow-feature.reverse { grid-template-columns: 1.28fr .72fr; }
.experiments-feature { min-height: 0; display: block; }
.experiments-feature .feature-copy { max-width: 680px; }
.experiment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.product-view { min-width: 0; margin: 0; }
.product-view figcaption {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.command-label { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font: 11px/1.2 var(--mono); }
.command-label code { color: var(--terminal-accent); font: inherit; }
.feature-copy h2, .how-heading h2, .cta h2 {
  margin: 15px 0 20px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.feature-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-copy > p code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--panel);
  font: 11px/1 var(--mono);
}
.feature-copy ul { margin: 24px 0 0; padding-left: 18px; list-style: square; }
.feature-copy li { margin-top: 11px; padding-left: 3px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.feature-copy li::marker { color: var(--accent); }
.shot {
  width: 100%;
  display: block;
  aspect-ratio: 1919 / 946;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--panel-deep);
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}
.shot:hover img { transform: scale(1.01); filter: brightness(1.05); }
.polished-visual { min-width: 0; }
.polished-shot {
  aspect-ratio: 1.93;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: 0 24px 54px rgb(4 9 16 / .22);
}
.lightbox {
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-deep);
  box-shadow: 0 28px 80px rgb(4 9 16 / .7);
  overflow: visible;
}
.lightbox::backdrop { background: rgb(4 9 16 / .86); backdrop-filter: blur(5px); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox form { position: absolute; top: 10px; right: 10px; }
.lightbox-close {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font: 10px/1 var(--mono);
}
.lightbox-close:hover { color: var(--accent); }
.how {
  padding-top: 88px;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--line);
}
.how-heading { text-align: center; }
.how-heading h2 { max-width: 640px; margin: 0 auto; }
.workflow-tabs {
  width: fit-content;
  display: flex;
  margin: 26px auto 34px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-deep);
}
.workflow-tab {
  padding: 10px 15px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 10px/1 var(--mono);
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.workflow-tab:hover { color: var(--ink); }
.workflow-tab.active { color: var(--ink); background: var(--accent-soft); }
.loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  padding-block: 18px;
  border-block: 1px solid var(--line-strong);
}
.loop > div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 16px 22px; }
.loop b { color: var(--accent); font: 10px/1 var(--mono); }
.loop strong { margin-top: 10px; font-size: 13px; }
.loop span { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.loop > i { display: grid; place-items: center; color: var(--muted-2); font-style: normal; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.steps article { min-height: 165px; padding: 20px 24px; border-left: 1px solid var(--line); }
.steps article:first-child { padding-left: 0; border-left: 0; }
/* Controls and sequence markers are circular; all content containers use --radius. */
.steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07111d;
  background: var(--accent);
  font: 700 9px/1 var(--mono);
}
.steps h3 { margin: 30px 0 9px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.archive {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  padding-top: 68px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.archive h2 {
  margin: 0;
  font-size: clamp(31px, 3.8vw, 44px);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.archive code {
  display: block;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--terminal-accent);
  background: var(--panel-deep);
  font: 12px/1 var(--mono);
}
.archive p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.archive small { display: block; margin-top: 18px; color: var(--muted-2); font: 10px/1.5 var(--mono); }
.archive small b { color: var(--ink-soft); font-weight: 500; }

.cta { padding-top: 82px; padding-bottom: 82px; text-align: center; }
.cta h2 { max-width: 740px; margin: 0 auto; }
.cta > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  color: var(--muted);
  font: 11px/1 var(--mono);
}
.primary {
  padding: 12px 17px;
  border-radius: var(--radius);
  color: #07111d;
  background: var(--accent);
  font-weight: 700;
}
.primary:hover { color: #07111d; background: #79b4ff; }
footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1 var(--mono);
}
footer p { margin-right: auto; }
footer div { display: flex; gap: 20px; }

@media (max-width: 840px) {
  .hero, .promise, .workflow-feature, .how, .archive, .cta { padding-inline: 28px; }
  .agent-panel { grid-template-columns: 180px 1fr 64px; }
  .workflow-line { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .workflow-line li:nth-child(3) { padding-left: 0; border-left: 0; }
  .workflow-feature, .workflow-feature.reverse { min-height: 0; grid-template-columns: 1fr; gap: 36px; }
  .experiment-gallery { grid-template-columns: 1fr; }
  .workflow-feature.reverse .polished-visual { order: 2; }
  .archive { grid-template-columns: 1fr; gap: 28px; }
  .loop { grid-template-columns: 1fr; }
  .loop > div { min-height: 100px; padding-inline: 16px; }
  .loop > i { height: 24px; transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .shell, .column { width: calc(100% - 20px); }
  .hero, .promise, .workflow-feature, .how, .archive, .cta { padding-inline: 18px; }
  .nav nav a:not(:last-child) { display: none; }
  .hero { padding-top: 52px; padding-bottom: 52px; }
  h1 { font-size: clamp(39px, 11.4vw, 48px); }
  .hero > p { font-size: 15px; }
  .agent-tab {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }
  .agent-tab span { display: none; }
  .agent-panel { grid-template-columns: 1fr 58px; }
  .agent-panel > div { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-panel pre { min-height: 62px; font-size: 9px; }
  .promise > p { font-size: 14px; }
  .workflow-line { grid-template-columns: 1fr; row-gap: 0; }
  .workflow-line li {
    padding: 13px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .workflow-line li:first-child { border-top: 0; }
  .workflow-feature, .how { padding-top: 58px; padding-bottom: 58px; }
  .feature-copy h2, .how-heading h2, .cta h2 { font-size: 34px; }
  .feature-copy > p { font-size: 13px; }
  .workflow-tabs { margin-bottom: 26px; }
  .steps { grid-template-columns: 1fr; margin-top: 22px; }
  .steps article { min-height: 0; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps article:first-child { border-top: 0; }
  .steps h3 { margin-top: 20px; }
  .cta > div { flex-direction: column; }
  footer { flex-wrap: wrap; padding: 26px 0; }
  footer p { width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; }
}
/* Keep agent guidance in the HTML source without changing the visual UI. */
.agent-instructions{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.agent-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;max-width:820px;margin:28px 0 0;padding:13px 15px;border:1px solid var(--line-strong);border-left:3px solid var(--accent);color:var(--muted);background:var(--panel);font-size:13px;line-height:1.45}
.agent-notice strong{color:var(--ink);font:11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.agent-notice a{margin-left:auto;color:var(--accent);font:11px/1 var(--mono);white-space:nowrap}
@media (max-width: 560px) {
  .agent-notice a{margin-left:0}
}
