@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --site-bg: #08090a;
  --site-fg: #f7f8f8;
  --site-accent: #6550c9;
  --site-on-accent: #ffffff;
  --site-surface: #0f1011;
  --site-muted: #8a8f98;
  --site-border: rgba(255, 255, 255, 0.08);
  --site-font: "Inter Variable", Inter, -apple-system, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --site-radius: 8px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --accent-bright: color-mix(in srgb, var(--site-accent) 55%, #ffffff);
  --accent-hover: color-mix(in srgb, var(--site-accent) 72%, #ffffff);
  --accent-dim: color-mix(in srgb, var(--site-accent) 26%, #0b0c10);
  --text-2: #d0d6e0;
  --text-3: var(--site-muted);
  --text-4: #62666d;
  --surface-2: #191a1b;
  --surface-3: #28282c;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --green: #27a644;
  --emerald: #10b981;
  --amber: #d29922;
  --red: #f85149;
  --blue: #58a6ff;
  --mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", monospace;
  --dur: calc(180ms * var(--site-motion, 1));
  --dur-slow: calc(520ms * var(--site-motion, 1));
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--surface-3) var(--site-bg);
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-feature-settings: "cv01", "ss03";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-dim); color: var(--site-fg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--site-bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; border: 2px solid var(--site-bg); }
::-webkit-scrollbar-thumb:hover { background: #3e3e44; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); }

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--site-accent);
  color: var(--site-on-accent);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 510;
  transition: top var(--dur) ease;
}
.skip-link:focus-visible { top: 12px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: calc(24px * var(--site-space, 1));
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--site-bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding-inline: calc(24px * var(--site-space, 1));
  display: flex;
  align-items: center;
  gap: calc(24px * var(--site-space, 1));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-fg);
  text-decoration: none;
  font-weight: 590;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.brand svg { width: 24px; height: 24px; color: var(--accent-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 510;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.nav-links a:hover { color: var(--site-fg); background: rgba(255, 255, 255, 0.04); }
.nav-links a[aria-current="true"] { color: var(--site-fg); background: rgba(255, 255, 255, 0.06); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.version-pill {
  padding: 3px 10px;
  border: 1px solid #23252a;
  border-radius: 9999px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 510;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.icon-btn:hover { color: var(--site-fg); background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--site-surface);
  border-bottom: 1px solid var(--site-border);
  padding: 12px calc(24px * var(--site-space, 1)) 20px;
  display: grid;
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 510;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--site-fg); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: calc(var(--site-radius) - 2px);
  border: 1px solid transparent;
  font-family: var(--site-font);
  font-size: 14px;
  font-weight: 510;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--site-accent); color: var(--site-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--site-border);
  color: var(--text-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--site-fg); }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 72px * var(--site-space, 1));
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 38% at 50% 0%, color-mix(in srgb, var(--site-accent) 9%, transparent), transparent 70%),
    radial-gradient(30% 26% at 86% 12%, color-mix(in srgb, var(--site-accent) 5%, transparent), transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(72% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: calc(56px * var(--site-space, 1));
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 510;
  letter-spacing: 0.08em;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent-bright); }

.display {
  margin: 0 0 24px;
  font-size: clamp(40px, 4.6vw + 14px, calc(68px * var(--site-type, 1)));
  font-weight: 510;
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.display em {
  font-style: normal;
  color: var(--accent-bright);
}

.lede {
  margin: 0 0 32px;
  max-width: 46ch;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.165px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.hero-note { margin: 0; color: var(--text-4); font-size: 12px; letter-spacing: 0.02em; }

.promo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) + 6px);
  background: #000;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- product window mock ---------- */

.hero-visual { min-width: 0; }

.example-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.02);
}
.example-switch button {
  padding: 5px 14px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-3);
  font-family: var(--site-font);
  font-size: 13px;
  font-weight: 510;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease;
}
.example-switch button:hover { color: var(--site-fg); }
.example-switch button[aria-selected="true"] { background: var(--accent-dim); color: var(--accent-bright); }

.window {
  margin: 0;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) + 6px);
  background: var(--site-surface);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.win-dots i:first-child { background: #3e3e44; }
.window-title { color: var(--text-3); font-size: 12px; font-weight: 510; }
.win-topbar { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.win-topbar .seg-item {
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 510;
  color: var(--text-3);
}
.win-topbar .seg-item.on { background: rgba(255, 255, 255, 0.07); color: var(--site-fg); }
.win-topbar .help { color: var(--text-4); font-size: 12px; }

.window-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 420px; }

.win-side {
  border-right: 1px solid var(--border-subtle);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.012);
}
.win-side .side-label {
  margin: 10px 8px 4px;
  color: var(--text-4);
  font-size: 10px;
  font-weight: 510;
  letter-spacing: 0.1em;
}
.win-side .side-label:first-child { margin-top: 0; }
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 510;
}
.side-item svg { width: 14px; height: 14px; flex: none; }
.side-item.on { background: rgba(255, 255, 255, 0.06); color: var(--site-fg); }
.side-item.project { color: var(--text-2); }
.side-item.project .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }
.side-item.task { padding-left: 22px; font-size: 12px; color: var(--text-3); }
.side-item.task.on { color: var(--accent-bright); background: var(--accent-dim); }
.win-side .spacer { flex: 1; }

.win-main { padding: 16px 18px 18px; min-width: 0; display: flex; flex-direction: column; }

.task-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.task-nav span {
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #23252a;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 510;
}
.task-nav span.on { border-color: color-mix(in srgb, var(--site-accent) 55%, transparent); color: var(--accent-bright); background: var(--accent-dim); }

.win-question {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 6px;
}
.win-question .q-label {
  flex: none;
  padding: 1px 8px;
  height: fit-content;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 590;
}
.win-question p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 26px 74px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  animation: step-in calc(420ms * var(--site-motion, 1)) both;
  animation-delay: calc(90ms * var(--site-motion, 1) * var(--i, 0));
}
.steps li:last-child { border-bottom: 0; }
.steps .idx { color: var(--text-4); font-size: 11px; padding-top: 2px; }
.steps .tag {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 510;
  letter-spacing: 0.06em;
}
.steps .body { min-width: 0; }
.steps .body strong { display: block; color: var(--text-2); font-size: 13px; font-weight: 510; line-height: 1.5; }
.steps .body small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.5; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.win-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 510;
}
.win-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse calc(2.4s * var(--site-motion, 1)) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.win-status .badge {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 510;
}

/* ---------- principles strip ---------- */

.principles {
  position: relative;
  z-index: 1;
  margin-top: calc(72px * var(--site-space, 1));
  border-top: 1px solid var(--border-subtle);
  padding: calc(28px * var(--site-space, 1)) 0 calc(8px * var(--site-space, 1));
}
.principles .overline { margin: 0 0 18px; }
.principles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(32px * var(--site-space, 1));
}
.principles li strong { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 590; letter-spacing: -0.2px; }
.principles li p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.65; }

.overline {
  color: var(--text-4);
  font-size: 11px;
  font-weight: 510;
  letter-spacing: 0.14em;
}

/* ---------- sections ---------- */

.section { padding: calc(96px * var(--site-space, 1)) 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-alt { background: color-mix(in srgb, var(--site-surface) 55%, var(--site-bg)); border-block: 1px solid var(--border-subtle); }

.section-head { max-width: 720px; margin-bottom: calc(48px * var(--site-space, 1)); }
.section-head .overline { display: block; margin-bottom: 14px; color: var(--accent-bright); }
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 2.6vw + 8px, calc(44px * var(--site-type, 1)));
  font-weight: 510;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-lede { margin: 0; color: var(--text-3); font-size: 16px; line-height: 1.7; }

/* ---------- capability cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(16px * var(--site-space, 1));
}

.card {
  padding: calc(24px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) ease;
}
.card:hover { border-color: var(--site-border); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: calc(var(--site-radius) - 2px);
  border: 1px solid var(--border-subtle);
  background: var(--accent-dim);
  color: var(--accent-bright);
}
.card .card-icon svg { width: 18px; height: 18px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 590; letter-spacing: -0.24px; }
.card p { margin: 0 0 16px; color: var(--text-3); font-size: 14px; line-height: 1.7; }
.card .card-tag { color: var(--text-4); font-size: 11px; letter-spacing: 0.04em; }

/* ---------- scenarios ---------- */

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16px * var(--site-space, 1)); }
.scenario {
  display: flex;
  flex-direction: column;
  padding: calc(24px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
}
.scenario .sc-label { margin: 0 0 12px; color: var(--accent-bright); font-size: 11px; font-weight: 510; letter-spacing: 0.1em; }
.scenario h3 { margin: 0 0 10px; font-size: 18px; font-weight: 590; letter-spacing: -0.24px; }
.scenario p { margin: 0 0 18px; color: var(--text-3); font-size: 14px; line-height: 1.7; }
.scenario ol {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
}
.scenario ol li { display: flex; gap: 8px; align-items: baseline; color: var(--text-2); font-size: 12px; }
.scenario ol li::before { content: "→"; color: var(--accent-bright); }

/* ---------- demo ---------- */

.demo-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: calc(24px * var(--site-space, 1));
  align-items: start;
}

.demo-controls {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: calc(20px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
}
.field-label { color: var(--text-3); font-size: 12px; font-weight: 590; letter-spacing: 0.06em; }
.seg { display: grid; gap: 6px; }
.seg button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--site-radius) - 2px);
  background: transparent;
  color: var(--text-2);
  font-family: var(--site-font);
  font-size: 13.5px;
  font-weight: 510;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) ease, background var(--dur) ease, color var(--dur) ease;
}
.seg button:hover { background: rgba(255, 255, 255, 0.04); }
.seg button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--site-accent) 60%, transparent); background: var(--accent-dim); color: var(--accent-bright); }
.seg button .seg-idx { color: var(--text-4); font-size: 11px; }
.seg button[aria-pressed="true"] .seg-idx { color: var(--accent-bright); }

.demo-actions { display: flex; gap: 8px; }
.demo-actions .btn { flex: 1; justify-content: center; }
.demo-hint { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.6; min-height: 3.2em; }
.demo-note { margin: 0; color: var(--text-4); font-size: 11px; line-height: 1.6; }

.demo-stage { display: grid; gap: calc(16px * var(--site-space, 1)); min-width: 0; }

.demo-steps {
  list-style: none;
  margin: 0;
  padding: calc(20px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  display: grid;
  gap: 0;
}
.demo-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.demo-steps li + li { border-top: 1px solid var(--border-subtle); }
.demo-steps .rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.demo-steps .rail::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -14px;
  width: 1px;
  background: var(--border-subtle);
}
.demo-steps li:last-child .rail::before { display: none; }
.demo-steps .node {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--site-border);
  background: var(--surface-2);
  color: var(--text-4);
  font-size: 10px;
  font-weight: 590;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.demo-steps li.active .node { border-color: var(--accent-bright); background: var(--accent-dim); color: var(--accent-bright); animation: pulse-accent calc(1.6s * var(--site-motion, 1)) infinite; }
.demo-steps li.done .node { border-color: color-mix(in srgb, var(--emerald) 60%, transparent); background: color-mix(in srgb, var(--emerald) 18%, var(--site-surface)); color: var(--emerald); }
@keyframes pulse-accent {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--site-accent) 40%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.demo-steps .d-body strong { display: block; font-size: 14px; font-weight: 590; color: var(--text-2); }
.demo-steps li.pending .d-body strong { color: var(--text-4); }
.demo-steps li.active .d-body strong { color: var(--site-fg); }
.demo-steps .d-body small { display: block; margin-top: 3px; color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.demo-steps li.pending .d-body small { color: var(--text-4); }
.demo-steps .d-state { margin-left: auto; align-self: start; padding: 1px 8px; border-radius: 4px; font-size: 10px; font-weight: 510; color: var(--text-4); border: 1px solid var(--border-subtle); }
.demo-steps li.active .d-state { color: var(--accent-bright); border-color: color-mix(in srgb, var(--site-accent) 50%, transparent); }
.demo-steps li.done .d-state { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); }
.demo-steps .d-head { display: flex; align-items: baseline; gap: 10px; }

.demo-result, .demo-board {
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  padding: calc(20px * var(--site-space, 1));
}
.demo-result[hidden], .demo-board[hidden] { display: none; }

.result-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.result-head h3 { margin: 0; font-size: 16px; font-weight: 590; letter-spacing: -0.2px; }
.result-head .mono { color: var(--text-4); font-size: 11px; }
.result-meta { margin: 0 0 16px; color: var(--text-3); font-size: 12.5px; }

.result-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.result-table th, .result-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--border-subtle); }
.result-table th:first-child, .result-table td:first-child { text-align: left; }
.result-table th { color: var(--text-3); font-size: 11px; font-weight: 590; letter-spacing: 0.06em; }
.result-table td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.result-table .up { color: var(--emerald); }
.result-table .down { color: var(--red); }
.result-table tr:last-child td { border-bottom: 0; font-weight: 590; color: var(--site-fg); }

.result-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.result-list li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); font-size: 13px; }
.result-list li::before { content: "·"; color: var(--accent-bright); font-weight: 590; }
.result-list li small { color: var(--text-3); }

.receipt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, transparent);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 510;
  margin-bottom: 18px;
}
.receipt .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.claims-title { margin: 0 0 10px; color: var(--text-3); font-size: 12px; font-weight: 590; letter-spacing: 0.06em; }
.claim { padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.claim p { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.verdicts { display: flex; flex-wrap: wrap; gap: 6px; }
.verdicts button {
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #23252a;
  background: transparent;
  color: var(--text-3);
  font-family: var(--site-font);
  font-size: 12px;
  font-weight: 510;
  cursor: pointer;
  transition: color var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
}
.verdicts button:hover { color: var(--site-fg); border-color: var(--site-border); }
.verdicts button[aria-pressed="true"] { color: var(--site-fg); border-color: var(--site-border); background: rgba(255, 255, 255, 0.07); }
.verdicts button[data-verdict="support"][aria-pressed="true"] { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 50%, transparent); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.verdicts button[data-verdict="conditional"][aria-pressed="true"] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.verdicts button[data-verdict="insufficient"][aria-pressed="true"] { color: var(--text-2); }
.verdicts button[data-verdict="conflict"][aria-pressed="true"] { color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }

.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.result-actions .hint { color: var(--text-4); font-size: 12px; }

.board-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.board-head h3 { margin: 0; font-size: 16px; font-weight: 590; }
.board-head .mono { color: var(--text-4); font-size: 11px; }
.board-empty { margin: 8px 0 0; color: var(--text-4); font-size: 13px; }

.board-entry { padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.board-entry:first-of-type { border-top: 0; }
.board-entry .b-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.board-entry .b-source { padding: 1px 8px; border-radius: 4px; border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.04); color: var(--text-3); font-size: 10px; font-weight: 510; }
.board-entry .b-status { padding: 1px 10px; border-radius: 9999px; font-size: 11px; font-weight: 590; }
.b-status.pending { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.b-status.adopted { color: var(--emerald); background: color-mix(in srgb, var(--emerald) 12%, transparent); }
.b-status.rejected { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.b-status.feedback { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.board-entry .b-text { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.board-entry .b-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board-entry .b-reason { margin: 10px 0 0; color: var(--text-3); font-size: 12.5px; }
.board-entry .b-reason strong { color: var(--text-2); font-weight: 510; }
.reason-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.reason-form input, .reason-form textarea {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) - 2px);
  background: rgba(255, 255, 255, 0.02);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 13px;
}
.reason-form input::placeholder, .reason-form textarea::placeholder { color: var(--text-4); }
.reason-form .err { width: 100%; margin: 0; color: var(--red); font-size: 12px; }

/* ---------- architecture ---------- */

.arch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16px * var(--site-space, 1)); margin-bottom: calc(24px * var(--site-space, 1)); }
.arch-col {
  padding: calc(24px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
}
.arch-col .overline { display: block; margin-bottom: 10px; color: var(--accent-bright); }
.arch-col h3 { margin: 0 0 12px; font-size: 18px; font-weight: 590; letter-spacing: -0.24px; }
.arch-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.arch-col li { position: relative; padding-left: 16px; color: var(--text-3); font-size: 13.5px; line-height: 1.65; }
.arch-col li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }

.arch-notes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: calc(16px * var(--site-space, 1)); }
.callout {
  padding: calc(20px * var(--site-space, 1));
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: var(--site-radius);
  background: color-mix(in srgb, var(--amber) 6%, transparent);
}
.callout h3 { margin: 0 0 8px; font-size: 15px; font-weight: 590; color: var(--amber); }
.callout p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.local-list {
  padding: calc(20px * var(--site-space, 1));
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
}
.local-list h3 { margin: 0 0 10px; font-size: 15px; font-weight: 590; }
.local-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.local-list li { display: flex; gap: 8px; color: var(--text-3); font-size: 13px; line-height: 1.6; }
.local-list li::before { content: "✓"; color: var(--emerald); }

/* ---------- tutorials ---------- */

.tut-block { margin-bottom: calc(44px * var(--site-space, 1)); }
.tut-block:last-child { margin-bottom: 0; }
.tut-title { margin: 0 0 16px; color: var(--text-3); font-size: 13px; font-weight: 510; letter-spacing: 0.14em; }

.tut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16px * var(--site-space, 1)); max-width: 900px; }
.tut-card {
  display: block;
  border: 1px solid var(--border-subtle);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) ease;
}
.tut-card:hover { border-color: var(--site-border); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.tut-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-bottom: 1px solid var(--border-subtle); }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.tut-thumb .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--site-accent);
  color: var(--site-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform var(--dur) ease;
}
.tut-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.tut-thumb .dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.72); color: var(--text-2); font-size: 12px; }
.tut-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tut-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px 4px; }
.tut-card strong { display: block; font-size: 16px; font-weight: 590; letter-spacing: -0.2px; }
.tut-card small { display: block; padding: 0 18px 16px; color: var(--text-3); font-size: 13.5px; line-height: 1.6; }

.tut-coming { border-style: dashed; cursor: default; }
.tut-coming:hover { transform: none; background: rgba(255, 255, 255, 0.02); border-color: var(--site-border); }
.tut-coming .coming {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-4);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.tut-manual {
  padding: calc(24px * var(--site-space, 1));
  border: 1px dashed var(--site-border);
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.015);
}
.tut-modules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tut-modules .chip {
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #23252a;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 510;
}
.tut-note { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.7; }
.tut-note .soon { color: var(--accent-bright); margin-left: 10px; font-size: 13px; letter-spacing: 0.08em; }

@media (max-width: 768px) {
  .tut-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta-band .cta-panel {
  padding: calc(64px * var(--site-space, 1)) calc(32px * var(--site-space, 1));
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) + 8px);
  background:
    radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--site-accent) 10%, transparent), transparent 75%),
    var(--site-surface);
  text-align: center;
}
.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.4vw + 8px, calc(40px * var(--site-type, 1)));
  font-weight: 510;
  letter-spacing: -0.02em;
}
.cta-panel p { margin: 0 auto 28px; max-width: 56ch; color: var(--text-3); font-size: 15px; line-height: 1.7; }
.cta-panel .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border-subtle); padding: calc(48px * var(--site-space, 1)) 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: calc(32px * var(--site-space, 1)); margin-bottom: calc(32px * var(--site-space, 1)); }
.footer .brand { margin-bottom: 12px; }
.footer-tag { margin: 0 0 12px; color: var(--text-3); font-size: 14px; }
.footer-audience { margin: 0 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.7; max-width: 52ch; }
.footer-contact { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.footer-contact a { color: var(--text-2); text-decoration: none; }
.footer-contact a:hover { color: var(--site-fg); text-decoration: underline; }
.footer-note { margin: 0; color: var(--text-4); font-size: 12px; line-height: 1.7; max-width: 44ch; }
.footer h4 { margin: 0 0 12px; color: var(--text-3); font-size: 12px; font-weight: 590; letter-spacing: 0.08em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-3); text-decoration: none; font-size: 13.5px; transition: color var(--dur) ease; }
.footer ul a:hover { color: var(--site-fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-4);
  font-size: 12px;
}
.footer-bottom .mono { font-size: 11px; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) ease; transition-delay: calc(70ms * var(--site-motion, 1) * var(--i, 0)); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: calc(40px * var(--site-space, 1)); }
  .lede { max-width: 60ch; }
  .card-grid, .scenario-grid, .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-controls { position: static; }
  .arch-notes { grid-template-columns: 1fr; }
  .principles ul { grid-template-columns: 1fr; gap: calc(20px * var(--site-space, 1)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .version-pill { display: none; }
  .nav-actions { margin-left: auto; }
  .card-grid, .scenario-grid, .arch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: calc(24px * var(--site-space, 1)); }
  .section { padding: calc(64px * var(--site-space, 1)) 0; }
}

@media (max-width: 640px) {
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .steps li { grid-template-columns: 22px minmax(0, 1fr); }
  .steps .tag { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 48px * var(--site-space, 1)); }
  .display { letter-spacing: -0.015em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .steps li { animation: none; }
  .win-status .dot, .demo-steps li.active .node { animation: none; }
  * { transition-duration: 0.01ms !important; }
}