/* LoCrew landing — modern dark product style.
   Colours from the app's own Midnight Aurora palette: deep navy, teal primary, lavender for AI. */

:root {
  --bg: #07090f;
  --bg-2: #0b0f18;
  --panel: #0f1420;
  --panel-2: #131a29;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #e8edf5;
  --text-2: #a6b1c2;
  --text-3: #6f7c90;
  --teal: #35d6c1;
  --teal-2: #5fe3d1;
  --teal-ink: #04201c;
  --lav: #a78bfa;
  --amber: #f59e0b;
  --green: #22c55e;
  --radius: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* app interface (light chat surface, as in the product) */
  --ui-shell: #111827;
  --ui-shell-2: #182235;
  --ui-canvas: #f8fafc;
  --ui-surface: #ffffff;
  --ui-subtle: #f1f5f9;
  --ui-line: #e5eaf0;
  --ui-line-2: #d3dae4;
  --ui-text: #202b3c;
  --ui-text-2: #5b6779;
  --ui-teal-ink: #0b7c6f;
  --av-res: #f59e0b;
  --av-dev: #35d6c1;
  --av-rev: #a78bfa;
  --av-you: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-feature-settings: 'cv11', 'ss01';
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 0.88em; }
::selection { background: rgba(53, 214, 193, 0.35); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-3); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- buttons, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 500; font-size: 15px;
  transition: transform 120ms var(--ease), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn--primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 1px rgba(95, 227, 209, 0.5) inset, 0 8px 30px -8px rgba(53, 214, 193, 0.55); }
.btn--primary:hover { background: var(--teal-2); box-shadow: 0 0 0 1px rgba(95, 227, 209, 0.6) inset, 0 10px 40px -8px rgba(53, 214, 193, 0.75); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 163, 184, 0.4); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; font-style: normal;
  background: rgba(148, 163, 184, 0.12); color: var(--text-2); border: 1px solid var(--line);
}
.tag--ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(34, 197, 94, 0.25); }
.tag--dev { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.28); }
.tag--soon { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); }
.tag--concept { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 200ms ease, border-color 200ms ease; }
.nav.is-scrolled { background: rgba(7, 9, 15, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand__mark { flex: none; display: block; }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); margin-right: auto; }
.nav__links a { transition: color 150ms ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; }
@media (max-width: 920px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }
@media (max-width: 480px) { .nav__gh { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.hero__glow {
  position: absolute; inset: -64px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 50% 8%, rgba(53, 214, 193, 0.22), transparent 70%),
    radial-gradient(520px 320px at 78% 40%, rgba(167, 139, 250, 0.16), transparent 70%),
    radial-gradient(520px 320px at 20% 45%, rgba(245, 158, 11, 0.08), transparent 70%);
}
.hero__glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero__copy { text-align: center; display: grid; justify-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  transition: border-color 160ms ease, color 160ms ease;
}
.pill:hover { color: var(--text); border-color: rgba(53, 214, 193, 0.5); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(53, 214, 193, 0.18); }
.hero__title {
  margin-top: 28px; max-width: 15.5em;
  font-size: clamp(38px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  background: linear-gradient(180deg, #ffffff 30%, #9fb0c6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.hero__sub { margin-top: 24px; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.tagline { margin: 72px auto 0; text-align: center; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.02em; color: var(--text-2); }
.tagline span:nth-child(1) { color: var(--text); }
.tagline span:nth-child(3) { color: var(--teal); }

/* ---------- the app window ---------- */
.window {
  position: relative; margin-top: 64px; border-radius: 16px; overflow: hidden;
  background: var(--ui-shell); border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -30px rgba(53, 214, 193, 0.35), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.window::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); z-index: 2; }
.window__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #0c1220; border-bottom: 1px solid rgba(148, 163, 184, 0.12); font-size: 12.5px; color: var(--text-3); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a3448; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.window__title { flex: 1; text-align: center; color: var(--text-2); }
.window__hint { color: var(--teal); font-weight: 500; }
.window__body { display: grid; grid-template-columns: 216px 1fr 300px; height: 560px; }

.side { background: var(--ui-shell); padding: 14px 10px; color: #cbd5e1; font-size: 13.5px; overflow: hidden; }
.side__ws { display: flex; align-items: center; gap: 9px; font-weight: 600; color: #fff; padding: 4px 8px 12px; font-size: 14.5px; }
.side__logo { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--teal); color: var(--teal-ink); font-size: 12px; }
.side__label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7d8aa0; padding: 12px 8px 5px; }
.side__label .tag { height: 18px; font-size: 10.5px; padding: 0 6px; }
.side__list li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; position: relative; }
.side__list li.is-active { background: #1d2a3d; color: #fff; }
.side__list--muted li { color: #7d8aa0; }
.hash { width: 14px; color: #7d8aa0; text-align: center; }
.side .av { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.presence { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--ui-shell); transition: background-color 200ms ease; }
.presence[data-state="thinking"] { background: var(--lav); }
.presence[data-state="working"] { background: var(--teal); animation: pulse 1.2s ease-in-out infinite; }
.presence--busy { background: var(--teal); }
@keyframes pulse { 50% { opacity: 0.4; } }

.av { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #111827; }
.av--res { background: var(--av-res); } .av--dev { background: var(--av-dev); } .av--rev { background: var(--av-rev); } .av--you { background: var(--av-you); }

.chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; background: var(--ui-canvas); color: var(--ui-text); }
.chat__head { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 18px; background: var(--ui-surface); border-bottom: 1px solid var(--ui-line); font-size: 14.5px; }
.chat__topic { margin-left: 10px; font-size: 12.5px; color: var(--ui-text-2); }
.stack { display: flex; }
.stack .av { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; box-shadow: 0 0 0 2px #fff; margin-left: -4px; }

.msgs { overflow-y: auto; padding: 14px 10px 6px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; font-size: 14px; line-height: 21px; }
.msg { display: flex; gap: 11px; padding: 8px 10px; border-radius: 10px; transition: background-color 150ms ease; }
.msg:hover { background: rgba(255, 255, 255, 0.9); }
.msg__body { min-width: 0; flex: 1; }
.msg__meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ui-text-2); }
.msg__meta b { font-size: 14px; color: var(--ui-text); font-weight: 600; }
.rt { font-size: 11px; font-weight: 500; color: #6d4fd8; background: #f1edff; padding: 0 6px; border-radius: 5px; line-height: 18px; }
.rt--beta { color: #0b6157; background: #dff7f3; }
.rt--local { color: #9a3412; background: #fff1e6; }
.mention { color: var(--ui-teal-ink); background: rgba(53, 214, 193, 0.16); border-radius: 5px; padding: 0 4px; font-weight: 500; }
.reacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; background: #fff; border: 1px solid var(--ui-line); color: #475569; animation: pop 260ms var(--ease); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.toolcall { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--ui-line-2); font-size: 12.5px; color: var(--ui-text-2); }
.toolcall code { color: #6d4fd8; font-size: 12px; }
.toolcall b { color: var(--ui-text); }
.toolcall__icon { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #f1edff; color: #6d4fd8; font-size: 12px; }
.toolcall__meta { margin-left: auto; color: #8a96a8; }
.toolcall--stop { background: #fff8ed; border-color: #f6d7a7; color: #9a5b0b; }
.sysmsg { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; margin: 2px 0; border-radius: 10px; background: #eef6ff; color: #36506f; font-size: 13px; }
.sysmsg__i { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 12px; }
.msg--new { animation: rise 340ms var(--ease); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.diff { margin-top: 8px; border: 1px solid var(--ui-line-2); border-radius: 10px; background: #fff; overflow: hidden; font-size: 12.5px; }
.diff__head { display: flex; justify-content: space-between; padding: 7px 11px; background: var(--ui-subtle); color: var(--ui-text); }
.diff__head span { color: var(--ui-text-2); }
.diff pre { margin: 0; padding: 7px 11px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 18px; white-space: pre-wrap; color: var(--ui-text); }
.diff .add { color: #15803d; } .diff .del { color: #b91c1c; }
.diff__btns { display: flex; gap: 6px; padding: 4px 11px 9px; align-items: center; color: var(--ui-text-2); }
.diff__btns button { height: 26px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--ui-line-2); background: #fff; font-size: 12.5px; }
.diff__btns button.ok { background: var(--ui-teal-ink); border-color: var(--ui-teal-ink); color: #fff; }

.composer { padding: 8px 14px 10px; }
.composer__box { position: relative; display: flex; align-items: center; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ui-line-2); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); transition: border-color 150ms ease, box-shadow 150ms ease; }
.composer__box:focus-within { border-color: var(--ui-teal-ink); box-shadow: 0 0 0 4px rgba(53, 214, 193, 0.18); }
.composer input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14px; color: var(--ui-text); }
.composer__send { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--ui-teal-ink); color: #fff; font-size: 15px; transition: transform 120ms var(--ease); }
.composer__send:active { transform: scale(0.92); }
.suggest { position: absolute; left: 8px; bottom: 52px; min-width: 240px; z-index: 5; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid var(--ui-line); box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.3); }
.suggest li { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 9px; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: var(--ui-text); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--ui-subtle); }
.suggest .av { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.status { display: flex; align-items: center; gap: 7px; height: 22px; margin-top: 6px; padding: 0 4px; font-size: 12px; color: var(--ui-text-2); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; transition: background-color 200ms ease; }
.status.is-busy .status__dot { background: var(--ui-teal-ink); animation: pulse 1s ease-in-out infinite; }

.flowpane { background: #0c1220; border-left: 1px solid rgba(148, 163, 184, 0.12); padding: 14px; display: flex; flex-direction: column; color: #e2e8f0; overflow: hidden; }
.flowpane__head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.flowgraph { display: flex; flex-direction: column; align-items: stretch; }
.fnode { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #131c2e; border: 1px solid #25324a; font-size: 13px; color: #cbd5e1; }
.fnode b { display: block; font-size: 13.5px; color: #fff; font-weight: 600; }
.fnode small { display: block; color: #7d8aa0; font-size: 11.5px; }
.fnode .av { width: 28px; height: 28px; }
.fnode__icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(53, 214, 193, 0.14); color: var(--teal); font-size: 11px; }
.fnode--gate { border-style: dashed; border-color: rgba(245, 158, 11, 0.6); }
.fnode--gate .fnode__icon { background: rgba(245, 158, 11, 0.14); }
.fnode.is-live { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(53, 214, 193, 0.15); }
.fedge { position: relative; height: 18px; margin-left: 25px; width: 2px; background: #25324a; overflow: hidden; }
.fedge i { position: absolute; left: 0; top: -10px; width: 2px; height: 10px; background: var(--teal); animation: drip 1.6s linear infinite; }
@keyframes drip { to { transform: translateY(30px); } }
.flowpane__note { margin-top: auto; font-size: 12px; color: #7d8aa0; line-height: 1.5; }

@media (max-width: 1080px) {
  .window__body { grid-template-columns: 200px 1fr; }
  .flowpane { display: none; }
}
@media (max-width: 720px) {
  .window__body { grid-template-columns: 1fr; height: 540px; }
  .side { display: none; }
  .window__hint { display: none; }
  .chat__topic { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; display: grid; justify-items: center; gap: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--teal); }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.head__sub, .lede { font-size: 18px; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.lede code, .rcard code { color: var(--teal); background: rgba(53, 214, 193, 0.1); padding: 1px 6px; border-radius: 6px; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.fineprint { margin-top: 24px; font-size: 13px; color: var(--text-3); max-width: 720px; line-height: 1.55; }

/* cards */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line);
  transition: border-color 200ms ease, transform 200ms var(--ease);
  overflow: hidden;
}
.card:hover { border-color: rgba(53, 214, 193, 0.35); transform: translateY(-2px); }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.card__art { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.card__art--top { margin-bottom: 10px; min-height: 150px; display: grid; place-items: center; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; padding: 32px; }
.card--wide h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card--wide .card__text p { font-size: 16px; }
.bento .card:nth-child(n + 2) { grid-column: span 1; }
.bento .card:nth-child(5) { grid-column: span 1; }
@media (min-width: 981px) { .bento { grid-template-columns: repeat(4, 1fr); } .card--wide { grid-column: span 4; } }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .card--wide { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card--wide { grid-column: span 1; padding: 24px; } }

.mini-chat { display: grid; gap: 10px; }
.mc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: var(--text); opacity: 0; transform: translateX(-8px); transition: opacity 400ms ease, transform 400ms var(--ease); }
.mc .mention { color: var(--teal); background: rgba(53, 214, 193, 0.12); }
.is-in .mc, .no-js .mc { opacity: 1; transform: none; }
.mc:nth-child(2) { transition-delay: 300ms; } .mc:nth-child(3) { transition-delay: 600ms; } .mc:nth-child(4) { transition-delay: 900ms; }

.dm { width: 100%; display: grid; gap: 6px; }
.dm__row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; font-size: 14px; }
.dm__row:first-child { background: var(--panel-2); }
.dm__row b { font-weight: 500; }
.dm .presence { box-shadow: 0 0 0 2px var(--panel); }

.mention-demo { width: 100%; position: relative; }
.md-input { height: 40px; display: flex; align-items: center; gap: 2px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid rgba(53, 214, 193, 0.45); font-size: 14px; }
.md-input .mention { color: var(--teal); background: rgba(53, 214, 193, 0.12); }
.caret { width: 1.5px; height: 18px; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.md-pop { margin-top: 8px; padding: 5px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); font-size: 13.5px; }
.md-pop div { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: 7px; color: var(--text-2); }
.md-pop .is-sel { background: rgba(53, 214, 193, 0.12); color: var(--text); }
.md-pop .av { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }

.reactions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.reactions .react { background: var(--panel-2); border-color: var(--line); color: var(--text-3); height: 30px; font-size: 13px; animation: none; transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease); }
.reactions .react.is-on { color: var(--text); border-color: rgba(53, 214, 193, 0.6); background: rgba(53, 214, 193, 0.12); transform: scale(1.06); }

.transcript { width: 100%; display: grid; gap: 0; position: relative; padding-left: 4px; }
.transcript div { position: relative; display: flex; align-items: center; gap: 12px; height: 32px; font-size: 13.5px; color: var(--text-2); }
.transcript div:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 22px; height: 20px; width: 2px; background: var(--line-2); }
.t { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.t--you { background: #cbd5e1; } .t--res { background: var(--av-res); } .t--dev { background: var(--av-dev); } .t--rev { background: var(--av-rev); }

/* ---------- split (hand-offs, local) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--rev { grid-template-columns: 1.05fr 1fr; }
.split__text { display: grid; gap: 20px; }
.split__text h2 { text-align: left; }
.split__text .kicker { justify-self: start; }
.checks { display: grid; gap: 14px; margin: 4px 0; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--teal); background: rgba(53, 214, 193, 0.12); border: 1px solid rgba(53, 214, 193, 0.3); }
@media (max-width: 980px) { .split, .split--rev { grid-template-columns: 1fr; gap: 48px; } }

.demo {
  display: grid; grid-template-columns: 1fr 268px; border-radius: 18px; overflow: hidden; height: 560px;
  border: 1px solid var(--line-2); background: var(--ui-canvas);
  box-shadow: 0 30px 90px -30px rgba(167, 139, 250, 0.35), 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}
.demo__chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; color: var(--ui-text); }
.demo__head { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--ui-line); font-size: 14px; }
.demo__replay { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ui-line-2); background: #fff; font-size: 12.5px; color: var(--ui-text); transition: background-color 150ms ease; }
.demo__replay:hover { background: var(--ui-subtle); }
.msgs--demo { font-size: 13.5px; }
.demo .status { margin: 0; padding: 6px 16px 12px; }
.demo__ctl { background: #0f1625; color: #cbd5e1; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; border-left: 1px solid rgba(148, 163, 184, 0.14); }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.ctl--col { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 10px 0; }
.ctl__val { color: #fff; font-variant-numeric: tabular-nums; font-weight: 500; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 0; background: #334155; transition: background-color 180ms ease; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease); }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"] i { transform: translateX(16px); }
.stepper { display: inline-flex; align-items: center; border-radius: 8px; background: #1a2334; border: 1px solid #2a3650; }
.stepper button { width: 28px; height: 28px; border: 0; background: none; color: #cbd5e1; }
.stepper button:hover { color: #fff; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 3px; border-radius: 9px; background: #1a2334; border: 1px solid #2a3650; }
.seg button { height: 28px; border: 0; border-radius: 6px; background: none; font-size: 11.5px; color: #94a3b8; transition: background-color 150ms ease, color 150ms ease; }
.seg button[aria-checked="true"] { background: var(--teal); color: var(--teal-ink); font-weight: 600; }
@media (max-width: 640px) {
  .demo { grid-template-columns: 1fr; height: auto; }
  .demo__chat { height: 470px; }
  .demo__ctl { border-left: 0; border-top: 1px solid rgba(148, 163, 184, 0.14); }
}

/* ---------- flows ---------- */
.kicker .tag { font-weight: 500; }
.canvas { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1120; box-shadow: 0 40px 100px -40px rgba(53, 214, 193, 0.3); }
.canvas__bar { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; background: #0e1526; border-bottom: 1px solid var(--line); font-size: 14px; }
.canvas__tools { display: flex; align-items: center; gap: 10px; }
.fake-btn { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; background: rgba(53, 214, 193, 0.14); color: var(--teal); font-size: 13px; font-weight: 500; }
.canvas__stage {
  position: relative; height: 340px;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1.4px); background-size: 22px 22px;
}
.canvas__edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas__edges path { fill: none; stroke: #2b3a55; stroke-width: 2; }
.canvas__edges path.flow { stroke: var(--teal); stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.cn {
  position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; width: 19%; min-width: 0; padding: 11px 12px; border-radius: 12px;
  background: #121b2d; border: 1px solid #2a3852; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7); font-size: 13px; color: #cbd5e1;
}
.cn b { display: block; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn small { display: block; color: #7d8aa0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn > span:last-child { min-width: 0; }
.cn__k { flex: none; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: rgba(53, 214, 193, 0.14); color: var(--teal); }
.cn--cond .cn__k { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.cn--gate { border-style: dashed; border-color: rgba(245, 158, 11, 0.6); width: 11.5%; flex-direction: column; align-items: flex-start; gap: 6px; }
.cn--gate .cn__k { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.cn--trigger { width: 11%; flex-direction: column; align-items: flex-start; gap: 6px; }
.cn--cond { width: 17%; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 860px) {
  .canvas__stage { height: auto; display: grid; gap: 10px; padding: 16px; }
  .canvas__edges { display: none; }
  .cn, .cn--gate, .cn--trigger { position: static; transform: none; width: auto; }
}

.modes { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode { padding: 24px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.mode--accent { background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(53, 214, 193, 0.06)); border-color: rgba(167, 139, 250, 0.3); }
.mode__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mode p { color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }

.features { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.feature { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--bg); }
.feature b { font-weight: 600; font-size: 15px; }
.feature span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.feature .tag { justify-self: start; margin-top: 6px; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- runtimes ---------- */
.runtimes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); border: 1px solid var(--line); transition: border-color 200ms ease, transform 200ms var(--ease); }
.rcard:hover { border-color: rgba(53, 214, 193, 0.35); transform: translateY(-2px); }
.rcard p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.rcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rlogo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.rlogo--claude { background: rgba(217, 119, 87, 0.16); color: #f0a080; border: 1px solid rgba(217, 119, 87, 0.35); }
.rlogo--codex { background: rgba(226, 232, 240, 0.1); color: #e2e8f0; border: 1px solid rgba(226, 232, 240, 0.25); }
.rlogo--models { background: rgba(53, 214, 193, 0.12); color: var(--teal); border: 1px solid rgba(53, 214, 193, 0.3); }
.rlogo--a2a { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(148, 163, 184, 0.1); color: var(--text-2); border: 1px solid var(--line); }
.chips--center { justify-content: center; }
.mcp { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text-2); font-size: 15px; }
.mcp b { color: var(--text); }
@media (max-width: 980px) { .runtimes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .runtimes { grid-template-columns: 1fr; } .mcp { flex-direction: column; align-items: flex-start; } }

/* ---------- local-first diagram ---------- */
.machine { display: grid; justify-items: center; }
.machine__box { width: 100%; padding: 20px; border-radius: 20px; border: 1px solid rgba(53, 214, 193, 0.35); background: radial-gradient(400px 200px at 50% 0%, rgba(53, 214, 193, 0.1), transparent 70%), var(--panel); box-shadow: 0 30px 80px -30px rgba(53, 214, 193, 0.35); }
.machine__label { font-size: 12.5px; font-weight: 600; color: var(--teal); margin-bottom: 12px; }
.machine__app { display: grid; gap: 10px; }
.machine__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 600; }
.machine__row small { margin-left: auto; color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.machine__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.machine__grid div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.machine__grid small { grid-column: 2; color: var(--text-3); font-size: 12px; font-weight: 400; }
.mi { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(53, 214, 193, 0.12); color: var(--teal); font-size: 14px; }
.machine__link { position: relative; height: 76px; width: 2px; background: repeating-linear-gradient(to bottom, var(--text-3) 0 6px, transparent 6px 12px); }
.machine__link span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12.5px; color: var(--text-2); padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); }
.machine__cloud { width: 82%; padding: 18px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015); text-align: center; }
.machine__cloud .machine__label { color: var(--text-2); }
@media (max-width: 520px) { .machine__grid { grid-template-columns: 1fr; } .machine__cloud { width: 100%; } }

/* ---------- open ---------- */
.open { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.table-card { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-size: 12.5px; font-weight: 600; color: var(--text-3); background: rgba(255, 255, 255, 0.02); }
tbody th { font-weight: 600; width: 30%; white-space: nowrap; }
td { color: var(--text-2); }
.gh-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(53, 214, 193, 0.08), rgba(255, 255, 255, 0.01)); }
.gh-card > svg { width: 36px; height: 36px; color: #fff; }
.gh-card h3 { font-size: 20px; }
.gh-card p { color: var(--text-2); font-size: 15px; }
.gh-card .fineprint { margin-top: auto; }
@media (max-width: 900px) { .open { grid-template-columns: 1fr; } tbody th { white-space: normal; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.steps__list { display: grid; gap: 10px; counter-reset: s; }
.steps__list li { display: flex; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.steps__list li:hover { border-color: var(--line-2); }
.steps__list li.is-on { border-color: rgba(53, 214, 193, 0.5); background: rgba(53, 214, 193, 0.06); }
.steps__list b { font-weight: 600; }
.steps__list p { color: var(--text-2); font-size: 14.5px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: rgba(148, 163, 184, 0.12); color: var(--text-2); }
.is-on .num { background: var(--teal); color: var(--teal-ink); }
.steps__view { min-height: 330px; }
.term, .stepcard { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); animation: rise 300ms var(--ease); }
.term { background: #0a0f1a; }
.term__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #0e1526; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.term pre { margin: 0; padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 14px; line-height: 1.9; color: #e2e8f0; overflow-x: auto; }
.term .p { color: var(--teal); user-select: none; }
.term .c { color: var(--text-3); }
.stepcard { background: var(--ui-canvas); color: var(--ui-text); }
.stepcard__bar { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--ui-line); font-size: 14px; font-weight: 600; }
.stepcard__bar span { font-weight: 400; font-size: 12.5px; color: var(--ui-text-2); }
.sc-rows { padding: 12px; display: grid; gap: 8px; }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--ui-line); background: #fff; font-size: 14px; }
.sc-row.is-sel { border-color: var(--ui-teal-ink); box-shadow: 0 0 0 4px rgba(53, 214, 193, 0.14); }
.sc-row b { display: block; font-weight: 600; }
.sc-row small { display: block; color: var(--ui-text-2); font-size: 12.5px; }
.sc-tag { margin-left: auto; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; white-space: nowrap; }
.sc-tag--beta { background: #fef3c7; color: #b45309; }
.sc-tag--add { background: var(--ui-subtle); color: var(--ui-text-2); }
.sc-form { padding: 16px; display: grid; gap: 12px; }
.sc-form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--ui-text-2); font-weight: 500; }
.sc-in { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ui-line-2); background: #fff; font-size: 14px; color: var(--ui-text); }
.sc-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 10px; background: var(--ui-subtle); }
.sc-seg span { height: 32px; display: grid; place-items: center; border-radius: 7px; font-size: 13px; color: var(--ui-text-2); }
.sc-seg .on { background: #fff; color: var(--ui-text); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.sc-go { justify-self: end; height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; background: var(--ui-teal-ink); color: #fff; font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- final CTA, footer ---------- */
.final { padding: 40px 0 120px; }
.final__card { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 88px 32px; border-radius: 28px; border: 1px solid rgba(53, 214, 193, 0.3); background: #0b1220; }
.final__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 50% 0%, rgba(53, 214, 193, 0.28), transparent 70%), radial-gradient(400px 260px at 85% 100%, rgba(167, 139, 250, 0.2), transparent 70%), radial-gradient(400px 260px at 10% 100%, rgba(245, 158, 11, 0.12), transparent 70%); }
.final__card h2 { max-width: 16em; margin: 0 auto; }
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; font-size: 14px; }
.footer nav { display: flex; gap: 24px; color: var(--text-2); margin-right: auto; flex-wrap: wrap; }
.footer nav a:hover { color: var(--text); }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .card[data-reveal].is-in:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .mc { opacity: 1; transform: none; }
  .fedge i, .canvas__edges path.flow, .caret, .presence, .status__dot { animation: none !important; }
}

/* ---------- flows: live ---------- */
.pill__new { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--teal); color: var(--teal-ink); font-size: 11.5px; font-weight: 600; }
.side__badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--amber); color: #1c1203; font-size: 11px; font-weight: 700; }
.cn--http { width: 17%; flex-direction: column; align-items: flex-start; gap: 6px; }
.cn--http .cn__k { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.flows-row { margin-top: 20px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: stretch; }
.flows-row .modes { margin-top: 0; grid-template-columns: 1fr; }
.runs { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.runs__head { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.runs__head .muted { font-size: 13px; }
.runs__list li { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.runs__list li:last-child { border-bottom: 0; }
.st { font-weight: 500; white-space: nowrap; }
.st--ok { color: #4ade80; } .st--wait { color: #fbbf24; } .st--retry { color: #5fe3d1; } .st--int { color: #c4b5fd; } .st--fail { color: #f87171; }
.runs__cost { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 13px; }
.runs__act { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 12.5px; }
.runs__act:hover { border-color: rgba(53, 214, 193, 0.5); }
.runs__foot { margin-top: auto; padding: 12px 20px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
@media (max-width: 980px) { .flows-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .runs__list li { grid-template-columns: 1fr auto; } .runs__list li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 12.5px; } }

/* ---------- hero video ---------- */
.hero-video {
  position: relative; margin-top: 64px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #070a12;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -30px rgba(53, 214, 193, 0.35), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video__toggle {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 9, 15, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center;
  opacity: 0; transition: opacity 200ms ease, background-color 150ms ease;
}
.hero-video:hover .hero-video__toggle, .hero-video__toggle:focus-visible, .hero-video.is-paused .hero-video__toggle { opacity: 1; }
.hero-video__toggle:hover { background: rgba(7, 9, 15, 0.85); }
.ic-pause { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.is-paused .ic-pause { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
@media (hover: none) { .hero-video__toggle { opacity: 1; } }
@media (max-width: 640px) { .hero-video { margin-top: 44px; border-radius: 12px; } }

/* ---------- copy aligned with the app: /run card ---------- */
.head__sub code { color: var(--teal); background: rgba(53, 214, 193, 0.1); padding: 1px 6px; border-radius: 6px; }
.card p b { color: var(--text); }
.steps__list p code { color: var(--teal); font-size: 0.85em; }
.cn--msg { width: 11.5%; flex-direction: column; align-items: flex-start; gap: 6px; }
.cn--msg .cn__k { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.runchat { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ui-canvas); color: var(--ui-text); display: flex; flex-direction: column; }
.runchat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 50px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--ui-line); font-size: 14px; }
.runchat__head span { font-size: 12.5px; color: var(--ui-text-2); }
.runchat__body { padding: 10px 8px; font-size: 14px; line-height: 21px; }
.runchat .cmd { color: #6d4fd8; background: #f1edff; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.av--flow { background: #e3f8f5; color: var(--ui-teal-ink); font-size: 15px; }
.runcard { margin-top: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid #f6d7a7; background: #fff; }
.runcard__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.runcard__state { font-size: 12.5px; color: #b45309; background: #fff7e6; padding: 1px 8px; border-radius: 999px; }
.runcard__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 10px 0 6px; }
.runcard__bar i { height: 5px; border-radius: 3px; background: var(--ui-subtle); }
.runcard__bar .ok { background: #22c55e; } .runcard__bar .wait { background: #f59e0b; }
.runcard__meta { font-size: 12.5px; color: var(--ui-text-2); }
.runcard__btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ui-text-2); }
.runcard__btns .primary { padding: 5px 12px; border-radius: 8px; background: var(--ui-teal-ink); color: #fff; font-weight: 500; }
.runchat__foot { margin-top: auto; padding: 12px 16px; font-size: 13px; color: var(--ui-text-2); border-top: 1px solid var(--ui-line); background: #fff; }
.final__sub { margin: 16px auto 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--text-2); max-width: 36em; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq__item { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.faq__item h3 { font-size: 17px; margin-bottom: 8px; }
.faq__item p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.faq__more { margin-top: 24px; text-align: center; color: var(--text-2); font-size: 15px; }
.faq__more a, .head__sub a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
