:root {
  --bg: #171717;
  --bg-deep: #121212;
  --surface: #1c1c1c;
  --surface-2: #212121;
  --surface-3: #282828;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --heading: #ececec;
  --ink: #c9c9c9;
  --dim: #9a9a9a;
  --subtle: #6f6f6f;
  --accent: #5faee3;
  --accent-soft: rgba(95, 174, 227, 0.14);
  --ok: #3ec48a;
  --attention: #f0a23b;
  --del: #e5635a;
  --add: #4cc38a;
  --violet: #a58bf0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --wrap: 1160px;
  --gutter: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-pop: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, .mono { font-family: var(--font-mono); font-variant-ligatures: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.nav { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--heading); letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--heading); }
.nav-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border-radius: var(--radius-sm); color: var(--dim); transition: color .2s, background .2s; }
.nav-icon:hover { color: var(--heading); background: var(--surface-2); }
.nav-icon svg { width: 20px; height: 20px; }
.nav-cta { margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 500; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary { background: #d0d0d0; color: #161616; }
.btn-primary:hover { background: #ececec; }
.btn-ghost { border-color: var(--border-strong); color: var(--heading); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 320px at 50% 18%, rgba(95, 174, 227, 0.13), transparent 70%),
    url("assets/topo.svg") center top / cover no-repeat;
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(0,0,0,.24) 20%, rgba(0,0,0,.14) 50%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(0,0,0,.24) 20%, rgba(0,0,0,.14) 50%, transparent 80%);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-size: 14px; color: var(--ink); background: rgba(23, 23, 23, .6);
  transition: border-color .2s;
}
.pill:hover { border-color: rgba(255, 255, 255, .25); }
.pill-tag { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12.5px; padding: 2px 9px; border-radius: var(--radius-pill); }
.pill svg { width: 12px; height: 12px; color: var(--dim); }

.hero h1 {
  margin: 56px auto 0; max-width: 900px;
  font-size: clamp(40px, 6.4vw, 66px); line-height: 1.06; letter-spacing: -0.035em;
  font-weight: 700; color: var(--heading);
}
.hero h1 .accent { color: var(--accent); }
.lead {
  margin: 24px auto 0; max-width: 640px;
  font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: var(--dim);
}
.cta-row { display: flex; justify-content: center; align-items: flex-start; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.cta-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { font-size: 13.5px; color: var(--subtle); }
.cta-note a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.cta-note a:hover { color: var(--heading); }

.cmd {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 12px 11px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 15px; color: var(--heading); background: rgba(18, 18, 18, .6);
}
.cmd .prompt { color: var(--accent); }
.copy-btn {
  font-family: var(--font-sans); font-size: 13px; color: var(--dim);
  padding: 2px 4px 2px 14px; border-left: 1px solid var(--border-strong);
  transition: color .2s;
}
.copy-btn:hover { color: var(--heading); }

.works-with { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 44px; font-size: 14px; color: var(--subtle); }
.works-with .label { margin-right: 6px; }
.agent-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--ink); font-size: 13.5px; background: rgba(255,255,255,.02);
}
.agent-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }

/* ---------- App mockup ---------- */
.shot { margin: 56px auto 0; position: relative; }
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.window {
  text-align: left; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden;
  font-size: 13px; line-height: 1.45; color: var(--ink);
}
.win-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; color: var(--dim); font-size: 13px; font-weight: 500; }
.win-title b { color: var(--heading); font-weight: 600; }
.win-server { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }

.app { display: grid; grid-template-columns: 290px 1fr; height: 560px; }
.side { border-right: 1px solid var(--border); background: var(--bg-deep); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.repo-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); font-weight: 600; }
.repo-head span:last-child { font-size: 15px; letter-spacing: 0; font-weight: 400; }
.wt { display: grid; grid-template-columns: 12px 1fr auto; column-gap: 9px; row-gap: 3px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); }
.wt.active { background: var(--surface-3); }
.wt-name { color: var(--heading); font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-git { font-family: var(--font-mono); font-size: 11px; color: var(--subtle); white-space: nowrap; }
.wt-git .up { color: var(--add); }
.wt-meta { grid-column: 2 / 4; display: flex; gap: 5px; flex-wrap: wrap; }
.side-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--subtle); display: flex; justify-content: space-between; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--subtle); justify-self: center; }
.dot.working { background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.dot.needs { background: var(--attention); box-shadow: 0 0 0 3px rgba(240, 162, 59, .18); }
.dot.done { background: var(--ok); }
.dot.unloaded { background: transparent; border: 1.5px solid var(--subtle); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: var(--radius-xs); background: rgba(255,255,255,.06); color: var(--dim); white-space: nowrap; }
.tag.progress { background: rgba(95, 174, 227, .14); color: var(--accent); }
.tag.review { background: rgba(165, 139, 240, .15); color: var(--violet); }
.tag.deploy { background: rgba(62, 196, 138, .14); color: var(--ok); }
.tag.changes { background: rgba(240, 162, 59, .14); color: var(--attention); }
.tag.primary { background: rgba(255,255,255,.06); color: var(--dim); letter-spacing: .04em; }
.chip { font-family: var(--font-mono); font-size: 10.5px; padding: 0 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); color: var(--dim); white-space: nowrap; }

.main { display: flex; flex-direction: column; min-width: 0; }
.detail { padding: 16px 20px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.detail-info { flex: 1; min-width: 0; }
.detail-branch { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 15px; color: var(--heading); font-weight: 500; }
.detail-path { font-family: var(--font-mono); font-size: 11.5px; color: var(--subtle); margin-top: 3px; }
.detail-links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--ink); }
.link-chip b { font-family: var(--font-mono); font-weight: 500; color: var(--heading); }
.link-chip .st { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--violet); }
.detail-actions { display: flex; gap: 6px; }
.mini-btn { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 12px; color: var(--ink); white-space: nowrap; }

.tabs { display: flex; align-items: stretch; height: 38px; padding: 0 12px; gap: 2px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 12.5px; color: var(--dim); border-bottom: 2px solid transparent; }
.tab.active { color: var(--heading); border-bottom-color: var(--accent); }
.tab .badge { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.badge.q { background: var(--attention); color: #1a1a1a; animation: pulse 1.6s ease-in-out infinite; }
.badge.ok { background: var(--ok); color: #0f2a1d; }
.spinner { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--ok); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tab-add { padding: 0 10px; color: var(--subtle); display: flex; align-items: center; font-size: 16px; }

.term { flex: 1; padding: 16px 20px; background: #141414; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--ink); overflow: hidden; }
.term .u { color: var(--heading); }
.term .u::before { content: "> "; color: var(--subtle); }
.term .tool { color: var(--ink); }
.term .tool::before { content: "⏺ "; color: var(--ok); }
.term .tool b { color: var(--heading); font-weight: 500; }
.term .out { color: var(--subtle); padding-left: 18px; }
.term .add { color: var(--add); }
.term .del { color: var(--del); }
.term .msg { color: var(--ink); margin-top: 6px; }
.term .msg::before { content: "⏺ "; color: var(--heading); }
.choice { margin-top: 10px; border: 1px solid rgba(240, 162, 59, .35); border-radius: var(--radius-sm); padding: 10px 14px; background: rgba(240, 162, 59, .05); }
.choice .q { color: var(--heading); }
.choice .sel { color: var(--accent); }
.choice .opt { color: var(--dim); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--ink); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.status { display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--dim); }
.status .grow { flex: 1; }
.status .s { display: flex; align-items: center; gap: 6px; }
.status .s .dot { width: 7px; height: 7px; }
.kbd { font-family: var(--font-sans); font-size: 11px; padding: 0 5px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--dim); }

/* ---------- Sections ---------- */
.section {
  padding: 112px 0;
  background: linear-gradient(var(--border), var(--border)) top center / min(var(--wrap), calc(100% - var(--gutter) * 2)) 1px no-repeat;
}
.hero + .section { background: none; padding-top: 72px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature .eyebrow, .eyebrow { font-size: 13.5px; line-height: 1.4; max-width: none; color: var(--accent); font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.feature h2, .closer h2 {
  margin: 0; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.03em;
  font-weight: 700; color: var(--heading);
}
.feature p { margin: 20px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--dim); max-width: 520px; }
.feature p code, .feature li code { font-size: .86em; color: var(--ink); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15.5px; color: var(--ink); }
.checks li { position: relative; padding-left: 18px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden; font-size: 13px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--heading); font-weight: 600; font-size: 13.5px; }
.card-head .muted { font-weight: 400; color: var(--subtle); font-size: 12.5px; }
.card-head .left { display: flex; align-items: center; gap: 9px; }
.card-head img { width: 18px; height: 18px; border-radius: 5px; }

/* worktree grid card */
.grid-wt { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.pane { background: #141414; padding: 12px 14px 14px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.65; min-height: 150px; }
.pane-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; color: var(--heading); }
.pane-head .agent { margin-left: auto; color: var(--subtle); font-family: var(--font-sans); font-size: 11px; }
.pane .l { color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane .l.hi { color: var(--ink); }
.pane .ok { color: var(--ok); }
.pane .warn { color: var(--attention); }

/* attention list */
.notif { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.ico.q { background: var(--attention); color: #1a1a1a; }
.ico.ok { background: var(--ok); color: #0f2a1d; }
.ico.hollow { border: 1.5px solid var(--ok); color: var(--ok); }
.ico.x { background: var(--surface-3); color: var(--dim); }
.ico.spin { background: transparent; }
.ico.spin .spinner { width: 16px; height: 16px; }
.notif .txt { flex: 1; min-width: 0; }
.notif .t1 { color: var(--heading); font-family: var(--font-mono); font-size: 12.5px; }
.notif .t2 { color: var(--dim); font-size: 12.5px; }
.notif .when { color: var(--subtle); font-size: 12px; }
.notif.hl { background: rgba(240, 162, 59, .05); }

/* server card */
.devices { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 6px; gap: 10px; }
.device { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.device .box { width: 64px; height: 46px; border: 1.5px solid var(--border-strong); border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); }
.device .box.srv { width: 74px; border-color: rgba(95,174,227,.5); background: var(--accent-soft); color: var(--accent); }
.device .box svg { width: 22px; height: 22px; }
.wire { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .6; margin-bottom: 22px; animation: flow 1.2s linear infinite; background-size: 12px 1px; }
@keyframes flow { to { background-position: 12px 0; } }
.shell { margin: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #121212; padding: 14px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.75; color: var(--ink); overflow-x: auto; white-space: pre; }
.shell .c { color: var(--subtle); }
.shell .p { color: var(--accent); }

/* agents card */
.agent-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.agent-row:last-child { border-bottom: 0; }
.agent-row.nest { padding-left: 46px; position: relative; }
.agent-row.nest::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 50%; width: 10px; border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); border-bottom-left-radius: 6px; }
.agent-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border); font-weight: 700; font-size: 12px; color: var(--c, var(--heading)); flex: none; }
.agent-row .txt { flex: 1; min-width: 0; }
.agent-row .n { color: var(--heading); font-weight: 600; font-size: 13.5px; }
.agent-row .d { color: var(--subtle); font-size: 12.5px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state { font-size: 12px; display: flex; align-items: center; gap: 6px; color: var(--accent); white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.ok { color: var(--ok); }
.state.wait { color: var(--attention); }

/* global panel / MCP */
.mcp { padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.mcp .u { color: var(--heading); font-family: var(--font-sans); font-size: 13px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 12px; }
.mcp .call { color: var(--ink); }
.mcp .call::before { content: "⏺ "; color: var(--accent); }
.mcp .call b { color: var(--accent); font-weight: 500; }
.mcp .res { color: var(--subtle); padding-left: 18px; }
.mcp .say { font-family: var(--font-sans); font-size: 13px; color: var(--ink); margin-top: 10px; }

/* branch data card */
.bd { padding: 18px; display: grid; gap: 14px; }
.bd-row { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.bd-row .k { width: 64px; color: var(--subtle); flex: none; }
.menu { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); padding: 6px; display: grid; gap: 2px; width: 210px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.menu .mi { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 5px; font-size: 12.5px; color: var(--ink); }
.menu .mi.on { background: var(--surface-3); color: var(--heading); }
.menu .mi i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.note { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--dim); font-size: 12.5px; background: #151515; }

/* ---------- Trail ---------- */
.trail { position: relative; }
.trail::before {
  content: ""; position: absolute; left: 50%; top: 40px; bottom: 0; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, rgba(95,174,227,.45) 0 8px, transparent 8px 18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px);
          mask-image: linear-gradient(to bottom, transparent, #000 120px);
}
.trail .section { background: none; }
.feature { position: relative; }
.waypoint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent);
  background: var(--bg); border: 1.5px solid rgba(95,174,227,.55);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(95,174,227,.25);
}
.wp-num { font-family: var(--font-mono); font-weight: 500; color: var(--subtle); margin-right: 10px; }
.wp-num::after { content: " ·"; }

/* mobile phone */
.soon { margin-left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--attention); background: rgba(240,162,59,.12); padding: 2px 8px; border-radius: var(--radius-pill); vertical-align: 1px; }
.device .box.mob { width: 38px; }
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 44px; padding: 14px;
  background: #1b1b1d; box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 0 0 1px rgba(255,255,255,.05), 0 40px 80px -30px rgba(0,0,0,.9);
  display: flex; flex-direction: column; gap: 12px; font-size: 13px; overflow: hidden;
}
.phone::before { content: ""; position: absolute; inset: 10px; border-radius: 36px; background: #0f0f0f; z-index: 0; }
.phone > * { position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 4px; font-size: 12px; color: var(--ink); font-weight: 600; }
.ph-title { opacity: 0; }
.ph-h { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 18px 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--heading); }
.ph-list { margin: 2px 6px 0; display: grid; gap: 4px; }
.ph-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.ph-row.on { background: #1e1e1e; box-shadow: inset 0 0 0 1px rgba(240,162,59,.3); }
.ph-b { font-family: var(--font-mono); font-size: 12px; color: var(--heading); }
.ph-s { font-size: 11.5px; color: var(--subtle); }
.ph-card { margin: 2px 6px 0; padding: 14px; border-radius: 16px; background: #1c1c1c; border: 1px solid var(--border); }
.ph-q { color: var(--heading); font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.ph-out { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--subtle); }
.ph-out .add { color: var(--add); } .ph-out .del { color: var(--del); }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ph-btn { text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 12.5px; color: var(--ink); }
.ph-btn.pri { background: var(--accent); border-color: var(--accent); color: #0d1b26; font-weight: 600; }
.ph-input { margin: auto 6px 8px; padding: 11px 14px; border-radius: 22px; background: #1c1c1c; border: 1px solid var(--border); color: var(--subtle); font-size: 12.5px; }
.closer .closer-note { font-size: 14px; color: var(--subtle); margin-top: 10px; }

/* ---------- Mobile waitlist ---------- */
.waitlist { margin-top: 32px; padding: 20px; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); scroll-margin-top: 96px; }
.feature .waitlist p { margin: 0; max-width: none; }
.feature .waitlist .wl-title { color: var(--heading); font-size: 15px; font-weight: 600; }
.wl-platforms { display: flex; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.wl-platforms label { position: relative; cursor: pointer; }
.wl-platforms input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-platforms span { display: block; padding: 5px 12px; font-size: 13px; color: var(--dim); border: 1px solid var(--border); border-radius: var(--radius-pill); transition: color .15s, background .15s, border-color .15s; }
.wl-platforms input:checked + span { color: var(--heading); background: var(--accent-soft); border-color: rgba(95, 174, 227, .45); }
.wl-platforms input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-row { display: flex; gap: 8px; margin-top: 12px; }
.wl-input { flex: 1; min-width: 0; padding: 9px 14px; font: inherit; font-size: 15px; color: var(--heading); background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.wl-input::placeholder { color: var(--subtle); }
.wl-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.waitlist .btn { flex: none; }
.waitlist .btn:disabled { opacity: .6; cursor: progress; }
.feature .waitlist .wl-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--subtle); }
.feature .waitlist .wl-note.ok { color: var(--ok); }
.feature .waitlist .wl-note.err { color: var(--del); }
.waitlist.done .wl-platforms, .waitlist.done .wl-row { display: none; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) {
  .wl-row { flex-direction: column; }
}

/* ---------- Compare page ---------- */
.cmp-hero { padding-bottom: 24px; }
.cmp-hero .eyebrow { margin-top: 24px; }
.cmp-hero h1 { margin-top: 8px; }
.cmp-checked { margin: 22px auto 0; max-width: 620px; font-size: 13.5px; color: var(--subtle); }
.cmp-checked a, .cmp-points a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.cmp-fit { background: none; padding-top: 56px; }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); padding: 28px 30px 30px; }
.fit-card.trek { border-color: rgba(95,174,227,.45); background: linear-gradient(180deg, rgba(95,174,227,.07), transparent 60%), var(--surface); }
.fit-card h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; letter-spacing: -0.02em; color: var(--heading); }
.fit-card h2 img { border-radius: 5px; }
.fit-card .checks { margin-top: 20px; font-size: 15px; }
.fit-card code, .cmp-table code, .cmp-points code { font-size: .86em; color: var(--ink); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }
.checks.plain li::before { background: var(--subtle); }

.cmp-h2 { margin: 0 0 28px; font-size: clamp(28px, 3vw, 34px); letter-spacing: -0.03em; color: var(--heading); }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.cmp-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 14px; color: var(--heading); font-weight: 600; }
.cmp-table thead th img { display: inline-block; vertical-align: -3px; margin-right: 8px; border-radius: 4px; }
.cmp-table thead th:nth-child(2) { color: var(--accent); }
.cmp-table tbody th[scope="row"] { width: 24%; color: var(--heading); font-weight: 500; }
.cmp-table td { width: 38%; color: var(--dim); }
.cmp-table tr.grp th { padding-top: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); font-weight: 600; background: var(--bg-deep); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .src { margin-left: 4px; font-size: 12px; color: var(--subtle); text-decoration: underline; text-underline-offset: 2px; }
.cmp-table .src:hover { color: var(--heading); }
.mk { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 9px; border-radius: 50%; vertical-align: -4px; font-size: 11px; font-weight: 700; }
.mk.yes { background: rgba(62,196,138,.16); color: var(--ok); }
.mk.yes::before { content: "✓"; }
.mk.part { background: rgba(240,162,59,.15); color: var(--attention); }
.mk.part::before { content: "~"; }
.mk.no { background: rgba(229,99,90,.14); color: var(--del); }
.mk.no::before { content: "✕"; font-size: 10px; }
.mk.nd { background: rgba(255,255,255,.06); color: var(--subtle); }
.mk.nd::before { content: "?"; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 2px 0; font-size: 13px; color: var(--subtle); }

.cmp-points { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.cmp-points h3, .ahead h3 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; color: var(--heading); }
.cmp-points p:not(.eyebrow), .ahead p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--dim); }
.ahead { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 30px 32px; background: var(--surface); }

.notice { border: 1px solid rgba(240,162,59,.35); border-radius: var(--radius-lg); padding: 26px 30px; background: linear-gradient(180deg, rgba(240,162,59,.07), transparent 70%), var(--surface); }
.notice h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; color: var(--heading); }
.notice p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--dim); max-width: 860px; }
.notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline li { border-top: 2px solid rgba(240,162,59,.45); padding-top: 10px; font-size: 14px; color: var(--dim); }
.timeline b { display: block; color: var(--attention); font-size: 13px; letter-spacing: .02em; margin-bottom: 2px; }
.cmp-sub { margin: -14px 0 24px; color: var(--dim); font-size: 17px; }
.map { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.map-row { display: grid; grid-template-columns: minmax(180px, 1fr) 32px 2fr; align-items: baseline; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--border); font-size: 15px; }
.map-row:last-child { border-bottom: 0; }
.map-row .from { color: var(--dim); }
.map-row .arrow { color: var(--accent); text-align: center; }
.map-row .to { color: var(--heading); }
.map-row .to em { font-style: normal; color: var(--accent); }
.map code { font-size: .86em; color: var(--ink); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }

@media (max-width: 760px) {
  .fit-grid, .cmp-points { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .notice { padding: 22px 20px; }
  .map-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .map-row .arrow { display: none; }
  .fit-card, .ahead { padding: 22px 20px; }
}

/* ---------- Closer ---------- */
.closer { text-align: center; padding: 128px 0 120px; position: relative; isolation: isolate; }
.closer > .wrap { position: relative; }
.closer > .wrap::before {
  content: ""; position: absolute; left: 50%; top: -128px; height: 128px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, rgba(95,174,227,.45) 0 8px, transparent 8px 18px);
}
@media (max-width: 980px) { .closer > .wrap::before { display: none; } .closer { background: linear-gradient(var(--border), var(--border)) top center / calc(100% - var(--gutter) * 2) 1px no-repeat; } }
.closer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 260px at 50% 45%, rgba(95,174,227,.10), transparent 70%),
    url("assets/topo.svg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,0,0,.22), transparent 80%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,0,0,.22), transparent 80%);
}
.closer img.mark { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 28px; box-shadow: 0 20px 50px -20px rgba(95,174,227,.6); }
.closer p { margin: 18px auto 0; max-width: 520px; color: var(--dim); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--heading); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--dim); transition: color .2s; }
.foot-grid a:hover { color: var(--heading); }
.foot-blurb { color: var(--subtle); max-width: 280px; margin: 14px 0 0; font-size: 14px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--subtle); font-size: 13px; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .trail::before, .waypoint { display: none; }
  .trail .section + .section { background: linear-gradient(var(--border), var(--border)) top center / min(var(--wrap), calc(100% - var(--gutter) * 2)) 1px no-repeat; }
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-copy { order: 0; }
  .feature p { max-width: none; }
  .app { grid-template-columns: 240px 1fr; }
  .detail-actions { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { height: 60px; }
  .nav-links { display: none; }
  .nav-icon { margin-left: auto; }
  .nav-cta { margin-left: 4px; }
  .hero { padding-top: 48px; }
  .hero h1 { margin-top: 36px; }
  .cmd { font-size: 13px; }
  .app { grid-template-columns: 1fr; height: 500px; }
  .side { display: none; }
  .win-server { display: none; }
  .tab:nth-child(3) { display: none; }
  .status .hide-sm { display: none; }
  .section { padding: 80px 0; }
  .grid-wt { grid-template-columns: 1fr; }
  .grid-wt .pane:nth-child(n+3) { display: none; }
  .devices { padding: 20px 16px 4px; }
  .device .box { width: 52px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
