:root {
  --bg: #0b1020;
  --surface: #12192d;
  --surface-2: #18213a;
  --line: rgba(255,255,255,.1);
  --text: #f4f6fb;
  --muted: #9ba5bd;
  --accent: #8b7cff;
  --accent-2: #5ce1c2;
  --danger: #ff6d87;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 80% 0%, #20264a 0, var(--bg) 38%); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.page-shell { max-width: 1160px; margin: 0 auto; padding: 0 28px 44px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #0d1225; background: var(--accent-2); font-family: 'Space Grotesk'; }
.nav-links { display: flex; gap: 27px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.theme-toggle { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.hero { max-width: 710px; padding: 52px 0 30px; }
.eyebrow, .section-kicker { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(92,225,194,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
h1 { font-size: clamp(54px, 8vw, 92px); line-height: .98; margin: 20px 0 25px; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 530px; color: var(--muted); font-size: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #c6cce0; font-size: 12px; margin-top: 27px; }
.test-card { background: rgba(18,25,45,.86); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.18); }
.test-tabs { display: flex; gap: 8px; overflow-x: auto; margin: -2px 0 20px; padding-bottom: 3px; scrollbar-width: none; }
.test-tab { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.test-tab.active, .test-tab:hover { color: #081b1b; background: var(--accent-2); border-color: var(--accent-2); }
.test-header, .test-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.test-header h2 { margin: 8px 0 0; font-size: clamp(22px, 3vw, 30px); }
.round-counter { color: var(--muted); font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
.reaction-panel { width: 100%; min-height: 305px; border: 0; border-radius: 18px; margin: 25px 0 20px; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .12s, transform .12s, box-shadow .12s; }
.reaction-panel:hover { transform: translateY(-1px); }
.reaction-panel.idle { background: linear-gradient(135deg, #202b4c, #17213c); }
.reaction-panel.waiting { background: #b43a61; }
.reaction-panel.ready { background: #35d5a7; color: #081b1b; box-shadow: 0 0 70px rgba(53,213,167,.3); }
.reaction-panel.result { background: #263253; }
.memory-game { min-height: 305px; margin: 25px 0 20px; border-radius: 18px; background: linear-gradient(135deg, #202b4c, #17213c); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.game-instruction { color: var(--text); font-family: 'Space Grotesk'; font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.game-hint { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.primary-action { border: 0; border-radius: 999px; padding: 12px 20px; color: #081b1b; background: var(--accent-2); font-weight: 700; cursor: pointer; }
.primary-action:hover { filter: brightness(1.08); }
.memory-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 54px); }
.visual-grid { grid-template-columns: repeat(var(--grid-size), 42px); }
.memory-cell { width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.08); cursor: pointer; transition: background .12s, transform .12s; }
.visual-grid .memory-cell { width: 42px; height: 42px; }
.memory-cell:hover, .memory-cell.lit { background: var(--accent); transform: scale(1.04); box-shadow: 0 0 22px rgba(139,124,255,.35); }
.number-display { font-family: 'Space Grotesk'; font-size: clamp(36px, 7vw, 64px); letter-spacing: .12em; margin: 10px 0 22px; }
.number-input { width: min(300px, 100%); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); background: rgba(255,255,255,.08); text-align: center; font-size: 20px; outline: none; margin: 8px 0 18px; }
.number-input:focus { border-color: var(--accent-2); }
.panel-icon { font-size: 32px; margin-bottom: 8px; }
.panel-title { font-family: 'Space Grotesk'; font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: -.04em; }
.panel-subtitle { color: inherit; opacity: .72; font-size: 14px; margin-top: 8px; }
.test-footer { color: var(--muted); }
.muted-label { display: block; font-size: 10px; letter-spacing: .15em; }
.best-score strong { color: var(--text); font-size: 19px; }
.text-button { padding: 7px 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--text); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 16px 0 90px; }
.stat-card { min-height: 128px; padding: 21px; border: 1px solid var(--line); background: rgba(18,25,45,.6); border-radius: 16px; }
.accent-card { border-color: rgba(92,225,194,.3); background: rgba(26,69,73,.27); }
.stat-label, .stat-note { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin: 8px 0 2px; font-family: 'Space Grotesk'; font-size: 27px; }
.stat-card small { color: var(--muted); font-family: 'DM Sans'; font-size: 13px; font-weight: 400; }
.content-section { padding: 72px 0; border-top: 1px solid var(--line); }
.content-section h2, .seo-copy h2 { font-size: clamp(30px, 5vw, 48px); margin: 10px 0 34px; max-width: 600px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { display: flex; gap: 15px; }
.step > span { color: var(--accent-2); font-family: 'Space Grotesk'; font-size: 13px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.test-links { display: grid; gap: 10px; max-width: 720px; }
.mini-test { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(18,25,45,.65); color: var(--text); text-align: left; cursor: pointer; }
.mini-test:hover { border-color: rgba(92,225,194,.55); transform: translateX(2px); }
.mini-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.purple { background: rgba(139,124,255,.17); color: var(--accent); }.orange { background: rgba(255,170,93,.16); color: #ffb66b; }.blue { background: rgba(95,185,255,.16); color: #73c6ff; }
.mini-test strong, .mini-test small { display: block; }.mini-test small { color: var(--muted); font-size: 12px; margin-top: 2px; }.launch { margin-left: auto; color: var(--accent-2); font-size: 11px; white-space: nowrap; }
.seo-copy { max-width: 720px; padding: 72px 0 55px; }.seo-copy p { color: var(--muted); font-size: 16px; }
.faq-list { max-width: 820px; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: rgba(18,25,45,.55); padding: 0 18px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 17px 2px; font-family: 'Space Grotesk'; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--accent-2); font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--muted); font-size: 14px; margin: -3px 2px 17px; max-width: 680px; }
.footer { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
body.light { --bg:#f3f5fb; --surface:#fff; --surface-2:#eef1fa; --line:rgba(24,33,58,.12); --text:#15203b; --muted:#64708a; background: radial-gradient(circle at 80% 0%, #e2e5ff 0, var(--bg) 40%); }
body.light .test-card, body.light .stat-card, body.light .mini-test, body.light .faq-list details { background: rgba(255,255,255,.75); }
@media (max-width: 720px) { .page-shell { padding: 0 16px 30px; }.topbar { height: 68px; }.nav-links { display:none; }.hero { padding: 40px 0 24px; }.hero h1 { font-size: clamp(48px, 16vw, 72px); margin-bottom: 18px; }.hero-copy { font-size: 16px; }.test-card { padding: 15px; border-radius: 19px; }.test-header { align-items: flex-start; flex-direction: column; gap: 8px; }.reaction-panel, .memory-game { min-height: 255px; }.stats-grid, .steps { grid-template-columns: 1fr; }.stats-grid { margin-bottom: 50px; }.content-section { padding: 54px 0; }.footer { gap: 12px; flex-direction: column; }.memory-cell { width: 48px; height: 48px; }.visual-grid .memory-cell { width: 36px; height: 36px; }.visual-grid { gap: 6px; } }
