:root {
  /* Night palette: ink and indigo with lavender, cyan and pink light */
  --ink: #08061a;
  --bg: #0d0b24;
  --bg-2: #15123a;
  --card: rgba(21, 18, 58, 0.72);
  --card-solid: #15123a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f3f1ff;
  --fg-2: #b9b4dc;
  --fg-3: #8781b3;
  --lav: #9d8cff;
  --violet: #6951e0;
  --cyan: #8fd3ff;
  --pink: #f4a6d7;
  --accent: var(--lav);
  --accent-2: var(--violet);
  --accent-ink: #14112e;
  --glow-grad: linear-gradient(95deg, var(--pink), var(--lav) 50%, var(--cyan));
  --green: #7fe0b0;
  --radius: 18px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--fg); }
em { font-style: normal; color: var(--fg); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.muted { color: var(--fg-3); font-weight: 400; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--glow-grad); color: var(--accent-ink); padding: 10px 14px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Background: soft indigo light; the line grid and aurora live in the hero and the final CTA */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; will-change: transform; }
.g1 { width: 720px; height: 520px; left: -220px; top: 40%; background: radial-gradient(closest-side, rgba(105, 81, 224, 0.5), transparent); animation: drift1 22s ease-in-out infinite alternate; }
.g2 { width: 560px; height: 480px; right: -180px; top: 70%; background: radial-gradient(closest-side, rgba(143, 211, 255, 0.22), transparent); animation: drift2 28s ease-in-out infinite alternate; }

/* Aurora: blurred violet / cyan / pink light rising from below */
.aurora {
  position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -160px; height: 520px; pointer-events: none;
  filter: blur(70px); opacity: 0.8;
  background:
    radial-gradient(40% 55% at 22% 60%, rgba(105, 81, 224, 0.85), transparent 70%),
    radial-gradient(35% 50% at 52% 70%, rgba(143, 211, 255, 0.5), transparent 70%),
    radial-gradient(30% 45% at 80% 55%, rgba(244, 166, 215, 0.5), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translateX(4%) translateY(-20px) scale(1.05); } }
.gridded { position: relative; isolation: isolate; overflow: hidden; }
.gridded::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
/* Page background: a faint line grid that slowly drifts, three glows and a light that sweeps across it */
.bg-grid {
  position: absolute; inset: -88px; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, #000 20%, transparent 80%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(88px, 88px, 0); } }
.g3 { width: 520px; height: 420px; left: 45%; top: 10%; background: radial-gradient(closest-side, rgba(244, 166, 215, 0.2), transparent); animation: drift3 34s ease-in-out infinite alternate; }
@keyframes drift3 { to { transform: translate3d(-30vw, 55vh, 0) scale(1.2); } }
.sweep {
  position: absolute; top: -20%; left: -40%; width: 40%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(143, 211, 255, 0.05) 45%, rgba(157, 140, 255, 0.08) 50%, rgba(143, 211, 255, 0.05) 55%, transparent);
  filter: blur(30px); mix-blend-mode: screen; will-change: transform;
  animation: sweep 16s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(0) rotate(8deg); } 60%, 100% { transform: translateX(380%) rotate(8deg); } }
/* Sections with the line grid fading in and out at their edges */
.grid-soft { position: relative; isolation: isolate; }
.grid-soft::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 0, 0, .7) 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 0, 0, .7) 10%, transparent 75%);
}
.grid-soft::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 30%; width: min(900px, 90%); height: 420px;
  transform: translateX(-50%); border-radius: 50%; filter: blur(80px); opacity: .5;
  background: radial-gradient(closest-side, rgba(105, 81, 224, 0.28), transparent);
  animation: breathe 12s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: .95; transform: translateX(-50%) scale(1.12); } }
@keyframes drift1 { to { transform: translate3d(140px, 90px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-260px, -160px, 0) scale(0.9); } }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { --h: 50px; padding: 0 24px; font-size: 16px; }
.btn.primary {
  background: var(--glow-grad);
  color: var(--accent-ink);
  box-shadow: 0 12px 40px -10px rgba(185, 168, 255, 0.8), inset 0 -3px 8px rgba(20, 17, 46, 0.12);
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 46px -10px rgba(185, 168, 255, 0.95), inset 0 -3px 8px rgba(20, 17, 46, 0.12); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--fg); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.btn:active { transform: translateY(0); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 6, 26, 0.7);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8, 6, 26, 0.86); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.links { display: none; gap: 4px; margin-left: 12px; }
.links a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; font-weight: 400; padding: 8px 12px; border-radius: 999px; transition: color 0.15s, background-color 0.15s; }
.links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.star .count { padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-2); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.star span:first-of-type { display: none; }
@media (min-width: 520px) { .star span:first-of-type { display: inline; } }
@media (min-width: 900px) { .links { display: flex; } }

/* Hero */
.hero { padding: 56px 0 32px; text-align: center; background: var(--ink); }
.hero .aurora { bottom: auto; top: 300px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--fg-2); font-size: 13px; font-weight: 500;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.18); animation: blink 2.4s ease-in-out infinite; }
.pill b { font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent-ink); background: linear-gradient(95deg, var(--pink), var(--lav)); padding: 2px 7px; border-radius: 999px; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(143, 211, 255, 0.04); } }
.hero h1 {
  margin: 22px auto 0; max-width: 15ch;
  font-size: clamp(38px, 7vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02;
  color: var(--fg); text-wrap: balance;
}
.hl { background: linear-gradient(95deg, var(--pink) 0%, var(--lav) 50%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px auto 0; max-width: 640px; color: var(--fg-2); font-size: clamp(16.5px, 2.2vw, 19px); line-height: 1.6; }
.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ctas .btn { flex: 1 1 100%; }
@media (min-width: 520px) { .ctas .btn { flex: 0 0 auto; } }
.fine { margin-top: 16px; color: var(--fg-3); font-size: 13.5px; }

.wrap.wide { width: min(1240px, 100% - 24px); }
.frame {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--card-solid); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.hero-shot { margin-top: 56px; border-radius: 18px; }
.hero-shot::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(160deg, rgba(244, 166, 215, 0.7), rgba(157, 140, 255, 0.2) 35%, transparent 60%, rgba(143, 211, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero-shot { box-shadow: 0 0 0 1px rgba(157, 140, 255, 0.14), 0 40px 120px -30px rgba(105, 81, 224, 0.6), 0 30px 80px -20px rgba(0, 0, 0, 0.9); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #110e30; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2760; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--fg-3); font-family: var(--mono); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.proof {
  list-style: none; padding: 0; margin: 28px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  max-width: 980px;
}
.proof li { background: rgba(13, 11, 36, 0.92); padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.proof b { font-size: 15px; }
.proof span { color: var(--fg-3); font-size: 13px; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { padding: 88px 0; }
.eyebrow { color: var(--lav); font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.sub { margin-top: 16px; color: var(--fg-2); font-size: 17.5px; max-width: 620px; }
.head { text-align: center; margin-bottom: 44px; }
.head .sub { margin-inline: auto; }

/* How it works */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps .n, .howto .n {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font: 600 14px/1 var(--mono); color: var(--lav); background: rgba(157, 140, 255, 0.12); border: 1px solid rgba(157, 140, 255, 0.3);
}
.steps b { font-size: 17px; }
.steps p { color: var(--fg-2); margin-top: 3px; font-size: 15.5px; }

.diagram {
  border-radius: 22px; padding: 18px; background:
    radial-gradient(70% 90% at 15% 20%, rgba(105, 81, 224, 0.35), transparent 60%),
    radial-gradient(60% 80% at 85% 85%, rgba(143, 211, 255, 0.18), transparent 60%),
    #1a1546;
  border: 1px solid var(--line);
}
.diagram svg { width: 100%; height: auto; }
.wire { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; }
.wire.hot { stroke: url(#og); stroke-width: 2.2; stroke-dasharray: 6 10; animation: dash 1.4s linear infinite; opacity: 0.85; }
.wire.d2 { animation-delay: -0.5s; }
.wire.d3 { animation-delay: -0.9s; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.node rect:first-child { fill: rgba(8, 6, 26, 0.78); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.2; }
.node.orch rect:first-child { fill: #1d1850; stroke: rgba(157, 140, 255, 0.65); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgba(157, 140, 255, 0.45)); }
.nt { fill: var(--fg); font: 700 15px var(--sans); }
.nr { fill: var(--fg-3); font: 500 11.5px var(--mono); }
.ln { fill: rgba(255, 255, 255, 0.09); }
.st.work { fill: var(--cyan); animation: blink2 1.6s ease-in-out infinite; }
.st.done { fill: var(--green); }
@keyframes blink2 { 50% { opacity: 0.35; } }
.tag { fill: #1d1850; stroke: rgba(157, 140, 255, 0.45); }
.tag.g { stroke: rgba(127, 224, 176, 0.45); fill: #112623; }
.tag-t { fill: var(--fg-2); font: 500 11px var(--mono); text-anchor: middle; }
.cap { fill: var(--fg-3); font: 500 13px var(--sans); text-anchor: middle; }

/* Feature grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.grid .card:hover { border-color: rgba(157, 140, 255, 0.35); transform: translateY(-2px); background: rgba(29, 24, 80, 0.8); }
.ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(157, 140, 255, 0.24), rgba(143, 211, 255, 0.06));
  border: 1px solid rgba(157, 140, 255, 0.3); color: var(--lav);
}
.ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--fg-2); font-size: 15px; line-height: 1.55; }

/* Tour */
.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 auto 18px; width: max-content; max-width: 100%;
  background: rgba(21, 18, 58, 0.8); border: 1px solid var(--line); border-radius: 999px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .swatches button {
  font: 500 14px/1 var(--sans); color: var(--fg-2); background: transparent; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap; transition: color 0.15s, background-color 0.15s;
}
.tabs button:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.tabs button[aria-selected='true'] { color: var(--ink); background: var(--fg); font-weight: 600; }
.tour img { transition: opacity 0.25s ease; }
.tour img.fading { opacity: 0.2; }
.tour figcaption { padding: 14px 18px; color: var(--fg-2); font-size: 14.5px; border-top: 1px solid var(--line); background: #110e30; }

.themes { margin-top: 56px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .themes { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }
.themes h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.themes p { margin-top: 10px; color: var(--fg-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.swatches button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); border-radius: 999px; }
.swatches button i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }
.swatches button[aria-checked='true'] { color: var(--fg); border-color: var(--lav); background: rgba(157, 140, 255, 0.12); }
.theme-shot img { transition: opacity 0.25s ease; }

/* Free & local */
.local {
  display: grid; gap: 36px; padding: 32px 24px; border-radius: 26px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(105, 81, 224, 0.4), transparent 60%),
    radial-gradient(120% 90% at 50% 120%, rgba(143, 211, 255, 0.22), transparent 60%),
    #1b1650;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 900px) { .local { grid-template-columns: 0.9fr 1.1fr; padding: 56px; gap: 56px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 36px; color: var(--fg-2); font-size: 15.5px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(143, 211, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fd3ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid rgba(143, 211, 255, 0.32);
}

/* Install */
.install { display: grid; gap: 14px; }
@media (min-width: 960px) { .install { grid-template-columns: 0.75fr 1.25fr; gap: 16px; } }
.req h3 { font-size: 18px; }
.req ul { margin: 14px 0 0; padding-left: 18px; color: var(--fg-2); display: grid; gap: 10px; font-size: 15px; }
.req a { color: var(--cyan); text-underline-offset: 3px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.howto .card { display: flex; gap: 16px; }
.howto .btn { margin-top: 14px; }
.howto p + p { margin-top: 10px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-row .btn { flex: 1 1 100%; }
@media (min-width: 520px) { .dl-row .btn { flex: 0 0 auto; } }
#install-mac { scroll-margin-top: 120px; }
.source { margin-top: 14px; }
.source-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source h3 { font-size: 18px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font: 500 13.5px/1 var(--sans); color: var(--fg-2); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.copy-btn:hover { color: var(--fg); }
.copy-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy-btn.ok { color: var(--cyan); border-color: rgba(143, 211, 255, 0.45); }
pre {
  margin: 16px 0 0; padding: 18px 20px; border-radius: 12px; overflow-x: auto;
  background: var(--ink); border: 1px solid var(--line);
  font: 400 14px/1.75 var(--mono); color: #e4e0fb;
}
.pr { color: var(--pink); user-select: none; }
.cm { color: var(--fg-3); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(157, 140, 255, 0.35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 500; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--fg-2); font-size: 15.5px; }

/* Final */
.final { padding-top: 40px; }
.final-card {
  text-align: center; padding: 72px 24px 104px; border-radius: 28px;
  background: var(--ink);
  border: 1px solid var(--line);
}
.final-card .aurora { bottom: -300px; height: 460px; opacity: 0.9; }
.final-card h2 { font-size: clamp(32px, 5vw, 56px); }
.final-card img { margin: 0 auto 22px; border-radius: 16px; box-shadow: 0 0 0 10px rgba(157, 140, 255, 0.1), 0 0 60px rgba(157, 140, 255, 0.55); }
.final-card .sub { margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; background: var(--ink); }
.foot-in { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot-brand p { margin-top: 12px; color: var(--fg-3); font-size: 13.5px; max-width: 520px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; padding: 6px 0; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .hero { padding: 84px 0 40px; }
  .section { padding: 112px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse { display: none; }
}
pre code { font: inherit; }

/* Early-access waitlist (final card) */
.waitlist { margin: 40px auto 0; max-width: 560px; text-align: left; border-top: 1px solid var(--line); padding-top: 28px; }
.waitlist-title { color: var(--fg-2); margin: 0 0 14px; line-height: 1.55; }
.tag-new { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); background: linear-gradient(95deg, #f4a6d7, #9d8cff); padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-row input[type=email] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--fg); font: inherit; }
.waitlist-row input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.waitlist-row .btn { flex: 0 0 auto; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--fg-2); }
.waitlist-msg.ok { color: #8fd3ff; }
.waitlist-msg.err { color: #ff9c9c; }
.waitlist-note { margin: 4px 0 0; font-size: 13px; color: var(--fg-3); }
.waitlist-note a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "New" chip on feature cards */
.badge-new { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: linear-gradient(95deg, #f4a6d7, #9d8cff 50%, #8fd3ff); padding: 2px 7px; border-radius: 999px; vertical-align: 3px; }
.card.new { border-color: rgba(157, 140, 255, 0.35); }

/* ---------- Animated hero demo (site/hero-demo.js) ----------
   A small copy of the real app in its Midnight theme: sidebar (Agents / Actions / Progress),
   project frames, console headers, job edges, command bar and the phone page.
   Everything inside the stage is sized in container units (cqw), so it scales as one picture. */
.hero-demo {
  overflow: hidden;
  --x-canvas: #060a14; --x-dots: #1b2740; --x-surface: #0b1120; --x-surface-2: #0f1628; --x-elevated: #121b2e;
  --x-line: #1d2943; --x-line-strong: #2d3d5e; --x-fg: #e6eefa; --x-muted: #9badc8; --x-subtle: #64759a;
  --x-accent: #3cc4ff; --x-term: #080d19; --x-term-fg: #dce6f5;
  --x-working: #3cc4ff; --x-needs: #ffc94d; --x-resting: #3ddc97; --x-idle: #7d8aa6;
  --p-orange: #ff9361; --p-violet: #a993ff;
}
.demo-stage { position: relative; overflow: hidden; text-align: left; container-type: inline-size; aspect-ratio: 16 / 10; display: flex; background: var(--x-canvas); color: var(--x-fg); transition: opacity .5s; font-size: 1cqw; }
.hero-demo.fade .demo-stage { opacity: 0; }

/* Status colors, shared by pills, dots and headers */
[data-s="working"] { --s: var(--x-working); }
[data-s="needs"] { --s: var(--x-needs); }
[data-s="resting"] { --s: var(--x-resting); }
[data-s="idle"], [data-s="starting"] { --s: var(--x-idle); }

/* ----- Sidebar ----- */
.x-side { position: relative; width: 22%; flex: none; display: flex; flex-direction: column; background: var(--x-surface); border-right: 1px solid var(--x-line); }
.x-brand { display: flex; align-items: center; gap: .7cqw; height: 3.6cqw; padding: 0 1.1cqw; border-bottom: 1px solid var(--x-line); font-size: 1cqw; }
.x-logo { display: grid; place-items: center; width: 1.7cqw; height: 1.7cqw; border-radius: .45cqw; background: #1a2440; color: var(--x-accent); font: 700 .7cqw var(--mono); }
.x-chip { margin-left: auto; font-size: .78cqw; color: var(--x-muted); border: 1px solid var(--x-line); border-radius: .5cqw; padding: .15cqw .55cqw; }
.x-tabs { display: flex; gap: 1.1cqw; padding: 0 1.1cqw; height: 3cqw; align-items: stretch; border-bottom: 1px solid var(--x-line); font-size: .86cqw; color: var(--x-subtle); }
.x-tab { display: inline-flex; align-items: center; gap: .4cqw; border-bottom: .15cqw solid transparent; transition: color .3s, border-color .3s; }
.x-tab em { font-style: normal; font-size: .72cqw; }
.x-badge { display: none; place-items: center; width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: var(--x-needs); color: #1b1400; font-weight: 700; }
.hero-demo.needs .x-badge { display: inline-grid; }
.hero-demo[data-tab="agents"] .x-tab[data-t="agents"],
.hero-demo[data-tab="actions"] .x-tab[data-t="actions"],
.hero-demo[data-tab="progress"] .x-tab[data-t="progress"] { color: var(--x-fg); border-bottom-color: var(--x-accent); }
.x-pane { position: absolute; left: 0; right: 0; top: 6.6cqw; bottom: 0; padding: .9cqw .8cqw; opacity: 0; transform: translateX(-1cqw); transition: opacity .35s, transform .35s; pointer-events: none; }
.hero-demo[data-tab="agents"] .x-pane-agents,
.hero-demo[data-tab="actions"] .x-pane-actions,
.hero-demo[data-tab="progress"] .x-pane-progress { opacity: 1; transform: none; }
.x-empty { margin: 1cqw .4cqw; font-size: .82cqw; color: var(--x-subtle); transition: opacity .3s; }
.hero-demo.sent .x-empty { opacity: 0; height: 0; margin: 0; }
.x-group { display: none; margin-bottom: 1cqw; }
.x-group.on { display: block; }
.x-ghead { display: flex; align-items: center; gap: .45cqw; margin: .3cqw .4cqw .5cqw; font-weight: 600; font-size: .72cqw; line-height: 1; letter-spacing: .06em; color: var(--c, var(--x-muted)); white-space: nowrap; }
.x-ghead i { width: .55cqw; height: .55cqw; border-radius: 50%; background: var(--c); }
.x-group[data-g="orch"] .x-ghead { --c: var(--p-violet); }
.x-group[data-g="team"] .x-ghead { --c: var(--p-orange); }
.x-gsum { color: var(--x-subtle); font-weight: 500; letter-spacing: 0; }
.x-needs-tag { display: none; font-size: .66cqw; font-weight: 700; color: #1b1400; background: var(--x-needs); border-radius: 99px; padding: .1cqw .45cqw; letter-spacing: 0; }
.hero-demo.needs .x-needs-tag { display: inline-block; }
.x-row { display: none; align-items: center; gap: .65cqw; padding: .55cqw .6cqw; border-radius: .7cqw; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.x-row.on { display: flex; animation: x-in .4s ease-out; }
@keyframes x-in { from { opacity: 0; transform: translateX(-1cqw); } }
.x-row[data-s="needs"] { background: rgba(255, 201, 77, .08); border-color: rgba(255, 201, 77, .45); }
.x-av { position: relative; display: grid; place-items: center; width: 2cqw; height: 2cqw; flex: none; border-radius: .5cqw; font-size: .8cqw; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--x-surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.x-av::after { content: ''; position: absolute; right: -.25cqw; bottom: -.25cqw; width: .7cqw; height: .7cqw; border-radius: 50%; background: var(--s, var(--x-idle)); box-shadow: 0 0 0 .15cqw var(--x-surface); }
.x-who { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.x-who b { font-size: .9cqw; font-weight: 600; }
.x-who small { font-size: .74cqw; color: var(--x-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-why { display: none; color: var(--x-needs) !important; white-space: normal !important; }
.x-row[data-s="needs"] .x-why { display: block; }
.x-row[data-s="needs"] .x-sub { display: none; }
.x-pill { flex: none; font-size: .7cqw; padding: .12cqw .55cqw; border-radius: 99px; color: var(--s, var(--x-muted)); background: color-mix(in srgb, var(--s, var(--x-idle)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s, var(--x-idle)) 40%, transparent); }
.x-pill::before { content: '● '; font-size: .6cqw; vertical-align: .05cqw; }
.x-time { flex: none; width: 1.9cqw; text-align: right; font-size: .66cqw; color: var(--x-subtle); font-variant-numeric: tabular-nums; }

.x-ptitle { display: grid; margin: .2cqw .4cqw 1cqw; line-height: 1.3; }
.x-ptitle b { font-size: .95cqw; }
.x-ptitle small { font-size: .74cqw; color: var(--x-subtle); }
.x-act { margin: 0 .2cqw; padding: .9cqw; border-radius: .9cqw; border: 1px solid var(--x-line-strong); background: var(--x-surface-2); display: grid; gap: .45cqw; font-size: .8cqw; transition: opacity .4s; }
.x-act-head { display: flex; align-items: center; gap: .55cqw; margin: 0; }
.x-act-head small { margin-left: auto; color: var(--x-subtle); font-size: .68cqw; }
.x-hand { display: grid; place-items: center; width: 1.7cqw; height: 1.7cqw; border-radius: .45cqw; background: rgba(255, 201, 77, .14); font-size: .85cqw; }
.x-act-meta { color: var(--x-subtle); font-size: .7cqw; margin-top: -.2cqw; }
.x-act-q { margin: 0 0 .1cqw; color: var(--x-muted); line-height: 1.45; }
.x-act code { font-family: var(--mono); color: var(--x-fg); }
.x-opt { display: flex; align-items: center; gap: .55cqw; padding: .45cqw .6cqw; border-radius: .55cqw; border: 1px solid var(--x-line-strong); font-size: .76cqw; transition: background .25s, color .25s; }
.x-opt i { font-style: normal; display: grid; place-items: center; width: 1.1cqw; height: 1.1cqw; border-radius: .3cqw; background: rgba(255, 255, 255, .07); font-size: .62cqw; }
.x-opt-yes { background: var(--x-accent); border-color: var(--x-accent); color: #021424; font-weight: 600; }
.x-opt-no { color: #ff7f97; border-color: rgba(255, 92, 122, .4); }
.x-act-done { display: none; margin: .2cqw 0 0; color: var(--x-resting); font-weight: 600; }
.hero-demo.answered .x-act { opacity: .55; }
.hero-demo.answered .x-act-done { display: block; }
.hero-demo.answered .x-opt { display: none; }
.hero-demo.answered .x-inbox-sub { visibility: hidden; }

.x-prog { margin: 0 .4cqw 1cqw; font-size: .8cqw; }
.x-prog p { display: flex; justify-content: space-between; margin: 0 0 .35cqw; }
.x-pn { color: var(--x-subtle); font-variant-numeric: tabular-nums; }
.x-prog i { display: block; height: .45cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.x-prog u { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: linear-gradient(90deg, #2f7bff, #3ce0ff); transition: width .8s cubic-bezier(.3, .8, .3, 1); }
.x-prog-all { margin-top: 1.4cqw; padding-top: 1cqw; border-top: 1px solid var(--x-line); }
.x-prog-all u { background: linear-gradient(90deg, #3ddc97, #3ce0ff); }

/* ----- Board ----- */
.x-board { position: relative; flex: 1; background-color: var(--x-canvas); background-image: radial-gradient(var(--x-dots) 1px, transparent 1.2px); background-size: 1.6cqw 1.6cqw; }
.x-top { position: absolute; left: 1.2%; right: 1.2%; top: 1.2%; display: flex; align-items: center; gap: .6cqw; z-index: 4; font-size: .82cqw; }
.x-zoom, .x-ws-add { display: grid; place-items: center; width: 2.1cqw; height: 2.1cqw; border-radius: .55cqw; background: var(--x-surface); border: 1px solid var(--x-line); color: var(--x-muted); }
.x-ws { display: inline-flex; align-items: center; gap: .45cqw; height: 2.1cqw; padding: 0 .8cqw; border-radius: .55cqw; background: var(--x-elevated); border: 1px solid var(--x-line-strong); font-weight: 600; }
.x-ws-badge { display: none; font-style: normal; place-items: center; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--x-needs); color: #1b1400; font-size: .62cqw; }
.hero-demo.needs .x-ws-badge { display: inline-grid; }
.x-spacer { flex: 1; }
.x-btn { height: 2.1cqw; display: inline-flex; align-items: center; padding: 0 .8cqw; border-radius: .55cqw; background: var(--x-surface); border: 1px solid var(--x-line); color: var(--x-muted); }
.x-btn-primary { background: var(--x-accent); border-color: var(--x-accent); color: #021424; font-weight: 600; }

/* Project frames */
.x-frame { position: absolute; border-radius: 1cqw; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 5%, transparent); box-shadow: 0 0 2.4cqw -0.6cqw color-mix(in srgb, var(--c) 45%, transparent); opacity: 0; transform: scale(.97); transition: opacity .5s, transform .5s; }
.x-frame.on { opacity: 1; transform: none; }
.x-frame-orch { left: 27%; top: 7.5%; width: 46%; height: 31%; }
.x-frame-team { left: 2%; top: 45.5%; width: 96%; height: 33.8%; }
.x-ftitle { position: absolute; left: 1cqw; top: .6cqw; margin: 0; display: flex; align-items: center; gap: .5cqw; font-weight: 600; font-size: .72cqw; line-height: 1; letter-spacing: .07em; color: var(--c); white-space: nowrap; }
.x-ftitle i { width: .55cqw; height: .55cqw; border-radius: 50%; background: var(--c); }
.x-fsum { color: var(--x-subtle); font-weight: 500; letter-spacing: 0; }
.x-fneeds { display: none; font-size: .64cqw; font-weight: 700; letter-spacing: 0; color: #1b1400; background: var(--x-needs); border-radius: 99px; padding: .1cqw .45cqw; }
.hero-demo.needs .x-fneeds { display: inline-block; }

/* Job edges (like FlowEdge): glowing blue line, sparks out, green sparks back with the report */
.x-edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.x-edge { opacity: 0; transition: opacity .5s; }
.hero-demo.jobs .x-edge { opacity: 1; }
.x-halo { fill: none; stroke: #3cc4ff; stroke-width: 9; opacity: .28; filter: url(#xglow); }
.x-line { fill: none; stroke: url(#xflow); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.hero-demo.jobs .x-line { animation: x-draw 1s ease-out forwards; }
.hero-demo.jobs .x-edge[data-w="cy"] .x-line { animation-delay: .25s; }
.hero-demo.jobs .x-edge[data-w="dax"] .x-line { animation-delay: .5s; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
.x-spark { fill: #f0fbff; filter: drop-shadow(0 0 6px #7fd8ff); opacity: 0; }
.hero-demo.jobs:not(.reports) .x-spark:not(.x-back) { opacity: 1; }
.x-back { fill: #c9f7e2; filter: drop-shadow(0 0 6px #3ddc97); }
.hero-demo.reports .x-back { opacity: 1; }
.hero-demo.calm .x-spark { opacity: 0 !important; }
.hero-demo.calm .x-line { opacity: .55; }
.x-label { position: absolute; z-index: 3; transform: translate(-50%, -50%) scale(.6); display: inline-flex; align-items: center; gap: .45cqw; padding: .3cqw .75cqw; border-radius: 99px; background: #0b1528; border: 1px solid rgba(60, 196, 255, .45); box-shadow: 0 0 1.4cqw -.2cqw rgba(60, 196, 255, .6); font-size: .74cqw; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .3, 1.3), border-color .4s; }
.x-label i { width: .5cqw; height: .5cqw; border-radius: 50%; background: var(--x-accent); box-shadow: 0 0 .6cqw var(--x-accent); }
.x-label[data-w="bex"] { left: 34.7%; top: 46%; }
.x-label[data-w="cy"] { left: 50%; top: 47.5%; }
.x-label[data-w="dax"] { left: 65.3%; top: 46%; }
.hero-demo.jobs .x-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-demo.jobs .x-label[data-w="cy"] { transition-delay: .3s; }
.hero-demo.jobs .x-label[data-w="dax"] { transition-delay: .6s; }
.hero-demo.reports .x-label { border-color: rgba(61, 220, 151, .5); }
.hero-demo.reports .x-label i { background: var(--x-resting); box-shadow: 0 0 .6cqw var(--x-resting); }

/* Consoles (like TerminalNode) */
.x-node { position: absolute; z-index: 2; display: flex; flex-direction: column; overflow: hidden; border-radius: .8cqw; background: var(--x-term); border: 1px solid var(--x-line-strong); box-shadow: 0 1.6cqw 3cqw -1.6cqw #000; opacity: 0; transform: translateY(1.5cqw) scale(.96); transition: opacity .45s, transform .45s cubic-bezier(.2, .9, .3, 1.2), border-color .35s, box-shadow .35s; }
.x-node.on { opacity: 1; transform: none; }
.x-node[data-a="ada"] { left: 29%; top: 12.4%; width: 42%; height: 24.2%; }
.x-node[data-a="bex"] { left: 4.5%; top: 55.6%; width: 30%; height: 21.8%; }
.x-node[data-a="cy"] { left: 35%; top: 55.6%; width: 30%; height: 21.8%; }
.x-node[data-a="dax"] { left: 65.5%; top: 55.6%; width: 30%; height: 21.8%; }
.x-node[data-s="working"] { border-color: rgba(60, 196, 255, .55); box-shadow: 0 0 2cqw -.6cqw rgba(60, 196, 255, .45), 0 1.6cqw 3cqw -1.6cqw #000; }
.x-node[data-s="needs"] { border-color: var(--x-needs); box-shadow: 0 0 0 .25cqw rgba(255, 201, 77, .2), 0 0 3cqw rgba(255, 201, 77, .25); }
.x-node[data-s="resting"] { border-color: rgba(61, 220, 151, .45); }
.x-node header { display: flex; align-items: center; gap: .5cqw; height: 2.15cqw; flex: none; padding: 0 .6cqw; border-bottom: 1px solid var(--x-line); background: var(--x-surface-2); font-size: .74cqw; white-space: nowrap; overflow: hidden; transition: background .35s; }
.x-node[data-s="working"] header { background: linear-gradient(90deg, color-mix(in srgb, var(--x-working) 12%, var(--x-surface-2)), var(--x-surface-2) 55%); }
.x-node[data-s="needs"] header { background: rgba(255, 201, 77, .1); }
.x-node header b { font-size: .84cqw; }
.x-node header > * { flex: none; }
.x-node header .x-model, .x-node header .x-cwd { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.x-nav { display: grid; place-items: center; width: 1.35cqw; height: 1.35cqw; flex: none; border-radius: .35cqw; font-size: .66cqw; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.x-agent { display: inline-flex; align-items: center; gap: .3cqw; padding: .1cqw .4cqw; border-radius: .3cqw; background: var(--x-surface); box-shadow: inset 0 0 0 1px var(--x-line); font-size: .6cqw; font-weight: 600; letter-spacing: .06em; }
.x-agent i { font-style: normal; color: var(--x-accent); }
.x-ic-claude { color: #ff9361 !important; }
.x-ic-codex { font-family: var(--mono); font-size: .55cqw; }
.x-role { padding: .1cqw .4cqw; border-radius: .3cqw; font-size: .6cqw; font-weight: 600; letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.x-model { font-family: var(--mono); font-size: .66cqw; color: var(--x-muted); }
.x-cwd { font-family: var(--mono); font-size: .66cqw; color: var(--x-subtle); }
.x-status { position: relative; overflow: hidden; margin-left: auto; display: inline-flex; align-items: center; gap: .4cqw; height: 1.3cqw; padding: 0 .55cqw; border-radius: 99px; font-size: .6cqw; font-weight: 700; letter-spacing: .06em; color: var(--s, var(--x-muted)); background: color-mix(in srgb, var(--s, var(--x-idle)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s, var(--x-idle)) 45%, transparent); }
.x-sec { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.x-node[data-s="working"] .x-status::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); animation: x-shimmer 1.6s linear infinite; transform: translateX(-100%); }
@keyframes x-shimmer { to { transform: translateX(100%); } }
.x-term { flex: 1; margin: 0; padding: .65cqw .8cqw; overflow: hidden; font: .78cqw/1.5 var(--mono); color: var(--x-term-fg); white-space: pre-wrap; }
.x-term .d { color: #64759a; }
.x-term .o { color: #ff9361; }
.x-term .c { color: #3cc4ff; }
.x-term .g { color: #3ddc97; }
.x-term .y { color: #ffc94d; }
.x-term .box { color: #b1b9f9; }
.x-term .sel { color: #b1b9f9; font-weight: 700; }

/* Command bar (like CommandBar) */
.x-cmd { position: absolute; z-index: 4; left: 16%; right: 16%; bottom: 2.4%; display: grid; gap: .6cqw; justify-items: center; }
.x-chips { display: flex; gap: .45cqw; font-size: .72cqw; color: var(--x-muted); }
.x-chips span { padding: .3cqw .7cqw; border-radius: 99px; background: var(--x-surface); border: 1px solid var(--x-line-strong); }
.x-input { width: 100%; display: flex; align-items: center; gap: .7cqw; height: 3.1cqw; padding: 0 .45cqw 0 .45cqw; border-radius: 1cqw; background: var(--x-surface); border: 1px solid var(--x-line-strong); box-shadow: 0 1cqw 2.5cqw -1cqw #000; font-size: .82cqw; }
.x-target { display: inline-flex; align-items: center; gap: .4cqw; height: 2.2cqw; padding: 0 .7cqw; border-radius: .65cqw; background: var(--x-elevated); font-weight: 600; }
.x-target i { width: .55cqw; height: .55cqw; border-radius: 50%; background: var(--x-resting); }
.x-typed { color: var(--x-fg); white-space: nowrap; }
.x-typed:empty { display: none; }
.x-typed::after { content: ''; display: inline-block; width: .12cqw; height: 1.05cqw; margin-left: .15cqw; vertical-align: -.18cqw; background: var(--x-accent); animation: x-caret 1s steps(1) infinite; }
@keyframes x-caret { 50% { opacity: 0; } }
.x-ph { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--x-subtle); }
.x-typed:not(:empty) + .x-ph { display: none; }
.x-send { margin-left: auto; display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: .65cqw; background: var(--x-accent); color: #021424; font-size: .8cqw; }
.hero-demo.sending .x-send { animation: x-press .35s ease-out; }
@keyframes x-press { 50% { transform: scale(.85); } }

/* Phone (like the phone page in src/web/phone) */
.x-phone { position: absolute; z-index: 6; right: 2%; bottom: -60%; width: 20%; aspect-ratio: 9 / 18; padding: .55cqw; border-radius: 2.4cqw; background: #03050c; box-shadow: 0 0 0 .14cqw #26324f, 0 3cqw 6cqw -2cqw #000, 0 0 5cqw -1cqw rgba(60, 196, 255, .35); transition: bottom .7s cubic-bezier(.2, .9, .3, 1.1); }
.hero-demo.phone .x-phone { bottom: 3%; }
.x-ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 1.9cqw; background: var(--x-canvas); font-size: .74cqw; }
.x-ph-head { display: flex; align-items: center; gap: .5cqw; margin: 0; padding: 1.7cqw .8cqw .6cqw; background: var(--x-surface); border-bottom: 1px solid var(--x-line); }
.x-ph-back { color: var(--x-muted); }
.x-ph-head b { flex: 1; font-size: .9cqw; }
.x-ph-dot { width: .5cqw; height: .5cqw; border-radius: 50%; background: var(--x-resting); }
.x-ph-btn { padding: .2cqw .45cqw; border-radius: .45cqw; border: 1px solid var(--x-line-strong); font-size: .6cqw; }
.x-ph-status { display: flex; align-items: center; gap: .5cqw; margin: 0; padding: .45cqw .8cqw; border-bottom: 1px solid var(--x-line); color: var(--x-muted); font-size: .66cqw; }
.x-ph-pill { padding: .05cqw .45cqw; border-radius: 99px; color: var(--x-needs); background: rgba(255, 201, 77, .15); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .45); }
.hero-demo.answered .x-ph-pill { color: var(--x-working); background: rgba(60, 196, 255, .14); box-shadow: inset 0 0 0 1px rgba(60, 196, 255, .45); }
.x-ph-term { margin: 0; padding: .6cqw .8cqw; font: .62cqw/1.55 var(--mono); color: var(--x-term-fg); }
.x-ph-card { margin: 0 .6cqw; padding: .7cqw; border-radius: .9cqw; border: 1px solid rgba(255, 201, 77, .45); background: rgba(255, 201, 77, .09); display: grid; gap: .35cqw; }
.x-ph-card b { font-size: .74cqw; }
.x-ph-card span { color: var(--x-muted); font-size: .66cqw; }
.x-ph-card code { font-family: var(--mono); color: var(--x-fg); }
.x-ph-opts { display: flex; gap: .3cqw; margin-top: .2cqw; }
.x-ph-opts i { flex: 1; text-align: center; font-style: normal; font-size: .62cqw; padding: .4cqw 0; border-radius: .45cqw; background: var(--x-surface); box-shadow: inset 0 0 0 1px var(--x-line-strong); transition: background .2s, color .2s, transform .15s; }
.hero-demo.tapped .x-ph-yes { background: var(--x-accent); color: #021424; font-weight: 700; transform: scale(.93); }
.x-tap { position: absolute; left: 22%; top: 76%; width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; border-radius: 50%; background: rgba(255, 255, 255, .45); opacity: 0; pointer-events: none; }
.hero-demo.tapped .x-tap { animation: x-tap .6s ease-out; }
@keyframes x-tap { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.7); } }

/* Step captions */
.demo-steps { list-style: none; margin: 0; padding: 1.1rem 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; border-top: 1px solid var(--line); background: #0b0920; }
.demo-steps button { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-3); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.demo-steps button b { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .75rem; background: rgba(255, 255, 255, .06); color: var(--fg-2); }
.demo-steps button[aria-selected="true"] { color: var(--fg); border-color: rgba(157, 140, 255, .55); background: rgba(157, 140, 255, .12); }
.demo-steps button[aria-selected="true"] b { background: linear-gradient(95deg, #f4a6d7, #9d8cff 50%, #8fd3ff); color: #14112e; }
.demo-steps button:hover { color: var(--fg); }

/* Phones: no sidebar or edges; bigger type, consoles stacked */
@media (max-width: 640px) {
  .demo-stage { aspect-ratio: 9 / 14; font-size: 2.4cqw; }
  .x-side { display: none; }
  .x-top { font-size: 2.2cqw; gap: 1.4cqw; }
  .x-zoom, .x-ws-add, .x-btn:not(.x-btn-primary) { display: none; }
  .x-ws, .x-btn-primary { height: 5.4cqw; padding: 0 2cqw; border-radius: 1.4cqw; }
  .x-ws-badge { width: 2.6cqw; height: 2.6cqw; font-size: 1.6cqw; }
  .x-edges, .x-label { display: none; }
  .x-frame-orch { left: 3%; top: 8%; width: 94%; height: 24%; }
  .x-frame-team { left: 3%; top: 34%; width: 94%; height: 49%; }
  .x-ftitle { font-size: 1.8cqw; left: 2.4cqw; top: 1.4cqw; gap: 1cqw; }
  .x-ftitle i { width: 1.3cqw; height: 1.3cqw; }
  .x-fsum { display: none; }
  .x-fneeds { font-size: 1.6cqw; padding: .2cqw 1cqw; }
  .x-node[data-a="ada"] { left: 6%; top: 12.4%; width: 88%; height: 18%; }
  .x-node[data-a="bex"] { left: 6%; top: 38.4%; width: 88%; height: 13.2%; }
  .x-node[data-a="cy"] { left: 6%; top: 53.2%; width: 88%; height: 13.2%; }
  .x-node[data-a="dax"] { left: 6%; top: 68%; width: 88%; height: 13.2%; }
  .x-node { border-radius: 2cqw; }
  .x-node header { height: 5.6cqw; gap: 1.2cqw; padding: 0 1.6cqw; font-size: 2cqw; }
  .x-node header b { font-size: 2.3cqw; }
  .x-nav { width: 3.4cqw; height: 3.4cqw; font-size: 1.7cqw; border-radius: .9cqw; }
  .x-agent { font-size: 1.5cqw; padding: .3cqw 1cqw; border-radius: .8cqw; gap: .7cqw; }
  .x-ic-codex { font-size: 1.4cqw; }
  .x-role, .x-model, .x-cwd { display: none; }
  .x-status { height: 3.4cqw; padding: 0 1.4cqw; font-size: 1.5cqw; gap: 1cqw; }
  .x-term { font-size: 2cqw; padding: 1.4cqw 2cqw; }
  .x-cmd { left: 3%; right: 3%; bottom: 2%; }
  .x-chips { display: none; }
  .x-input { height: 8cqw; font-size: 2.2cqw; border-radius: 2.4cqw; padding: 0 1.2cqw; gap: 1.6cqw; }
  .x-target { height: 5.6cqw; padding: 0 1.8cqw; border-radius: 1.6cqw; gap: 1cqw; }
  .x-target i { width: 1.4cqw; height: 1.4cqw; }
  .x-typed::after { width: .3cqw; height: 2.6cqw; }
  .x-send { width: 5.6cqw; height: 5.6cqw; border-radius: 1.6cqw; font-size: 2cqw; }
  .x-phone { width: 44%; right: 4%; padding: 1.2cqw; border-radius: 5.4cqw; }
  .hero-demo.phone .x-phone { bottom: 12%; }
  .x-ph-screen { border-radius: 4.4cqw; font-size: 1.7cqw; }
  .x-ph-head { padding: 4cqw 1.8cqw 1.4cqw; gap: 1.1cqw; }
  .x-ph-head b { font-size: 2.1cqw; }
  .x-ph-dot { width: 1.2cqw; height: 1.2cqw; }
  .x-ph-btn { font-size: 1.4cqw; padding: .4cqw 1cqw; border-radius: 1cqw; }
  .x-ph-status { font-size: 1.5cqw; padding: 1cqw 1.8cqw; gap: 1cqw; }
  .x-ph-term { font-size: 1.45cqw; padding: 1.4cqw 1.8cqw; }
  .x-ph-card { margin: 0 1.4cqw; padding: 1.6cqw; border-radius: 2cqw; gap: .8cqw; }
  .x-ph-card b { font-size: 1.7cqw; }
  .x-ph-card span { font-size: 1.5cqw; }
  .x-ph-opts { gap: .7cqw; }
  .x-ph-opts i { font-size: 1.4cqw; padding: .9cqw 0; border-radius: 1cqw; }
  .x-tap { width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; }
  .demo-steps { justify-content: flex-start; }
  .demo-steps button { font-size: .8rem; padding: .35rem .7rem; }
}
