@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrainsmono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrainsmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: oklch(0.155 0.022 266);
  --bg-raise: oklch(0.195 0.026 266);
  --bg-sunk: oklch(0.13 0.02 266);
  --line: oklch(0.3 0.03 266);
  --line-soft: oklch(0.235 0.026 266);
  --ink: oklch(0.965 0.008 266);
  --ink-2: oklch(0.84 0.018 266);
  --ink-3: oklch(0.72 0.024 266);

  --accent: oklch(0.64 0.19 262);
  --accent-soft: oklch(0.86 0.08 262);

  /* Provider colors match AgentRelay's in-app ProviderPresentation. */
  --codex: oklch(0.64 0.2 290);
  --claude: oklch(0.76 0.15 52);
  --hermes: oklch(0.76 0.13 175);
  --pi: oklch(0.67 0.17 258);
  --copilot: oklch(0.76 0.11 250);

  --font-display: "Unbounded", "Geologica", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Workspace colors taken from the app's DesignSystem (AgentRelay palette, dark). */
  --app-canvas: #0e131c;
  --app-canvas-2: #141a26;
  --app-toolbar: #12161f;
  --app-title: #1f2430;
  --app-term: #151921;
  --app-line: #2a3142;
  --app-ink: #dfe5f1;
  --app-dim: #8e99ad;
  --app-accent: #578cff;
  --app-ok: #4dc785;
  --app-warn: #ffa352;
  --app-bad: #ff6b6b;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --z-raised: 1;
  --z-overlay: 2;
  --z-sticky: 10;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: 12px; z-index: var(--z-sticky);
  padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: relative;
  z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 32px); font-size: 14px; color: var(--ink-2); }
.header-nav a { text-decoration: none; transition: color .2s; }
.header-nav a:hover { color: var(--ink); }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.language-switch > * { padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.language-switch [aria-current="page"] { background: var(--bg-raise); color: var(--ink); }
.language-switch a { color: var(--ink-3); }
.language-switch a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.button svg { width: 18px; height: 18px; flex: none; }
.button-primary {
  background: var(--accent-soft); color: oklch(0.18 0.04 266);
  box-shadow: 0 0 0 1px oklch(0.92 0.05 262 / .4) inset, 0 10px 30px -12px oklch(0.64 0.19 262 / .7);
}
.button-primary:hover { background: oklch(0.92 0.06 262); transform: translateY(-2px); box-shadow: 0 0 0 1px oklch(0.95 0.04 262 / .5) inset, 0 16px 40px -14px oklch(0.64 0.19 262 / .9); }
.button-primary:active { transform: translateY(0); }
.button-ghost { border: 1px solid var(--line); color: var(--ink-2); }
.button-ghost:hover { border-color: oklch(0.45 0.04 266); color: var(--ink); background: var(--bg-raise); }
.button-small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; gap: 8px; }
.button-small svg { width: 15px; height: 15px; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 0; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 22% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 60%, oklch(0.64 0.2 290 / .16), transparent 70%),
    radial-gradient(35% 50% at 55% 45%, oklch(0.64 0.19 262 / .16), transparent 70%),
    radial-gradient(35% 55% at 85% 65%, oklch(0.76 0.13 175 / .11), transparent 70%);
  filter: blur(20px);
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 3vw, 40px) clamp(24px, 5vw, 80px); align-items: end; }
.hero-copy h1 { grid-column: 1 / -1; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 5.1rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 .line-2 { display: block; color: var(--accent-soft); }
.hero-lead { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-meta { display: flex; flex-direction: column; gap: 2px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.hero-meta p { margin: 0; }
.build-meta { color: var(--ink-3); }

/* Workspace replica: mirrors the app's dark UI (top bar, activity strip, session cards, Supervisor column). */
.showcase { margin: clamp(40px, 6vw, 72px) 0 0; position: relative; }
.replica {
  position: relative;
  aspect-ratio: 1120 / 660;
  overflow: hidden;
  border-radius: clamp(10px, 1.4vw, 16px);
  border: 1px solid oklch(0.36 0.035 266);
  background: var(--app-canvas);
  box-shadow:
    0 1px 0 oklch(1 0 0 / .06) inset,
    0 50px 120px -40px oklch(0.05 0.02 266 / .9),
    0 0 0 1px oklch(0.1 0.02 266);
}
.replica-stage {
  position: absolute; left: 0; top: 0;
  width: 1120px; height: 660px;
  transform-origin: 0 0;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  color: var(--app-ink);
}
.rp-bar {
  flex: none; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--app-toolbar); border-bottom: 1px solid #0a0d13;
  font-size: 12px; white-space: nowrap;
}
.rp-lights { display: flex; gap: 7px; margin-right: 10px; }
.rp-light { width: 12px; height: 12px; border-radius: 50%; background: oklch(0.36 0.02 266); }
.rp-lights .rp-light:nth-child(1) { background: oklch(0.68 0.2 27); }
.rp-lights .rp-light:nth-child(2) { background: oklch(0.83 0.16 85); }
.rp-lights .rp-light:nth-child(3) { background: oklch(0.74 0.18 145); }
.rp-ws { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-weight: 600; color: var(--app-ink); }
.rp-ws::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--app-dim); border-bottom: 1.5px solid var(--app-dim); transform: rotate(45deg) translate(-1px, -1px); }
.rp-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px;
  border-radius: 6px; color: var(--app-dim);
  background: #1b202b; box-shadow: 0 0 0 1px #262c3a inset;
  transition: background-color .3s, box-shadow .3s;
}
.rp-tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.rp-tab b { font-weight: 600; color: var(--app-ink); }
.rp-tab-more { display: contents; }
.rp-tab.is-active { background: #262d3d; box-shadow: 0 0 0 1px #3c4660 inset; color: var(--app-ink); }
.rp-tab[data-state="done"]::after { content: "✓"; color: var(--app-ok); font-size: 11px; }
.rp-tab[data-state="working"] i { animation: pulse 1.2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }
.rp-bar-spacer { flex: 1; }
.rp-icons { display: flex; align-items: center; gap: 12px; margin: 0 8px; }
.rp-ico { width: 12px; height: 12px; border: 1.5px solid #5d6679; border-radius: 3px; }
.rp-ico.is-round { border-radius: 50%; }
.rp-ico.is-lines { border-width: 0; border-top: 1.5px solid #5d6679; border-bottom: 1.5px solid #5d6679; height: 10px; }
.rp-ico.is-on { border-color: var(--app-accent); }
.rp-msg {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px;
  color: oklch(0.86 0.08 262); background: oklch(0.64 0.19 262 / .16);
}
.rp-msg svg { width: 13px; height: 13px; }

.rp-activity {
  flex: none; display: grid; grid-template-columns: 92px 1fr; gap: 2px 10px; padding: 7px 14px 8px;
  background: #151a24; border-bottom: 1px solid #0a0d13; font-size: 10.5px; color: var(--app-dim);
}
.ra-label { grid-row: span 2; font-weight: 600; color: #aab3c5; line-height: 1.3; padding-top: 1px; }
.ra-label small { display: block; font-weight: 400; color: #6d778b; font-size: 10px; }
.ra-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 8px; height: 16px; }
.ra-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-row b { font-weight: 600; color: var(--app-ink); }
.ra-track { position: relative; height: 6px; border-radius: 3px; background: #1d2330; }
.ra-track s { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--c); opacity: .85; }
.ra-track s.is-live { opacity: 1; box-shadow: 0 0 8px -1px var(--c); }
.ra-row em { font-style: normal; text-align: right; color: #7f899d; font-variant-numeric: tabular-nums; }

.rp-body { flex: 1; min-height: 0; display: flex; }
.rp-canvas {
  position: relative; flex: 1; min-width: 0;
  background: linear-gradient(var(--app-canvas), var(--app-canvas-2));
}
.rp-card {
  position: absolute; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 9px; background: var(--app-term);
  border: 1px solid var(--app-line);
  box-shadow: 0 18px 40px -18px oklch(0.05 0.02 266 / .9);
  transition: border-color .5s, box-shadow .6s var(--ease-out);
}
.rp-card[data-agent="codex"] { left: 8px; top: 8px; width: calc(50% - 12px); bottom: 8px; }
.rp-card[data-agent="claude"] { right: 8px; top: 8px; width: calc(50% - 12px); bottom: 8px; }
.rp-card[data-agent="editor"] {
  left: 432px; top: 236px; width: 404px; height: 236px; z-index: var(--z-overlay);
  box-shadow: 0 0 0 1px #3a4660, 0 30px 70px -20px oklch(0.04 0.02 266 / .95);
}
.rp-card header {
  flex: none; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 10px;
  background: var(--app-title); border-bottom: 1px solid #0d1017;
  font-size: 11.5px; color: var(--app-dim); white-space: nowrap;
}
.rp-card header i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.rp-card header b { color: var(--app-ink); font-weight: 600; }
.rp-card header .rp-br { color: #66718a; overflow: hidden; text-overflow: ellipsis; }
.rp-card header .rp-ctrl { margin-left: auto; display: flex; gap: 9px; color: #5d6679; }
.rp-card header .rp-ctrl span { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.rp-card header .rp-ctrl span:first-child { border-color: var(--app-bad); opacity: .8; }
.rp-chip {
  --s: oklch(0.72 0.02 266);
  display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--s); background: color-mix(in oklch, var(--s) 16%, transparent);
  transition: color .35s, background-color .35s;
}
.rp-chip[data-state="idle"] { --s: oklch(0.74 0.015 266); background: #31363f; color: #c9cedb; }
.rp-chip[data-state="working"] { --s: oklch(0.8 0.15 65); background: #b7662b; color: #fff4ea; }
.rp-chip[data-state="done"], .rp-chip[data-state="running"] { --s: oklch(0.8 0.16 150); }
.rp-chip.is-flip { animation: chip-flip .6s var(--ease-out-expo); }
@keyframes chip-flip { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.rp-term {
  flex: 1; padding: 10px 14px; overflow: hidden;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: #c9d0de;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.rp-term p { margin: 0; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rp-term .dim, .rp-code .dim { color: #667087; }
.rp-term .ok { color: oklch(0.8 0.14 150); }
.rp-term .warn { color: oklch(0.82 0.13 80); }
.rp-term .hl { color: var(--c); }
.rp-term .rp-in { color: var(--app-ink); background: color-mix(in oklch, var(--c) 14%, transparent); margin: 2px -14px 4px; padding: 2px 14px; }
.rp-term .df-add { background: oklch(0.45 0.1 150 / .28); margin: 0 -14px; padding: 0 14px; color: #bfe9cf; }
.rp-term .df-del { background: oklch(0.45 0.13 25 / .28); margin: 0 -14px; padding: 0 14px; color: #f0c4c4; }
.rp-link {
  color: var(--app-ink); border-radius: 3px;
  text-decoration: underline dotted oklch(0.72 0.02 266); text-underline-offset: 3px;
  transition: color .2s, background-color .2s, text-decoration-color .2s;
}
.rp-link.is-hover { color: oklch(0.86 0.08 262); background: oklch(0.64 0.19 262 / .18); text-decoration: underline solid oklch(0.86 0.08 262); }
.rp-cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -3px; background: var(--c); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rp-path {
  flex: none; height: 22px; display: flex; align-items: center; padding: 0 10px;
  border-top: 1px solid #1c2230; background: #12161e;
  font-family: var(--font-mono); font-size: 10px; color: #667087; white-space: nowrap;
}
.rp-path-icons { margin-left: auto; display: flex; gap: 8px; }
.rp-path-icons span { width: 9px; height: 11px; border: 1.3px solid currentColor; border-radius: 2px; }

.rp-code {
  flex: 1; padding: 8px 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; color: #d3d9e6; background: #131824;
}
.rp-code p { margin: 0; padding: 0 14px 0 0; white-space: pre; overflow: hidden; }
.rp-code em { display: inline-block; width: 42px; padding-right: 14px; text-align: right; font-style: normal; color: #5a6379; }
.rp-code .is-line { background: oklch(0.64 0.19 262 / .16); box-shadow: 2px 0 0 var(--app-accent) inset; }
.rp-code .is-line em { color: var(--app-ink); }
.rp-code .k, .tf-code .k { color: oklch(0.72 0.15 300); }
.rp-code .f { color: oklch(0.8 0.12 230); }
.rp-code .t, .tf-code .t { color: oklch(0.78 0.13 25); }
.rp-code .a, .tf-code .a { color: oklch(0.82 0.12 85); }
.rp-code .s, .tf-code .s, .tf-line .s { color: oklch(0.8 0.13 150); }

/* Supervisor column */
.rp-side {
  flex: none; width: 276px; display: flex; flex-direction: column; gap: 9px; padding: 10px 12px 0;
  background: #11141a; border-left: 1px solid #0a0d13; font-size: 10.5px; color: var(--app-dim); overflow: hidden;
}
.sp-head { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.sp-head b { color: var(--app-ink); font-weight: 600; font-size: 11px; }
.sp-head .sp-spacer { flex: 1; }
.sp-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-role { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 7px; background: #181d28; box-shadow: 0 0 0 1px #242b3a inset; white-space: nowrap; overflow: hidden; }
.sp-role b { display: flex; align-items: center; gap: 6px; color: var(--app-ink); font-weight: 600; }
.sp-role b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sp-role small { color: #66718a; font-size: 9.5px; padding-left: 13px; }
.sp-pill { display: inline-flex; align-items: center; gap: 4px; height: 16px; padding: 0 6px; border-radius: 8px; font-size: 10px; font-weight: 600; }
.sp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-pill.ok { color: oklch(0.8 0.16 150); background: oklch(0.8 0.16 150 / .14); }
.sp-pill.bad { color: oklch(0.76 0.17 22); background: oklch(0.76 0.17 22 / .14); }
.sp-pill.mid { color: oklch(0.82 0.13 80); background: oklch(0.82 0.13 80 / .14); }
.sp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid #1c2230; min-height: 0; overflow: hidden; }
.sp-rows li { flex: none; }
.sp-rows li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 7px; height: 22px; border-bottom: 1px solid #171c27; white-space: nowrap; }
.sp-rows li span { overflow: hidden; text-overflow: ellipsis; color: #b4bdce; }
.sp-rows li em { font-style: normal; color: #667087; font-size: 9.5px; }
.sp-rows li i { width: 8px; height: 8px; border-radius: 50%; }
.sp-rows li i.ok { background: oklch(0.8 0.16 150); }
.sp-rows li i.bad { background: oklch(0.7 0.18 22); }
.sp-rows li i.mid { background: oklch(0.82 0.15 70); }
.sp-rows li i.idle { background: #4b5366; }
.sp-tray {
  margin-top: auto; margin-left: -12px; margin-right: -12px; padding: 10px 12px 12px;
  background: #1c1815; border-top: 1px solid #2c2520; display: flex; flex-direction: column; gap: 7px;
}
.sp-tray > b { color: #f1c9a3; font-weight: 600; font-size: 10.5px; }
.sp-plan { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; background: #241e1a; box-shadow: 0 0 0 1px #3a2f27 inset; color: #d9c8b8; white-space: nowrap; overflow: hidden; }
.sp-plan span { overflow: hidden; text-overflow: ellipsis; }
.sp-btns { display: flex; gap: 6px; }
.sp-btns span { flex: 1; text-align: center; padding: 5px 6px; border-radius: 6px; background: #2a2723; color: #d9c8b8; font-weight: 600; }
.sp-btns span.is-primary { background: #b46731; color: #fff4ea; }

.rp-pointer {
  position: absolute; z-index: calc(var(--z-overlay) + 1); left: 520px; top: 440px; width: 20px; height: 24px;
  filter: drop-shadow(0 3px 6px oklch(0.05 0.02 266 / .7));
  opacity: 0; transition: left .9s var(--ease-out-expo), top .9s var(--ease-out-expo), opacity .3s, transform .15s;
  pointer-events: none;
}
.rp-pointer.is-shown { opacity: 1; }
.rp-pointer.is-down { transform: scale(.85); }

/* Narrow frames switch to a stacked composition. */
.replica.is-compact { aspect-ratio: 500 / 930; }
.is-compact .replica-stage { width: 500px; height: 930px; }
.is-compact .rp-tab-more, .is-compact .rp-icons, .is-compact .rp-msg { display: none; }
.is-compact .rp-activity { grid-template-columns: 1fr; }
.is-compact .ra-label { grid-row: auto; display: flex; gap: 8px; align-items: baseline; }
.is-compact .ra-label small { display: inline; }
.is-compact .rp-body { flex-direction: column; }
.is-compact .rp-card[data-agent="codex"] { left: 8px; top: 8px; right: 8px; width: auto; bottom: auto; height: 284px; }
.is-compact .rp-card[data-agent="claude"] { left: 8px; right: 8px; top: 300px; width: auto; bottom: auto; height: 252px; }
.is-compact .rp-card[data-agent="editor"] { left: 30px; right: 10px; top: 400px; width: auto; height: 190px; }
.is-compact .rp-side { width: auto; height: 244px; border-left: 0; border-top: 1px solid #0a0d13; padding-bottom: 0; }
.is-compact .rp-term { font-size: 12px; padding: 8px 12px; }
.is-compact .rp-term .rp-in { margin: 2px -12px 4px; padding: 2px 12px; }
.is-compact .rp-code { font-size: 11.5px; }
.is-compact .sp-roles { display: none; }
.is-compact .rp-pointer { left: 360px; top: 560px; }

/* JS "armed" state hides lines and the editor until the demo reaches them; without JS the final state stays visible. */
.is-armed .rp-reveal:not(.is-shown) { opacity: 0; transform: translateY(6px); }
.rp-reveal { transition: opacity .45s var(--ease-out), transform .55s var(--ease-out-expo); }
.is-armed .rp-editor:not(.is-open) { opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none; }
.rp-editor { transition: opacity .4s var(--ease-out), transform .6s var(--ease-out-expo); transform-origin: 30% 0; }
.is-armed .rp-tab-editor:not(.is-open) { display: none; }

.showcase-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.showcase-caption p { margin: 0; max-width: 70ch; }
.play-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2);
  font: inherit; font-size: 13px; cursor: pointer;
}
.play-toggle:hover { color: var(--ink); border-color: oklch(0.45 0.04 266); }
.play-toggle svg { width: 12px; height: 12px; }
.play-toggle .icon-play { display: none; }
.play-toggle[aria-pressed="true"] .icon-play { display: block; }
.play-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Sections */
section { scroll-margin-top: 24px; }
.band { padding: clamp(80px, 10vw, 136px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.7vw, 2.45rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--ink-2); max-width: 48ch; }

/* Providers */
.providers { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.providers .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 3.4vw, 48px); padding-top: 28px; padding-bottom: 28px; }
.providers-label { color: var(--ink-3); font-size: 14px; margin-right: auto; }
.provider { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: clamp(14px, 1.3vw, 16.5px); font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; }
.provider::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.provider.is-custom { color: var(--ink-3); font-family: var(--font-body); font-weight: 400; }
.provider.is-custom::before { background: none; border: 1.5px dashed var(--ink-3); box-shadow: none; width: 10px; height: 10px; }

/* Layout demo */
.arranger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.arranger-stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: linear-gradient(oklch(0.165 0.025 266), oklch(0.195 0.03 266));
  border: 1px solid var(--line);
}
.mini {
  position: absolute; left: 1.6%; top: 1.6%; width: 47.6%; height: 47.6%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px; background: oklch(0.14 0.018 266);
  border: 1px solid oklch(0.3 0.028 266);
  box-shadow: 0 16px 30px -18px oklch(0.05 0.02 266);
  transition: left .7s var(--ease-out-expo), top .7s var(--ease-out-expo), width .7s var(--ease-out-expo), height .7s var(--ease-out-expo);
}
.mini header { flex: none; display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; background: oklch(0.21 0.022 266); font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.mini header i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mini-lines { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mini-lines span { height: 5px; border-radius: 3px; background: oklch(0.3 0.02 266); }
.mini-lines span:nth-child(1) { width: 70%; background: color-mix(in oklch, var(--c) 45%, oklch(0.3 0.02 266)); }
.mini-lines span:nth-child(2) { width: 88%; }
.mini-lines span:nth-child(3) { width: 54%; }
.mini-lines span:nth-child(4) { width: 76%; }
.arranger-controls { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.arrange-btn {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: none;
  color: var(--ink-2); font: inherit; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.arrange-btn svg { grid-row: span 2; width: 34px; height: 24px; color: var(--ink-3); transition: color .25s; }
.arrange-btn b { font-weight: 550; color: var(--ink); font-size: 16px; }
.arrange-btn small { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.arrange-btn:hover { background: var(--bg-raise); }
.arrange-btn[aria-pressed="true"] { background: var(--bg-raise); border-color: var(--line); }
.arrange-btn[aria-pressed="true"] svg { color: var(--accent-soft); }

/* Persistence */
.persist { background: var(--bg-sunk); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lifeline { position: relative; display: grid; gap: 18px; padding: 8px 0 0; }
.lane { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 20px; align-items: center; }
.lane-label { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lane-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.track { position: relative; overflow-x: clip; height: 44px; border-radius: 10px; background: oklch(0.18 0.02 266); }
.seg { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); border-radius: 10px; }
.seg.app { background: oklch(0.3 0.04 262); box-shadow: 0 0 0 1px oklch(0.42 0.06 262) inset; display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.seg.proc {
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, oklch(1 0 0 / .07) 10px 11px),
    linear-gradient(90deg, color-mix(in oklch, var(--c) 60%, oklch(0.2 0 0)), color-mix(in oklch, var(--c) 32%, oklch(0.2 0 0)));
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--c) 70%, transparent) inset, 0 0 30px -10px var(--c);
}
.seg.proc.claude-lane { --c: var(--claude); }
.gap-mark { position: absolute; top: 50%; left: var(--at); transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lifeline-scale { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 20px; }
.scale-track { position: relative; height: 56px; }
.scale-note { position: absolute; top: 10px; left: var(--at); max-width: 30%; padding-left: 10px; border-left: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; z-index: var(--z-raised);
  animation: sweep 9s linear infinite;
}
.playhead::before { content: ""; position: absolute; left: 0; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 14px oklch(1 0 0 / .6); }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }
.persist-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 56px; margin-top: clamp(40px, 5vw, 64px); color: var(--ink-2); font-size: 15.5px; }
.persist-notes p { margin: 0; max-width: 52ch; }
.persist-notes strong { color: var(--ink); font-weight: 550; }

/* Details list */
/* Terminal features */
.tf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tf {
  grid-column: span 2; min-width: 0; display: flex; flex-direction: column;
  padding: 18px 18px 24px; border-radius: 18px;
  background: linear-gradient(oklch(0.185 0.025 266), oklch(0.165 0.022 266));
  border: 1px solid var(--line-soft);
}
.tf-wide { grid-column: span 3; }
.tf h3 { margin: 20px 6px 0; font-size: 18px; font-weight: 550; color: var(--ink); letter-spacing: -.005em; }
.tf p { margin: 8px 6px 0; color: var(--ink-2); font-size: 15.5px; max-width: 54ch; }
.tf p b { color: var(--ink); font-weight: 550; }
.tf code, .tf kbd { font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; border-radius: 5px; background: oklch(0.25 0.026 266); color: var(--ink); }
.tf-vis {
  min-height: 148px; padding: 18px; border-radius: 12px;
  background: var(--bg-sunk); border: 1px solid oklch(0.22 0.022 266);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: oklch(0.8 0.015 266);
  overflow: hidden;
}
.tf-vis .dim { color: oklch(0.58 0.02 266); }
.tf-vis p { margin: 0; max-width: none; font-size: inherit; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-head {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px;
  background: oklch(0.21 0.022 266); font-family: var(--font-body); font-size: 12px; color: var(--ink-3); white-space: nowrap;
}
.tf-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tf-head b { color: var(--ink); font-weight: 600; }
.tf-head .rp-chip { margin-left: auto; }
.tf-status .tf-head:nth-child(1) .rp-chip { animation: chip-breathe 2.4s ease-in-out infinite; }
@keyframes chip-breathe { 50% { opacity: .55; } }
.tf-link { align-items: flex-start; }
.tf-arrow { width: 40px; height: 16px; margin-left: 88px; color: var(--accent-soft); transform: rotate(90deg); }
.tf-code {
  margin: 0; padding: 4px 12px 4px 0; border-radius: 6px; white-space: nowrap;
  background: oklch(0.64 0.19 262 / .16); box-shadow: 2px 0 0 var(--accent) inset;
}
.tf-code em { display: inline-block; width: 38px; padding-right: 12px; text-align: right; font-style: normal; color: var(--ink); }
.tf-drop { align-items: flex-start; }
.tf-file {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: oklch(0.3 0.03 266); color: var(--ink); font-family: var(--font-body); font-size: 12px;
  box-shadow: 0 10px 24px -10px oklch(0.04 0.02 266); transform: rotate(-3deg) translate(24px, 0);
}
.tf-file svg { width: 15px; height: 15px; color: var(--accent-soft); }
.tf-pathbar { justify-content: flex-end; gap: 2px; padding: 18px 0 0; }
.tf-pathbar p { padding: 0 18px; }
.tf-pathbar .s { color: oklch(0.8 0.13 150); }
.tf-pathline {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-top: 1px solid oklch(0.22 0.022 266); background: oklch(0.155 0.02 266);
  margin-top: auto; font-size: 12px; color: oklch(0.66 0.02 266);
}
.tf-copied { color: oklch(0.8 0.16 150); font-family: var(--font-body); font-size: 11.5px; }
.tf-icons { margin-left: auto; display: flex; gap: 10px; color: var(--ink-2); }
.tf-icons svg { width: 15px; height: 15px; }
.tf-palette { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px; }
.tf-palette span {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 8px; border-radius: 14px;
  background: oklch(0.21 0.022 266); font-family: var(--font-body); font-size: 12px; color: var(--ink-2);
}
.tf-palette span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tf-palette span:first-child { box-shadow: 0 0 0 1px var(--accent) inset; color: var(--ink); }

.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: clamp(32px, 5vw, 80px); margin: 0; }
.detail { display: grid; grid-template-columns: 30px 1fr; align-content: start; gap: 0 16px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.detail svg { width: 22px; height: 22px; margin-top: 3px; color: var(--accent-soft); }
.detail dt { font-weight: 550; font-size: 17px; color: var(--ink); }
.detail dd { grid-column: 2; margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.detail kbd, .detail code, .steps code {
  font-family: var(--font-mono); font-size: .86em; padding: 1px 6px; border-radius: 5px;
  background: var(--bg-raise); border: 1px solid var(--line); color: var(--ink);
}

/* Install */
.install { position: relative; overflow: clip; }
.install-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.install-cta { position: sticky; top: 40px; }
.install-cta img { width: clamp(96px, 11vw, 136px); height: auto; margin-bottom: 28px; filter: drop-shadow(0 20px 40px oklch(0.64 0.19 262 / .35)); }
.install-cta p { color: var(--ink-2); margin: 20px 0 32px; max-width: 40ch; }
.install-cta .requirements { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 0 0 44px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--accent-soft);
  position: relative; z-index: var(--z-raised);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 48px; bottom: 0; width: 1px; background: var(--line); }
.steps h3 { margin: 10px 0 0; font-size: 19px; font-weight: 550; letter-spacing: -0.01em; }
.steps p { grid-column: 2; margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 36px; color: var(--ink-3); font-size: 13.5px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Entrance: content is visible by default; this only adds a short rise on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-actions, .showcase {
    animation: rise 1s var(--ease-out-expo) both;
  }
  .hero-lead { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  .showcase { animation-delay: .24s; animation-duration: 1.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1080px) {
  .hero-copy { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { order: 3; }
  .hero-lead { max-width: 60ch; }
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .arranger { grid-template-columns: 1fr; }
  .arranger-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .arrange-btn small { display: none; }
  .arrange-btn { grid-template-columns: 30px 1fr; padding: 10px 12px; }
  .arrange-btn svg { grid-row: auto; width: 30px; }
  .install-grid { grid-template-columns: 1fr; }
  .install-cta { position: static; }
  .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf, .tf-wide { grid-column: span 1; }
  .tf:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-nav .nav-link { display: none; }
  .site-header { height: 72px; }
  .lane, .lifeline-scale { grid-template-columns: 1fr; gap: 8px; }
  .lifeline-scale .scale-spacer { display: none; }
  .scale-note { max-width: 46%; font-size: 12.5px; }
  .showcase-caption { flex-direction: column; align-items: flex-start; }
  .providers-label { flex-basis: 100%; }
  .tf-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-vis { min-height: 120px; }
}
@media (max-width: 480px) {
  .header-nav .button-small span { display: none; }
  .header-nav .button-small { padding: 0 11px; }
  .hero-actions .button { width: 100%; }
  .steps li { grid-template-columns: 48px 1fr; gap: 0 14px; }
  .steps li::before { width: 40px; height: 40px; font-size: 15px; }
  .steps li:not(:last-child)::after { left: 20px; top: 40px; }
  .steps h3 { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .playhead { display: none; }
  .rp-cursor, .rp-tab i, .tf-status .rp-chip { animation: none !important; }
}
.scale-note.is-before { left: auto; right: calc(100% - var(--at)); padding: 0 10px 0 0; border-left: 0; border-right: 1px solid var(--line); text-align: right; }
.rp-tab-more { display: contents; }

/* Overview, Git, panels, Supervisor, automation, shortcuts */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: oklch(0.82 0.13 80); background: oklch(0.82 0.13 80 / .12); box-shadow: 0 0 0 1px oklch(0.82 0.13 80 / .3) inset;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-exp {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: oklch(0.82 0.13 80); background: oklch(0.82 0.13 80 / .12); box-shadow: 0 0 0 1px oklch(0.82 0.13 80 / .3) inset;
}

.glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.glance-grid li { display: flex; }
.glance-card {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 20px 20px 22px; border-radius: 16px;
  background: linear-gradient(oklch(0.185 0.025 266), oklch(0.165 0.022 266)); border: 1px solid var(--line-soft);
  text-decoration: none; transition: border-color .25s, transform .35s var(--ease-out);
}
.glance-card:hover { border-color: oklch(0.42 0.05 262); transform: translateY(-2px); }
.glance-card svg { width: 24px; height: 24px; color: var(--accent-soft); }
.glance-card h3 { margin: 6px 0 0; font-size: 16.5px; font-weight: 550; color: var(--ink); }
.glance-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.tf-composer { align-items: stretch; gap: 8px; }
.tf-recipients { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-body); font-size: 11.5px; }
.tf-recipients span { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: oklch(0.21 0.022 266); color: var(--ink-3); }
.tf-recipients span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tf-recipients span.is-on { color: var(--ink); box-shadow: 0 0 0 1px var(--c) inset; background: color-mix(in oklch, var(--c) 14%, oklch(0.21 0.022 266)); }
.tf-composer .tf-line { white-space: normal; }
.tf-time { gap: 8px; }
.tt-row { display: grid; grid-template-columns: 74px 1fr 46px; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 11.5px; color: var(--ink-3); }
.tt-row span { white-space: nowrap; }
.tt-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.tt-track { position: relative; height: 8px; border-radius: 4px; background: oklch(0.21 0.022 266); }
.tt-track s { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); }
.tt-axis { display: grid; grid-template-columns: 74px 1fr 46px; gap: 10px; font-family: var(--font-body); font-size: 10.5px; color: var(--ink-3); }
.tt-axis div { display: flex; justify-content: space-between; grid-column: 2; }
.tf-modes { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px; }
.tf-modes span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: oklch(0.21 0.022 266); font-family: var(--font-body); font-size: 12px; color: var(--ink-2); }
.tf-modes span:first-child { box-shadow: 0 0 0 1px var(--accent) inset; color: var(--ink); }

/* Git */
.git-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.git-visuals, .sup-visuals { position: sticky; top: 28px; display: grid; gap: 16px; }
.gitpanel {
  border-radius: 14px; overflow: hidden; background: var(--app-term);
  border: 1px solid oklch(0.36 0.035 266); box-shadow: 0 40px 90px -40px oklch(0.05 0.02 266 / .9);
}
.gp-head { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: var(--app-title); border-bottom: 1px solid #0d1017; font-size: 13px; color: var(--app-dim); }
.gp-head b { color: var(--app-ink); font-weight: 600; }
.gp-head span { margin-left: auto; font-size: 12px; }
.gp-graph { display: block; width: 100%; height: auto; }
.gp-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid #1c2230; background: #12161e; font-family: var(--font-mono); font-size: 12px; color: #7d879b; }
.gp-foot .a { color: var(--app-ok); } .gp-foot .m { color: var(--app-warn); } .gp-foot .u { color: oklch(0.8 0.1 215); }
.gp-diff { padding: 8px 0; border-top: 1px solid #1c2230; font-family: var(--font-mono); font-size: 12px; line-height: 1.65; color: #aeb7c9; }
.gp-diff p { margin: 0; padding: 0 14px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.gp-diff .h { color: #6d778b; }
.gp-diff .add { background: oklch(0.45 0.1 150 / .26); color: #bfe9cf; }
.gp-diff .del { background: oklch(0.45 0.13 25 / .26); color: #f0c4c4; }
.gp-diff .pick::before { content: "✓ "; color: var(--app-ok); margin-left: -14px; }
.list-grid { display: grid; gap: 0; margin: 0; }
.list-grid .detail { grid-template-columns: 30px 1fr; }
.list-grid .detail dd { max-width: 54ch; }
.fine { margin: 24px 0 0; color: var(--ink-3); font-size: 14px; max-width: 62ch; }

/* Side panels */
.pn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pn { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 24px; border-radius: 16px; background: linear-gradient(oklch(0.185 0.025 266), oklch(0.165 0.022 266)); border: 1px solid var(--line-soft); }
.pn svg { width: 26px; height: 26px; color: var(--accent-soft); }
.pn h3 { margin: 6px 0 0; font-size: 18px; font-weight: 550; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pn h3 kbd { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; padding: 1px 6px; border-radius: 5px; background: var(--bg-raise); border: 1px solid var(--line); color: var(--ink-2); }
.pn p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pn .lim { color: var(--ink-3); font-size: 13.5px; }

/* Supervisor */
.sup-flow { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; list-style: none; }
.sup-flow li { counter-increment: s; position: relative; padding: 18px 16px 20px; border-radius: 14px; background: oklch(0.185 0.025 266); border: 1px solid var(--line-soft); }
.sup-flow li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 12px; border-radius: 50%; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--accent-soft); border: 1px solid var(--line); }
.sup-flow li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 31px; width: 14px; height: 1px; background: var(--line); }
.sup-flow li.is-ok { border-color: oklch(0.8 0.16 150 / .4); }
.sup-flow li.is-ok::before { color: oklch(0.8 0.16 150); border-color: oklch(0.8 0.16 150 / .5); }
.sup-flow h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 550; }
.sup-flow p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.sup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan {
  border-radius: 14px; overflow: hidden; background: #11141a; border: 1px solid oklch(0.36 0.035 266);
  box-shadow: 0 40px 90px -40px oklch(0.05 0.02 266 / .9); font-size: 13.5px; color: var(--app-dim);
}
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; background: #1c1815; border-bottom: 1px solid #2c2520; color: #d9c8b8; }
.plan-head b { color: #f1c9a3; font-weight: 600; }
.plan-head span { margin-left: auto; font-size: 12px; color: #a99a8b; }
.plan-rows { margin: 0; padding: 4px 0; list-style: none; }
.plan-rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #171c27; }
.plan-rows li:last-child { border-bottom: 0; }
.plan-rows .n { color: #66718a; font-family: var(--font-mono); font-size: 12px; }
.plan-rows strong { color: #d3d9e6; font-weight: 550; display: block; }
.plan-rows small { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 12px; color: #7d879b; }
.role-dot { display: inline-flex; align-items: center; gap: 6px; }
.role-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.plan .sp-pill { height: 20px; font-size: 11.5px; padding: 0 9px; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: #1c1815; border-top: 1px solid #2c2520; }
.plan-foot span { padding: 6px 14px; border-radius: 7px; background: #2a2723; color: #d9c8b8; font-weight: 600; font-size: 12.5px; }
.plan-foot span.is-primary { background: #b46731; color: #fff4ea; }
.plan-foot em { margin-left: auto; font-style: normal; font-size: 12px; color: #a99a8b; }
.warn-note { display: flex; gap: 12px; margin-top: clamp(28px, 4vw, 44px); padding: 16px 18px; border-radius: 12px; background: oklch(0.82 0.13 80 / .07); box-shadow: 0 0 0 1px oklch(0.82 0.13 80 / .22) inset; color: var(--ink-2); font-size: 14.5px; }
.warn-note p { margin: 0; max-width: 90ch; }
.warn-note strong { color: oklch(0.88 0.1 85); font-weight: 600; }

/* Automation */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.mcp-tools { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.mcp-tools li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 11px 14px; border-radius: 10px; background: var(--bg-sunk); border: 1px solid var(--line-soft); color: var(--ink-2); font-size: 14.5px; }
.mcp-tools code { font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); }
.mcp-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mcp-facts li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line-soft); color: var(--ink-2); font-size: 15.5px; }
.mcp-facts li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent-soft); }
.mcp-facts strong { color: var(--ink); font-weight: 550; }

/* Shortcuts */
.keys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 clamp(28px, 4vw, 56px); margin: 0; }
.keys-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.keys-grid dt { color: var(--ink-2); font-size: 15px; }
.keys-grid dd { margin: 0; white-space: nowrap; }
.keys-grid kbd { font-family: var(--font-mono); font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--bg-raise); border: 1px solid var(--line); color: var(--ink); }

.req-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.req-list li { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); }
.install-notes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-3); font-size: 14px; max-width: 52ch; }
.install-notes li { position: relative; padding-left: 18px; }
.install-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

@media (max-width: 1080px) {
  .glance-grid, .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sup-flow li::after { display: none; }
  .tf:last-child { grid-column: auto; }
}
@media (max-width: 900px) {
  .git-grid, .sup-grid, .mcp-grid { grid-template-columns: 1fr; }
  .gitpanel { position: static; }
  .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf:last-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .glance-grid, .pn-grid, .sup-flow { grid-template-columns: minmax(0, 1fr); }
  .mcp-tools li { grid-template-columns: 1fr; gap: 2px; }
  .plan-rows li { grid-template-columns: 22px minmax(0, 1fr); }
  .plan-rows li .sp-pill { grid-column: 2; justify-self: start; }
  .tf-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-row, .tt-axis { grid-template-columns: 62px 1fr 42px; }
}

.quickopen { border-radius: 14px; overflow: hidden; background: #151921; border: 1px solid oklch(0.36 0.035 266); box-shadow: 0 30px 70px -36px oklch(0.05 0.02 266 / .9); font-size: 14px; }
.qo-input { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #1c2230; font-family: var(--font-mono); color: #dfe5f1; background: #1b202b; }
.qo-input kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 7px; border-radius: 5px; background: #12161e; border: 1px solid #2a3142; color: #8e99ad; }
.quickopen ul { margin: 0; padding: 6px; list-style: none; }
.quickopen li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 8px; color: #8e99ad; }
.quickopen li b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #dfe5f1; }
.quickopen li span { font-size: 12.5px; }
.quickopen li.is-on { background: oklch(0.64 0.19 262 / .18); }
.plan.waiting { box-shadow: none; }
.plan.waiting .plan-head b { font-size: 13.5px; }
.plan.waiting .plan-rows .n { color: oklch(0.82 0.13 80); font-weight: 700; }
@media (max-width: 900px) { .git-visuals, .sup-visuals { position: static; } }
