:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-elev: #0b1120;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --dim: #74839a;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --border: rgba(148, 163, 184, 0.14);
  --border-soft: rgba(148, 163, 184, 0.08);
  --border-strong: rgba(148, 163, 184, 0.25);
  --surface: rgba(17, 24, 39, 0.62);
  --surface-2: rgba(23, 32, 52, 0.86);
  --surface-3: rgba(30, 41, 59, 0.55);
  --nav-bg: rgba(7, 10, 18, 0.74);
  --grid-line: rgba(148, 163, 184, 0.055);
  --cell: #161f33;
  --cell-2: #1d2841;
  --board-bg: rgba(9, 14, 26, 0.64);
  --seg-bg: rgba(7, 11, 21, 0.55);
  --hud-bg: rgba(9, 14, 26, 0.5);
  --overlay-idle: rgba(6, 10, 20, 0.68);
  --overlay-result: rgba(6, 10, 20, 0.9);
  --overlay-clear: rgba(6, 10, 20, 0.34);
  --track: rgba(148, 163, 184, 0.18);
  --found-bg: rgba(16, 185, 129, 0.16);
  --found-border: rgba(52, 211, 153, 0.45);
  --found-text: #6ee7b7;
  --wrong-bg: rgba(244, 63, 94, 0.18);
  --wrong-border: rgba(251, 113, 133, 0.5);
  --wrong-text: #fda4af;
  --me-bg: rgba(129, 140, 248, 0.11);
  --toast-bg: #f8fafc;
  --toast-text: #0b1120;
  --glow-1: rgba(99, 102, 241, 0.26);
  --glow-2: rgba(168, 85, 247, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --card-hover: 0 18px 40px rgba(0, 0, 0, 0.35);
  --demo-bg: linear-gradient(160deg, rgba(26, 34, 56, 0.92), rgba(11, 17, 32, 0.95));
  --poster-bg: linear-gradient(165deg, #1b2542, #0a0f1e 70%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #526173;
  --dim: #6b7a90;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
  --green: #059669;
  --red: #e11d48;
  --amber: #b45309;
  --border: rgba(15, 23, 42, 0.1);
  --border-soft: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.18);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: #ffffff;
  --surface-3: #eef2f9;
  --nav-bg: rgba(244, 246, 251, 0.8);
  --grid-line: rgba(15, 23, 42, 0.045);
  --cell: #ffffff;
  --cell-2: #eef2ff;
  --board-bg: #eef2f9;
  --seg-bg: rgba(15, 23, 42, 0.05);
  --hud-bg: #f8fafc;
  --overlay-idle: rgba(238, 242, 249, 0.76);
  --overlay-result: rgba(248, 250, 252, 0.95);
  --overlay-clear: rgba(255, 255, 255, 0.4);
  --track: rgba(15, 23, 42, 0.12);
  --found-bg: rgba(5, 150, 105, 0.16);
  --found-border: rgba(5, 150, 105, 0.38);
  --found-text: #047857;
  --wrong-bg: rgba(225, 29, 72, 0.1);
  --wrong-border: rgba(225, 29, 72, 0.35);
  --wrong-text: #be123c;
  --me-bg: rgba(79, 70, 229, 0.08);
  --toast-bg: #0f172a;
  --toast-text: #f8fafc;
  --glow-1: rgba(99, 102, 241, 0.14);
  --glow-2: rgba(168, 85, 247, 0.1);
  --shadow: 0 30px 70px rgba(30, 41, 59, 0.16);
  --card-hover: 0 18px 40px rgba(15, 23, 42, 0.1);
  --demo-bg: linear-gradient(160deg, #ffffff, #f7f8fe);
  --poster-bg: linear-gradient(165deg, #1b2542, #0a0f1e 70%);
}

:root {
  --brand-logo: url("assets/logo.png");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(900px 560px at 12% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 520px at 94% 2%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

::selection {
  background: rgba(129, 140, 248, 0.35);
  color: var(--text);
}

h1, h2, h3, h4, p, dl, dd, dt, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img, svg {
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.34);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.44);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: var(--text);
}

.text-btn .icon {
  width: 13px;
  height: 13px;
}

/* ---------- navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--brand-logo) center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.25));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  margin-top: 2px;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-links + .nav-actions {
  margin-left: 0;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn .icon {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-cta {
  height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 12.5px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 88px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.75;
}

.orb-a {
  top: -220px;
  left: -160px;
  width: 540px;
  height: 540px;
  background: var(--glow-1);
}

.orb-b {
  top: -140px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--glow-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35);
  animation: pulse-dot 2.4s ease-out infinite;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: none;
    color: var(--accent);
  }
}

.hero-lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.hero-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- demo ---------- */

.demo {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--demo-bg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  scroll-margin-top: 92px;
}

.demo-glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 26px;
  background:
    radial-gradient(420px 260px at 88% 0%, var(--glow-1), transparent 62%),
    radial-gradient(340px 240px at 0% 100%, var(--glow-2), transparent 60%);
  pointer-events: none;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.4s ease-out infinite;
}

.demo-note {
  color: var(--dim);
  font-size: 10px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--seg-bg);
}

.seg-btn {
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.demo-mode-desc {
  min-height: 17px;
  margin-top: 8px;
  padding: 0 2px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.hud-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--hud-bg);
}

.hud-cell span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hud-cell strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.board-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 10px auto 0;
}

.demo-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--board-bg);
}

.cell {
  display: grid;
  min-width: 0;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--cell);
  color: var(--text-2);
  font-size: clamp(15px, 2.6vw, 21px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.cell:hover {
  border-color: var(--border);
  background: var(--cell-2);
}

.cell:active {
  transform: scale(0.96);
}

.cell.found {
  border-color: var(--found-border);
  background: var(--found-bg);
  color: var(--found-text);
  box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.12);
  animation: pop 0.18s ease;
}

.cell.wrong {
  border-color: var(--wrong-border);
  background: var(--wrong-bg);
  color: var(--wrong-text);
  animation: shake 0.28s ease;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 16px;
  background: transparent;
  text-align: center;
  transition: opacity 0.2s ease;
}

.demo-overlay.is-hidden {
  display: none;
}

.demo-overlay.is-result {
  background: var(--overlay-result);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-overlay.is-clear {
  background: var(--overlay-clear);
}

.overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  padding: 18px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overlay-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.overlay-kicker .icon {
  width: 13px;
  height: 13px;
}

.overlay-card h3 {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.overlay-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.overlay-card .btn {
  margin-top: 14px;
}

.result-flag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--amber);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.result-time {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.result-time span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.result-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.result-best {
  margin-top: 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.preview-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preview-label {
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}

.preview-count {
  color: var(--text);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.preview-sub {
  color: var(--muted);
  font-size: 10.5px;
}

.preview-track {
  width: 150px;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--track);
}

.preview-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  animation: previewbar 5s linear forwards;
}

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 0 2px;
  color: var(--dim);
  font-size: 11px;
}

/* ---------- section basics ---------- */

.section {
  position: relative;
  padding: 92px 0;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.sec-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sec-index::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border-strong);
}

.section-head.center .sec-index::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border-strong);
}

.section h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 700px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.section-head.center .lead {
  margin-right: auto;
  margin-left: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-hover);
}

.ic {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--accent);
}

@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .ic {
    border-color: color-mix(in srgb, var(--c, var(--accent)) 24%, transparent);
    background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
    color: var(--c, var(--accent));
  }
}

.ic .icon {
  width: 20px;
  height: 20px;
}

.ic-green { --c: var(--green); }
.ic-amber { --c: var(--amber); }
.ic-cyan { --c: var(--accent-3); }
.ic-indigo { --c: var(--accent); }

.card h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.method-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.method-note .icon {
  margin-top: 2px;
  color: var(--accent);
}

.method-note strong {
  color: var(--text-2);
}

/* ---------- training modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mode-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-hover);
}

.mode-visual {
  position: relative;
  display: grid;
  height: 190px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 34%, var(--glow-1), transparent 68%),
    var(--board-bg);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 148px;
  height: 148px;
}

.mini-cell {
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  background: var(--cell);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-cell.on {
  border-color: var(--found-border);
  background: var(--found-bg);
  color: var(--found-text);
}

.mini-cell.flash {
  border-color: var(--found-border);
  color: var(--found-text);
  animation: mini-flash 1.8s ease-in-out infinite;
}

.mini-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--overlay-clear);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.mini-overlay-pill {
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 2px 0;
}

.mode-head h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tag-green {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.tag-indigo {
  border-color: rgba(129, 140, 248, 0.26);
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent);
}

.tag-amber {
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.mode-card > p {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.mode-points {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
  padding: 0 2px;
  list-style: none;
}

.mode-points li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.mode-points .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--green);
}

/* ---------- boards ---------- */

.boards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.board-card {
  position: relative;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: var(--mode-accent);
  box-shadow: var(--card-hover);
}

.board-thumb {
  display: grid;
  height: 128px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: var(--board-bg);
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--mode-accent) 16%, transparent), transparent 70%),
    var(--board-bg);
}

.board-thumb > * {
  transition: transform 0.3s ease;
}

.board-card:hover .board-thumb > * {
  transform: scale(1.05);
}

.board-card:hover .board-thumb > .disc-svg.dynamic {
  transform: none;
}

.sq-grid {
  display: grid;
  gap: 2px;
  width: 102px;
  height: 102px;
}

.sq-grid i {
  border-radius: 1.5px;
  background: var(--mode-accent);
  opacity: 0.18;
  transition: opacity 0.2s ease;
}

.sq-grid i.lit {
  opacity: 0.85;
  box-shadow: 0 0 8px color-mix(in srgb, var(--mode-accent) 55%, transparent);
}

.board-thumb svg {
  width: 112px;
  height: 112px;
}

.hex-svg polygon {
  fill: var(--mode-accent);
  fill-opacity: 0.2;
  stroke: var(--mode-accent);
  stroke-opacity: 0.35;
  stroke-width: 0.28;
}

.hex-svg polygon.lit {
  fill-opacity: 0.85;
}

.disc-svg circle {
  fill: var(--mode-accent);
  fill-opacity: 0.24;
}

.disc-svg circle.lit {
  fill-opacity: 0.9;
}

.disc-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.disc-svg.dynamic .ring-1 { animation: spin 30s linear infinite; }
.disc-svg.dynamic .ring-2 { animation: spin 34s linear infinite reverse; }
.disc-svg.dynamic .ring-3 { animation: spin 46s linear infinite; }
.disc-svg.dynamic .ring-4 { animation: spin 38s linear infinite reverse; }

.board-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 3px 0;
}

.board-meta h3 {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.board-meta span {
  color: var(--dim);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board-desc {
  margin: 4px 3px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.board-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

.board-note .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- records ---------- */

.record-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-kicker {
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-head h3 {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.chip-green {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-stat {
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-2);
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.mini-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mini-stat em {
  margin-left: 2px;
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.ms-list {
  margin-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.ms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}

.ms-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.ms-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.ms-main strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ms-main span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-row time {
  flex: none;
  color: var(--dim);
  font-size: 10.5px;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 10.5px;
}

.panel-foot .icon {
  width: 13px;
  height: 13px;
}

.record-note {
  margin-top: 18px;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

.lb-list {
  margin-top: 2px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.lb-row:nth-child(odd) {
  background: var(--surface-2);
}

.lb-rank {
  width: 22px;
  flex: none;
  color: var(--dim);
  font-weight: 800;
  text-align: center;
}

.lb-rank.gold { color: var(--amber); }
.lb-rank.silver { color: #cbd5e1; }
.lb-rank.bronze { color: #cd7f32; }

.lb-nick {
  flex: 1;
  overflow: hidden;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-time {
  color: var(--text);
  font-weight: 700;
}

.lb-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 10px;
  background: var(--me-bg);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.lb-me .lb-rank {
  color: var(--accent);
}

.lb-me em {
  margin-left: 3px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: 1px;
}

/* ---------- poster ---------- */

.poster-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.poster-copy .section-head {
  margin-bottom: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.check-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--green);
}

.poster-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 10px 10px;
}

.poster-stage::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.poster {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(320px, 90%);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: var(--poster-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(-2.2deg);
  transition: transform 0.4s ease;
}

.poster::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.34), transparent 66%);
  pointer-events: none;
}

.poster:hover {
  transform: rotate(0) translateY(-4px);
}

.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.poster-mark {
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--brand-logo) center / contain no-repeat;
}

.poster-top strong {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.poster-top span {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.poster-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.poster-kicker {
  color: #a5b4fc;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.poster-mode {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.poster-time {
  margin-top: 6px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.poster-time span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.poster-pb {
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3b1d00;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.poster-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 20px;
}

.poster-stats div {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.poster-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 7.5px;
}

.poster-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-code {
  width: 42px;
  height: 42px;
  flex: none;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.poster-foot-copy {
  color: rgba(255, 255, 255, 0.52);
  font-size: 7.5px;
  line-height: 1.45;
}

.poster-foot-copy strong {
  display: block;
  margin: 2px 0;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.float-tag {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.float-a {
  top: 22px;
  left: 0;
  transform: rotate(-5deg);
}

.float-b {
  right: -4px;
  bottom: 44px;
  transform: rotate(3deg);
}

.poster-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--dim);
  font-size: 10.5px;
  text-align: center;
}

/* ---------- privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.privacy-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.privacy-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--card-hover);
}

.privacy-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.privacy-card h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
}

.privacy-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.fineprint {
  margin-top: 22px;
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
}

/* ---------- faq ---------- */

.faq {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  font-size: 14.5px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-icon .icon {
  width: 13px;
  height: 13px;
}

.faq-item[open] .faq-icon {
  border-color: var(--accent);
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 44px 18px 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.faq-body strong {
  color: var(--text-2);
}

/* ---------- cta ---------- */

.cta-section {
  padding-bottom: 96px;
  border-top: 0;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background:
    radial-gradient(560px 300px at 50% -20%, var(--glow-1), transparent 65%),
    linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.07) 52%, rgba(34, 211, 238, 0.08));
  box-shadow: var(--shadow);
  text-align: center;
}

[data-theme="light"] .cta {
  background:
    radial-gradient(560px 300px at 50% -20%, var(--glow-1), transparent 65%),
    linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.05) 52%, rgba(34, 211, 238, 0.07));
}

.cta .sec-index {
  justify-content: center;
}

.cta h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hl {
  color: var(--accent);
  background: linear-gradient(transparent 64%, rgba(129, 140, 248, 0.22) 64%);
  white-space: nowrap;
}

.cta-lead {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.cta-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  width: min(700px, 100%);
  margin: 26px auto 0;
}

.search-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(430px, 100%);
  margin: 26px auto 0;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-entry .search-mock {
  width: 100%;
  margin: 0;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.qr-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.qr-img {
  width: 104px;
  height: 104px;
  flex: none;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.qr-text {
  min-width: 0;
}

.qr-text strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.qr-text span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.qr-text small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 9.5px;
  white-space: nowrap;
}

.search-mock:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.search-mock > .icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--accent);
}

.search-mock-text {
  flex: 1;
  overflow: hidden;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-mock-action {
  display: grid;
  height: 34px;
  flex: none;
  padding: 0 14px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  margin-top: 26px;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.step span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.cta-note {
  margin-top: 18px;
  color: var(--dim);
  font-size: 10.5px;
}

/* ---------- footer ---------- */

.site-foot {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.foot-brand strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.foot-brand p {
  margin-top: 2px;
  color: var(--dim);
  font-size: 10.5px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-links a {
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.foot-links a:hover {
  color: var(--text);
}

.back-top {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11.5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-top:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--dim);
  font-size: 10.5px;
}

/* ---------- toast / reveal ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.noscript-note {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- animations ---------- */

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.32); }
  55% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

@keyframes pop {
  0% { transform: scale(0.92); }
  65% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes mini-flash {
  0%, 55%, 100% { background: var(--cell); box-shadow: none; }
  30%, 45% { background: var(--found-bg); box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.14); }
}

@keyframes previewbar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .poster-grid { gap: 36px; }
  .boards-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 980px) {
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { max-width: 640px; }
  .demo { max-width: 460px; margin: 0 auto; }
  .record-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: 1fr; }
  .poster-copy .section-head { margin-bottom: 0; }
  .poster-stage { padding-top: 20px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3,
  .modes-grid { grid-template-columns: 1fr; }
  .mode-visual { height: 220px; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .boards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .cta-section { padding-bottom: 68px; }
  .hero { padding-bottom: 64px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-lead { font-size: 15.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .lead { font-size: 14.5px; }
  .float-a { left: 2px; }
  .float-b { right: 2px; bottom: 34px; }
  .cta-entry { grid-template-columns: 1fr; width: min(430px, 100%); }
  .qr-card { justify-content: center; padding: 10px 16px; }
  .qr-img { width: 92px; height: 92px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 62px; gap: 12px; }
  .brand-sub { display: none; }
  .nav-cta { height: 36px; padding: 0 12px; }
  .nav-cta span { display: none; }
  .nav-cta { width: 38px; padding: 0; }
  .demo { padding: 13px; border-radius: 22px; }
  .demo-glow { border-radius: 22px; }
  .demo-board { gap: 5px; padding: 5px; border-radius: 14px; }
  .cell { border-radius: 8px; }
  .seg-btn { font-size: 11px; }
  .boards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .board-thumb { height: 118px; }
  .sq-grid { width: 94px; height: 94px; }
  .board-thumb svg { width: 104px; height: 104px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .mini-stat { padding: 9px 8px; }
  .mini-stat strong { font-size: 17px; }
  .float-tag { display: none; }
  .poster-stage { padding: 12px 0 0; }
  .poster { width: min(300px, 94%); }
  .foot-inner { align-items: flex-start; }
  .foot-links { gap: 14px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hud-cell strong { font-size: 15px; }
  .demo-overlay { padding: 8px; }
  .overlay-card { max-width: 100%; padding: 14px 12px; }
  .overlay-card h3 { font-size: 18px; }
  .overlay-card p { font-size: 11.5px; }
  .result-time { font-size: 34px; }
  .result-meta { margin-top: 6px; font-size: 11px; }
  .result-best { font-size: 10.5px; }
  .result-actions { gap: 6px; margin-top: 10px; }
  .result-actions .btn { height: 34px; padding: 0 12px; font-size: 12px; }
  .preview-count { font-size: 54px; }
  .poster { padding: 18px; }
  .qr-img { width: 84px; height: 84px; }
  .qr-text span { font-size: 10.5px; }
}

@media (hover: none) {
  .card:hover,
  .mode-card:hover,
  .board-card:hover,
  .privacy-card:hover,
  .poster:hover,
  .search-mock:hover,
  .qr-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb,
  .pill-dot,
  .live-dot,
  .mini-cell.flash,
  .disc-ring,
  .cell.found { animation: none !important; }
  .poster { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
