/* Pitwall landing page. Dark-only by design; status colors double as the brand palette. */

@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-raise: #0d0e11;
  --panel: #111215;
  --panel-2: #17181d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f5f7;
  --muted: #959ba5;
  --dim: #7a808a;

  --blue: #4c8dff;
  --orange: #ff9f0a;
  --red: #ff5a52;
  --green: #34d27b;
  --gray: #8e8e93;


  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --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(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(76, 141, 255, 0.35); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Film grain over everything, very faint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.lang {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.3s, color 0.2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-light {
  background: #f4f5f7;
  color: #08090b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 30px -6px rgba(76, 141, 255, 0.45);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px -6px rgba(76, 141, 255, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost .arr { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .arr { transform: translateY(2px); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"] { border-radius: 999px; }
.btn[aria-disabled="true"] svg { display: none; }
.btn[aria-disabled="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.btn-light[aria-disabled="true"] { background: rgba(76, 141, 255, 0.08); color: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 1px rgba(76, 141, 255, 0.3); transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero-glow span:nth-child(1) { width: 560px; height: 420px; left: 50%; top: 380px; margin-left: -520px; background: radial-gradient(circle, rgba(76, 141, 255, 0.55), transparent 65%); }
.hero-glow span:nth-child(2) { width: 520px; height: 420px; left: 50%; top: 420px; margin-left: -20px; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%); }
.hero-glow span:nth-child(3) { width: 420px; height: 300px; left: 50%; top: 90px; margin-left: -210px; background: radial-gradient(circle, rgba(76, 141, 255, 0.16), transparent 65%); }

.hero-inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line-2);
  margin-bottom: 28px;
  transition: color 0.2s, background 0.2s;
}
.eyebrow:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.eyebrow .arr { transition: transform 0.25s var(--ease); }
.eyebrow:hover .arr { transform: translateX(3px); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }

h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 auto 26px;
  max-width: 12em;
  text-wrap: balance;
}
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { letter-spacing: -0.01em; }
h1 .l1 {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 .l2 { color: #8a8f98; }
.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 36px;
  text-wrap: balance;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin-top: 20px; font-size: 13px; color: var(--dim); letter-spacing: 0.01em; }

/* ---------- Hero stage: a faux desktop with the live board ---------- */
.stage-wrap { position: relative; margin-top: 72px; padding: 0 24px; }
.stage {
  --tilt: 18;
  max-width: 1040px;
  margin: 0 auto;
  transform: perspective(1600px) rotateX(calc(var(--tilt) * 1deg)) scale(calc(1 - var(--tilt) * 0.003));
  transform-origin: 50% 0%;
  will-change: transform;
}
html.js .stage-intro { opacity: 0; transform: translateY(60px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: 0.35s; }
html.js .stage-intro.in { opacity: 1; transform: none; }
.desk {
  position: relative;
  border-radius: 22px;
  padding: 0 0 56px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(76, 141, 255, 0.28), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #14161c, #0c0d10);
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(76, 141, 255, 0.5);
}
.menubar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 30px;
  padding: 0 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.menubar b { font-weight: 600; }
.menubar .mb-dim { color: rgba(255, 255, 255, 0.6); }
.menubar .spacer { flex: 1; }
.mb-pitwall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mb-pitwall img { width: 14px; height: 14px; border-radius: 3px; }
.mb-pitwall .need { color: var(--orange); }
.mb-pitwall.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); background: rgba(255, 159, 10, 0.3); } }

.window {
  position: relative;
  width: min(820px, calc(100% - 64px));
  margin: 48px auto 0;
  border-radius: 16px;
  background: rgba(20, 21, 26, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  text-align: left;
}
/* A light that travels around the window border. */
.beam::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, rgba(76, 141, 255, 0.85) 300deg, rgba(255, 255, 255, 0.9) 335deg, transparent 360deg);
  -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);
  animation: beam 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes beam { to { --beam: 360deg; } }

.titlebar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tl { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.tl:nth-child(2) { background: #febc2e; }
.tl:nth-child(3) { background: #28c840; }
.titlebar .ttl { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); margin-right: 52px; }
.chips { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); transition: color 0.3s; }
.chip.sel { color: var(--blue); background: rgba(76, 141, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(76, 141, 255, 0.4); }
.chip.sel b { color: var(--blue); }

/* Board rows are absolutely positioned so re-sorting can glide. */
.board { position: relative; height: calc(var(--rows, 5) * 62px); }
.brow {
  --c: var(--gray);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 62px;
  display: grid;
  grid-template-columns: 10px 24px minmax(0, 1fr) auto 52px 76px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.7s var(--ease), background 0.4s;
}
.brow:last-child { border-bottom: 0; }
.brow.s-waiting { --c: var(--orange); }
.brow.s-failed { --c: var(--red); }
.brow.s-running { --c: var(--blue); }
.brow.s-done { --c: var(--green); }
.brow.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--c) 22%, transparent); } 100% { background: transparent; } }
.brow.selected { background: rgba(76, 141, 255, 0.16); }
.sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); transition: background 0.4s; }
.s-running .sdot { animation: pulse 1.6s ease-in-out infinite; }
.s-waiting .sdot { box-shadow: 0 0 0 0 var(--c); animation: halo 1.6s ease-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.atile {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
}
/* Bare marks sit on a brand-colored tile like an app icon; Codex and Cursor already are app icons.
   Insets match AgentIcon in Components.swift (16% / Pi 26% / Devin 12% per side). */
.atile img { width: 100%; height: 100%; object-fit: contain; }
.atile.logo-cc, .atile.logo-pi, .atile.logo-dv {
  border-radius: 24%;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.atile.logo-cc { background: #f3e9d7; }
.atile.logo-cc img { width: 68%; height: 68%; }
.atile.logo-pi img { width: 48%; height: 48%; }
.atile.logo-dv img { width: 76%; height: 76%; }
.bmain { min-width: 0; }
.btitle { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.92); }
.bact { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s; }
.s-running .bact { color: color-mix(in srgb, var(--blue) 80%, white); }
.s-waiting .bact { color: color-mix(in srgb, var(--orange) 85%, white); }
.s-failed .bact { color: color-mix(in srgb, var(--red) 80%, white); }
.bctx { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.btime { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bbadge {
  justify-self: end;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  white-space: nowrap;
  transition: color 0.4s, background 0.4s;
}
.bjump {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 6px 20px -4px rgba(76, 141, 255, 0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.brow.selected .bjump { opacity: 1; transform: translateY(-50%) scale(1); }

/* macOS-style notification toasts. */
.toasts { position: absolute; top: 40px; right: 14px; z-index: 5; width: 330px; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(44, 45, 52, 0.78);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  font-size: 12.5px;
  line-height: 1.4;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.toast.show { transform: none; opacity: 1; }
.toast.hide { transform: translateX(30px); opacity: 0; }
.toast img { width: 34px; height: 34px; }
.toast .th { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.toast .th span { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.toast .tb { color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Agents strip ---------- */
.agents { padding: 72px 0 24px; text-align: center; }
.agents p { margin: 0 0 22px; color: var(--dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.agent-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.agent-row > span { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.55); letter-spacing: -0.01em; transition: color 0.3s; }
.agent-row > span:hover { color: #fff; }
.agent-row .atile { width: 30px; height: 30px; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: 112px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--blue); letter-spacing: 0.04em; margin-bottom: 18px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 15em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-lede { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0 0 56px; text-wrap: pretty; }
.center { text-align: center; }
.center h2, .center .sec-lede { margin-left: auto; margin-right: auto; }

/* ---------- Problem: timeline ---------- */
.tl-card {
  position: relative;
  border-radius: 22px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.seg-ctl { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.seg-ctl button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 8px; transition: color 0.3s; }
.seg-ctl button[aria-pressed="true"] { color: #08090b; }
.seg-ctl .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 8px; background: #f4f5f7; transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

.lanes { display: grid; gap: 12px; }
.lane { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; }
.lname { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.lname .atile { width: 20px; height: 20px; }
.track { position: relative; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.seg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 5px;
  transition: left 1.1s var(--ease), width 1.1s var(--ease);
  overflow: hidden;
}
.seg.run { background: linear-gradient(180deg, rgba(76, 141, 255, 0.9), rgba(76, 141, 255, 0.65)); }
.seg.wait {
  background: repeating-linear-gradient(-45deg, rgba(255, 159, 10, 0.55) 0 6px, rgba(255, 159, 10, 0.32) 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.6);
}
.seg.fail {
  background: repeating-linear-gradient(-45deg, rgba(255, 90, 82, 0.55) 0 6px, rgba(255, 90, 82, 0.3) 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 82, 0.65);
}
.seg .lab { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.95); white-space: nowrap; transition: opacity 0.4s; }
.seg.narrow .lab { opacity: 0; }
.flag {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #08090b;
  transition: left 1.1s var(--ease);
}
.flag svg { width: 11px; height: 11px; }
.axis { display: grid; grid-template-columns: 112px 1fr; gap: 16px; margin-top: 10px; }
.axis .ticks { position: relative; height: 18px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.axis .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis .ticks span:first-child { transform: none; }
.axis .ticks span:last-child { transform: translateX(-100%); }

.tl-stats { display: grid; grid-template-columns: repeat(2, 1fr) auto; align-items: end; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat .num { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .num.warn { color: var(--orange); transition: color 0.6s; }
.stat .num.good { color: var(--green); transition: color 0.6s; }
.stat .lbl { margin-top: 8px; font-size: 13px; color: var(--muted); }
.tl-note { font-size: 12px; color: var(--dim); text-align: right; }

/* ---------- Features: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
/* Spotlight follows the pointer (set by app.js). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 45%);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 50%);
  -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);
  pointer-events: none;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card .viz *, .card .viz *::before, .card .viz *::after { animation-play-state: paused; }
.card.playing .viz *, .card.playing .viz *::before, .card.playing .viz *::after { animation-play-state: running; }
.card { text-align: left; }
.card .viz { flex: 1; position: relative; display: grid; place-items: center; margin: -4px -6px 22px; min-height: 170px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Mini list (priority card) */
.mini { position: relative; width: 100%; max-width: 520px; height: calc(4 * 46px); }
.mrow {
  --c: var(--blue);
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  display: grid;
  grid-template-columns: 9px 22px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  transition: transform 0.75s var(--ease), background 0.4s, box-shadow 0.4s;
}
.mrow.s-waiting { --c: var(--orange); background: rgba(255, 159, 10, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.3); }
.mrow.s-failed { --c: var(--red); }
.mrow.s-done { --c: var(--green); opacity: 0.6; }
.mrow .atile { width: 22px; height: 22px; }
.mrow .mt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.88); }

/* Jump-back card */
.term {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  background: #0c0d10;
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
}
.term-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); }
.term-tabs span { padding: 7px 0; text-align: center; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; position: relative; z-index: 1; }
.term-tabs .hl { position: absolute; top: 0; bottom: 0; left: 0; width: 33.333%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 -2px 0 var(--blue); animation: tabhop 6s var(--ease) infinite; }
@keyframes tabhop { 0%, 30% { transform: translateX(0); } 42%, 88% { transform: translateX(200%); } 100% { transform: translateX(0); } }
.term-body { position: relative; height: 92px; padding: 12px; color: var(--muted); }
.term-body .pane { position: absolute; inset: 12px; transition: opacity 0.3s; }
.term-body .p1 { animation: pane1 6s infinite; }
.term-body .p2 { animation: pane2 6s infinite; opacity: 0; }
@keyframes pane1 { 0%, 36% { opacity: 1; } 40%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes pane2 { 0%, 38% { opacity: 0; } 42%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
.term-body .q { color: var(--orange); }
.term-body .caret { display: inline-block; width: 7px; height: 13px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.jump-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  animation: press 6s var(--ease) infinite;
}
@keyframes press { 0%, 26% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 141, 255, 0.6); } 30% { transform: scale(0.94); } 36% { transform: scale(1); box-shadow: 0 0 0 10px transparent; } 100% { transform: scale(1); } }
.jump-viz { display: flex; flex-direction: column; align-items: center; }

/* Notifications card */
.nstack { position: relative; width: 100%; max-width: 280px; height: 160px; }
.nstack .toast { position: absolute; left: 0; right: 0; top: 0; transform: none; opacity: 1; transition: transform 0.7s var(--ease), opacity 0.6s; }
.nstack .toast img { width: 28px; height: 28px; }
.nstack .toast { grid-template-columns: 28px 1fr; padding: 10px 12px; border-radius: 16px; font-size: 12px; background: #2a2b31; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nstack { height: 110px; }

/* Menu bar card */
.mbar {
  width: 100%;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}
.mbar .mb-pitwall { font-size: 13px; padding: 3px 9px; }
.mbpanel {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border-radius: 12px;
  background: rgba(40, 42, 48, 0.9);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px rgba(0, 0, 0, 0.35);
}
.mbrow { display: grid; grid-template-columns: 8px 20px 1fr auto; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); transition: background 0.4s; }
.mbrow .sdot { width: 8px; height: 8px; }
.mbrow .atile { width: 20px; height: 20px; }
.mbrow .mbt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbrow .mbs { font-size: 11px; color: var(--c); transition: color 0.4s; }
/* Whatever needs you is what you would click. */
.mbrow.s-waiting, .mbrow.s-failed { background: rgba(255, 255, 255, 0.06); }
.mbar-viz { display: flex; flex-direction: column; align-items: center; width: 100%; }
.roll { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom; }
.roll > span { display: block; transition: transform 0.5s var(--ease); }

/* Context card */
.ctx-list { display: grid; gap: 8px; width: 100%; max-width: 290px; text-align: left; }
.crow { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.crow .atile { width: 22px; height: 22px; }
.crow .ct { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.crow .br { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.crow .br b { color: var(--text); font-weight: 500; }
.crow .wt { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; color: #3ecbd1; background: rgba(62, 203, 209, 0.12); }
.ctx { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ctx svg { width: 14px; height: 14px; flex: none; color: var(--dim); }
.ctx b { color: var(--text); font-weight: 500; }
.ctx .wt { margin-left: auto; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; color: #3ecbd1; background: rgba(62, 203, 209, 0.12); }

/* Honest card */
/* History card */
.hist { width: 100%; max-width: 560px; display: grid; gap: 14px; }
.hgroup .hh { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.hrow { display: grid; grid-template-columns: 9px 22px 1fr auto; align-items: center; gap: 11px; padding: 7px 12px; border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.hrow:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.hrow .sdot { width: 8px; height: 8px; }
.hrow .atile { width: 22px; height: 22px; }
.hrow .ht { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow time { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy .sec-lede { margin-bottom: 32px; }
.zeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zero {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.zero .n { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zero .l { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.zero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ---------- Setup terminal ---------- */
.shell {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 16px;
  background: #0b0c0f;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 100px -40px rgba(76, 141, 255, 0.35);
  overflow: hidden;
  text-align: left;
}
.shell .titlebar { background: rgba(255, 255, 255, 0.03); }
.shell pre { margin: 0; padding: 22px 24px 26px; min-height: 330px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.86); white-space: pre-wrap; word-break: break-word; }
.shell .p { color: var(--green); }
.shell .o { color: var(--muted); }
.shell .ok { color: var(--green); }
.shell .cm { color: var(--dim); }
.shell .cur { display: inline-block; width: 8px; height: 16px; background: var(--text); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 13px;
  max-width: 100%;
}
.cmd code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.copy { flex: none; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--muted); border-radius: 8px; padding: 4px 10px; font-family: var(--sans); font-size: 12px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }
.cmd[hidden] { display: none; }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 140px 0 150px; text-align: center; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -40%);
  background: radial-gradient(closest-side, rgba(76, 141, 255, 0.2), rgba(76, 141, 255, 0.04) 60%, transparent);
  filter: blur(20px);
  pointer-events: none;
}
.final .icon-wrap { position: relative; display: inline-block; margin-bottom: 30px; }
.final .icon-wrap img { width: 104px; height: 104px; position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.final .icon-wrap::after { content: ""; position: absolute; inset: 10px; border-radius: 22px; background: rgba(76, 141, 255, 0.6); filter: blur(30px); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.final h2 { margin-left: auto; margin-right: auto; font-size: clamp(40px, 6vw, 72px); }
.final .sec-lede { margin: 0 auto 36px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .privacy { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .hero { padding-top: 116px; }
  .stage-wrap { padding: 0 12px; margin-top: 52px; }
  .desk { border-radius: 16px; padding-bottom: 28px; }
  .menubar .mb-hide { display: none; }
  .window { width: calc(100% - 24px); margin-top: 92px; }
  .toasts { width: calc(100% - 24px); right: 12px; top: 36px; }
  .toast { padding: 9px 11px; font-size: 12px; }
  .brow { grid-template-columns: 9px 22px minmax(0, 1fr) 68px; gap: 10px; padding: 0 12px; }
  .bctx, .btime { display: none; }
  .section { padding: 90px 0; }
  .sec-lede { font-size: 16px; margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide, .card.full { grid-column: auto; }
  .card { min-height: 0; }
  .tl-card { padding: 20px 16px; }
  .lane, .axis { grid-template-columns: 34px 1fr; gap: 10px; }
  .lname .nm { display: none; }
  .tl-stats { grid-template-columns: 1fr 1fr; }
  .tl-note { grid-column: 1 / -1; text-align: left; }
  .zero .n { font-size: 48px; }
  .shell pre { font-size: 12px; padding: 16px; min-height: 300px; }
  .final { padding: 100px 0 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal, html.js .stage-intro { opacity: 1; transform: none; filter: none; }
  .stage { --tilt: 0 !important; }
}
