@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;

  --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 */
.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, 18px);
  border: 1px solid oklch(0.36 0.035 266);
  background: var(--bg-sunk);
  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(--ink);
}
.rp-chrome {
  flex: none; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: oklch(0.2 0.022 266); border-bottom: 1px solid oklch(0.12 0.02 266);
}
.rp-light { width: 12px; height: 12px; border-radius: 50%; background: oklch(0.36 0.02 266); }
.rp-chrome .rp-light:nth-child(1) { background: oklch(0.68 0.2 27); }
.rp-chrome .rp-light:nth-child(2) { background: oklch(0.83 0.16 85); }
.rp-chrome .rp-light:nth-child(3) { background: oklch(0.74 0.18 145); }
.rp-title { flex: 1; text-align: center; margin-right: 60px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.rp-bar {
  flex: none; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: oklch(0.185 0.022 266); border-bottom: 1px solid oklch(0.11 0.02 266);
  font-size: 12px;
}
.rp-tab {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px;
  border-radius: 6px; color: var(--ink-2); white-space: nowrap;
  background: oklch(0.23 0.024 266);
  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(--ink); }
.rp-bar-spacer { flex: 1; }
.rp-msg {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px;
  color: var(--accent-soft); background: oklch(0.64 0.19 262 / .16);
  transition: background-color .2s, transform .2s;
}
.rp-msg svg { width: 13px; height: 13px; }
.rp-canvas {
  position: relative; flex: 1;
  background: linear-gradient(oklch(0.155 0.025 266), oklch(0.185 0.03 266));
}
.rp-card {
  position: absolute; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 10px; background: oklch(0.14 0.018 266);
  border: 1px solid oklch(0.3 0.028 266);
  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: 10px; top: 10px; width: 552px; bottom: 10px; }
.rp-card[data-agent="claude"] { left: 568px; top: 10px; right: 10px; height: 300px; }
.rp-card[data-agent="zsh"] { left: 568px; top: 318px; right: 10px; bottom: 10px; }
.rp-card[data-agent="editor"] { left: 96px; top: 338px; width: 456px; height: 238px; z-index: var(--z-overlay); box-shadow: 0 0 0 1px oklch(0.4 0.04 266), 0 30px 70px -20px oklch(0.04 0.02 266 / .95); }
.rp-card header {
  flex: none; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: oklch(0.21 0.022 266); border-bottom: 1px solid oklch(0.12 0.02 266);
  font-size: 12px; color: var(--ink-3); 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(--ink); font-weight: 600; }
.rp-card header .rp-ctrl { margin-left: auto; display: flex; gap: 10px; color: oklch(0.55 0.02 266); }
.rp-card header .rp-ctrl span { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.rp-chip {
  --s: oklch(0.72 0.02 266);
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px;
  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="working"] { --s: oklch(0.8 0.15 65); }
.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: 12px 16px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: oklch(0.8 0.015 266);
  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: oklch(0.58 0.02 266); }
.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(--ink); background: color-mix(in oklch, var(--c) 14%, transparent); margin: 2px -16px 4px; padding: 2px 16px; }
.rp-url { color: oklch(0.78 0.11 220); text-decoration: underline; text-decoration-color: oklch(0.78 0.11 220 / .4); text-underline-offset: 3px; }
.rp-link {
  color: var(--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: var(--accent-soft); background: oklch(0.64 0.19 262 / .18); text-decoration: underline solid var(--accent-soft); }
.rp-cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--c); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rp-path {
  flex: none; height: 24px; display: flex; align-items: center; padding: 0 12px;
  border-top: 1px solid oklch(0.2 0.02 266); background: oklch(0.155 0.02 266);
  font-family: var(--font-mono); font-size: 10.5px; color: oklch(0.6 0.02 266); 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-tool { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 6px; color: var(--ink-3); background: oklch(0.23 0.024 266); font-size: 11.5px; }
.rp-tab.is-active { background: oklch(0.3 0.03 266); box-shadow: 0 0 0 1px oklch(0.46 0.04 266) inset; }
.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-code {
  flex: 1; padding: 8px 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: oklch(0.84 0.015 266);
}
.rp-code p { margin: 0; padding: 0 14px 0 0; white-space: pre; }
.rp-code em { display: inline-block; width: 42px; padding-right: 14px; text-align: right; font-style: normal; color: oklch(0.48 0.02 266); }
.rp-code .is-line { background: oklch(0.64 0.19 262 / .16); box-shadow: 2px 0 0 var(--accent) inset; }
.rp-code .is-line em { color: var(--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); }

.rp-pointer {
  position: absolute; z-index: calc(var(--z-overlay) + 1); left: 820px; top: 520px; 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); }

.replica.is-compact { aspect-ratio: 620 / 780; }
.is-compact .replica-stage { width: 620px; height: 780px; }
.is-compact .rp-tab-more, .is-compact .rp-tool { display: none; }
.is-compact .rp-title { margin-right: 40px; }
.is-compact .rp-card[data-agent="codex"] { left: 8px; top: 8px; right: 8px; width: auto; bottom: auto; height: 340px; }
.is-compact .rp-card[data-agent="claude"] { left: 8px; top: 356px; width: 298px; right: auto; bottom: 8px; height: auto; }
.is-compact .rp-card[data-agent="zsh"] { left: 314px; top: 356px; right: 8px; bottom: 8px; height: auto; }
.is-compact .rp-card[data-agent="editor"] { left: 36px; top: 440px; width: auto; right: 14px; height: 256px; }
.is-compact .rp-term { font-size: 13px; padding: 10px 12px; }
.is-compact .rp-term .rp-in { margin: 2px -12px 4px; padding: 2px 12px; }
.is-compact .rp-code { font-size: 12px; }

/* 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; }
