/* MicroFunBOT 2026 */

:root,
[data-theme="dark"] {
  --bg: #0b0a09;
  --bg-2: #110f0d;
  --surface: #161311;
  --surface-2: #1e1a17;
  --surface-3: #272220;
  --line: rgba(255, 236, 218, 0.08);
  --line-2: rgba(255, 236, 218, 0.15);
  --text: #f6efe7;
  --muted: #a99d92;
  --dim: #6e645b;
  --accent: #ff5a1f;
  --accent-2: #ffb054;
  --accent-ink: #ffc7a3;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --glow: rgba(255, 90, 31, 0.32);
  --glow-soft: rgba(255, 140, 70, 0.1);
  --glass: rgba(18, 16, 14, 0.7);
  --plate: #ffffff;
  --plate-line: transparent;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --grain: 0.06;
  --user: #7cb8ff;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4eee5;
  --bg-2: #ede5d9;
  --surface: #fffaf3;
  --surface-2: #f7f0e6;
  --surface-3: #eee5d8;
  --line: rgba(52, 32, 14, 0.1);
  --line-2: rgba(52, 32, 14, 0.18);
  --text: #1b1510;
  --muted: #6b5d50;
  --dim: #a09080;
  --accent: #ec4a0e;
  --accent-2: #d9780a;
  --accent-ink: #b23a06;
  --accent-soft: rgba(236, 74, 14, 0.1);
  --glow: rgba(236, 74, 14, 0.22);
  --glow-soft: rgba(236, 74, 14, 0.07);
  --glass: rgba(255, 250, 243, 0.72);
  --plate: #ffffff;
  --plate-line: rgba(52, 32, 14, 0.08);
  --ok: #16a34a;
  --warn: #b45309;
  --bad: #dc2626;
  --shadow: 0 30px 70px -34px rgba(80, 48, 20, 0.35);
  --shadow-sm: 0 10px 26px -14px rgba(80, 48, 20, 0.3);
  --grain: 0.08;
  --user: #1d5fd1;
  color-scheme: light;
}

:root {
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.aura {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vw 34vh at 78% 18%, var(--glow), transparent 70%),
    radial-gradient(30vw 28vh at 12% 8%, var(--glow-soft), transparent 70%);
  filter: blur(10px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Top bar ===== */

.topbar {
  position: sticky;
  top: 12px;
  z-index: 60;
  padding: 0 16px;
  margin-top: 12px;
}

.topbar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand b {
  font-family: var(--display);
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
}

.brand b span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--text); background: var(--accent-soft); }

.nav a.is-active { color: var(--text); }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  width: 62px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.theme-toggle svg {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  color: var(--dim);
}

.theme-toggle .i-sun { left: 10px; }
.theme-toggle .i-moon { right: 10px; }

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 4px 14px var(--glow);
  transition: transform 0.45s var(--ease);
}

[data-theme="dark"] .theme-toggle::after { transform: translateX(26px); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.topbar.is-open .nav-toggle span { background: transparent; }
.topbar.is-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.topbar.is-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2) -20%, var(--accent) 55%);
  box-shadow: 0 14px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-line {
  color: var(--text);
  border-color: var(--line-2);
  background: transparent;
}

.btn-line:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ===== Type ===== */

.display,
.h2,
.h3 {
  font-family: var(--display);
  font-weight: 720;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "opsz" 96;
  margin: 0;
}

.h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 0.98;
}

.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.kbd,
code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 40px;
  overflow-x: hidden;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.live-pill b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(3.2rem, 7.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "opsz" 96;
  margin: 0 0 26px;
}

.hero h1 .row { display: block; }

.hero h1 .hl {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.12em;
}

.hero h1 .hl em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eq-inline {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.05em;
  height: 0.62em;
  margin-bottom: 0.14em;
}

.eq-inline i {
  width: 0.075em;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite;
}

.eq-inline i:nth-child(2) { animation-delay: -0.3s; }
.eq-inline i:nth-child(3) { animation-delay: -0.6s; }
.eq-inline i:nth-child(4) { animation-delay: -0.15s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.hero h2 {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}

.hero .lede { margin-bottom: 34px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-2);
}

.hero-facts div { display: flex; flex-direction: column; }

.hero-facts strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
  line-height: 1;
}

.hero-facts span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== Console ===== */

.stage { position: relative; }

.stage::before {
  content: "";
  position: absolute;
  inset: -12% -14% -10% -8%;
  z-index: -1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, var(--line) 22px 23px),
    radial-gradient(circle at 50% 50%, var(--glow-soft), transparent 65%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  animation: spin 60s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.console {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow), 0 0 0 8px var(--accent-soft);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}

.stage:hover .console { transform: perspective(1400px) rotateY(0) rotateX(0); }

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.lights { display: inline-flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.lights i:first-child { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.console-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.live-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.live-tag b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.console-main {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 300px;
}

.tree {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  background: var(--bg-2);
}

.tree .srv {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tree .ch,
.tree .u {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree .ch { color: var(--muted); font-weight: 550; }
.tree .ch::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--dim);
  flex: 0 0 auto;
}

.tree .ch.on { color: var(--text); background: var(--accent-soft); }
.tree .ch.on::before { border-color: var(--accent); }

.tree .u { padding-left: 24px; color: var(--muted); }
.tree .u::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  flex: 0 0 auto;
}

.tree .u.bot { color: var(--text); font-weight: 600; }
.tree .u.bot::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); animation: talk 0.9s infinite; }

@keyframes talk { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.05); } }

.chat {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  max-height: 300px;
}

.msg {
  font-size: 13.5px;
  line-height: 1.45;
  animation: rise 0.45s var(--ease) both;
}

.msg time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-right: 8px;
}

.msg b { font-weight: 650; margin-right: 6px; }
.msg.me b { color: var(--user); }
.msg.me .t { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.msg.bot b { color: var(--accent); }
.msg.bot .t { color: var(--muted); }
.msg.bot .t strong { color: var(--text); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.np {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 7px;
  background:
    radial-gradient(circle, transparent 38%, rgba(0, 0, 0, 0.55) 39%, rgba(0, 0, 0, 0.55) 41%, transparent 42%),
    repeating-radial-gradient(circle, #1a1715 0 2px, #0f0d0c 2px 4px);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  animation: spin 4s linear infinite;
}

.disc img { width: 100%; height: 100%; border-radius: 50%; }

.np-meta { min-width: 0; }

.np-meta strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.np-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
}

.np-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: progress 26s linear forwards;
}

.np-bar.live i { width: 100%; animation: none; opacity: 0.55; }

@keyframes progress { to { width: 100%; } }

.np-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq i {
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(2n) { animation-duration: 0.7s; background: var(--accent-2); }
.eq i:nth-child(3n) { animation-duration: 1.2s; }
.eq i:nth-child(1) { animation-delay: -0.2s; }
.eq i:nth-child(4) { animation-delay: -0.5s; }
.eq i:nth-child(6) { animation-delay: -0.35s; }

.np-vol {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.console-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  min-height: 52px;
}

.console-input .pr { color: var(--accent); font-weight: 600; }
.console-input .ph { color: var(--dim); }

.caret {
  width: 8px;
  height: 17px;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1s steps(1) infinite;
}

.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}

.try > span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.try button {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.try button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* ===== Dial ===== */

.dial {
  position: relative;
  margin-top: clamp(48px, 7vw, 90px);
  height: 64px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}

.dial-ticks {
  position: absolute;
  inset: 0 0 22px;
  background:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 120px);
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%);
  mask: linear-gradient(180deg, #000, transparent 85%);
  opacity: 0.8;
}

.dial-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px 2px var(--glow);
  animation: tune 14s var(--ease) infinite alternate;
}

.needle::after {
  content: attr(data-label);
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

@keyframes tune {
  0% { left: 8%; }
  30% { left: 34%; }
  55% { left: 52%; }
  80% { left: 77%; }
  100% { left: 90%; }
}

/* ===== Marquee ===== */

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 48s linear infinite;
}

.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }

.marquee span {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 42px;
}

.marquee span::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.marquee .o { color: transparent; -webkit-text-stroke: 1.2px var(--muted); }

@keyframes slide { to { transform: translateX(-50%); } }

/* ===== Sections ===== */

.sec { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.sec-tight { padding-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-head .lede { justify-self: end; }

.sec-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.sec-head.center .lede { justify-self: center; }

/* ===== Bento ===== */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--glow-soft), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}

.tile:hover { border-color: var(--line-2); }
.tile:hover::after { opacity: 1; }

.tile.s3 { grid-column: span 3; }
.tile.s2 { grid-column: span 2; }
.tile.s4 { grid-column: span 4; }

.tile .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.tile h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 720;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 88;
  line-height: 1.05;
  margin: 0;
}

.tile p { margin: 0; color: var(--muted); max-width: 46ch; }

.tile .viz { margin-top: auto; }

.toggles { display: grid; gap: 10px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
}

.sw {
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}

.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.sw.off { background: var(--surface-3); }
.sw.off::after { right: auto; left: 3px; }

.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 90px;
}

.wave i {
  flex: 1;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  height: 30%;
  animation: eq 1.4s ease-in-out infinite;
  opacity: 0.9;
}

.spec {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.spec span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.steps-mini { display: grid; gap: 8px; }

.steps-mini div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.steps-mini b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--mono);
}

.steps-mini div.done { color: var(--text); }
.steps-mini div.done b { background: var(--ok); color: #06210f; }

.big-stat {
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variation-settings: "wdth" 88;
}

/* ===== Split stories ===== */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.story:first-of-type { border-top: 0; padding-top: 0; }

.story.flip .story-copy { order: 2; }

.story-index {
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--line-2);
  margin-bottom: 18px;
  font-variation-settings: "wdth" 88;
}

.story-copy .h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin-bottom: 22px; }
.story-copy p { color: var(--muted); margin: 0 0 16px; font-size: 1.06rem; max-width: 54ch; }
.story-copy .btn { margin-top: 14px; }

.mock {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compat { display: grid; gap: 10px; }

.compat div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.compat .ver {
  font-family: var(--display);
  font-weight: 720;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
  min-width: 76px;
}

.compat .lbl { color: var(--muted); font-size: 14px; }

.ok-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.ok-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ok-tag.warn { color: var(--warn); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.25); }
.ok-tag.bad { color: var(--bad); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.25); }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12.5px;
}

.seg span { padding: 4px 12px; border-radius: 999px; color: var(--muted); }
.seg span.on { background: var(--accent); color: #fff; }

.bots { display: grid; gap: 10px; }

.bot-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.bot-row img { width: 38px; height: 38px; border-radius: 50%; }
.bot-row strong { display: block; font-size: 14px; }
.bot-row small { color: var(--muted); font-size: 12.5px; }

.spark {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.spark-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  margin-bottom: 8px;
}

.spark svg { width: 100%; height: 70px; display: block; }

.float-chip {
  position: absolute;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  font-family: var(--mono);
  font-size: 12.5px;
  animation: bob 5s ease-in-out infinite;
}

.float-chip.a { top: -18px; right: 24px; }
.float-chip.b { bottom: -18px; left: 24px; animation-delay: -2.5s; }

@keyframes bob { 50% { transform: translateY(-8px); } }

/* ===== Stats band ===== */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.band-grid div {
  padding: 42px 26px;
  border-left: 1px solid var(--line);
}

.band-grid div:first-child { border-left: 0; }

.band-grid strong {
  display: block;
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variation-settings: "wdth" 88;
}

.band-grid span { color: var(--muted); font-size: 14px; }

/* ===== Explore cards ===== */

.explore {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.xcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.xcard:hover { transform: translateY(-6px); border-color: var(--accent); }

.xcard .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xcard h3 {
  font-family: var(--display);
  font-weight: 720;
  font-size: 30px;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
  margin: auto 0 10px;
  line-height: 1;
}

.xcard p { margin: 0; color: var(--muted); font-size: 14.5px; }

.xcard .arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  transition: background 0.3s, transform 0.4s var(--ease), border-color 0.3s;
}

.xcard .arrow svg { width: 16px; height: 16px; }
.xcard:hover .arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.xcard .ghost {
  position: absolute;
  right: -10px;
  bottom: -34px;
  font-family: var(--display);
  font-weight: 760;
  font-size: 150px;
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none;
  font-variation-settings: "wdth" 88;
}

/* ===== Sellers ===== */

.sellers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seller {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 16px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.seller:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px var(--glow);
}

.seller-plate {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 90, 31, 0.08), transparent 60%),
    var(--plate);
  border: 1px solid var(--plate-line);
  padding: 20px;
}

.seller-plate img {
  max-width: 220px;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.seller:hover .seller-plate img { transform: scale(1.06); }

.seller-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px;
}

.seller-body h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 720;
  font-size: 24px;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 88;
}

.seller-plate,
.seller-body h3 a {
  color: inherit;
  text-decoration: none;
}

.seller-body p { margin: 0; color: var(--muted); font-size: 14px; }

.seller-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
}

.seller-go svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.seller:hover .seller-go svg { transform: translate(2px, -2px); }

.seller .rank {
  position: absolute;
  top: 26px;
  left: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: #a39486;
  letter-spacing: 0.1em;
}

/* ===== Form ===== */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.perks { display: grid; gap: 14px; margin-top: 34px; }

.perk {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.perk i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.perk i svg { width: 20px; height: 20px; }
.perk h4 { margin: 0 0 4px; font-size: 16px; }
.perk p { margin: 0; color: var(--muted); font-size: 14.5px; }

.form-card {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 8px 4px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ts-box {
  display: flex;
  justify-content: center;
  min-height: 68px;
}

.form-foot {
  display: flex;
  justify-content: center;
}

.form-message {
  min-height: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 12px;
}

.form-message p { margin: 0; }

/* ===== CTA ===== */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(40px, 7vw, 90px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 176, 84, 0.5), transparent 60%),
    linear-gradient(135deg, #ff6a26, #e2400a);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 32px;
  align-items: end;
}

.cta .h2 { color: #fff; }

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 90% 110%, transparent 0 26px, rgba(255, 255, 255, 0.09) 26px 27px);
  pointer-events: none;
}

.cta .btn { position: relative; z-index: 1; background: #fff; color: #1b1510; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.4); }

/* ===== Footer ===== */

.footer {
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer p { color: var(--muted); font-size: 14.5px; max-width: 40ch; }

.footer h4 {
  margin: 4px 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li { font-size: 14.5px; color: var(--muted); }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }

.wordmark {
  margin: 56px 0 8px;
  font-family: var(--display);
  font-weight: 780;
  font-size: clamp(3.4rem, 13vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-2);
  user-select: none;
  white-space: nowrap;
}

.wordmark span { -webkit-text-stroke: 0; color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13.5px;
}

.footer-bottom p { margin: 0; max-width: none; color: var(--dim); }

/* ===== Page hero ===== */

.page-hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 60px);
}

.crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 26px;
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page-hero h1 {
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88, "opsz" 96;
  margin: 0 0 26px;
}

.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: var(--surface);
}

.hero-meta span b { color: var(--text); font-weight: 600; }

/* ===== Guide ===== */

.guide {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.toc h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  padding-top: 2px;
}

.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.on { color: var(--text); background: var(--accent-soft); }
.toc a.on::before { color: var(--accent); }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
}

.prose { max-width: 760px; }

.prose section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.prose section:last-child { border-bottom: 0; }

.prose .sec-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 740;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
  margin: 0 0 20px;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 34px 0 10px;
  letter-spacing: -0.015em;
}

.prose p,
.prose li { color: var(--muted); font-size: 1.04rem; }

.prose p strong,
.prose li strong { color: var(--text); }

.prose ul,
.prose ol { padding-left: 20px; }

.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }

.prose a { color: var(--accent-ink); text-underline-offset: 3px; }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  margin: 24px 0;
}

.callout .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  height: fit-content;
}

.callout p { margin: 0; }

.callout.warn .tag { color: var(--warn); background: rgba(251, 191, 36, 0.12); }

.snippet {
  margin: 22px 0;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  overflow: hidden;
}

.snippet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.snippet-body { padding: 14px 18px; display: grid; gap: 8px; }
.snippet .msg { animation: none; }

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

.cmd-table th,
.cmd-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmd-table th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.cmd-table td { color: var(--muted); }
.cmd-table td:first-child { width: 34%; }

.faq { display: grid; gap: 10px; }

.faq details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 20px;
  transition: border-color 0.2s;
}

.faq details[open] { border-color: var(--line-2); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.reasons div {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
}

.reasons b { display: block; margin-bottom: 2px; }
.reasons span { color: var(--muted); }

/* ===== Commands ===== */

.filterbar {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  margin-bottom: 26px;
}

.search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
}

.search svg { width: 17px; height: 17px; color: var(--dim); flex: 0 0 auto; }

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  min-width: 0;
}

.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { color: #fff; background: var(--accent); border-color: var(--accent); }

.chip small {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--muted);
}

.chip.on small { background: rgba(255, 255, 255, 0.22); color: #fff; }

.count-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cmd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.cmd-card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.cmd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cmd-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cmd-name i { font-style: normal; color: var(--accent); }

.toc { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

.cmd-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.cmd-alias { display: flex; flex-wrap: wrap; gap: 6px; }

.cmd-alias span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.cmd-card p { margin: 0; color: var(--muted); font-size: 15px; }

.cmd-ex {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-ink);
  overflow: hidden;
}

.cmd-ex span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.copy-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty {
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px dashed var(--line-2);
  text-align: center;
  color: var(--muted);
}

.hidden { display: none !important; }

/* ===== Updates ===== */

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 0;
}

.release {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  position: relative;
}

.release-side {
  position: sticky;
  top: 190px;
  align-self: start;
  padding-top: 8px;
}

.release-ver {
  font-family: var(--display);
  font-weight: 760;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
}

.release-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-top: 8px;
  display: block;
}

.release-kind {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.release-kind.bot { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.release-card {
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.release-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 720;
  font-size: 26px;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 88;
  line-height: 1.1;
}

.release-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.release-card h4::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.release-card h4.chg::before { background: #60a5fa; }
.release-card h4.fix::before { background: var(--warn); }
.release-card h4.rem::before { background: var(--bad); }

.release-card ul { margin: 0; padding-left: 18px; }
.release-card li { color: var(--muted); margin-bottom: 7px; }
.release-card li::marker { color: var(--dim); }
.release-card p { color: var(--muted); margin: 0; }

/* ===== Radio ===== */

.radio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.radio-live {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.radio-live strong {
  font-family: var(--display);
  font-weight: 760;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 88;
}

.radio-live span { color: var(--muted); font-size: 13.5px; display: block; }

.fault {
  min-height: calc(100vh - 140px);
  display: grid;
  align-items: center;
  padding: 36px 0 72px;
}

.fault-code {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(6.5rem, 18vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line-2);
}

.fault h1 {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-weight: 740;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 88;
}

.fault .lede { max-width: 42ch; margin-bottom: 28px; }

.fault-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.radio-seo {
  margin: 64px auto 8px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.radio-seo .cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 64px;
  align-items: start;
}

.radio-seo .prose { max-width: none; }

.radio-seo .prose section {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 0;
}

.radio-seo .prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .radio-seo .cols { grid-template-columns: 1fr; }
}

.stations { display: grid; gap: 8px; }

.station {
  display: grid;
  grid-template-columns: 44px minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.station:hover { border-color: var(--accent); transform: translateX(3px); }

.station-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 760;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.station-name { min-width: 0; }

.station-name strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-name small { color: var(--muted); font-size: 12.5px; }

.station-url {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-acts { display: flex; gap: 6px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  transform: translate(-50%, 16px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Reveal ===== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].in { opacity: 1; transform: none; }

/* ===== Responsive ===== */

@media (max-width: 1080px) {
  .nav a { padding: 9px 10px; }
  .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .topbar-in { position: relative; }
  .topbar.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav a.is-active { background: var(--accent-soft); }
  .nav a.is-active::after { display: none; }
  .bar-actions { margin-left: auto; }
  .hero-grid,
  .story,
  .apply,
  .guide,
  .sec-head,
  .cta { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
  .story.flip .story-copy { order: 0; }
  .console { transform: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.s3,
  .tile.s2,
  .tile.s4 { grid-column: span 2; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid div:nth-child(3) { border-left: 0; }
  .band-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sellers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; max-height: none; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  .release-side { position: static; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .release-date, .release-kind { margin-top: 0; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .topbar { padding: 0 10px; }
  .bar-actions .btn { display: none; }
  .console-main { grid-template-columns: 1fr; }
  .tree { display: none; }
  .hero-facts { gap: 18px; }
  .sellers,
  .explore,
  .cmd-grid,
  .reasons,
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .station { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .station-url { grid-column: 2 / -1; grid-row: 2; }
  .station-ico { width: 40px; height: 40px; }
  .cmd-table td:first-child { width: auto; }
  .filterbar { top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
