:root {
  --bg: #0b0b0e;
  --bg-2: #0f0f13;
  --bg-3: #14141a;
  --ink: #f6f5f2;
  --ink-2: #d8d6d0;
  --ink-3: #b8b6ae;
  --muted: #7a7870;
  --muted-2: #9d9b93;
  --line: rgba(255, 245, 235, 0.09);
  --line-2: rgba(255, 245, 235, 0.14);
  --panel: rgba(255, 245, 235, 0.028);
  --panel-2: rgba(255, 245, 235, 0.05);
  --brand: #e8624b;
  --brand-2: #ff9b6f;
  --brand-3: #f7d574;
  --brand-4: #7c6bff;
  --ok: #86efac;
  /* NEW font stack: Fraunces (display) + Space Grotesk (sans) + JetBrains Mono */
  --serif: "Fraunces", "Times New Roman", serif;
  --serif-italic: "Instrument Serif", "Fraunces", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", "Inter", "Noto Sans SC", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --stage-max: 1240px;
  --stage-x: clamp(20px, 4vw, 44px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variation-settings: "opsz" 14;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Ambient ---------- */
.amb { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.amb__glow { position: absolute; border-radius: 999px; filter: blur(120px); will-change: transform; }
.amb__glow--a {
  width: 780px; height: 780px; top: -240px; left: 12%; opacity: .38;
  background: radial-gradient(circle, rgba(232,98,75,.65), rgba(232,98,75,.04) 55%, transparent 72%);
}
.amb__glow--b {
  width: 640px; height: 640px; top: 500px; right: -160px; opacity: .3;
  background: radial-gradient(circle, rgba(124,107,255,.5), rgba(124,107,255,.04) 55%, transparent 72%);
}
.amb__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,245,235,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,245,235,.024) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
}
.amb__noise {
  position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Announce banner ---------- */
.announce { width: 100%; border-bottom: 1px solid var(--line); background: rgba(255,245,235,0.015); backdrop-filter: blur(10px); }
.announce__row {
  max-width: var(--stage-max); margin: 0 auto; padding: 8px var(--stage-x);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
}
.announce__badge {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(232,98,75,0.14); color: #ffb59a;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; border: 1px solid rgba(232,98,75,0.28);
}
.announce__link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }
.announce__link::after { content: "→"; transition: transform .22s ease; }
.announce__link:hover::after { transform: translateX(3px); }
@media (max-width: 720px) { .announce__row { font-size: 11.5px; gap: 8px; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav__row {
  max-width: var(--stage-max); margin: 0 auto;
  padding: 14px var(--stage-x);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px;
  letter-spacing: -.03em; color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(140deg, #e8624b 0%, #ff9b6f 60%, #f7d574 100%);
  color: #1a0e08;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 12px rgba(232,98,75,0.28);
  font-variation-settings: "opsz" 144;
}
.brand__type {
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: -.02em;
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  transition: color .18s ease, background .18s ease;
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: -.005em;
}
.nav__link:hover { color: var(--ink); background: rgba(255,245,235,0.04); }
.nav__link[data-active="true"] { color: var(--ink); }
.nav__link .caret { color: var(--muted); font-size: 10px; margin-top: 1px; }
.nav__spacer { flex: 1; }
.nav__quicklinks {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255,245,235,0.07);
  background: rgba(18,18,24,0.68);
  border-radius: 14px;
  margin-left: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(20px) saturate(145%);
}
.nav__quicklink {
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(246,245,242,0.68);
  letter-spacing: -.01em;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  position: relative;
  white-space: nowrap;
}
.nav__quicklink:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
}
.nav__quicklink[data-active="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.24);
}
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__kbd-hint {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,245,235,0.02);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
  cursor: pointer; transition: color .18s, border-color .18s;
}
.nav__kbd-hint:hover { color: var(--ink); border-color: var(--line-2); }
.nav__kbd-hint kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line);
  background: rgba(255,245,235,0.03);
}
@media (max-width: 900px) { .nav__links, .nav__quicklinks, .nav__kbd-hint { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid var(--line-2); color: var(--ink);
  background: rgba(255,245,235,0.04);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,245,235,0.08); border-color: rgba(255,245,235,0.24); }
.btn--primary {
  background: linear-gradient(120deg, #e8624b 0%, #ff7a5a 100%);
  color: #1a0e08; border-color: transparent; font-weight: 600;
  box-shadow: 0 10px 22px rgba(232,98,75,0.32);
}
.btn--primary:hover { background: linear-gradient(120deg, #ee7059 0%, #ff8a6a 100%); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.container { max-width: var(--stage-max); margin: 0 auto; padding: 0 var(--stage-x); }

/* ---------- HERO — Fraunces display type ---------- */
.hero { padding: 96px 0 72px; position: relative; }
@media (max-width: 720px) { .hero { padding: 60px 0 44px; } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,245,235,0.02);
  font-family: var(--sans); font-size: 12px; letter-spacing: -.005em;
  color: var(--ink-2); width: fit-content; margin-bottom: 34px;
}
.hero__eyebrow-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(120deg, #e8624b, #ff9b6f);
  color: #1a0e08; font-family: var(--mono); font-weight: 700;
  font-size: 10px; letter-spacing: .06em;
}
.hero__eyebrow::after { content: "→"; color: var(--muted); margin-left: 4px; transition: transform .22s ease, color .22s ease; }
.hero__eyebrow:hover::after { transform: translateX(3px); color: var(--ink); }

.hero__h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(3.4rem, 8.6vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.042em;
  margin: 0 0 30px;
  color: var(--ink);
  max-width: 15ch;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero__h1 em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-2);
  padding-right: 6px;
  letter-spacing: -.03em;
}
.hero__h1 .grad {
  background: linear-gradient(100deg, #e8624b 0%, #ff9b6f 45%, #f7d574 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--serif-italic);
  font-style: italic; font-weight: 400;
}
.hero__h1-name {
  display: block;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero__h1-name em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-2);
  letter-spacing: -0.03em;
}
.hero__h1-slash {
  display: inline-block;
  transform: translateY(-0.04em) rotate(6deg);
  margin: 0 0.08em;
  color: var(--ink-3, rgba(255,255,255,0.32));
  font-weight: 300;
}
.hero__h1-sub {
  display: block;
  margin-top: 0.18em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.hero__h1-sub-accent {
  background: linear-gradient(100deg, #e8624b 0%, #ff9b6f 42%, #f7d574 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 500;
  padding-right: 4px;
}

.hero__lede {
  font-family: var(--sans); color: var(--ink-2);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55; max-width: 44rem;
  letter-spacing: -.01em; margin: 0 0 14px;
  font-weight: 400;
}
.hero__lede:last-of-type { margin-bottom: 36px; }
.hero__lede b { color: var(--ink); font-weight: 600; }
.hero__lede-accent {
  background: linear-gradient(100deg, #e8624b 0%, #ff9b6f 42%, #f7d574 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 600;
  font-style: italic;
  font-family: var(--serif-italic);
  padding-right: 2px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 60px; }

/* ---------- Demo (chat + variant picker) ---------- */
.demo {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,245,235,0.045), rgba(255,245,235,0.008));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,245,235,0.05);
  overflow: hidden; min-height: 460px;
}
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; min-height: auto; } }

.demo__chat { display: flex; flex-direction: column; min-height: 460px; }
.demo__chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.15);
}
.demo__avatar {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(140deg, #e8624b, #ff9b6f);
  color: #1a0e08; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  font-variation-settings: "opsz" 144;
}
.demo__head-meta { line-height: 1.2; display: flex; flex-flow: row wrap; align-items: center; gap: 6px; }
.demo__head-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.demo__head-name { font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; }
.demo__head-status { flex-basis: 100%; font-size: 10.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.demo__head-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(134,239,172,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(134,239,172,0.05); }
}
.demo__head-actions {
  margin-left: auto; display: flex; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}
.demo__head-actions span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; }
@media (max-width: 720px) { .demo__head-actions { display: none; } }

.demo__body {
  flex: 1; padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0; max-height: 460px;
}
.demo__body::-webkit-scrollbar { width: 6px; }
.demo__body::-webkit-scrollbar-thumb { background: rgba(255,245,235,0.08); border-radius: 999px; }

.msg { display: flex; gap: 10px; max-width: 92%; animation: msg-in .35s cubic-bezier(.22,.9,.34,1); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg__avatar {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.msg--assistant .msg__avatar { background: linear-gradient(140deg, #e8624b, #ff9b6f); color: #1a0e08; }
.msg--user .msg__avatar { background: rgba(124,107,255,0.18); color: #c4bafd; border: 1px solid rgba(124,107,255,0.32); }
.msg__bubble {
  padding: 10px 14px; border-radius: 12px;
  font-size: 13.4px; line-height: 1.62; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255,245,235,0.03);
}
.msg--assistant .msg__bubble { background: rgba(232,98,75,0.04); border-color: rgba(232,98,75,0.14); }
.msg--user .msg__bubble { background: rgba(124,107,255,0.08); border-color: rgba(124,107,255,0.18); }
.msg__bubble b { color: var(--ink); font-weight: 600; }
.msg__bubble .hl {
  background: linear-gradient(120deg, rgba(232,98,75,0.22), rgba(255,178,107,0.12));
  color: #ffddca; padding: 1px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px;
}
.msg__cursor { display: inline-block; width: 6px; height: 14px; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: caret 0.9s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

.demo__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.1); }
.demo__input {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,245,235,0.04);
  transition: border-color .2s;
}
.demo__input:focus-within { border-color: rgba(232,98,75,0.4); }
.demo__input input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 13px; padding: 6px 0;
}
.demo__input input::placeholder { color: var(--muted); }
.demo__send {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(120deg, #e8624b, #ff7a5a);
  color: #1a0e08; font-weight: 800;
  box-shadow: 0 4px 12px rgba(232,98,75,0.3); transition: transform .18s;
}
.demo__send:hover { transform: translateY(-1px); }
.demo__send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.demo__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.demo__chip {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,245,235,0.02);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.demo__chip:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255,245,235,0.05); }

.demo__spec {
  border-left: 1px solid var(--line);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, rgba(255,245,235,0.015), transparent);
}
@media (max-width: 900px) { .demo__spec { border-left: none; border-top: 1px solid var(--line); } }
.spec__section-label {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
}
.spec__pick { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.spec__variant {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,245,235,0.02);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.spec__variant:hover { border-color: var(--line-2); background: rgba(255,245,235,0.045); }
.spec__variant[data-active="true"] { border-color: rgba(232,98,75,0.5); background: rgba(232,98,75,0.07); }
.spec__variant-name { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.spec__variant-tag {
  font-family: var(--mono); font-size: 9.5px;
  padding: 1.5px 5px; border-radius: 4px;
  background: rgba(255,245,235,0.05); color: var(--muted-2);
  border: 1px solid var(--line); letter-spacing: .05em;
}
.spec__variant-tag--pro { background: rgba(232,98,75,0.13); color: #ffb59a; border-color: rgba(232,98,75,0.28); }
.spec__variant-desc { font-size: 12px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }
.spec__variant-arrow { color: var(--muted); font-family: var(--mono); }
.spec__variant[data-active="true"] .spec__variant-arrow { color: var(--brand); }

.spec__stats { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.spec__stat-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; }
.spec__stat-k { color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.spec__stat-v { color: var(--ink); font-weight: 600; }
.spec__stat-v em { font-family: var(--serif-italic); font-style: italic; color: var(--brand-2); }

/* ---------- Origin story (large narrative block) ---------- */
.origin { padding: 88px 0 88px; position: relative; }
@media (max-width: 720px) { .origin { padding: 60px 0 60px; } }
.origin__grid {
  display: grid; grid-template-columns: 0.42fr 1fr; gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .origin__grid { grid-template-columns: 1fr; gap: 24px; } }
.origin__label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .24em;
  text-transform: uppercase; position: sticky; top: 90px;
}
.origin__label b { color: var(--brand-2); font-weight: 700; }
.origin__body {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35; letter-spacing: -.02em;
  color: var(--ink); max-width: 44rem;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.origin__body p { margin: 0 0 26px; }
.origin__body p:last-child { margin-bottom: 0; }
.origin__body em {
  font-family: var(--serif-italic); font-style: italic; font-weight: 400;
  color: var(--brand-2); padding: 0 3px;
}
.origin__body b {
  font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, transparent 65%, rgba(232,98,75,0.24) 65%);
  padding: 0 3px;
}

/* ---------- Journey Timeline ---------- */
.journey { padding: 88px 0; }
@media (max-width: 720px) { .journey { padding: 60px 0; } }
.journey__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: end; margin-bottom: 60px;
}
@media (max-width: 720px) { .journey__intro { grid-template-columns: 1fr; gap: 20px; } }

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
}
@media (max-width: 720px) { .tl { grid-template-columns: 60px 1fr; gap: 20px; } }
.tl__spine {
  position: relative;
}
.tl__spine::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 30%, var(--brand-4) 70%, transparent 100%);
}
.tl__events { display: flex; flex-direction: column; gap: 46px; }
.tl__event { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 40px; }
@media (max-width: 720px) { .tl__event { grid-template-columns: 60px 1fr; gap: 20px; } }
.tl__marker {
  position: relative; padding-left: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .06em; padding-top: 2px;
}
.tl__marker::before {
  content: ""; position: absolute; left: 3px; top: 5px;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(232,98,75,0.15), 0 0 12px rgba(232,98,75,0.4);
}
.tl__event--future .tl__marker::before {
  border-color: var(--muted); box-shadow: none;
  background: transparent;
}
.tl__event--milestone .tl__marker::before {
  width: 14px; height: 14px; left: 1.5px; top: 3.5px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-color: transparent; box-shadow: 0 0 0 4px rgba(232,98,75,0.18), 0 0 20px rgba(232,98,75,0.55);
}
.tl__marker-date { color: var(--ink-2); font-weight: 600; }
.tl__marker-when { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.tl__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px 22px;
  background: linear-gradient(160deg, rgba(255,245,235,0.04), rgba(255,245,235,0.008));
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tl__card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,98,75,0.32);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 40px rgba(232,98,75,0.08);
}
.tl__event--milestone .tl__card {
  border-color: rgba(232,98,75,0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(232,98,75,0.14), transparent 50%),
    linear-gradient(160deg, rgba(255,245,235,0.055), rgba(255,245,235,0.008));
}
.tl__event--future .tl__card {
  border-style: dashed;
  background: rgba(255,245,235,0.012);
}
.tl__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.tl__org {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.tl__org b { color: var(--ink-2); font-weight: 600; letter-spacing: .04em; }
.tl__tag {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(232,98,75,0.14); color: #ffb59a;
  border: 1px solid rgba(232,98,75,0.28); letter-spacing: .06em;
}
.tl__tag--edu   { background: rgba(124,107,255,0.14); color: #c4bafd; border-color: rgba(124,107,255,0.28); }
.tl__tag--future { background: rgba(213,255,58,0.09); color: #d5ff3a; border-color: rgba(213,255,58,0.24); }
.tl__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2; letter-spacing: -.024em;
  color: var(--ink); margin: 0 0 12px;
  font-variation-settings: "opsz" 60, "SOFT" 20;
}
.tl__title em { font-family: var(--serif-italic); font-style: italic; color: var(--brand-2); }
.tl__story {
  color: var(--ink-3); font-size: 14px; line-height: 1.65;
  margin: 0 0 16px;
}
.tl__story b { color: var(--ink); font-weight: 500; }
.tl__story .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(232,98,75,0.22) 60%);
  color: var(--ink); padding: 0 3px;
}
.tl__delta {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted-2); font-style: italic;
  padding-top: 14px; border-top: 1px dashed var(--line);
  letter-spacing: .01em;
}
.tl__delta-label {
  color: var(--muted); font-style: normal; letter-spacing: .1em;
  text-transform: uppercase; font-size: 10.5px; flex: none;
}
.tl__delta-text b { color: var(--brand-2); font-weight: 600; font-style: normal; }

.tl__facts {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.tl__fact {
  display: flex; flex-direction: column;
}
.tl__fact-n {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.7rem; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(120deg, #e8624b, #ffb26b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "opsz" 60;
}
.tl__fact-l {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  letter-spacing: .06em; margin-top: 6px;
}

/* ---------- Section base (for Playground / Research / etc) ---------- */
.section { padding: 88px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 60px 0; } }
.section__eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--brand); letter-spacing: .24em;
  text-transform: uppercase; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section__eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; display: inline-block; }
.section__h {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px;
  max-width: 22ch;
  font-variation-settings: "opsz" 96, "SOFT" 20;
}
.section__h em {
  font-family: var(--serif-italic); font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #e8624b, #ff9b6f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__sub {
  color: var(--ink-3); font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6; max-width: 44rem; margin: 0 0 42px;
  font-weight: 400;
}
.section__sub b { color: var(--ink); font-weight: 500; }
.section__head-flex {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-bottom: 42px;
}
@media (max-width: 720px) {
  .section__head-flex { grid-template-columns: 1fr; }
  .section__head-flex > .btn { justify-self: start; }
}

/* ---------- Playground (legacy v3 block-frame; v22 用 .playground__panel 承载边框) ---------- */
/* .playground 保持透明——section 只是节奏容器 */
.playground__head {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.15); overflow-x: auto;
}
.playground__tab {
  padding: 14px 18px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted-2); font-weight: 500; letter-spacing: .02em;
  border: none; background: transparent; cursor: pointer;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.playground__tab:hover { color: var(--ink); }
.playground__tab[data-active="true"] { color: var(--ink); border-bottom-color: var(--brand); background: rgba(232,98,75,0.05); }
.playground__body {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 340px;
}
@media (max-width: 900px) { .playground__body { grid-template-columns: 1fr; } }
.playground__prompt {
  padding: 22px 26px; border-right: 1px solid var(--line);
  background: rgba(0,0,0,0.12);
}
@media (max-width: 900px) { .playground__prompt { border-right: none; border-bottom: 1px solid var(--line); } }
.playground__label {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.playground__prompt-text {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); line-height: 1.7; white-space: pre-wrap;
}
.playground__prompt-text .accent { color: var(--brand-2); }
.playground__prompt-text .role { color: var(--brand-4); font-weight: 700; }
.playground__output { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.playground__output-text {
  color: var(--ink-2); font-size: 13.8px; line-height: 1.75; white-space: pre-wrap;
}
.playground__output-text b { color: var(--ink); font-weight: 600; }
.playground__output-text .hl {
  background: linear-gradient(120deg, rgba(232,98,75,0.2), rgba(255,178,107,0.1));
  color: #ffddca; padding: 1px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 12.5px;
}
.playground__meta {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.playground__meta b { color: var(--ink-3); font-weight: 600; }

/* ---------- Research ---------- */
.research { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .research { grid-template-columns: 1fr; } }
.paper {
  padding: 30px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,245,235,0.035), rgba(255,245,235,0.005));
  transition: transform .3s, border-color .3s;
  display: flex; flex-direction: column; min-height: 260px;
}
.paper:hover { transform: translateY(-3px); border-color: var(--line-2); }
.paper__meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .06em;
}
.paper__type {
  padding: 3px 8px; border-radius: 5px;
  background: rgba(255,245,235,0.04); color: var(--ink-3);
  border: 1px solid var(--line);
}
.paper__type--case { background: rgba(232,98,75,0.14); color: #ffb59a; border-color: rgba(232,98,75,0.28); }
.paper__type--note { background: rgba(124,107,255,0.14); color: #c4bafd; border-color: rgba(124,107,255,0.28); }
.paper__type--personal { background: rgba(247, 213, 116, 0.16); color: #ffe3a3; border-color: rgba(247, 213, 116, 0.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.paper__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.18; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 12px;
  font-variation-settings: "opsz" 60;
}
.paper__title em { font-family: var(--serif-italic); font-style: italic; color: var(--brand-2); }
.paper__abstract { color: var(--ink-3); font-size: 14px; line-height: 1.65; flex: 1; }
.paper__foot {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.paper__authors { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.paper__link {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s;
}
.paper__link::after { content: "→"; transition: transform .2s; }
.paper__link:hover { color: var(--brand-2); }
.paper__link:hover::after { transform: translateX(3px); }

/* ---------- Testimonials ---------- */
.testify { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .testify { grid-template-columns: 1fr; } }
.quote {
  padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,245,235,0.035), rgba(255,245,235,0.005));
  display: flex; flex-direction: column; gap: 20px; min-height: 260px;
}
.quote__mark {
  font-family: var(--serif-italic); font-size: 3.6rem;
  line-height: 0.4; color: var(--brand); font-style: italic;
}
.quote__text {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  font-size: 1.15rem; line-height: 1.55; letter-spacing: -.014em;
  color: var(--ink); flex: 1;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.quote__text em { font-family: var(--serif-italic); font-style: italic; color: var(--brand-2); }
.quote__author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote__avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #1a0e08; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 15px;
  font-variation-settings: "opsz" 144;
}
.quote__author-meta { line-height: 1.25; }
.quote__author-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.quote__author-role { font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }

/* ---------- Numbers ---------- */
.numbers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.number { padding: 40px 24px 34px; border-right: 1px solid var(--line); position: relative; }
.number:last-child { border-right: none; }
@media (max-width: 900px) {
  .number:nth-child(2n) { border-right: none; }
  .number:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.number__n {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 5.6vw, 4.8rem);
  line-height: 0.92; letter-spacing: -.048em;
  background: linear-gradient(120deg, #e8624b, #ffb26b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variation-settings: "opsz" 144;
}
.number__l {
  margin-top: 16px; font-family: var(--mono); font-size: 11px;
  color: var(--muted-2); letter-spacing: .16em; text-transform: uppercase;
}
.number__d { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; margin-top: 6px; }

/* ---------- Next chapter ---------- */
.next__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 900px) { .next__grid { grid-template-columns: 1fr; } }
.next__card {
  padding: 32px 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,245,235,0.04), rgba(255,245,235,0.005));
  transition: transform .3s, border-color .3s;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.next__card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.next__card-eyebrow {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--brand); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 16px;
}
.next__card-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15; letter-spacing: -.028em;
  color: var(--ink); margin: 0 0 14px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.next__card-h em { font-family: var(--serif-italic); font-style: italic; color: var(--brand-2); }
.next__card-body { color: var(--ink-3); font-size: 14.5px; line-height: 1.7; flex: 1; }
.next__card-body b { color: var(--ink); font-weight: 500; }
.next__card-items {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 18px; border-top: 1px dashed var(--line);
  margin-top: 20px;
}
.next__card-item {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}
.next__card-item::before {
  content: "→"; color: var(--brand); flex: none;
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 60px;
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,98,75,0.22), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(124,107,255,0.16), transparent 55%),
    linear-gradient(160deg, rgba(255,245,235,0.05), rgba(255,245,235,0.005));
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .cta { padding: 60px 30px; } }
.cta__h {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98; letter-spacing: -.045em;
  margin: 0 0 22px; max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cta__h em {
  font-family: var(--serif-italic); font-style: italic;
  background: linear-gradient(100deg, #e8624b, #ff9b6f, #f7d574);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__sub {
  color: var(--ink-3); font-size: 1.05rem; line-height: 1.6;
  max-width: 36rem; margin: 0 0 34px;
}
.cta__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta__note {
  margin-top: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.cta__note span::before { content: "◇  "; color: var(--brand); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 62px 0 36px; margin-top: 60px; }
.foot__grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 34px; margin-bottom: 50px;
}
@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot__brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .foot {
    display: none;
  }
}
.foot__brand-name {
  font-family: var(--serif); font-size: 26px;
  color: var(--ink); letter-spacing: -.03em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 20;
}
.foot__brand-desc { color: var(--muted-2); font-size: 13.5px; line-height: 1.6; max-width: 22rem; margin-bottom: 18px; }
.foot__socials { display: flex; gap: 8px; }
.foot__social {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted-2); font-family: var(--mono); font-size: 11px;
  transition: color .2s, border-color .2s, background .2s;
  cursor: pointer;
}
.foot__social:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255,245,235,0.04); }
.foot__col-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
}
.foot__col-list { display: flex; flex-direction: column; gap: 8px; }
.foot__col-link { font-size: 13px; color: var(--ink-3); transition: color .18s ease; }
.foot__col-link:hover { color: var(--ink); }
.foot__col-link .tag {
  display: inline-block; font-family: var(--mono); font-size: 9.5px;
  padding: 1px 5px; border-radius: 3px; margin-left: 6px;
  background: rgba(232,98,75,0.14); color: #ffb59a;
  border: 1px solid rgba(232,98,75,0.28); letter-spacing: .05em;
}
.foot__bar {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.foot__bar b { color: var(--ink-3); font-weight: 600; }

/* ---------- Palette ---------- */
.palette-backdrop {
  position: fixed; inset: 0; background: rgba(4,4,8,0.7);
  backdrop-filter: blur(8px); z-index: 100;
  display: grid; place-items: start center; padding-top: 12vh;
  animation: fade-in .18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.palette {
  width: min(560px, 92vw);
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(18,18,22,0.96);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: pop-in .22s cubic-bezier(.22,.9,.34,1);
}
@keyframes pop-in { from { transform: translateY(-8px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.palette__input {
  width: 100%; padding: 16px 20px;
  background: transparent; border: none; outline: none;
  color: var(--ink); font-family: var(--mono); font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.palette__list { max-height: 340px; overflow-y: auto; padding: 8px; }
.palette__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: var(--ink-3); font-size: 13.5px;
  transition: background .15s;
}
.palette__item[data-focused="true"], .palette__item:hover { background: rgba(255,245,235,0.05); color: var(--ink); }
.palette__item-key {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; margin-left: auto;
}
.palette__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22,.9,.34,1), transform .7s cubic-bezier(.22,.9,.34,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Utility */
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }


/* ============================================================
   v4 — micro-fixes for classes referenced in JSX but not styled
   ============================================================ */
.announce__text { color: var(--ink-3); }
.brand__mark-r { font-family: var(--display); font-weight: 700; }
.brand__type-dot { margin: 0 4px; color: var(--muted); }
.demo__head-btn {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.demo__head-btn:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.demo__input-prefix {
  font-family: var(--mono); color: var(--muted); margin-right: 6px;
}
.hero__eyebrow-line {
  flex: 0 0 40px; height: 1px; background: var(--line);
}
.hero__eyebrow-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.playground__meta-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.playground__meta-row:last-child { border-bottom: 0; }
.playground__meta-k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.playground__meta-v {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.tl__delta-value {
  font-family: var(--display); font-weight: 600; color: var(--brand-2);
  font-size: 22px; letter-spacing: -0.01em;
}
.tl__marker-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(232,98,75,0.15);
  margin-bottom: 8px;
}

/* Reveal animate-in */
.reveal.is-in { opacity: 1; transform: translateY(0); }


/* ============================================================
   v5.zh supplementary styles — terminal / commit / vibe coding hints
   ============================================================ */

/* Announce prompt + dot */
.announce__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.announce__badge-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #ff8a6a;
  box-shadow: 0 0 12px rgba(255, 138, 106, 0.7);
  animation: v5-pulse 2.4s ease-in-out infinite;
}
.announce__prompt {
  color: rgba(255, 138, 106, 0.9);
  margin-right: 6px;
  font-weight: 600;
}
@keyframes v5-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Brand slash prefix */
.brand__type-slash {
  color: var(--muted);
  margin-right: 2px;
  font-size: 0.85em;
  opacity: 0.75;
}
.foot__brand-slash {
  color: var(--muted);
  font-size: 0.75em;
  opacity: 0.7;
  margin-right: 2px;
}

/* Hero eyebrow tag as mono */
.hero__eyebrow-tag.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ============================================================
   Terminal strip
   ============================================================ */
.terminal-strip {
  padding: 24px 0 64px;
  position: relative;
}
@media (max-width: 720px) { .terminal-strip { padding: 16px 0 48px; } }
.term {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 14, 12, 0.92), rgba(14, 11, 10, 0.88));
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 245, 235, 0.03);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.term__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 245, 235, 0.02);
}
.term__dots {
  display: inline-flex;
  gap: 6px;
}
.term__dots span {
  width: 10px; height: 10px; border-radius: 999px;
  display: inline-block;
  background: rgba(255, 245, 235, 0.18);
}
.term__dots span:nth-child(1) { background: #ff6a5c; }
.term__dots span:nth-child(2) { background: #ffb43a; }
.term__dots span:nth-child(3) { background: #7ed492; }
.term__title {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-align: center;
}
.term__tag {
  font-size: 11px;
  color: rgba(255, 138, 106, 0.9);
  border: 1px solid rgba(255, 138, 106, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 106, 0.08);
}
.term__body {
  margin: 0;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
  overflow-x: auto;
}
.term__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.term__prompt {
  color: rgba(255, 138, 106, 0.85);
  font-weight: 700;
  flex-shrink: 0;
  width: 14px;
}
.term__text {
  color: rgba(240, 232, 224, 0.9);
}
.term__line--cmd .term__text {
  color: #ffffff;
  font-weight: 500;
}
.term__line--out .term__text {
  color: rgba(240, 232, 224, 0.55);
}
.term__line--log .term__text {
  color: rgba(240, 232, 224, 0.82);
}
.term__line--log--a .term__text::before,
.term__line--log--b .term__text::before,
.term__line--log--c .term__text::before,
.term__line--log--d .term__text::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 999px;
  margin-right: 8px;
  transform: translateY(-2px);
  background: #ff8a6a;
}
.term__line--log--b .term__text::before { background: #f5c563; }
.term__line--log--c .term__text::before { background: #9dd68a; }
.term__line--log--d .term__text::before { background: #7cc9d6; }
.term__line--ok .term__text {
  color: #a3e0a5;
}
.term__caret {
  display: inline-block;
  width: 9px;
  height: 15px;
  background: rgba(255, 138, 106, 0.85);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: v5-blink 1s steps(2) infinite;
}
@keyframes v5-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ============================================================
   Origin label hash + hint + meta
   ============================================================ */
.origin__label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.origin__label-hash {
  color: rgba(255, 138, 106, 0.9);
  font-size: 1.1em;
  font-weight: 700;
}
.origin__hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
}
.origin__meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.65;
  letter-spacing: 0.02em;
}

/* ============================================================
   Timeline commit hash
   ============================================================ */
.tl__hash {
  display: inline-block;
  padding: 2px 7px;
  margin-right: 8px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 138, 106, 0.9);
  background: rgba(255, 138, 106, 0.08);
  border: 1px solid rgba(255, 138, 106, 0.22);
  border-radius: 5px;
  vertical-align: 2px;
  font-weight: 600;
}
.tl__card--edu .tl__hash,
.tl__card--future .tl__hash {
  color: rgba(180, 200, 220, 0.9);
  background: rgba(180, 200, 220, 0.08);
  border-color: rgba(180, 200, 220, 0.22);
}
.tl__card--current .tl__hash {
  color: #ffe6cf;
  background: rgba(255, 210, 160, 0.14);
  border-color: rgba(255, 210, 160, 0.35);
}
.tl__card--data .tl__hash {
  color: rgba(160, 210, 200, 0.95);
  background: rgba(160, 210, 200, 0.08);
  border-color: rgba(160, 210, 200, 0.22);
}
.tl__card--growth .tl__hash {
  color: rgba(255, 195, 130, 0.95);
  background: rgba(255, 195, 130, 0.08);
  border-color: rgba(255, 195, 130, 0.24);
}
.tl__card--leadership .tl__hash {
  color: rgba(220, 190, 250, 0.9);
  background: rgba(220, 190, 250, 0.08);
  border-color: rgba(220, 190, 250, 0.24);
}
.tl__card--beginnings .tl__hash {
  color: rgba(200, 200, 220, 0.9);
  background: rgba(200, 200, 220, 0.08);
  border-color: rgba(200, 200, 220, 0.22);
}

/* ============================================================
   Playground prompt mark & label mono
   ============================================================ */
.playground__prompt-mark {
  color: rgba(255, 138, 106, 0.85);
  font-weight: 700;
  margin-right: 8px;
}
.playground__label .mono {
  color: rgba(255, 138, 106, 0.9);
  font-size: 0.95em;
  letter-spacing: 0.04em;
}

/* Section eyebrow when containing mono */
.section__eyebrow .mono {
  color: rgba(255, 138, 106, 0.85);
  margin-right: 4px;
  font-size: 0.92em;
  letter-spacing: 0.04em;
}
.journey__intro .section__eyebrow .mono,
.section__eyebrow .mono {
  text-transform: none;
}

/* ============================================================
   Chinese typography tuning — Fraunces + Instrument for headings,
   Space Grotesk for body — 中文用系统字体承接
   ============================================================ */
html, body {
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", sans-serif;
}
.hero__h1,
.section__h,
.cta__h {
  font-family: "Fraunces", "Instrument Serif", "PingFang SC", "Songti SC",
    "Source Han Serif SC", "Noto Serif SC", "Microsoft YaHei", serif;
  letter-spacing: -0.005em;
}
.hero__h1 em,
.section__h em,
.cta__h em {
  font-family: "Instrument Serif", "Fraunces", "Songti SC",
    "Source Han Serif SC", "Noto Serif SC", serif;
  font-style: italic;
  font-weight: 400;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    "PingFang SC", monospace;
}

/* Chinese-safe wrapping */
.hero__lede,
.origin__body p,
.tl__story,
.playground__prompt-text,
.playground__output-text,
.next__card-body,
.quote__text,
.paper__abstract {
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.85;
}

/* Slightly tighter H1 for CJK */
.hero__h1 {
  line-height: 1.18;
}

/* Ensure demo head name doesn't wrap awkwardly */
.demo__head-name {
  white-space: nowrap;
}

/* Responsive: terminal strip on narrower viewports */
@media (max-width: 900px) {
  .term__body {
    font-size: 12px;
    padding: 16px 16px 18px;
  }
  .origin__meta {
    gap: 12px;
    font-size: 11px;
  }
  .terminal-strip {
    padding: 4px 0 40px;
  }
}


/* ============================================================
   v7 fusion additions — override + new sections
   1) Interactive demo (variant picker version)
   2) SignalsStrip (scroll slider marquee)
   3) Playground rebuilt (v3-style split with editorial hero)
   ============================================================ */

/* ---------- Announce polish ---------- */
.announce__text-en {
  color: var(--brand-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin-right: 6px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- 1) Interactive demo overrides ---------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.02), rgba(0, 0, 0, 0.15));
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 245, 235, 0.03) inset,
    0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.demo > .os__topbar,
.demo > .os__grid,
.demo > .os__rail {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
}

/* Head — pills replace circular buttons */
.demo__head-pill {
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  background: rgba(255, 245, 235, 0.03);
}
.demo__head-pill + .demo__head-pill { margin-left: 6px; }
.demo__head-actions { gap: 6px; display: flex; }
.demo__head-status { text-transform: none; }

/* Messages: user bubble now on the right with You avatar */
.msg { align-items: flex-end; }
.msg--user { max-width: 78%; }
.msg--assistant { max-width: 94%; }

@media (min-width: 901px) {
  .demo {
    border-color: rgba(255,245,235,0.075);
    background: linear-gradient(180deg, rgba(255,245,235,0.016), rgba(0,0,0,0.18));
    box-shadow:
      0 1px 0 rgba(255,245,235,0.025) inset,
      0 36px 72px -44px rgba(0,0,0,0.56);
  }

  .os__chat {
    background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 22%);
  }

  .os__body {
    padding: 14px 24px 18px;
  }

  .msg {
    max-width: 96%;
  }

  .msg--user {
    max-width: 86%;
  }

  .msg--assistant {
    max-width: 98%;
  }

  .msg__bubble {
    padding-left: 16px;
    padding-right: 16px;
    border-color: rgba(255,245,235,0.07);
    background: rgba(255,245,235,0.024);
  }

  .msg--assistant .msg__bubble {
    background: rgba(232,98,75,0.032);
    border-color: rgba(232,98,75,0.11);
  }

  .msg--user .msg__bubble {
    background: rgba(124,107,255,0.095);
    border-color: rgba(124,107,255,0.22);
  }
}
.msg__p { margin: 0; }
.msg__p + .msg__p { margin-top: 10px; }
.msg__avatar--you {
  background: rgba(124, 107, 255, 0.16);
  color: #c4bafd;
  border: 1px solid rgba(124, 107, 255, 0.32);
  font-family: var(--mono);
  font-size: 10.5px;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  padding: 0 6px;
  letter-spacing: 0.02em;
}
.msg__code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(232, 98, 75, 0.06);
  color: var(--brand-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.msg__bubble {
  line-height: 1.65;
  color: var(--ink-2);
}
.msg--user .msg__bubble {
  background: rgba(124, 107, 255, 0.14);
  border-color: rgba(124, 107, 255, 0.3);
  color: var(--ink);
  font-weight: 500;
}

/* Input: no prefix character in v7; send button becomes rounded square */
.demo__input {
  gap: 8px;
}
.demo__send {
  background: rgba(232, 98, 75, 0.9);
  color: #1a0e08;
  border-radius: 8px;
  width: 32px;
  height: 30px;
  font-weight: 700;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.demo__send:hover { background: var(--brand-2); }
.demo__chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* Variant picker — supports is-active class */
.demo__spec {
  background: rgba(0, 0, 0, 0.16);
  border-left: 1px solid var(--line);
  padding: 22px 22px 22px;
}
.spec__section-label {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.spec__pick { gap: 8px; }
.spec__variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 245, 235, 0.015);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.spec__variant-body { flex: 1; min-width: 0; }
.spec__variant:hover {
  background: rgba(255, 245, 235, 0.05);
  border-color: var(--line-2);
}
.spec__variant.is-active {
  border-color: rgba(232, 98, 75, 0.55);
  background: rgba(232, 98, 75, 0.07);
  box-shadow: 0 0 0 1px rgba(232, 98, 75, 0.15) inset;
}
.spec__variant.is-active .spec__variant-arrow {
  color: var(--brand-2);
  transform: translateX(3px);
}
.spec__variant-arrow { transition: transform 0.2s ease; }
.spec__variant-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 245, 235, 0.04);
}
.spec__variant-tag--ops {
  background: rgba(232, 98, 75, 0.16);
  color: #ffb59a;
  border-color: rgba(232, 98, 75, 0.34);
}
.spec__variant-tag--analyst {
  background: rgba(124, 107, 255, 0.14);
  color: #b8adff;
  border-color: rgba(124, 107, 255, 0.3);
}
.spec__variant-tag--automation {
  background: rgba(247, 213, 116, 0.14);
  color: #f7d574;
  border-color: rgba(247, 213, 116, 0.3);
}

.spec__stats { margin-top: 20px; }
.spec__stat-v--ok { color: var(--ok); }

/* ---------- 2) SignalsStrip marquee ---------- */
.signals {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0 clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.012), rgba(0, 0, 0, 0.28));
  overflow: hidden;
}
.signals__head { margin-bottom: 22px; }
.signals__eyebrow {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.signals__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.signals__eyebrow-sep {
  color: var(--brand-2);
  letter-spacing: 0;
  margin: 0 2px;
}
.signals__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.signals__track {
  display: flex;
  gap: clamp(48px, 6vw, 88px);
  width: max-content;
  padding: 8px 0;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.signals__marquee:hover .signals__track {
  animation-play-state: paused;
}
.signals__item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
  color: var(--ink-2);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.signals__item:hover { opacity: 1; }
.signals__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.signals__item--accent .signals__brand {
  background: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
}
.signals__item--accent { opacity: 0.92; }
.signals__sep { color: var(--brand); font-size: 20px; }
.signals__sub {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signals__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.signals__fade--l { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.signals__fade--r { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 3) Playground rebuilt (v3-style) ---------- */
/* Playground: 使用 .section 的统一 88px；无需再叠 padding-top */
.playground__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.playground__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.playground__eyebrow-sep { color: var(--brand-2); letter-spacing: 0; }

.playground__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}
.playground__h em {
  font-family: var(--serif-italic);
  font-style: italic;
  background: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

.playground__flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
  margin-top: 22px;
  flex-wrap: wrap;
}
.playground__sub {
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 62ch;
  margin: 0;
}
.playground__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 245, 235, 0.03);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.playground__cta:hover {
  background: rgba(232, 98, 75, 0.1);
  border-color: rgba(232, 98, 75, 0.4);
  transform: translateY(-1px);
}

.playground__tabs {
  display: flex;
  gap: 4px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.playground__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  min-width: 130px;
}
.playground__tab:hover { color: var(--ink-2); }
.playground__tab.is-active {
  color: var(--ink);
  background: rgba(232, 98, 75, 0.09);
  border-color: rgba(232, 98, 75, 0.4);
}
.playground__tab-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: inherit;
}
.playground__tab-sub {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.playground__tab.is-active .playground__tab-sub { color: var(--ink-3); }

.playground__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  margin-top: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.02), rgba(0, 0, 0, 0.22));
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
@media (max-width: 900px) {
  .playground__panel { grid-template-columns: 1fr; }
}

.playground__col {
  padding: clamp(24px, 3vw, 36px);
  min-width: 0;
}
.playground__col--in {
  background: rgba(0, 0, 0, 0.14);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .playground__col--in {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
.playground__col-label {
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.playground__col-dot { color: var(--brand-2); margin: 0 4px; }

.playground__prompt-code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.pcode__block { margin-bottom: 18px; }
.pcode__block:last-child { margin-bottom: 0; }
.pcode__tag {
  color: var(--brand-4);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pcode__tag--user { color: var(--brand-4); }
.pcode__tag--system { color: #b8adff; }
.pcode__body { color: var(--ink-2); }
.pcode__code {
  font-family: var(--mono);
  color: var(--brand-2);
  padding: 0 2px;
  border-bottom: 1px dashed rgba(232, 98, 75, 0.35);
}

.playground__meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.playground__meta-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
}
.playground__meta-k {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10.5px;
  min-width: 68px;
}
.playground__meta-v {
  color: var(--ink-3);
  font-family: var(--mono);
}

.playground__output-head {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -0.005em;
}
.playground__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pstep {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pstep__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.pstep__n {
  color: var(--brand-2);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
}
.pstep__h { color: var(--ink); }
.pstep__d {
  margin: 0 0 0 24px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
}
.pstep__sep {
  color: var(--brand);
  margin-right: 6px;
  font-weight: 700;
}
.playground__footline {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* ---------- Playground · pcase (v22: 更像本人叙事) ---------- */
.playground__col--in {
  display: flex;
  flex-direction: column;
}
.pcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 245, 235, 0.03), rgba(0, 0, 0, 0.12));
}
.pcase__row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.55;
}
.pcase__k {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}
.pcase__v {
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13.5px;
}
.pcase__quote {
  margin-top: 22px;
  padding: 22px 22px 22px 46px;
  border-left: 2px solid var(--brand-2);
  background: rgba(232, 98, 75, 0.06);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 380;
  position: relative;
  letter-spacing: -0.005em;
}
.pcase__quote-mark {
  position: absolute;
  left: 14px;
  top: 6px;
  font-family: var(--serif-italic);
  font-size: 44px;
  line-height: 1;
  color: var(--brand-2);
  opacity: 0.55;
}
.pcase__quote-text { color: var(--ink); }
.pcase__foot {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.pcase__foot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(232, 98, 75, 0.18);
}
.pcase__lasted {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 155, 111, 0.35);
  border-radius: 10px;
  background: rgba(247, 213, 116, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.55;
}
.pcase__lasted-k {
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 600;
}
.pcase__lasted-v {
  color: var(--ink-2);
  font-family: var(--sans);
}
@media (max-width: 720px) {
  .pcase__row { grid-template-columns: 64px 1fr; gap: 10px; }
  .pcase__quote { padding: 18px 16px 18px 36px; }
  .pcase__quote-mark { left: 10px; font-size: 34px; }
  .pcase__lasted { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Nav polish: bilingual hint ---------- */
.hide-mobile { color: var(--muted-2); font-size: 11.5px; }

/* Reduced motion: pause marquee */
@media (prefers-reduced-motion: reduce) {
  .signals__track { animation: none; }
}


/* ============================================================
   v8 · Yipeng OS shell — hero demo is the product
   ============================================================ */

.os {
  --os-accent: #e8624b;
  --os-accent-2: #ff9b6f;
  --os-accent-soft: rgba(232,98,75,0.12);
  --os-accent-line: rgba(232,98,75,0.28);
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line-2, rgba(255,245,235,0.14));
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(232,98,75,0.14), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(255,245,235,0.04), transparent 55%),
    rgba(12,10,9,0.72);
  backdrop-filter: blur(28px) saturate(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.05);
  overflow: hidden;
  box-shadow: 0 40px 120px -60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,245,235,0.06);
  margin-top: 44px;
}

.os--ops       { --os-accent: #e8624b; --os-accent-2: #ff9b6f; --os-accent-soft: rgba(232,98,75,0.13); --os-accent-line: rgba(232,98,75,0.28); }
.os--analyst   { --os-accent: #7cd0b4; --os-accent-2: #a8ecd3; --os-accent-soft: rgba(124,208,180,0.13); --os-accent-line: rgba(124,208,180,0.28); }
.os--automation{ --os-accent: #b3a1ff; --os-accent-2: #d3c6ff; --os-accent-soft: rgba(179,161,255,0.13); --os-accent-line: rgba(179,161,255,0.30); }

/* topbar / window chrome-inspired but never mac */
.os__topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line, rgba(255,245,235,0.08));
  background:
    linear-gradient(180deg, rgba(255,245,235,0.055), rgba(255,245,235,0.012)),
    linear-gradient(90deg, var(--os-accent-soft), transparent 45%, transparent 55%, var(--os-accent-soft));
}

@media (min-width: 901px) {
  .demo.os {
    padding-top: 58px;
  }

  .os__topbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: min(100%, calc(var(--stage-max) - (var(--stage-x) * 2)));
    padding: 6px 14px 9px;
    overflow: visible;
    border-color: rgba(255,245,235,0.085);
    background:
      linear-gradient(180deg, rgba(255,245,235,0.06), rgba(255,245,235,0.014)),
      rgba(10,10,12,0.72);
    box-shadow: 0 12px 26px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .os__topbar-c {
    position: static;
    transform: none;
    width: auto;
    justify-self: stretch;
    padding-top: 7px;
    padding-bottom: 7px;
    background: rgba(12,10,9,0.48);
    border-color: rgba(255,245,235,0.085);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.05);
  }
}
.os__dots { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.os__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,245,235,0.16);
  display: inline-block;
}
.os__dot:nth-child(1) { background: rgba(255,120,100,0.8); }
.os__dot:nth-child(2) { background: rgba(255,190,90,0.65); }
.os__dot:nth-child(3) { background: rgba(140,220,150,0.65); }

.os__topbar-c {
  font-size: 12.5px;
  color: rgba(255,245,235,0.82);
  display: flex; gap: 6px; align-items: center;
  letter-spacing: .01em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12,10,9,0.55);
  border: 1px solid var(--line, rgba(255,245,235,0.1));
  min-width: 0;
  justify-self: stretch;
  overflow: hidden;
  white-space: nowrap;
}
.os__topbar-path { color: rgba(255,245,235,0.6); flex-shrink: 0; }
.os__topbar-cwd { color: var(--os-accent); font-weight: 500; flex-shrink: 0; }
.os__topbar-model {
  color: var(--ink, #fdf6ee);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--os-accent-soft);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.os__topbar-sep { color: rgba(255,245,235,0.3); flex-shrink: 0; }
.os__topbar-branch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(255,245,235,0.14);
  color: rgba(255,245,235,0.55);
  font-size: 11.5px;
  flex-shrink: 0;
}
.os__branch-icon { color: var(--os-accent); font-size: 12px; }

.os__topbar-r {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  font-size: 11.5px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.os__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(255,245,235,0.8);
}
.os__meta-k {
  color: rgba(255,245,235,0.4);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.os__meta-v {
  color: var(--ink, #fdf6ee);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.os__meta--live {
  color: rgba(255,245,235,0.9);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(122,218,130,0.35);
  background: rgba(122,218,130,0.08);
  align-items: center;
  gap: 6px;
}
.os__meta-lamp {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7ada82;
  box-shadow: 0 0 0 3px rgba(122,218,130,0.18);
  animation: os-lamp-pulse 2.2s ease-in-out infinite;
}
@keyframes os-lamp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(122,218,130,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(122,218,130,0.05); }
}

@media (max-width: 1180px) {
  .os__topbar-r .os__meta:not(.os__meta--live) { display: none; }
}
@media (max-width: 760px) {
  .os__topbar { gap: 10px; padding: 8px 10px; }
  .os__topbar-c { padding: 5px 10px; font-size: 11.5px; }
  .os__topbar-path,
  .os__topbar-sep:first-of-type,
  .os__topbar-branch { display: none; }
  .os__topbar-r { gap: 8px; }
}

/* two-column layout inside OS shell */
.os__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 560px;
}

@media (min-width: 901px) {
  .os__grid {
    grid-template-columns: minmax(0, 1.68fr) minmax(280px, 0.9fr);
  }

  .os__body {
    padding-top: 14px;
  }

  .os__spec {
    padding: 18px 18px 20px 14px;
    background: linear-gradient(180deg, rgba(255,245,235,0.012), rgba(0,0,0,0.12) 58%, transparent 100%);
    border-left: 1px solid rgba(255,245,235,0.065);
  }

  .os__status {
    padding: 7px 16px;
    border-bottom: 1px solid rgba(255,245,235,0.065);
    background:
      linear-gradient(180deg, rgba(255,245,235,0.016), transparent),
      repeating-linear-gradient(90deg, rgba(255,245,235,0.014) 0 1px, transparent 1px 6px);
  }

  .os__tools {
    border-top: 1px solid rgba(255,245,235,0.065);
    padding-top: 12px;
  }

  .os__metric {
    border-color: rgba(255,245,235,0.08);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.028), transparent 60%),
      rgba(0,0,0,0.24);
  }
}
@media (max-width: 900px) {
  .os__grid { grid-template-columns: 1fr; }
}

.os__chat {
  border-right: 1px solid var(--line, rgba(255,245,235,0.08));
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.os__spec {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255,245,235,0.015), transparent 60%);
}

/* avatar per accent */
.demo__avatar--ops        { background: linear-gradient(140deg, #e8624b, #ff9b6f); color: #1a0e08; }
.demo__avatar--analyst    { background: linear-gradient(140deg, #4ca089, #7cd0b4); color: #062018; }
.demo__avatar--automation { background: linear-gradient(140deg, #7a68d6, #b3a1ff); color: #0e0a1e; }
.msg__avatar--ops         { background: linear-gradient(140deg, #e8624b, #ff9b6f); color: #1a0e08; }
.msg__avatar--analyst     { background: linear-gradient(140deg, #4ca089, #7cd0b4); color: #062018; }
.msg__avatar--automation  { background: linear-gradient(140deg, #7a68d6, #b3a1ff); color: #0e0a1e; }

.demo__head-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: .11em;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--os-accent-2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-left: 0;
  width: fit-content;
}

.os__jump {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--os-accent-line);
  color: var(--os-accent-2);
  background: var(--os-accent-soft);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.os__jump:hover { transform: translateY(-1px); background: rgba(232,98,75,0.18); }

/* status bar between head and body */
.os__status {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line, rgba(255,245,235,0.08));
  background:
    linear-gradient(180deg, rgba(255,245,235,0.02), transparent),
    repeating-linear-gradient(90deg, rgba(255,245,235,0.02) 0 1px, transparent 1px 6px);
  font-size: 11px;
}
.os__status-lamp {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,245,235,0.2);
  box-shadow: 0 0 0 3px rgba(255,245,235,0.04);
}
.os__status-lamp--idle       { background: rgba(255,245,235,0.35); }
.os__status-lamp--reasoning  { background: #ffb166; box-shadow: 0 0 0 3px rgba(255,177,102,0.15); animation: os-pulse 1.1s ease-in-out infinite; }
.os__status-lamp--retrieving { background: #6cb9ff; box-shadow: 0 0 0 3px rgba(108,185,255,0.16); animation: os-pulse 1.1s ease-in-out infinite; }
.os__status-lamp--composing  { background: var(--os-accent); box-shadow: 0 0 0 3px var(--os-accent-soft); animation: os-pulse 0.9s ease-in-out infinite; }
.os__status-lamp--shipped    { background: #7ada82; box-shadow: 0 0 0 3px rgba(122,218,130,0.16); }
@keyframes os-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
.os__status-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink, #fdf6ee);
  font-weight: 600;
}
.os__status-hint {
  font-size: 11.5px;
  color: rgba(255,245,235,0.5);
}
.os__status-bars {
  display: inline-flex; gap: 4px; align-items: center;
}
.os__bar {
  width: 22px; height: 3px; border-radius: 3px;
  background: rgba(255,245,235,0.08);
  transition: background 0.25s ease;
}
.os__bar.is-on { background: var(--os-accent); box-shadow: 0 0 8px var(--os-accent-soft); }
.os__status-tokens { font-size: 10.5px; color: rgba(255,245,235,0.5); }

/* chat body */
.os__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  min-height: 340px;
  max-height: 560px;
}

/* structured assistant blocks */
.msg__steps {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex; flex-direction: column;
  border-top: 1px dashed rgba(255,245,235,0.09);
  border-bottom: 1px dashed rgba(255,245,235,0.09);
}
.msg__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,245,235,0.06);
  animation: msg-step-in 0.35s cubic-bezier(.22,.9,.34,1);
}
.msg__step:last-child { border-bottom: 0; }
@keyframes msg-step-in {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.msg__step-n {
  font-size: 11px;
  color: var(--os-accent);
  font-weight: 700;
  letter-spacing: .04em;
  padding-top: 2px;
}
.msg__step-h {
  font-size: 13px;
  color: var(--ink, #fdf6ee);
  font-weight: 600;
  line-height: 1.4;
}
.msg__step-d {
  font-size: 12.5px;
  color: rgba(255,245,235,0.65);
  line-height: 1.6;
  margin-top: 3px;
}
.msg__outcome {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--os-accent-line);
  background: var(--os-accent-soft);
  border-radius: 10px;
  align-items: flex-start;
  animation: msg-step-in 0.4s cubic-bezier(.22,.9,.34,1);
}
.msg__outcome-tag {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--os-accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  white-space: nowrap;
  border: 1px solid var(--os-accent-line);
  flex-shrink: 0;
}
.msg__outcome-text {
  font-size: 12.5px;
  color: rgba(255,245,235,0.85);
  line-height: 1.55;
}

/* streaming placeholder dots */
.msg__stream-cursor {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 4px 2px;
}
.msg__stream-cursor span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--os-accent);
  animation: msg-dot 1s ease-in-out infinite;
}
.msg__stream-cursor span:nth-child(2) { animation-delay: 0.15s; }
.msg__stream-cursor span:nth-child(3) { animation-delay: 0.3s; }
@keyframes msg-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* foot: input + chips */
.os__foot {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line, rgba(255,245,235,0.08));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
}
.os__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(255,245,235,0.08));
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  transition: border-color 0.15s ease;
}
.os__input:focus-within {
  border-color: var(--os-accent-line);
  box-shadow: 0 0 0 3px var(--os-accent-soft);
}
.os__input-prefix {
  color: var(--os-accent);
  font-size: 13px;
  font-weight: 700;
}
.os__input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink, #fdf6ee);
  font-size: 13px;
  font-family: inherit;
}
.os__input input::placeholder { color: rgba(255,245,235,0.35); }
.demo__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo__chip-icon {
  color: var(--os-accent);
  font-size: 11px;
}
.demo__chip[disabled] { opacity: 0.5; cursor: default; }
.os__chips-empty {
  font-size: 11px;
  color: rgba(255,245,235,0.5);
  padding: 6px 4px;
  letter-spacing: .02em;
}

/* spec panel */
.spec__section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(255,245,235,0.45);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spec__section-line {
  height: 1px;
  flex: 0 0 24px;
  background: var(--os-accent);
  opacity: 0.6;
}

.spec__variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line, rgba(255,245,235,0.08));
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.spec__variant:hover { transform: translateX(2px); border-color: rgba(255,245,235,0.2); }
.spec__variant.is-active {
  border-color: var(--os-accent-line);
  background: var(--os-accent-soft);
  box-shadow: inset 3px 0 0 var(--os-accent);
}
.spec__variant.is-active .spec__variant-arrow { color: var(--os-accent); }

.spec__variant-tag {
  font-size: 9px;
  letter-spacing: .12em;
  padding: 2px 5px;
  border-radius: 3px;
  color: rgba(255,245,235,0.55);
  background: rgba(255,245,235,0.06);
  border: 1px solid rgba(255,245,235,0.08);
}
.spec__variant-tag--ops        { color: #ffb59a; background: rgba(232,98,75,0.15); border-color: rgba(232,98,75,0.32); }
.spec__variant-tag--analyst    { color: #a8ecd3; background: rgba(124,208,180,0.15); border-color: rgba(124,208,180,0.3); }
.spec__variant-tag--automation { color: #d3c6ff; background: rgba(179,161,255,0.15); border-color: rgba(179,161,255,0.32); }

/* live metric card */
.os__metric {
  padding: 14px 16px;
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 100% 0%, var(--os-accent-soft), transparent 60%),
    rgba(0,0,0,0.28);
  border: 1px solid var(--os-accent-line);
  position: relative;
  overflow: hidden;
}
.os__metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,245,235,0.02) 0 4px, transparent 4px 8px);
  pointer-events: none;
}
.os__metric-k {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255,245,235,0.55);
  text-transform: uppercase;
}
.os__metric-v {
  font-family: var(--serif, "Fraunces", serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--os-accent-2);
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -.01em;
}
.os__metric-d {
  font-size: 11.5px;
  color: rgba(255,245,235,0.55);
  margin-top: 4px;
  line-height: 1.4;
}

/* tools invoked list */
.os__tools {
  border-top: 1px solid var(--line, rgba(255,245,235,0.08));
  padding-top: 14px;
}
.os__tools-label {
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(255,245,235,0.45);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.os__tools-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.os__tool {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  color: rgba(255,245,235,0.6);
  background: rgba(255,245,235,0.03);
  border: 1px solid rgba(255,245,235,0.06);
  transition: color 0.2s ease, background 0.2s ease;
}
.os__tool-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,245,235,0.3);
}
.os__tool.is-live {
  color: var(--os-accent-2);
  background: var(--os-accent-soft);
  border-color: var(--os-accent-line);
}
.os__tool.is-live .os__tool-dot {
  background: var(--os-accent);
  box-shadow: 0 0 6px var(--os-accent);
  animation: os-pulse 0.8s ease-in-out infinite;
}

/* jump CTA at bottom of spec */
.os__cta {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--os-accent-line);
  background: linear-gradient(120deg, var(--os-accent-soft), transparent);
  color: var(--ink, #fdf6ee);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.os__cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(232,98,75,0.22), transparent);
  border-style: solid;
}
.os__cta-main {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #fdf6ee);
}
.os__cta-sub {
  font-size: 10.5px;
  color: rgba(255,245,235,0.55);
  letter-spacing: .04em;
}
.os__cta.is-flash {
  animation: os-flash 0.9s ease;
}
@keyframes os-flash {
  0%   { box-shadow: 0 0 0 0 var(--os-accent-soft); }
  40%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* bottom rail: signals fused inside OS shell */
.os__rail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line, rgba(255,245,235,0.08));
  background: rgba(0,0,0,0.3);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

@media (min-width: 901px) {
  .os__rail {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: end;
    margin-top: 14px;
    padding: 11px 24px 12px;
    background:
      linear-gradient(180deg, rgba(255,245,235,0.022), rgba(0,0,0,0.2) 22%),
      rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,245,235,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .os__rail::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,245,235,0.12), transparent);
    pointer-events: none;
  }

  .os__rail-track {
    display: inline-flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding-left: 0;
    animation: none;
    white-space: nowrap;
    max-width: 100%;
  }

  .os__rail-item {
    font-size: 11px;
    color: rgba(255,245,235,0.58);
  }
}
.os__rail::before {
  content: none;
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(255,245,235,0.35);
  z-index: 2;
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,245,235,0.06);
}
.os__rail-track {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  padding-left: 130px;
  animation: os-rail 32s linear infinite;
  white-space: nowrap;
}
@keyframes os-rail {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.os__rail-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: rgba(255,245,235,0.65);
  letter-spacing: .02em;
}
.os__rail-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--os-accent);
  opacity: 0.65;
}

/* playground tab pulse when hero jumps into it */
.playground__tab.is-pulse {
  animation: pg-pulse 1.2s ease;
}
@keyframes pg-pulse {
  0%   { box-shadow: 0 0 0 0 var(--os-accent-soft, rgba(232,98,75,0.35)); }
  40%  { box-shadow: 0 0 0 10px rgba(232,98,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,98,75,0); }
}

/* keep the demo wrapping consistent under narrower viewport */
@media (max-width: 900px) {
  .os { margin-top: 28px; }
  .os__grid { grid-template-columns: 1fr; }
  .os__chat { border-right: 0; border-bottom: 1px solid var(--line, rgba(255,245,235,0.08)); min-height: unset; }
  .os__status { grid-template-columns: auto auto 1fr; grid-auto-flow: row; }
  .os__status-bars, .os__status-tokens { display: none; }
}


/* ---------- v20 · nav--quiet minimal top bar ---------- */
.nav.nav--quiet {
  border-bottom: 1px solid rgba(255, 245, 235, 0.05);
  background: rgba(11, 11, 14, 0.6);
}
.nav.nav--quiet .nav__row {
  padding-top: 11px;
  padding-bottom: 11px;
  gap: 16px;
}
.nav.nav--quiet .brand { font-size: 18px; }
.nav.nav--quiet .brand__mark {
  width: 24px; height: 24px; border-radius: 7px; font-size: 14px;
}
.nav.nav--quiet .brand__type { font-size: 14.5px; }
.nav.nav--quiet .nav__kbd-hint--min {
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid rgba(255, 245, 235, 0.07);
  background: transparent;
  color: var(--muted-2);
}
.nav.nav--quiet .nav__kbd-hint--min:hover {
  color: var(--ink);
  border-color: rgba(255, 245, 235, 0.15);
}
.nav.nav--quiet .btn--sm {
  padding: 7px 13px;
  font-size: 12.5px;
}
@media (max-width: 900px) {
  .nav.nav--quiet .nav__kbd-hint--min { display: none; }
}

/* ============================================================
   OFF HOURS — life / photo slot grid / interests
   ============================================================ */
.offhours {
  position: relative;
}
.offhours__intro {
  max-width: 720px;
  margin-bottom: 44px;
}
.offhours__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-bottom: 56px;
}
/* photo frame */
.photo {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
/* span variants — 8-frame editorial grid (6-col, dense) */
/* Row plan (approx):
   Row 1-4: bund hero (3 cols) | cuhk (3 cols) [cuhk row 1-4]
   Row 5-6: bund hero cont.    | (empty fills by dense flow with square/wide)
   With grid-auto-flow: dense, macau (2x3), seaside(3x2 wide), gingerbread(2x3),
   maple(2x3), tea(2x2 sq), stairs(2x2 sq) auto-pack.
*/
.photo--hero   { grid-column: span 3; grid-row: span 4; }  /* 外滩夜景 · 主图 */
.photo--tall   { grid-column: span 2; grid-row: span 3; }  /* 竖版 */
.photo--wide   { grid-column: span 4; grid-row: span 2; }  /* 横版 */
.photo--square { grid-column: span 2; grid-row: span 2; }  /* 方形/接近方 */

.photo__frame {
  position: relative;
  flex: 1 1 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #12100e;
  border: 1px solid var(--line);
  isolation: isolate;
  min-height: 200px;
  box-shadow:
    0 24px 48px -28px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 245, 235, 0.02);
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 380ms ease;
}
.photo__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, 0.0) 55%, rgba(9, 8, 6, 0.35) 100%);
  z-index: 2;
  pointer-events: none;
}
.photo:hover .photo__frame {
  transform: translateY(-3px);
  box-shadow:
    0 34px 62px -28px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 245, 235, 0.05);
}
.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1) contrast(1);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 400ms ease;
  z-index: 1;
}
.photo:hover .photo__img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}
.photo__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 65%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 2;
  pointer-events: none;
}
.photo__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 245, 235, 0.9);
  background: rgba(12, 10, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 245, 235, 0.12);
  border-radius: 999px;
  z-index: 3;
  text-transform: lowercase;
}
.photo__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9a45c;
  box-shadow: 0 0 0 3px rgba(217, 164, 92, 0.16);
  animation: photo-pulse 2.4s ease-in-out infinite;
}
@keyframes photo-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.photo__id {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 245, 235, 0.55);
  z-index: 3;
  text-transform: lowercase;
  padding: 3px 7px;
  background: rgba(12, 10, 8, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
}

.photo__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}
.photo__cap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.photo__cap-label {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.photo__cap-text {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* interests strip */
.offhours__interests {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.offhours__interests-eyebrow {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.offhours__interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 24px;
}
.interest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.interest__k {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.interest__n {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.interest__d {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* responsive */
@media (max-width: 1080px) {
  .offhours__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
  }
  .photo--hero   { grid-column: span 4; grid-row: span 4; }
  .photo--tall   { grid-column: span 2; grid-row: span 4; }
  .photo--wide   { grid-column: span 4; grid-row: span 3; }
  .photo--square { grid-column: span 2; grid-row: span 3; }
  .offhours__interests-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .offhours__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }
  .photo--hero, .photo--wide, .photo--tall, .photo--square {
    grid-column: span 1;
    grid-row: span 1;
  }
  .photo__frame { min-height: 260px; aspect-ratio: 4 / 5; }
  .photo--wide .photo__frame { aspect-ratio: 16 / 10; min-height: 220px; }
  .offhours__interests-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile refinements — segmented nav / journey / offhours / OS chat
   ============================================================ */
@media (max-width: 720px) {
  .nav__row {
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav__quicklinks {
    order: 3;
    display: inline-flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    padding: 4px;
    gap: 4px;
    border-radius: 16px;
    background: rgba(14,14,19,0.78);
    border: 1px solid rgba(255,245,235,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 30px rgba(0,0,0,0.26);
    backdrop-filter: blur(18px) saturate(140%);
  }
  .nav__quicklinks::-webkit-scrollbar { display: none; }
  .nav__quicklink {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 11px;
  }
  .nav__kbd-hint { display: inline-flex; }
  .nav__cta {
    margin-left: auto;
    gap: 6px;
  }

  .tl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tl__spine { display: none; }
  .tl__events {
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tl__events::-webkit-scrollbar { display: none; }
  .tl__event {
    min-width: 84vw;
    max-width: 84vw;
    grid-template-columns: 1fr;
    gap: 12px;
    scroll-snap-align: start;
  }
  .tl__marker {
    padding-left: 18px;
    min-height: 22px;
  }
  .tl__card {
    padding: 20px 18px 18px;
    border-radius: 18px;
  }
  .tl__title {
    font-size: 1.42rem;
    line-height: 1.18;
    margin-bottom: 10px;
  }
  .tl__story {
    font-size: 13.5px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tl__facts {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tl__facts::-webkit-scrollbar { display: none; }
  .tl__fact { min-width: 88px; }

  .offhours__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .offhours__grid::-webkit-scrollbar { display: none; }
  .photo,
  .photo--wide,
  .photo--square,
  .photo--tall {
    flex: 0 0 78vw;
    width: 78vw;
    min-width: 78vw;
    scroll-snap-align: start;
  }
  .photo__frame {
    min-height: 300px;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
  }
  .photo--wide .photo__frame {
    min-height: 260px;
    aspect-ratio: 4 / 5;
  }
  .photo__cap {
    padding: 12px 4px 0;
  }
  .photo__cap-text {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .os__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .os__variants {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .os__variants::-webkit-scrollbar { display: none; }
  .spec__variant {
    min-width: 156px;
    flex: 0 0 156px;
    padding: 5px 9px;
    gap: 3px;
    border-radius: 8px;
    min-height: 32px;
    align-items: center;
  }
  .spec__variant-body {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .spec__variant-name {
    font-size: 11px;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .spec__variant-tag {
    font-size: 6.5px;
    padding: 1px 3px;
    letter-spacing: .06em;
    flex: 0 0 auto;
  }
  .spec__variant-desc {
    display: none;
  }
  .spec__variant-arrow {
    display: none;
  }
  .os__body {
    padding: 14px 14px 16px;
    gap: 12px;
    min-height: 300px;
    max-height: 440px;
  }
  .msg {
    padding: 12px 12px 11px;
    border-radius: 16px;
  }
  .msg__text,
  .msg__p,
  .msg__outcome-text {
    font-size: 13px;
    line-height: 1.58;
  }
  .msg__steps {
    margin-top: 4px;
  }
  .msg__step {
    grid-template-columns: 22px 1fr;
    gap: 8px;
    padding: 8px 0;
  }
  .msg__step-n {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .msg__step-h {
    font-size: 12px;
    line-height: 1.35;
  }
  .msg__step-d {
    font-size: 12.5px;
    line-height: 1.52;
  }
  .msg__chips {
    gap: 5px;
  }
  .msg__chip {
    padding: 5px 8px;
    font-size: 10.5px;
  }
}

@media (max-width: 720px) {
  .os__chat {
    min-height: auto;
    border-right: 0;
  }
  .os__topbar {
    gap: 8px;
    padding: 7px 9px;
  }
  .os__topbar-c {
    min-width: 0;
    padding: 4px 8px;
    font-size: 11px;
  }
  .os__topbar-r {
    gap: 6px;
  }
  .os__status {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 7px 12px;
    align-items: center;
  }
  .os__status-label {
    font-size: 10px;
    letter-spacing: .08em;
  }
  .os__status-hint {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .os__body {
    padding: 12px 12px 14px;
    gap: 10px;
    min-height: 260px;
    max-height: 380px;
  }
  .msg {
    gap: 8px;
    max-width: 100%;
  }
  .msg--user {
    max-width: 86%;
  }
  .msg--assistant {
    max-width: 100%;
  }
  .msg__avatar {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 11px;
  }
  .msg__bubble {
    padding: 10px 11px;
    border-radius: 14px;
  }
  .msg__p + .msg__p {
    margin-top: 8px;
  }
  .msg__text,
  .msg__p,
  .msg__outcome-text,
  .msg__step-d {
    font-size: 12px;
    line-height: 1.5;
  }
  .msg__step {
    grid-template-columns: 20px 1fr;
    gap: 7px;
    padding: 7px 0;
  }
  .msg__step-h {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .msg__step-d {
    margin-top: 2px;
  }
  .msg__outcome {
    margin-top: 8px;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
  }
  .msg__outcome-tag {
    font-size: 9px;
    padding: 2px 5px;
  }
  .os__input {
    padding: 10px 12px;
    gap: 8px;
  }
  .os__input-prefix {
    font-size: 10px;
  }
  .os__input input {
    font-size: 12.5px;
  }
}

@media (max-width: 720px) {
  .os__topbar {
    gap: 6px;
    padding: 6px 8px;
  }
  .os__topbar-c {
    padding: 4px 7px;
    font-size: 10.5px;
    border-radius: 999px;
  }
  .os__topbar-r .os__meta:not(.os__meta--live) {
    display: none;
  }
  .demo__chat-head {
    align-items: flex-start;
  }
  .demo__head-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .demo__head-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  .demo__head-name {
    white-space: normal;
  }
  .demo__head-dot {
    display: none;
  }
  .demo__head-tag {
    margin-left: 0;
    width: fit-content;
    max-width: 100%;
  }
  .os__status {
    grid-template-columns: auto auto 1fr;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(255,245,235,0.018), transparent);
  }
  .os__status-bars,
  .os__status-tokens {
    display: none;
  }
  .os__status-label {
    font-size: 9.5px;
    letter-spacing: .06em;
  }
  .os__status-hint {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .os__spec {
    padding: 14px 14px 16px;
    gap: 12px;
  }
  .spec__section-label {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .os__metric {
    padding: 11px 12px;
    border-radius: 12px;
  }
  .os__metric-k {
    font-size: 9px;
  }
  .os__metric-v {
    font-size: 24px;
    line-height: 1;
  }
  .os__metric-d {
    font-size: 11px;
    line-height: 1.4;
  }
  .os__tools {
    gap: 8px;
  }
  .os__tools-label {
    font-size: 9.5px;
  }
  .os__tool {
    padding: 5px 7px;
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .os__spec {
    gap: 10px;
  }
  .os__metric {
    padding: 10px 11px;
  }
  .os__metric-d {
    display: none;
  }
}

@media (max-width: 720px) {
  .os__meta--live,
  .os__cta {
    display: none;
  }

  .os__body {
    overflow-x: hidden;
  }

  .msg {
    width: auto;
    max-width: calc(100% - 18px);
    align-items: flex-start;
    gap: 8px;
  }

  .msg--assistant {
    align-self: flex-start;
    justify-content: flex-start;
    margin-right: auto;
  }

  .msg--user {
    align-self: flex-end;
    justify-content: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
  }

  .msg__avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    font-size: 9px;
    line-height: 1;
    align-self: flex-start;
  }

  .msg__avatar--you {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
    padding: 0;
  }

  .msg__bubble {
    min-width: 0;
    width: auto;
    max-width: min(100%, 280px);
    overflow: visible;
  }

  .msg__text,
  .msg__p,
  .msg__step-d,
  .msg__outcome-text {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .msg__step {
    min-width: 0;
  }

  .msg__step-copy,
  .msg__outcome-copy {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .demo__head-actions,
  .os__jump {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .spec__pick {
    gap: 4px !important;
  }

  .spec__variant {
    min-width: 124px !important;
    flex: 0 0 124px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 7px !important;
    gap: 3px !important;
    border-radius: 7px !important;
    align-items: center !important;
  }

  .spec__variant-body {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 1 1 auto !important;
  }

  .spec__variant-name {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }

  .spec__variant-tag {
    font-size: 5.5px !important;
    line-height: 1 !important;
    padding: 1px 2px !important;
    border-radius: 3px !important;
    letter-spacing: .03em !important;
    flex: 0 0 auto !important;
  }

  .spec__variant-desc,
  .spec__variant-arrow {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .spec__pick {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
    overflow: hidden !important;
  }

  .spec__variant {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 8px !important;
    gap: 0 !important;
    border-radius: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .spec__variant.is-active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  }

  .spec__variant-body {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 0 1 auto !important;
  }

  .spec__variant-name {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }

  .spec__variant-tag {
    font-size: 6px !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    border-radius: 999px !important;
    letter-spacing: .06em !important;
    flex: 0 0 auto !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  .spec__variant-desc,
  .spec__variant-arrow {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .os__spec .spec__pick {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05) !important;
    overflow: hidden !important;
  }

  .os__spec .spec__pick .spec__variant {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1 !important;
  }

  .os__spec .spec__pick .spec__variant.is-active {
    background: rgba(255,255,255,0.09) !important;
    border-color: rgba(255,255,255,0.14) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  }

  .os__spec .spec__pick .spec__variant-body {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 0 1 auto !important;
  }

  .os__spec .spec__pick .spec__variant-name {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .os__spec .spec__pick .spec__variant-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 6px !important;
    line-height: 1 !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    letter-spacing: .06em !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1) !important;
    margin-top: 0 !important;
    width: fit-content !important;
    max-width: 100% !important;
  }

  .os__spec .spec__pick .spec__variant-desc,
  .os__spec .spec__pick .spec__variant-arrow {
    display: none !important;
  }
}
