/* ============================================================================
   Remux marketing site — styles
   Tokens mirror the app (src-ui/src/index.css) so brand stays in lock-step.
   No build step: plain CSS, hand-authored, deployed as-is to the SWA.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #3b82f6;
  --brand-muted: #1d4ed8;
  --brand-cyan: #22d3ee;
  --brand-indigo: #6366f1;
  --brand-glow: rgba(59, 130, 246, 0.5);

  /* Surfaces */
  --surface: #0a0a0a;
  --surface-alt: #121212;
  --surface-raised: #1c1c1c;
  --pane: #141414;

  /* Borders */
  --border: #262626;
  --border-active: #404040;

  /* Text */
  --primary: #fafafa;
  --secondary: #d4d4d4;
  --muted: #a3a3a3;
  --muted-dim: #737373;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Worktree accents (the app's 8-accent palette, the four we show) */
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --teal: #14b8a6;

  /* Agent brand tints */
  --claude: #d97757;
  --gemini: #5b8def;

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

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--primary); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b, strong { color: var(--primary); font-weight: 600; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--brand-cyan) 45%, var(--brand) 70%, var(--brand-indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────────────────────────  BUTTONS  ─────────────────────────── */
.btn {
  --b: 0;
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  padding: 10px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 16px; border-radius: var(--r-md); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #4f8bf8, var(--brand));
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 26px -10px var(--brand-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 14px 34px -10px var(--brand-glow); }
.btn--ghost {
  color: var(--secondary); background: rgba(255,255,255,0.03); border-color: var(--border);
}
.btn--ghost:hover { color: var(--primary); border-color: var(--border-active); background: rgba(255,255,255,0.06); }

/* ───────────────────────────  NAV  ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { border-radius: 8px; box-shadow: 0 2px 10px -2px rgba(0,0,0,.6); }
.brand__name { color: var(--primary); font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__gh { padding: 9px; color: var(--muted); }
.nav__gh:hover { color: var(--primary); }

/* ───────────────────────────  HERO  ─────────────────────────── */
.hero { position: relative; padding: 86px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: -10% 0 0; z-index: 0; pointer-events: none; }
.hero__aurora {
  position: absolute; top: -25%; left: 50%; width: 1400px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(620px 420px at 50% 0%, rgba(59,130,246,0.28), transparent 70%),
    radial-gradient(520px 360px at 22% 12%, rgba(34,211,238,0.16), transparent 70%),
    radial-gradient(520px 360px at 80% 16%, rgba(99,102,241,0.20), transparent 70%);
  filter: blur(8px);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 560px at 50% 8%, #000 0%, transparent 78%);
  mask-image: radial-gradient(900px 560px at 50% 8%, #000 0%, transparent 78%);
  opacity: 0.5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; }
.orb--1 { top: 6%; left: 8%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); }
.orb--2 { top: 14%; right: 6%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(99,102,241,.45), transparent 65%); }

.hero__inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--secondary);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 26px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px 2px var(--brand-glow); }
.hero__title { font-size: clamp(40px, 7vw, 80px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 22px; }
.hero__sub { max-width: 660px; margin: 0 auto 30px; color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__platforms { margin-top: 18px; font-size: 13px; color: var(--muted-dim); letter-spacing: 0.01em; }

/* product mock stage */
.hero__stage { position: relative; margin-top: 64px; perspective: 1600px; }
.appwin {
  position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; text-align: left;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.appwin__glow {
  position: absolute; z-index: 1; left: 50%; top: 12%; transform: translateX(-50%);
  width: 70%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  filter: blur(70px); opacity: 0.5;
}

/* mock titlebar — mirrors the app: sidebar toggle, +Launch, version,
   centred [Panes|Board] segment, right icon cluster */
.appwin__bar {
  position: relative;
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px;
  background: linear-gradient(180deg, #181818, #131313); border-bottom: 1px solid var(--border);
}
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.lights i:nth-child(1){ background:#ff5f57; } .lights i:nth-child(2){ background:#febc2e; } .lights i:nth-child(3){ background:#28c840; }

.tb__ic {
  width: 15px; height: 15px; flex: none; color: var(--muted-dim);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tb__launch {
  font-size: 11.5px; font-weight: 600; color: #9ec1fb;
  background: rgba(59,130,246,.13); border: 1px solid rgba(59,130,246,.3);
  padding: 2.5px 10px; border-radius: 7px; white-space: nowrap;
}
.tb__ver { font-family: var(--font-mono); font-size: 10px; color: var(--muted-dim); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.seg--center { position: absolute; left: 50%; transform: translateX(-50%); }
.seg b { font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 12px; border-radius: 6px; transition: all 0.3s; }
.seg .seg__on, .seg b.seg__on { color: var(--primary); background: var(--surface-raised); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tb__right { display: inline-flex; align-items: center; gap: 11px; margin-left: auto; }
.tb__wrapic { position: relative; display: inline-flex; }
.tb__badge {
  position: absolute; top: -6px; right: -7px; font-style: normal;
  font-family: var(--font-mono); font-size: 8px; font-weight: 600; line-height: 1;
  color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 4px;
}
.tb__badge--ok { background: var(--success); }
.tb__div { width: 1px; height: 14px; background: var(--border); }

.appwin__body { display: flex; height: 380px; }

/* mock sidebar — Projects, a Local space section, Active Sessions roster */
.side { width: 196px; flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 12px 10px; font-size: 12.5px; overflow: hidden; }
.side__head { color: var(--muted-dim); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px 8px; }
.side__sec {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted-dim); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 8px 6px;
}
.side__sec--sub { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.side__ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side__n { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted-dim); }
.proj { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-sm); color: var(--secondary); white-space: nowrap; }
.proj--active { background: rgba(59,130,246,0.12); color: var(--primary); box-shadow: inset 2px 0 0 var(--brand); }
.proj__ic { width: 13px; height: 13px; flex: none; color: var(--muted-dim); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proj__ic--brand { color: var(--brand); }
.proj__n { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted-dim); }
.sess { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--r-sm); color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess--warn { color: var(--secondary); }
.sdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.sdot--ok { background: var(--success); }
.sdot--warn { background: var(--warning); box-shadow: 0 0 8px 1px rgba(245,158,11,.6); animation: blink 1.6s ease-in-out infinite; }

.chip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.chip--violet { color: #c4b5fd; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); }
.chip--orange { color: #fdba74; background: rgba(249,115,22,.14); border: 1px solid rgba(249,115,22,.32); }
.chip--teal { color: #5eead4; background: rgba(20,184,166,.14); border: 1px solid rgba(20,184,166,.32); }

.grid3 { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.pane {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--pane); border: 1px solid var(--border); border-top: 2px solid var(--border-active);
  border-radius: var(--r-md); overflow: hidden;
}
/* the app tints a worktree pane's top border in the worktree accent */
.pane--violet { border-top-color: var(--violet); }
.pane--orange { border-top-color: var(--orange); }
.pane--teal { border-top-color: var(--teal); }
.pane--cyan { border-top-color: var(--cyan); }
.pane--attn { box-shadow: 0 0 0 1px rgba(245,158,11,.4), 0 0 24px -4px rgba(245,158,11,.45); animation: attn 2s ease-in-out infinite; }
@keyframes attn { 0%,100%{ box-shadow: 0 0 0 1px rgba(245,158,11,.35), 0 0 18px -6px rgba(245,158,11,.3);} 50%{ box-shadow: 0 0 0 1px rgba(245,158,11,.6), 0 0 26px -2px rgba(245,158,11,.55);} }

/* pane header — agent glyph · task title · worktree chip · close */
.pane__bar { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-bottom: 1px solid var(--border); min-width: 0; }
.glyph { width: 12px; height: 12px; flex: none; fill: currentColor; }
.glyph--claude { color: var(--claude); }
.glyph--gemini { color: var(--gemini); }
.glyph--term { fill: none; stroke: var(--muted-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pane__title { font-size: 11.5px; font-weight: 500; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pane__bar .chip { font-size: 9.5px; padding: 1px 7px; flex: none; }
.pane__x { margin-left: auto; color: var(--muted-dim); font-size: 13px; line-height: 1; flex: none; }

.term { flex: 1; padding: 10px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: var(--secondary); overflow: hidden; }
.term p { margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-prompt { color: var(--brand); font-weight: 700; }
.c-prompt-line { color: var(--secondary); }
.c-dim { color: var(--muted-dim); } .c-run { color: var(--brand); } .c-ok { color: var(--success); } .c-warn { color: var(--warning); }
.cursor, .c-run { position: relative; }
.cursor { color: var(--warning); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* pane status bar — agent badge · context gauge · cost · tokens · time · mode */
.sbar {
  display: flex; align-items: center; gap: 7px; padding: 5px 9px;
  border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-dim);
  white-space: nowrap; overflow: hidden;
}
.sb__agent { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 9px; }
.sb__agent--dim { color: var(--muted-dim); }
.sb__gauge { width: 26px; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; flex: none; }
.sb__gauge i { display: block; height: 100%; background: var(--success); border-radius: 999px; }
.sb__gauge--warn { background: var(--warning) !important; }
.sb__pct { color: var(--muted); }
.sb__sp { flex: 1; }
.sb__m { color: var(--muted-dim); }
.sb__mode {
  text-transform: uppercase; font-size: 8.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 999px;
}

/* notification toast — uppercase category over the message, like the app */
.toast {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  display: flex; align-items: flex-start; gap: 10px; max-width: 330px;
  background: rgba(28,28,28,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-left: 3px solid var(--warning);
  border-radius: var(--r-md); padding: 11px 14px; font-size: 12.5px; color: var(--secondary);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
  animation: toast-in 0.6s var(--ease) 0.4s both;
}
.toast__ico {
  flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  display: grid; place-items: center;
  color: var(--warning); background: rgba(245,158,11,.14);
  font-weight: 700; font-size: 12px;
}
.toast__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.toast__cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--warning); }
.toast i { font-style: normal; color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ───────────────────────────  AGENTS STRIP  ─────────────────────────── */
.strip { padding: 54px 0 10px; border-top: 1px solid var(--border); margin-top: 70px; }
.strip__label { text-align: center; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; gap: 46px; white-space: nowrap; animation: marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────────────────────  WHAT IS REMUX  ─────────────────────────── */
.what { padding: 100px 0; }
.what__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.what__copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 22px; }
.ticklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 30px; color: var(--secondary); font-size: 15.5px; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16,185,129,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.termcard { background: #0d0d0d; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); }
.termcard__bar { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 40px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.termcard__t { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dim); margin-left: auto; }
.termcard__body { margin: 0; padding: 20px; min-height: 320px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: var(--secondary); white-space: pre-wrap; }
.termcard__body .l-user { color: var(--primary); font-weight: 600; }
.termcard__body .l-tool { color: var(--primary); }
.termcard__body .l-res { color: var(--muted-dim); }
.type-caret::after { content: "▍"; color: var(--brand); animation: blink 1.1s steps(2) infinite; }

/* ───────────────────────────  FEATURE TOUR  ─────────────────────────── */
.tour { padding: 40px 0 110px; }
.tour__head { text-align: center; margin-bottom: 60px; }
.tour__head h2 { font-size: clamp(28px, 3.8vw, 44px); }
.tour__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.tour__sticky { position: sticky; top: 92px; }
.appwin--tour { max-width: none; }
.appwin--tour .appwin__body { height: 420px; position: relative; }

.tour-view { position: absolute; inset: 0; transition: opacity 0.45s var(--ease); }
.tour-view--panes { opacity: 1; }
.tour-view--board { opacity: 0; pointer-events: none; }
.appwin--tour[data-feature="board"] .tour-view--panes { opacity: 0; }
.appwin--tour[data-feature="board"] .tour-view--board { opacity: 1; }

.grid2x2 { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 12px; }
.grid2x2 .term { font-size: 11px; }
.grid2x2 .pane__title { font-size: 11px; }
.grid2x2 .pane[data-p="4"] { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.appwin--tour[data-feature="parallel"] .pane[data-p="4"] { opacity: 0; transform: scale(0.95); }
.appwin--tour[data-feature="status"] .pane:not([data-p="2"]) { opacity: 0.45; transition: opacity 0.4s; }
.appwin--tour[data-feature="notify"] .pane[data-p="2"] { box-shadow: 0 0 0 1px rgba(245,158,11,.55), 0 0 26px -2px rgba(245,158,11,.55); }

/* layers */
[data-layer] { opacity: 0; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.callout-status {
  position: absolute; right: 22px; bottom: 22px; z-index: 6; transform: translateY(10px);
  background: rgba(20,20,20,0.95); backdrop-filter: blur(8px); border: 1px solid var(--border-active);
  border-radius: var(--r-md); padding: 12px 14px; min-width: 190px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.85);
}
.cs__row { display: flex; justify-content: space-between; gap: 18px; font-family: var(--font-mono); font-size: 12px; padding: 3px 0; }
.cs__row span { color: var(--muted-dim); } .cs__row b { color: var(--primary); }
.cs__cost { color: var(--success) !important; }
.appwin--tour[data-feature="status"] .callout-status { opacity: 1; transform: none; }

.callout-worktrees { position: absolute; left: 22px; bottom: 22px; z-index: 6; display: flex; gap: 8px; transform: translateY(10px); }
.callout-worktrees .chip { font-size: 12px; padding: 4px 11px; }
.appwin--tour[data-feature="worktrees"] .callout-worktrees { opacity: 1; transform: none; }

.appwin--tour .toast { animation: none; opacity: 0; transform: translateY(14px); }
.appwin--tour[data-feature="notify"] .toast { opacity: 1; transform: none; }

/* seg auto-switch in tour */
.appwin--tour[data-feature="board"] [data-seg="panes"] { color: var(--muted); background: transparent; box-shadow: none; }
.appwin--tour[data-feature="board"] [data-seg="board"] { color: var(--primary); background: var(--surface-raised); box-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* board view — the app's five default columns */
.board { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px; }
.bcol { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; min-width: 0; }
.bcol__h { font-size: 9.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard {
  position: relative;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 9px; font-size: 11px; line-height: 1.45; color: var(--secondary); margin-bottom: 8px;
}
.bcard--live { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 18px -6px var(--brand-glow); color: var(--primary); }
.bcard--live .dot--ok { position: absolute; top: 8px; right: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.dot--ok { background: var(--success); box-shadow: 0 0 8px 1px rgba(16,185,129,.5); }
.bic { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-right: 4px; color: var(--danger); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bmeta { display: flex; gap: 5px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
.bprio { font-style: normal; font-size: 8.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; }
.bprio--high { color: #fca5a5; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); }
.bprio--low { color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.bpr { font-style: normal; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 9px; color: #86efac; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); border-radius: 999px; padding: 1px 7px; }
.bic--pr { color: #86efac; margin-right: 3px; }
.bid { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: var(--muted-dim); }

.tour__steps { list-style: none; margin: 0; padding: 0; }
.step {
  padding: 38px 0 38px 70px; position: relative; border-left: 2px solid var(--border);
  margin-left: 18px; opacity: 0.4; transition: opacity 0.4s var(--ease);
}
.step.is-active { opacity: 1; }
.step.is-active { border-left-color: var(--brand); }
.step:first-child { padding-top: 6px; }
.step:last-child { padding-bottom: 6px; }
.step__no {
  position: absolute; left: -19px; top: 38px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--muted-dim); background: var(--surface-alt); border: 2px solid var(--border); transition: all 0.4s var(--ease);
}
.step:first-child .step__no { top: 6px; }
.step.is-active .step__no { color: #fff; background: linear-gradient(180deg, #4f8bf8, var(--brand)); border-color: var(--brand); box-shadow: 0 0 22px -4px var(--brand-glow); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ───────────────────────────  BENTO  ─────────────────────────── */
.bento { padding: 30px 0 100px; }
.bento__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: linear-gradient(180deg, var(--surface-alt), #0d0d0d);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.feat:hover { border-color: var(--border-active); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); }
.feat__ico { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--brand); background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); margin-bottom: 18px; }
.feat__ico svg { stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ───────────────────────────  CLOUD / PRO  ─────────────────────────── */
.cloud { position: relative; padding: 100px 0; border-top: 1px solid var(--border); overflow: hidden; }
.cloud__bg { position: absolute; inset: 0; pointer-events: none; }
.orb--3 { top: 20%; left: 60%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(99,102,241,.34), transparent 65%); filter: blur(70px); }
.cloud__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.cloud__copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.cloud__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cloud__note { margin-top: 18px; font-size: 13px; color: var(--muted-dim); }

.synccard {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0;
  background: linear-gradient(180deg, var(--surface-alt), #0c0c0c); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 30px 22px; box-shadow: 0 40px 90px -44px rgba(0,0,0,.9);
}
.synccard__node, .synccard__hub { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.synccard__node svg { border-radius: 7px; }
.synccard__node span { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.synccard__hub {
  padding: 16px 18px; border-radius: var(--r-lg); background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.3); box-shadow: 0 0 30px -8px var(--brand-glow);
}
.synccard__hub span:last-child { color: var(--primary); font-weight: 600; font-size: 13px; }
.lock { font-family: var(--font-mono); font-size: 11px; color: var(--brand); background: rgba(59,130,246,.14); padding: 2px 8px; border-radius: 999px; }
.syncline { position: relative; height: 2px; background: linear-gradient(90deg, transparent, var(--border-active), transparent); margin: 0 4px; overflow: hidden; }
.syncline__dot { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px 2px var(--brand-glow); animation: flow 2.4s linear infinite; }
.syncline--r .syncline__dot { animation-delay: 1.2s; animation-direction: reverse; }
@keyframes flow { 0% { left: -8px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ───────────────────────────  DOWNLOAD  ─────────────────────────── */
.download { padding: 100px 0; border-top: 1px solid var(--border); }
.download__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.download__head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.download__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: linear-gradient(180deg, var(--surface-alt), #0d0d0d); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.dl:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 26px 56px -30px var(--brand-glow); }
.dl__logo { color: var(--primary); }
.dl__txt { display: flex; flex-direction: column; gap: 3px; }
.dl__txt b { font-size: 19px; color: var(--primary); }
.dl__txt span { font-size: 13px; color: var(--muted-dim); }
.dl__go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--brand); transition: gap 0.2s; }
.dl:hover .dl__go { color: #6ba2fb; }
.download__fine { text-align: center; margin-top: 34px; font-size: 13.5px; color: var(--muted-dim); }

/* coming-soon state (no public installers yet) */
.soon-pill {
  display: inline-block; vertical-align: middle; transform: translateY(-5px); margin-left: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--brand);
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3);
  padding: 4px 12px; border-radius: 999px;
}
.dl--soon { cursor: default; }
.dl--soon:hover { transform: none; border-color: var(--border); box-shadow: none; }
.dl--soon .dl__logo { opacity: 0.65; }
.dl__go--soon {
  color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
}
.dl--soon:hover .dl__go--soon { color: var(--muted); }

/* ───────────────────────────  FINAL CTA  ─────────────────────────── */
.cta { padding: 30px 0 110px; }
.cta__inner {
  text-align: center; padding: 70px 32px; border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(59,130,246,0.18), transparent 70%),
    linear-gradient(180deg, var(--surface-alt), #0b0b0b);
  border: 1px solid var(--border);
}
.cta__inner h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 30px; }

/* ───────────────────────────  FOOTER  ─────────────────────────── */
.foot { border-top: 1px solid var(--border); padding: 60px 0 30px; background: linear-gradient(180deg, var(--surface), #060606); }
.foot__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.foot__brand p { margin-top: 14px; color: var(--muted-dim); font-size: 14px; max-width: 280px; }
.foot__col h4 { font-size: 13px; color: var(--primary); margin-bottom: 14px; font-weight: 600; }
.foot__col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.foot__col a:hover { color: var(--primary); }
.foot__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-dim); }

/* ───────────────────────────  RESPONSIVE  ─────────────────────────── */
@media (max-width: 980px) {
  .what__grid, .cloud__inner { grid-template-columns: 1fr; gap: 40px; }
  .tour__grid { grid-template-columns: 1fr; gap: 30px; }
  .tour__sticky { position: static; margin-bottom: 10px; }
  .bento__grid, .download__grid { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero { padding-top: 54px; }
  .appwin__body { height: auto; }
  .grid3 { grid-template-columns: 1fr; }
  .side { display: none; }
  .tb__ver, .tb__right, .tb__launch { display: none; }
  .appwin--tour .appwin__body { height: 380px; }
  .grid2x2 .sbar .sb__m { display: none; }
  .bento__grid, .download__grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot__brand { grid-column: 1 / -1; }
  .step { padding-left: 56px; }
  .board { grid-template-columns: repeat(5, 96px); }
}

/* ───────────────────────────  MOTION-SAFE  ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .pane--attn, .cursor, .syncline__dot, .toast, .sdot--warn { animation: none; }
  .toast { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
