/* ============================================================
   Drillcade — Marketing Site Styles
   Design tokens mirror the app's token system (dark mode default).
   ============================================================ */

:root {
  --bg:      #070e1c;
  --bg2:     #0c1728;
  --bg3:     #101e30;
  --surface: #0c1728;

  --nav:  #10233f;
  --nav2: #1a3560;

  --text:  #e2ecff;
  --text2: #7a9dc4;
  --muted: #3d5577;

  --accent:  #0ea5e9;
  --accent2: #0284c7;
  --orange:  #f97316;
  --green:   #10b981;
  --gold:    #f59e0b;
  --purple:  #8b5cf6;

  --border:  rgba(0, 165, 233, 0.12);
  --shadow:  0 2px 12px rgba(0,0,0,0.3);
  --shadow2: 0 6px 32px rgba(0,0,0,0.5);

  --r:  14px;
  --r2: 20px;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-arcade:  'Bungee', 'Outfit', sans-serif;
  --font-numeric: 'Rajdhani', 'Outfit', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Layout helpers ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  border: none;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(14,165,233,.35);
}
.btn--primary:hover { box-shadow: 0 6px 28px rgba(14,165,233,.5); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 15px 32px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }

/* ── Section typography ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-numeric);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 52px;
  max-width: 560px;
}

.eyebrow {
  font-family: var(--font-numeric);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow--arcade { color: var(--orange); }

/* ── Logo ───────────────────────────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  font-family: var(--font-arcade);
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark--sm { width: 28px; height: 28px; font-size: 0.85rem; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

/* ── Brand mark ─────────────────────────────────────────────────────
   The Drillcade brand is a composition: 3D-rendered gradient controller
   image + lowercase "rillcade" text. The image carries the color; the
   text stays a single solid color and adapts to context (white on dark,
   dark on light). Size variants are driven by font-size on the parent,
   which the mark scales against via em-relative height. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: block;
  height: 1.4em;
  width: auto;
  flex-shrink: 0;
}
/* Pull the wordmark in to compensate for the "r" glyph's natural
   left side-bearing in Outfit Bold. Scales with font-size. */
.brand > span {
  margin-left: -0.03em;
}
.brand--nav    { font-size: 22px; }
.brand--footer { font-size: 16px; }
.brand--hero   { font-size: clamp(40px, 7vw, 80px); }

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(7,14,28,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav__logo {
  /* layout provided by .brand */
  color: var(--text);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  transition: color .15s;
}
.site-nav__links a:not(.btn):hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 32px 120px;
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero__brand {
  margin: 0 auto 28px;
}

.hero__eyebrow {
  font-family: var(--font-numeric);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.hero__headline--arcade {
  font-family: var(--font-arcade);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__headline--study {
  color: #f59e0b; /* amber-500 — matches the amber button on the controller */
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 580px;
  margin: 24px auto 40px;
}
.hero__sub em { color: var(--accent); font-style: normal; }

.hero__cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Radial glow behind hero */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(14,165,233,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(139,92,246,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ── How it works ───────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 40px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-family: var(--font-numeric);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .5;
  line-height: 1;
}

.step__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step__body p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}

.step__connector {
  flex: 0 0 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 100%);
  margin-top: 20px;
  opacity: .35;
}

/* ── Features ───────────────────────────────────────────────────── */
.features {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: rgba(14,165,233,.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}

.feature-card--wide {
  grid-column: span 3;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,165,233,.12);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card--wide .feature-card__icon { margin-bottom: 0; }
.feature-card--wide .feature-card__body { flex: 1; }

.feature-card__icon--orange { background: rgba(249,115,22,.12); color: var(--orange); }
.feature-card__icon--green  { background: rgba(16,185,129,.12); color: var(--green);  }
.feature-card__icon--purple { background: rgba(139,92,246,.12); color: var(--purple); }
.feature-card__icon--gold   { background: rgba(245,158,11,.12); color: var(--gold);   }
.feature-card__icon--accent { background: rgba(14,165,233,.12); color: var(--accent); }

/* ── Arcade band ────────────────────────────────────────────────── */
.arcade-band {
  padding: 80px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.arcade-band__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.arcade-band__copy {
  flex: 1;
  min-width: 280px;
}

.arcade-band__copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.arcade-band__copy h2 em {
  font-family: var(--font-arcade);
  font-style: normal;
  color: var(--orange);
}

/* Highlight CTA inside the Arcade Mode body copy ("Click the 1 Player Start button.") */
.arcade-cta {
  color: var(--orange);
  font-weight: 600;
}
.arcade-cta strong {
  color: var(--orange);
}

/* ── Blog ─────────────────────────────────────────────────────────────── */
.blog-hero {
  padding: 96px 24px 56px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(14,165,233,0.08), transparent 60%);
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-hero p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.post-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 28px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  border-color: rgba(14,165,233,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-card__meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.post-card__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.post-card__excerpt {
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.post-card__more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.post-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text2);
  border: 1px dashed var(--border);
  border-radius: var(--r2);
}

/* ── Article (individual blog post) ──────────────────────────────────── */
.article-hero {
  padding: 80px 24px 32px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.article-hero__back {
  display: inline-block;
  color: var(--text2);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .15s ease;
}
.article-hero__back:hover { color: var(--accent); }
.article-hero__meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.75;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}
.article-body p { margin-bottom: 18px; color: var(--text2); }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: var(--text2); }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body a { color: var(--accent); }
.article-body strong { color: var(--text); }
.article-body code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--accent);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--text2);
  font-style: italic;
}
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 10px;
}

/* Cover image rendered between .article-hero and .article-body. */
.article-cover {
  max-width: 1080px;
  margin: 8px auto 32px;
  padding: 0 24px;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ── Blog list (rendered by blog-svc/render.js) ────────────────────────── */
.blog-list {
  padding: 24px 0 96px;
}
.blog-list .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  display: grid;
  grid-template-columns: 240px 1fr;
}
.blog-card:hover {
  border-color: rgba(14,165,233,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-card__image {
  display: block;
  background: var(--bg2);
  overflow: hidden;
}
.blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.blog-card__body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card__meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.blog-card__body h2 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card__body h2 a:hover { color: var(--accent); }
.blog-card__body p {
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 14px;
}
.blog-card__more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  align-self: flex-start;
}
.blog-card__more:hover { text-decoration: underline; }

/* Cards without an image collapse the image column cleanly. */
.blog-card:not(:has(.blog-card__image)) {
  grid-template-columns: 1fr;
}

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text2);
  border: 1px dashed var(--border);
  border-radius: var(--r2);
}

@media (max-width: 640px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__image img { aspect-ratio: 16 / 9; }
}

.arcade-band__copy p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

/* Decorative brick grid */
.arcade-band__visual {
  flex: 0 0 340px;
  position: relative;
  height: 266px;
  user-select: none;
}

.brick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 46px;
}

.brick {
  padding: 8px 4px;
  border-radius: 6px;
  font-family: var(--font-numeric);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  color: #fff;
  opacity: .85;
}

.brick--1 { background: #ef4444; }
.brick--2 { background: #f97316; }
.brick--3 { background: #eab308; }
.brick--4 { background: #22c55e; }
.brick--5 { background: #06b6d4; }
.brick--6 { background: #8b5cf6; }
.brick--7 { background: #ec4899; }
.brick--8 { background: #0ea5e9; }
.brick--9 { background: #10b981; opacity: .4; }

.paddle {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  box-shadow: 0 0 14px rgba(14,165,233,.5);
}

.ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  pointer-events: none;
}

/* ── Question popup (arcade demo) ───────────────────────────────── */
.demo-popup {
  position: absolute;
  inset: 8px;
  background: rgba(12, 23, 40, 0.96);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}
.demo-popup.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.demo-popup__q {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.demo-popup__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.dp-opt {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  line-height: 1.3;
}
.dp-opt.correct {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

/* Interactive demo: clickable options + answer feedback */
.arcade-band__visual--interactive { cursor: crosshair; }
.arcade-band__visual--interactive .demo-popup { cursor: default; }
.arcade-band__visual--interactive .paddle {
  transition: left 60ms linear;
}
/* While the visitor is playing, claim touch gestures so finger drag drives
   the paddle instead of scrolling the page. */
.arcade-band__visual--playing { touch-action: none; }
.arcade-band__visual--playing .paddle { transition: left 50ms linear; }
.demo-popup--interactive .dp-opt {
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease, transform .12s ease;
}
.demo-popup--interactive .dp-opt:hover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}
.dp-opt.dp-opt--right {
  border-width: 2.5px;
  border-color: #22c55e;
  background: rgba(16, 185, 129, 0.28);
  color: #bbf7d0;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 0 14px rgba(34, 197, 94, 0.55);
}
.dp-opt.dp-opt--wrong {
  border-width: 2.5px;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 0 14px rgba(239, 68, 68, 0.55);
  animation: dp-shake .32s ease;
}

/* ── Top bar: score + exit ──────────────────────────────────────── */
.arcade-topbar {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9;
}
.arcade-hud {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(7, 14, 28, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
}
.arcade-hud.is-hidden { display: none; }

.arcade-exit {
  appearance: none;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.55);
  color: #fecaca;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.arcade-exit:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
  border-color: #ef4444;
}
.arcade-exit.is-hidden { display: none; }
.arcade-hud__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text2);
}
.arcade-hud__value {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: #fde68a;
  text-shadow: 0 0 8px rgba(253, 230, 138, 0.5);
  transition: transform .18s ease, color .18s ease;
}
.arcade-hud__value.bump {
  transform: scale(1.18);
  color: #22c55e;
}
@keyframes dp-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

/* ── Arcade "1 PLAYER START" button ─────────────────────────────── */
.arcade-start {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 12;
  background:
    radial-gradient(circle at 35% 30%, #ff8c8c 0%, #ef4444 38%, #b91c1c 78%, #7f1d1d 100%);
  box-shadow:
    inset 0 -7px 12px rgba(0, 0, 0, 0.45),
    inset 0  4px 7px rgba(255, 255, 255, 0.30),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 0 0 5px rgba(0, 0, 0, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(239, 68, 68, 0.55);
  animation: arcade-pulse 1.6s ease-in-out infinite;
  transition: transform .08s ease, box-shadow .12s ease;
}
.arcade-start:hover {
  animation-play-state: paused;
  box-shadow:
    inset 0 -7px 12px rgba(0, 0, 0, 0.45),
    inset 0  4px 7px rgba(255, 255, 255, 0.40),
    0 0 0 3px rgba(255, 255, 255, 0.10),
    0 0 0 5px rgba(0, 0, 0, 0.45),
    0 12px 22px rgba(0, 0, 0, 0.60),
    0 0 28px rgba(239, 68, 68, 0.85);
}
.arcade-start:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.5),
    inset 0  3px 6px rgba(255, 255, 255, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 0 0 5px rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(239, 68, 68, 0.65);
}
.arcade-start__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 0 6px rgba(255, 200, 200, 0.5);
}
.arcade-start__top { font-size: 0.52rem; opacity: 0.95; }
.arcade-start__bot { font-size: 0.74rem; }

.arcade-start.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: opacity .25s ease, transform .25s ease;
}

@keyframes arcade-pulse {
  0%, 100% {
    box-shadow:
      inset 0 -10px 18px rgba(0, 0, 0, 0.45),
      inset 0  6px 10px rgba(255, 255, 255, 0.30),
      0 0 0 4px rgba(255, 255, 255, 0.06),
      0 0 0 6px rgba(0, 0, 0, 0.45),
      0 14px 28px rgba(0, 0, 0, 0.55),
      0 0 22px rgba(239, 68, 68, 0.50);
  }
  50% {
    box-shadow:
      inset 0 -10px 18px rgba(0, 0, 0, 0.45),
      inset 0  6px 10px rgba(255, 255, 255, 0.45),
      0 0 0 4px rgba(255, 255, 255, 0.10),
      0 0 0 6px rgba(0, 0, 0, 0.45),
      0 16px 30px rgba(0, 0, 0, 0.60),
      0 0 38px rgba(239, 68, 68, 0.95);
  }
}

/* "STAGE CLEAR" flash shown briefly before the start button reappears */
.arcade-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #fde68a;
  text-shadow: 0 0 14px rgba(253, 230, 138, 0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  transition: opacity .25s ease;
}
.arcade-flash.show { opacity: 1; }

/* ── Products ───────────────────────────────────────────────────── */
.products {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 640px;
}

.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card--active {
  border-color: rgba(14,165,233,.35);
  box-shadow: 0 0 0 1px rgba(14,165,233,.12), var(--shadow2);
}

.product-card--coming { opacity: .55; }

.product-card__badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(16,185,129,.15);
  color: var(--green);
  width: fit-content;
}

.product-card__badge--coming {
  background: rgba(122,157,196,.1);
  color: var(--text2);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,165,233,.12);
  color: var(--accent);
}
.product-card__icon svg { width: 24px; height: 24px; }
.product-card__icon--dim { opacity: .4; }

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.site-footer__brand {
  /* layout provided by .brand */
}

.site-footer__tagline {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.site-footer__bottom {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .arcade-band__visual { flex: 0 0 260px; }
}

@media (max-width: 700px) {
  .site-nav { padding: 0 20px; }
  .site-nav__links a:not(.btn) { display: none; }

  .hero { padding: 72px 20px 80px; }

  .steps { flex-direction: column; gap: 32px; }
  .step__connector { width: 1px; height: 28px; margin: 0 0 0 16px; flex: none; background: linear-gradient(180deg, var(--accent), var(--purple)); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; flex-direction: column; }

  .arcade-band__inner { flex-direction: column; }
  .arcade-band__visual { flex: none; width: 100%; height: 226px; }

  .product-grid { max-width: 100%; }
}

/* ── Cookie notice ──────────────────────────────────────────────────────
   Essential-cookie disclosure banner injected by /js/cookie-notice.js.
   Stays pinned to the bottom of the viewport until dismissed; the
   dismissal is persisted in localStorage so returning visitors don't
   see it again. */
#cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background: rgba(15, 15, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.4;
}
#cookie-notice .cookie-notice__text { margin: 0; }
#cookie-notice .cookie-notice__text a {
  color: inherit;
  text-decoration: underline;
}
#cookie-notice .cookie-notice__btn {
  flex: 0 0 auto;
  background: #f97316;
  color: #1a1a1a;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
#cookie-notice .cookie-notice__btn:hover { background: #fb923c; }
@media (max-width: 540px) {
  #cookie-notice { flex-direction: column; align-items: stretch; }
  #cookie-notice .cookie-notice__btn { width: 100%; }
}
