/* ============================================================================
   GeeGii — Suite design system (front-facing marketing + auth + billing).
   Self-contained: powers index, /login, /pricing, /account. Bolder overhaul of
   the original dark+green identity into a premium, spectrum-accented system.
   Scoped to plain element + .gg-* classes; does not touch the injected tool nav.
   ============================================================================ */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* base surfaces — deep, green-tinted near-black */
  --bg:        #0a0d0b;
  --bg-2:      #0d110e;
  --surface:   #11160f;
  --surface-2: #161d18;
  --surface-3: #1d251f;
  --elevated:  #1a221c;

  /* lines */
  --line:        rgb(245 241 232 / 0.10);
  --line-2:      rgb(245 241 232 / 0.16);
  --line-strong: rgb(245 241 232 / 0.30);

  /* text */
  --fg:      #f5f1e8;
  --muted:   #b4bdaf;
  --muted-2: #8b958a;
  --faint:   #6b746a;

  /* brand + spectrum (the suite of tools, as a palette) */
  --green:      #7bc96f;
  --green-hi:   #9bee87;
  --green-rgb:  123 201 111;
  --violet:     #8b6cff;
  --cyan:       #36e0c8;
  --amber:      #f5c765;
  --orange:     #ff7a3c;
  --pink:       #ff6b9d;
  --blue:       #5b9dff;

  /* effects */
  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --shadow:    0 24px 60px -24px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 50px 120px -40px rgb(0 0 0 / 0.85);
  --ring:      0 0 0 1px rgb(var(--green-rgb) / 0.45), 0 0 40px -6px rgb(var(--green-rgb) / 0.5);

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1200px 700px at 12% -8%,  rgb(123 201 111 / 0.14), transparent 60%),
    radial-gradient(1000px 680px at 92% 4%,   rgb(139 108 255 / 0.10), transparent 58%),
    radial-gradient(900px 600px at 50% 120%,  rgb(54 224 200 / 0.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgb(var(--green-rgb) / 0.3); color: #fff; }

.gg-wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }

/* ── Type ─────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.display {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; }
.h3 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.12; }
.lede { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--muted); }
.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 800;
  color: var(--green);
}
.grad-text {
  background: linear-gradient(105deg, var(--green-hi), var(--cyan) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Eyebrow pill ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; width: max-content;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgb(245 241 232 / 0.04);
  color: #cdd5c8; font-size: 13px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px 1px var(--green); }
.eyebrow b { color: var(--fg); font-weight: 800; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), filter .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, var(--green-hi), var(--green));
  color: #07150c;
  box-shadow: 0 10px 30px -8px rgb(var(--green-rgb) / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgb(var(--green-rgb) / 0.72), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-ghost { background: rgb(245 241 232 / 0.05); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgb(245 241 232 / 0.09); transform: translateY(-2px); }
.btn-dark { background: var(--surface-2); border-color: var(--line-2); color: var(--fg); }
.btn-dark:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -10px #5865f2; }
.btn-discord:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-lg { --bh: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { --bh: 38px; padding: 0 15px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ── Header + footer: NOT here ─────────────────────────────────────────────── */
/* The site chrome moved to shared/site/chrome.css on 2026-07-29. It has to work
   on pages that never load this file — the games hub and /profile/ don't — and
   duplicating it here is how the site ended up with three different headers.
   See docs/site-chrome.md. */


/* ── Generic sections ─────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.sec-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 60px); text-align: center; display: grid; gap: 14px; }
.sec-head.left { text-align: left; margin-inline: 0; }
.sec-head p { margin: 0; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.card-pad { padding: clamp(20px, 3vw, 30px); }


/* ── Reveal-on-scroll ─────────────────────────────────────────────────────── */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.js-reveal [data-reveal-children] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal [data-reveal-children].in > * { opacity: 1; transform: none; }
.js-reveal [data-reveal-children].in > *:nth-child(2) { transition-delay: .06s; }
.js-reveal [data-reveal-children].in > *:nth-child(3) { transition-delay: .12s; }
.js-reveal [data-reveal-children].in > *:nth-child(4) { transition-delay: .18s; }
.js-reveal [data-reveal-children].in > *:nth-child(5) { transition-delay: .24s; }
.js-reveal [data-reveal-children].in > *:nth-child(n+6) { transition-delay: .3s; }

/* ── Checkout modal (stubbed) ─────────────────────────────────────────────── */
.gg-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgb(5 7 6 / 0.66); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s var(--ease);
}
.gg-modal-backdrop.show { opacity: 1; }
.gg-modal {
  width: min(440px, 100%); padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); transition: transform .24s var(--ease); position: relative;
}
.gg-modal-backdrop.show .gg-modal { transform: none; }
.gg-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgb(245 241 232 / 0.05); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.gg-modal-x:hover { color: var(--fg); background: rgb(245 241 232 / 0.1); }
.gg-modal-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.gg-checkout-note { display: flex; gap: 11px; padding: 14px; margin: 0 0 18px; border-radius: var(--radius-sm); border: 1px solid rgb(var(--green-rgb) / 0.3); background: rgb(var(--green-rgb) / 0.07); color: var(--green); }
.gg-checkout-note strong { display: block; color: var(--fg); font-size: 14.5px; }
.gg-checkout-note span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.gg-checkout-note svg { flex: none; margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-reveal [data-reveal], .js-reveal [data-reveal-children] > * { opacity: 1 !important; transform: none !important; }
}
