/* Reactor website — shared styles for the landing pages (.home) and the legal
   pages (.legal). Single source of truth; page-specific rules are scoped to
   avoid heading-size clashes between the two layouts. */

:root {
  --bg-top: #171c38;
  --bg-mid: #0a0d1c;
  --accent: #26d9f2;
  --good: #4de673;
  --bad: #ff5454;
  --orange: #ff9419;
  --dice-blue: #408cff;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.10);
  --neutral: rgba(255, 255, 255, 0.55);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 38%, #000 100%) fixed;
  color: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.legal .wrap { max-width: 760px; padding-bottom: 60px; }

/* ---------- Nav (shared) ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 3px; font-size: 18px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg { filter: drop-shadow(0 0 8px rgba(38, 217, 242, 0.7)); }
.navright { display: flex; align-items: center; gap: 22px; }
nav .links { display: flex; gap: 22px; font-weight: 700; font-size: 14px; }
nav .links a { color: var(--neutral); }
nav .links a:hover { color: #fff; text-decoration: none; }
nav a.back { font-weight: 700; font-size: 14px; color: var(--neutral); }

/* language switcher */
.lang { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.lang a { color: var(--neutral); padding: 4px 9px; border-radius: 999px; }
.lang a:hover { color: #fff; text-decoration: none; }
.lang a.active { background: rgba(38, 217, 242, 0.15); color: var(--accent); }
.lang .sep { color: rgba(255, 255, 255, 0.22); }

/* =====================================================================
   HOME (landing) — scoped under .home
   ===================================================================== */
.home .hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding: 64px 0 80px;
}
.home .hero h1 {
  font-size: clamp(52px, 8vw, 84px); font-weight: 900; letter-spacing: 8px;
  line-height: 1.05; margin: 18px 0 10px;
}
.home .hero .tagline { font-size: 22px; font-weight: 700; color: var(--neutral); margin-bottom: 18px; }
.home .hero p.lead { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.home .bolt-big { width: 64px; height: 64px; filter: drop-shadow(0 0 22px rgba(38, 217, 242, 0.8)); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.home .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.home .btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-weight: 900; font-size: 17px; transition: transform .15s ease;
}
.home .btn:hover { transform: scale(1.04); text-decoration: none; }
.home .btn-primary { background: var(--accent); color: #000; box-shadow: 0 4px 24px rgba(38, 217, 242, 0.45); }
.home .btn-ghost { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.home .store-hint { font-size: 13px; color: var(--neutral); font-weight: 600; width: 100%; }

.home .phone {
  width: 280px; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: #05060d; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(38,217,242,0.12);
}
.home .screen {
  border-radius: 34px; overflow: hidden; padding: 22px 14px 14px;
  background: linear-gradient(180deg, #151a33, #0a0d1c 55%, #05060d);
  display: flex; flex-direction: column; gap: 12px; min-height: 520px;
}
.home .screen .hud { text-align: center; }
.home .screen .hud .game { font-weight: 900; font-size: 16px; }
.home .screen .hud .round { font-size: 11px; color: var(--neutral); font-weight: 700; }
.home .chips { display: flex; gap: 6px; }
.home .chip {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.home .chip.you { border-color: rgba(38,217,242,0.7); background: rgba(38,217,242,0.10); }
.home .chip .name { font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.85); }
.home .chip .score { font-size: 14px; font-weight: 900; }
.home .stimulus {
  flex: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 20px; background: var(--card); border: 1px solid var(--card-border);
}
.home .stroop {
  font-size: 44px; font-weight: 900; letter-spacing: 2px; color: var(--dice-blue);
  text-shadow: 0 0 24px rgba(64, 140, 255, 0.55);
}
.home .pad {
  border-radius: 22px; padding: 22px 0; text-align: center;
  background: linear-gradient(180deg, var(--accent), #14a8c4);
  color: #000; font-weight: 900; letter-spacing: 3px; font-size: 19px;
  box-shadow: 0 6px 22px rgba(38,217,242,0.4);
}

.home section { padding: 56px 0; }
.home .kicker { color: var(--accent); font-weight: 900; letter-spacing: 2.5px; font-size: 13px; text-transform: uppercase; }
.home section h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; margin: 8px 0 14px; }
.home .sub { color: var(--neutral); font-size: 17px; max-width: 640px; }

.home .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.home .card { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 24px; }
.home .card .big { font-size: 34px; font-weight: 900; }
.home .card h3 { font-size: 18px; font-weight: 900; margin: 8px 0 6px; }
.home .card p { color: var(--neutral); font-size: 14.5px; }
.home .card .big.good { color: var(--good); text-shadow: 0 0 18px rgba(77,230,115,0.4); }
.home .card .big.bad { color: var(--bad); text-shadow: 0 0 18px rgba(255,84,84,0.4); }
.home .card .big.wait { color: var(--neutral); }

.home .games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.home .game-tile {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 18px 14px; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.home .game-tile:hover { transform: translateY(-4px); border-color: rgba(38,217,242,0.5); }
.home .game-tile .icon { font-size: 30px; }
.home .game-tile h4 { font-size: 14px; font-weight: 900; margin: 8px 0 4px; }
.home .game-tile p { font-size: 11.5px; color: var(--neutral); }

.home .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.home .mode { padding: 30px; }
.home .mode ul { margin: 14px 0 0 18px; color: rgba(255,255,255,0.85); font-size: 15px; }
.home .mode li { margin-bottom: 8px; }
.home .mode li::marker { color: var(--accent); }
.home .fair {
  margin-top: 18px; border-left: 3px solid var(--accent);
  background: rgba(38,217,242,0.07); border-radius: 0 14px 14px 0;
  padding: 14px 16px; font-size: 14px; color: rgba(255,255,255,0.85);
}

.home .features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.home .feature { text-align: center; padding: 22px 14px; }
.home .feature .icon { font-size: 28px; }
.home .feature h4 { font-size: 15px; font-weight: 900; margin: 8px 0 4px; }
.home .feature p { font-size: 12.5px; color: var(--neutral); }

/* ---------- Footer (shared) ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px;
  padding: 30px 0 44px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; color: var(--neutral); font-size: 13.5px; font-weight: 600;
}
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.legal footer { margin-top: 30px; padding: 24px 0 30px; }

/* =====================================================================
   LEGAL (privacy / imprint) — scoped under .legal
   ===================================================================== */
.legal { color: rgba(255,255,255,0.92); line-height: 1.65; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; margin: 36px 0 6px; color: #fff; }
.legal .stand { color: var(--neutral); font-weight: 700; font-size: 14px; margin-bottom: 28px; }
.legal section.block {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 22px; padding: 26px 28px; margin-bottom: 18px;
}
.legal h2 { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.legal h3 { font-size: 16px; font-weight: 800; color: #fff; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 15px; color: rgba(255,255,255,0.85); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 8px 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent); }
.legal .muted { color: var(--neutral); font-size: 13.5px; }
.legal address { font-style: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .home .hero p.lead { margin: 0 auto 30px; }
  .home .cta-row { justify-content: center; }
  .home .games { grid-template-columns: repeat(2, 1fr); }
  .home .cards3, .home .modes { grid-template-columns: 1fr; }
  .home .features { grid-template-columns: repeat(2, 1fr); }
  nav .links { display: none; }
}
