/* ===================== Goody Games — Tech Theme ===================== */
:root {
  /* Logo palette: red fill · white stroke · navy outline */
  --ink: #071036;
  --bg: #0a1a52;
  --bg-2: #0e225f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.20);
  --text: #eef1fb;
  --muted: #a8b3dc;
  --red: #e8141c;
  --red-soft: #ff3b41;
  --navy: #1a3593;
  --blue: #3d6bff;
  --radius: 16px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); color: #fff; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--muted); }

.accent {
  background: linear-gradient(90deg, var(--red-soft), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.bg { background: linear-gradient(180deg, var(--ink) 0%, var(--bg) 45%, var(--ink) 100%); }
.glow-red { width: 620px; height: 620px; background: var(--red); opacity: .32; top: -240px; right: -140px; }
.glow-blue { width: 680px; height: 680px; background: #2b4bd0; opacity: .35; top: 35%; left: -280px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
/* sticker style like the logo: red fill, white stroke, navy outline */
.btn-primary { background: var(--red); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 3px var(--ink), 0 10px 26px -8px rgba(232,20,28,.8); }
.btn-primary:hover { background: var(--red-soft); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-2); color: #fff; background: var(--surface); }
.btn-outline:hover { border-color: rgba(255,255,255,.35); background: var(--surface-2); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 16, 54, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 4px 14px rgba(229,22,29,.35)); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; }
.nav-burger { display: none; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: #fff; transition: .3s; content: "";
}
.nav-burger span { top: 21px; }
.nav-burger span::before { left: 0; top: -7px; }
.nav-burger span::after { left: 0; top: 7px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; }
.hero-grid { display: block; }
.hero-text { max-width: 820px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface);
  margin-bottom: 28px;
}
.live { width: 7px; height: 7px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 10px #2ee59d; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lead { font-size: 1.12rem; color: var(--muted); margin: 24px 0 36px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Metrics strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 88px; border: 2px solid rgba(255,255,255,.85); border-radius: var(--radius);
  background: var(--ink); overflow: hidden;
  box-shadow: 0 0 0 4px var(--red), 0 24px 60px -20px rgba(232,20,28,.5);
}
.metrics div { padding: 26px 28px; border-right: 1px solid var(--border); }
.metrics div:last-child { border-right: 0; }
.metrics strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--red-soft); font-weight: 700; }
.metrics span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.label {
  display: inline-block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red-soft); margin-bottom: 16px;
}

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg-2); padding: 34px 28px; transition: background .25s; }
.feature:hover { background: #142a72; }
/* round badges like the logo's O / A circles */
.f-icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 24px;
  color: #fff; background: radial-gradient(circle at 35% 30%, var(--red-soft), var(--red) 70%);
  border: 3px solid #fff; box-shadow: 0 0 0 4px var(--ink), 0 10px 24px -6px rgba(232,20,28,.6);
}
.f-icon svg { stroke-width: 2; }
.f-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: .94rem; margin-top: 10px; }

/* Technology */
.tech { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.tech-text p { color: var(--muted); margin: 18px 0 30px; font-size: 1.05rem; }
.spec { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row strong { color: #fff; font-weight: 500; text-align: right; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px 24px; border-top: 2px solid var(--border-2); position: relative; }
.step::before { content: ""; position: absolute; top: -3px; left: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--red); }
.step .mono { color: var(--red-soft); }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* CTA */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 24px;
  /* logo sticker: red panel, white stroke, navy outline */
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(135deg, var(--red-soft), var(--red) 50%, #b30c13);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--ink), 0 30px 80px -20px rgba(232,20,28,.6);
}
.cta .label { color: #fff; opacity: .85; }
.cta p { color: rgba(255,255,255,.88); margin-top: 14px; }
.cta .btn-primary { background: var(--ink); box-shadow: 0 10px 26px -8px rgba(7,16,54,.8); }
.cta .btn-primary:hover { background: var(--navy); }
.signup { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,.55); background: rgba(7,16,54,.35); color: #fff; font: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.signup input::placeholder { color: rgba(255,255,255,.7); }
.signup input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* Footer */
.footer { border-top: 4px solid var(--red); background: var(--ink); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 44px; width: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.copy { color: var(--muted); font-size: .85rem; }

/* ---------- Privacy / legal page ---------- */
.legal-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.legal-meta { margin-top: 18px; color: var(--text); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal-meta .mono { color: var(--red-soft); }
.legal-wrap { padding: 64px 0 110px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.toc {
  position: sticky; top: 96px; padding: 22px; border-radius: var(--radius);
  background: var(--ink); border: 1px solid var(--border-2);
  max-height: calc(100vh - 120px); overflow-y: auto;
}
.toc ol { list-style: none; margin-top: 14px; display: grid; gap: 4px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px;
  font-size: .86rem; color: var(--muted); transition: background .2s, color .2s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem; color: var(--red-soft); padding-top: 2px; }
.toc a:hover { background: var(--surface-2); color: #fff; }
.legal { max-width: 760px; }
.legal .intro { font-size: 1.12rem; color: var(--text); padding: 22px 24px; border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 12px 12px 0; }
.legal h2 {
  font-size: 1.5rem; margin: 52px 0 16px; padding-top: 8px; scroll-margin-top: 96px;
  display: flex; align-items: center; gap: 14px;
}
.legal h2 span {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; color: #fff;
  background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 3px var(--ink);
}
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal ul { list-style: none; display: grid; gap: 8px; margin: 6px 0 16px; }
.legal li { position: relative; padding-left: 22px; color: var(--text); }
.legal li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red-soft); }
.legal a { color: var(--red-soft); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tech, .cta, .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 16px 28px;
    background: rgba(7, 16, 54, .97); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

  .hero { padding-top: 64px; }
  .section { padding: 80px 0; }
  .cta { padding: 36px 24px; }
}

@media (max-width: 560px) {
  .features, .process { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .metrics div { padding: 20px 18px; }
  .metrics strong { font-size: 1.1rem; white-space: nowrap; }
  .spec-row { flex-direction: column; gap: 4px; }
  .spec-row strong { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
