/* ==========================================================================
   GameBox landing site — "midnight" theme
   Near-black backgrounds, violet-to-teal gradients, glowing accents.
   No frameworks; mobile-first responsive.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #08080f;            /* near-black with a violet hint */
  --bg-soft: #0e0e18;       /* card / alt-section background */
  --bg-card: #12121d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f1f7;
  --muted: #a7a5b8;
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --teal: #2dd4bf;
  --gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 45%, #2dd4bf 130%);
  --gradient-text: linear-gradient(100deg, #a78bfa 0%, #2dd4bf 90%);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Shape & rhythm */
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps below the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin: 0.35em 0 0.9em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(139, 92, 246, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.08); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; margin-top: 20px; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 96px; overflow: hidden; }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 {
  background: linear-gradient(100deg, #ffffff 20%, #c4b5fd 60%, #5eead4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.subhead { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; color: var(--muted); margin-top: 12px; }
.lede { color: var(--muted); margin: 20px 0 32px; font-size: 1.05rem; max-width: 34em; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.version-note { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted, #9aa3b2); }

.hero-shot { position: relative; }
.hero-shot img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  /* Glow framing the product shot */
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.25), 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* Ambient glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; pointer-events: none; }
.glow-a { width: 520px; height: 520px; background: #6d28d9; top: -160px; left: -140px; }
.glow-b { width: 460px; height: 460px; background: #0d9488; bottom: -200px; right: -120px; opacity: 0.22; }

/* ---------------- Feature cards ---------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(139, 92, 246, 0.12);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(45, 212, 191, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd; margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------------- How it works ---------------- */
.steps { list-style: none; display: grid; gap: 20px; margin-top: 8px; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
  background: var(--gradient);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}
.step p { color: var(--muted); margin-top: 6px; }

/* ---------------- Pricing ---------------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 880px;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px 32px;
  position: relative;
}
.price-card-featured {
  border: 1px solid rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.18), 0 24px 64px rgba(0, 0, 0, 0.5);
}
.badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--gradient); color: #fff;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.price { margin: 12px 0 4px; }
.amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 500; }
.tier-desc { color: var(--muted); margin-bottom: 20px; }
.price-card ul { list-style: none; display: grid; gap: 12px; }
.price-card li { padding-left: 28px; position: relative; color: var(--text); font-size: 0.98rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(139, 92, 246, 0.4); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  font-size: 1.5rem; font-weight: 400; color: var(--violet);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 24px; color: var(--muted); }
.faq a { color: #c4b5fd; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: #06060c; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; }
.footer-social { display: flex; gap: 24px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 20px; height: 20px; }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(8, 8, 15, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; } /* keep header slim on mobile; CTAs live in hero */
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
