/* dedupe — noisy logs in, signal out.
   paper, ink, one electric blue. */
:root {
  color-scheme: light;
  --paper: #eeede8;
  --paper-2: #e4e3dc;
  --card: #fbfbf8;
  --ink: #111111;
  --ink-2: #3a3936;
  --mute: #75746d;
  --line: rgba(17, 17, 17, 0.12);
  --sig: #1f5eff;
  --sig-2: #6f97ff;
  --sig-soft: rgba(31, 94, 255, 0.12);
  --night: #0d0e11;
  --night-2: #16181d;
  --night-line: rgba(255, 255, 255, 0.08);
  --err: #ff5d52;
  --warn: #f2b33d;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --row: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--sig); color: #fff; }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 13px var(--mono); border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--sig); color: #fff; }
.btn-ghost { border-color: rgba(17, 17, 17, 0.2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(17, 17, 17, 0.04); }

/* ── top bar ── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 237, 232, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.bar-nav { display: flex; align-items: center; gap: 22px; }
.bar-link { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.bar-link:hover { color: var(--sig); }

/* ── hero ── */
.hero { min-height: calc(100svh - 64px); padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); display: flex; flex-direction: column; gap: clamp(40px, 6vh, 72px); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  font-weight: 600;
  font-size: clamp(52px, 10.4vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.058em;
  margin-left: -0.04em;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0.02em 0.06em 0.08em; margin-bottom: -0.08em; }
.hero-title .ln > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--sig); }
.hero-sub { text-wrap: balance; margin-top: clamp(20px, 3vh, 30px); max-width: 30ch; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.01em; }
.hero-cta { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  height: 52px; padding: 0 6px 0 20px; border-radius: 999px;
  background: var(--ink); color: #f3f3ee; font-size: 14px;
  box-shadow: 0 10px 30px -12px rgba(17, 17, 17, 0.45);
}
.pill .pr { color: var(--sig-2); }
.pill code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy {
  flex: none; height: 40px; min-width: 76px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 500 13px var(--mono);
  transition: background 0.2s;
}
.copy:hover { background: var(--sig); }
.copy.done { background: var(--sig); }

/* hero stage: the live stream */
.stage { margin: 0; position: relative; }
.stage::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(31, 94, 255, 0.28), transparent 70%);
  filter: blur(30px);
}
.win { border-radius: 22px; overflow: hidden; }
.win-dark {
  background: var(--night); color: #d9dad4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(17, 17, 17, 0.55), 0 12px 24px -12px rgba(17, 17, 17, 0.3);
}
.win-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--night-line); font-size: 13px; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3c42; }
.win-title { flex: 1; color: #8d8f96; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title b { color: #fff; font-weight: 500; }
.fig-btn { border: 1px solid var(--night-line); background: transparent; color: #a5a7ad; height: 28px; padding: 0 12px; border-radius: 999px; font: 12px var(--mono); cursor: pointer; }
.fig-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.stream { position: relative; font-family: var(--mono); display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.35fr); height: clamp(340px, 42vh, 440px); }
.st-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.st-head { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 0 18px; font-size: 11.5px; color: #7c7e85; text-transform: uppercase; letter-spacing: 0.06em; flex: none; }
.st-head .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--err); margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
.st-rate, .st-groups { color: #b6b8bd; font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.st-in { flex: 1; position: relative; overflow: hidden; -webkit-mask: linear-gradient(to bottom, transparent, #000 45%); mask: linear-gradient(to bottom, transparent, #000 45%); }
.st-in-track { position: absolute; left: 0; right: 0; bottom: 8px; padding: 0 18px; }
.st-line { font-size: 11.5px; line-height: 20px; color: #6d7078; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-line:last-child { color: #c9cbcf; }
.st-line .tk { color: var(--sig-2); }
.st-pipe { position: relative; display: grid; place-items: center; }
.st-pipe::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 1px; background: linear-gradient(to bottom, transparent, rgba(111, 151, 255, 0.5), transparent); }
.st-pipe span {
  position: relative; writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 14px 7px; border-radius: 999px; background: var(--sig); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 0 0 6px rgba(31, 94, 255, 0.15), 0 0 30px rgba(31, 94, 255, 0.6);
}
.st-pane-out { background: var(--night-2); border-left: 1px solid var(--night-line); }
.st-out { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 10px 10px; }
.st-row {
  flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 12px;
  height: var(--row); padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: #e9eae5;
  transition: background 0.25s, opacity 0.4s;
}
.st-row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row .t .lv-e { color: var(--err); }
.st-row .t .lv-w { color: var(--warn); }
.st-row .c { justify-self: end; min-width: 46px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--sig); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 20px; }
.st-row .c.one { background: transparent; color: #7c7e85; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.st-row .ago { font-size: 11px; color: #6d7078; text-align: right; white-space: nowrap; }
.st-row.new { animation: rowIn 0.45s var(--ease); }
.st-row.hit { background: rgba(31, 94, 255, 0.22); transition: none; }
.st-row.hit .c { transform: scale(1.12); }
.st-row .c { transition: transform 0.25s var(--ease); }
.st-row.frozen { opacity: 0.45; }
.st-row.vital { background: rgba(255, 93, 82, 0.1); box-shadow: inset 2px 0 0 var(--err); }
.ghost { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; font: 11.5px var(--mono); color: var(--sig-2); white-space: nowrap; }
.st-meter { display: flex; align-items: center; gap: 18px; height: 50px; padding: 0 18px; border-top: 1px solid var(--night-line); font-size: 13px; color: #a5a7ad; }
.st-sum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 0; background: var(--sig); border-radius: 4px; transition: width 0.4s var(--ease); }
.st-q { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

@keyframes rowIn { from { opacity: 0; transform: translateY(8px); background: rgba(31, 94, 255, 0.3); } }
@keyframes blink { 50% { opacity: 0.25; } }

/* ── sections ── */
.sec { padding: clamp(80px, 12vw, 160px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-title { text-wrap: balance; font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.sec-sub { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

/* ── demo ── */
.demo { padding-top: clamp(40px, 6vw, 80px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 15px; font-weight: 500; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip-ic { display: inline-grid; place-items: center; min-width: 36px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--paper-2); font-size: 11.5px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(17, 17, 17, 0.6); }
.chip[aria-pressed="true"] .chip-ic { background: var(--sig); color: #fff; }
.chip-clear { padding: 0 20px; background: transparent; border-style: dashed; color: var(--ink-2); }

.panel {
  border-radius: 28px; background: var(--card); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(17, 17, 17, 0.35), 0 16px 32px -20px rgba(17, 17, 17, 0.2);
}
.meter { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 24px; padding: 28px clamp(20px, 3vw, 36px) 26px; border-bottom: 1px solid var(--line); }
.meter-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font-size: clamp(16px, 1.6vw, 20px); color: var(--mute); }
.meter-text b { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.meter-text .arr { font-size: clamp(24px, 3vw, 40px); color: var(--sig); }
.meter-q { font-size: clamp(16px, 1.6vw, 20px); color: var(--sig); font-weight: 500; white-space: nowrap; }
.meter-q b { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.meter-bar { grid-column: 1 / -1; height: 10px; border-radius: 10px; background: var(--paper-2); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--sig), #5b8cff); transition: width 0.9s var(--ease); }
.meter.pop .meter-q b { animation: pop 0.5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }
.meter-q b { display: inline-block; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pane { display: flex; flex-direction: column; min-width: 0; }
.pane-out { border-left: 1px solid var(--line); background: #fff; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pane-k { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 11.5px; color: var(--mute); }
.pane-k.k-after { color: var(--sig); }
.pad {
  flex: 1 1 auto; display: block; width: 100%; height: 460px; resize: none; border: 0; margin: 0;
  padding: 14px clamp(14px, 2vw, 24px); background: transparent; color: var(--ink-2);
  font-size: 12px; line-height: 20px; outline: none; white-space: pre; overflow: auto;
}
.pad:focus-visible { box-shadow: inset 0 0 0 2px var(--sig); border-radius: 0; }
.kq { display: flex; align-items: center; gap: 8px; padding: 12px clamp(14px, 2vw, 24px); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); cursor: pointer; }
.kq input { accent-color: var(--sig); width: 16px; height: 16px; margin: 0; }

.tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); gap: 2px; }
.tabs button { border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: 999px; font: 12px var(--mono); color: var(--mute); cursor: pointer; transition: background 0.2s, color 0.2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.out { flex: 1 1 auto; height: 460px; overflow: auto; padding: 8px 0; font-size: 12.5px; }
.out:focus-visible { outline-offset: -2px; border-radius: 0; }
.g { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; padding: 7px clamp(14px, 2vw, 24px); cursor: default; animation: gIn 0.45s var(--ease) backwards; }
.g:hover, .g:focus-within, .g.is-open { background: rgba(31, 94, 255, 0.05); }
.g .cnt { align-self: start; justify-self: start; min-width: 48px; text-align: center; padding: 0 8px; background: var(--sig); color: #fff; font-weight: 600; border-radius: 999px; font-variant-numeric: tabular-nums; line-height: 22px; }
.g .cnt.one { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.g .line { white-space: pre; overflow: hidden; text-overflow: ellipsis; line-height: 22px; }
.g .fp { grid-column: 2; display: none; white-space: pre-wrap; word-break: break-all; line-height: 20px; color: var(--ink-2); padding: 4px 0 6px; }
.g .fp::before { content: "fingerprint  "; color: var(--mute); }
.g:hover .fp, .g:focus-within .fp, .g.is-open .fp { display: block; }
.g:hover .line, .g.is-open .line { white-space: pre-wrap; word-break: break-all; }
@keyframes gIn { from { opacity: 0; transform: translateY(6px); } }
.tok { background: var(--sig-soft); box-shadow: inset 0 -1px 0 var(--sig); border-radius: 2px; }
.fp .tok, .legend .tok { background: var(--sig); color: #fff; box-shadow: none; padding: 0 3px; }
.out .empty { padding: 30px clamp(14px, 2vw, 24px); color: var(--mute); }
.out pre { margin: 0; padding: 8px clamp(14px, 2vw, 24px); white-space: pre; line-height: 22px; font: inherit; }
.out pre i { font-style: normal; color: var(--mute); }
.out pre b { color: var(--sig); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px clamp(14px, 2vw, 24px); border-top: 1px solid var(--line); font-size: 11.5px; }
.legend .muted { margin-left: auto; }

/* ── feature tiles ── */
.feats { padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 12px 12px 30px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(17, 17, 17, 0.4); }
.tile h3 { margin: 26px 18px 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.tile p { margin: 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.ill { position: relative; height: 170px; border-radius: 18px; background: var(--paper); overflow: hidden; font-size: 12.5px; }

.ill-merge .l { position: absolute; left: 50%; top: 50%; white-space: nowrap; padding: 7px 12px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -10px rgba(17, 17, 17, 0.4); transform: translate(-50%, -50%); }
.ill-merge .l b { color: var(--sig); font-weight: 600; }
.ill-merge .l em { font-style: normal; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--sig); color: #fff; font-weight: 600; }
.ill-merge .l1 { animation: m1 4s var(--ease) infinite; }
.ill-merge .l2 { animation: m2 4s var(--ease) infinite; }
.ill-merge .l3 { animation: m3 4s var(--ease) infinite; }
@keyframes m1 { 0%, 20% { transform: translate(-50%, -150%); opacity: 1; } 45%, 90% { transform: translate(-50%, -50%); opacity: 0; } 100% { transform: translate(-50%, -150%); opacity: 0; } }
@keyframes m2 { 0%, 20% { transform: translate(-50%, 50%); opacity: 1; } 45%, 90% { transform: translate(-50%, -50%); opacity: 0; } 100% { transform: translate(-50%, 50%); opacity: 0; } }
@keyframes m3 { 0%, 38% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } 50%, 88% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

.ill-count { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 16px; }
.ill-count .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -10px rgba(17, 17, 17, 0.4); white-space: nowrap; overflow: hidden; }
.ill-count .row.dim { opacity: 0.5; }
.ill-count em { font-style: normal; flex: none; min-width: 52px; text-align: center; padding: 0 8px; border-radius: 999px; background: var(--sig); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ill-count .row.dim em { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.ill-count .cnt.bump { animation: bump 0.2s var(--ease); }
@keyframes bump { 50% { transform: scale(1.15); } }

.ill-pipe { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 16px; }
.ill-pipe .seg { flex: none; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 500; }
.ill-pipe .seg-2 { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(17, 17, 17, 0.4); }
.ill-pipe .flow { position: relative; flex: 0 1 110px; min-width: 50px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.25) 0 6px, transparent 6px 10px); }
.ill-pipe .flow i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 3px; background: var(--sig); animation: flow 2.4s linear infinite; }
.ill-pipe .flow i:nth-child(2) { animation-delay: 0.8s; }
.ill-pipe .flow i:nth-child(3) { animation-delay: 1.6s; }
@keyframes flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

/* ── install (the one dark section) ── */
.install { padding-bottom: clamp(56px, 7vw, 96px); background: var(--night); color: #f3f3ee; border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.install-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.install .sec-title { color: #fff; }
.itabs { display: inline-flex; gap: 2px; padding: 4px; margin-top: 36px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.itabs button { border: 0; background: transparent; color: #a5a7ad; height: 36px; padding: 0 16px; border-radius: 999px; font: 13px var(--mono); cursor: pointer; transition: background 0.2s, color 0.2s; }
.itabs button:hover { color: #fff; }
.itabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.term {
  position: relative; width: 100%; max-width: 920px; margin-top: 20px; text-align: left;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px); padding-right: 120px;
  border-radius: 22px; background: var(--night-2); border: 1px solid var(--night-line);
  font-size: clamp(14px, 1.6vw, 20px); line-height: 1.8;
}
.term p { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.term p::-webkit-scrollbar { display: none; }
.term .pr { color: var(--sig-2); user-select: none; margin-right: 6px; }
.term .dim { color: #7c7e85; }
.term .copy { position: absolute; top: clamp(20px, 2.6vw, 30px); right: clamp(16px, 2vw, 24px); height: 42px; background: var(--sig); }
.term .copy:hover { background: #3f76ff; }
.install-note { margin-top: 22px; color: #8d8f96; font-size: 16px; }

/* ── footer ── */
.foot { background: var(--night); color: #f3f3ee; padding: clamp(40px, 6vw, 80px) 0 32px; overflow: hidden; }
.foot-word {
  font-weight: 700; font-size: clamp(88px, 21vw, 300px); line-height: 0.8; letter-spacing: -0.07em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
  white-space: nowrap; margin: 0 0 clamp(40px, 6vw, 72px) -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 90%); -webkit-background-clip: text; background-clip: text;
}
.fw-x { -webkit-text-stroke: 0; color: var(--sig); font-size: 0.32em; letter-spacing: -0.03em; margin-left: 0.12em; vertical-align: 0.95em; font-variant-numeric: tabular-nums; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.series-h { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #8d8f96; margin-bottom: 16px; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sc {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 96px; padding: 16px 16px 16px 18px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--night-line); overflow: hidden;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.sc::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.sc:hover { background: rgba(255, 255, 255, 0.08); border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.sc-n { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; color: #fff; }
.sc-t { font-size: 13.5px; color: #8d8f96; }
.sc.here { background: var(--c); border-color: var(--c); }
.sc.here::before { background: #fff; }
.sc.here .sc-t { color: rgba(255, 255, 255, 0.82); }
.sc-you { margin-top: auto; padding-top: 8px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; color: #8d8f96; }
.foot-row a { color: #f3f3ee; transition: color 0.2s; }
.foot-row a:hover { color: var(--sig-2); }
.foot-row span:last-child { margin-left: auto; }

/* ── motion ── */
.js .hero-title .ln > span { transform: translateY(105%); animation: up 0.9s var(--ease) forwards; }
.js .hero-title .ln:nth-child(2) > span { animation-delay: 0.08s; }
.js .hero-sub, .js .hero-cta { opacity: 0; animation: fadeUp 0.8s var(--ease) forwards; }
.js .hero-sub { animation-delay: 0.22s; }
.js .hero-cta { animation-delay: 0.3s; }
.js .stage { opacity: 0; animation: stageIn 1s var(--ease) 0.15s forwards; }
@keyframes up { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stageIn { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tiles .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .tiles .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ill-merge .l1, .ill-merge .l2 { display: none; }
  .ill-merge .l3 { animation: none !important; opacity: 1; }
}

/* ── responsive ── */
@media (max-width: 980px) {
  .tiles { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .series-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stream { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px 40px minmax(0, 1fr); height: 520px; }
  .st-pipe::before { top: 0; bottom: 0; }
  .st-pipe span { writing-mode: horizontal-tb; transform: none; padding: 5px 14px; }
  .st-pane-out { border-left: 0; border-top: 1px solid var(--night-line); }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; font-size: 12px; }
  .st-row .ago { display: none; }
  .st-meter { gap: 12px; font-size: 12px; }
  .st-sum { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .pane-out { border-left: 0; border-top: 1px solid var(--line); }
  .pad { height: 220px; }
  .out { height: 380px; }
  .g { grid-template-columns: 52px minmax(0, 1fr); column-gap: 10px; }
  .g .cnt { min-width: 42px; }
  .pane-head { flex-wrap: wrap; }
  .meter { grid-template-columns: 1fr; }
  .term { padding-right: clamp(20px, 3vw, 40px); padding-bottom: 80px; }
  .term .copy { top: auto; bottom: 18px; right: 18px; }
  .foot-row span:last-child { margin-left: 0; }
}
@media (max-width: 520px) {
  .bar-nav { gap: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .pill { font-size: 12px; gap: 8px; padding-left: 16px; }
  .btn-ghost { width: 100%; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { height: 46px; font-size: 14px; padding-right: 12px; }
  .chip-clear { justify-content: center; padding: 0 12px; }
  .legend .muted { margin-left: 0; width: 100%; }
  .tabs button { padding: 0 9px; }
  .win-title { text-align: left; }
}
