/* ==========================================================================
   Think About It Games — thinkaboutitgames.com
   Dark theme, gold accents, single stylesheet, no build step.
   ========================================================================== */

:root {
  --bg:            #08080a;
  --bg-2:          #0c0d11;
  --panel:         #101116;
  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .16);

  --text:          #eceef2;
  --text-dim:      #9aa0ad;
  --text-faint:    #6a707d;

  --gold:          #e8b24a;
  --gold-light:    #f6d68b;
  --gold-deep:     #b8801f;

  /* the gem green from the logo — reserved for "do something" controls */
  --green:         #35d15a;
  --green-light:   #7ceb96;
  --green-deep:    #17913a;
  --green-ink:     #05240e;

  --radius:        16px;
  --radius-sm:     10px;
  --wrap:          1180px;

  --font-display:  'Archivo Black', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.05em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: var(--green-ink); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: .01em; }
h4 { font-size: .95rem; letter-spacing: .04em; }

.grad {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

.lede { font-size: 1.12rem; color: var(--text-dim); max-width: 62ch; }
.section-sub { color: var(--text-dim); max-width: 68ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn-play {
  background: linear-gradient(180deg, var(--green-light), var(--green) 55%, var(--green-deep));
  color: var(--green-ink);
  box-shadow: 0 10px 30px -12px rgba(53, 209, 90, .7), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(53, 209, 90, .85), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8,8,10,.9); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.brand-text strong { font-size: .84rem; font-weight: 400; letter-spacing: .02em; }
.brand-text em {
  font-style: normal; font-size: .84rem; letter-spacing: .18em;
  background: linear-gradient(100deg, var(--gold-light), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-size: .92rem; font-weight: 500; color: var(--text-dim); transition: color .18s ease; }
.nav > a:hover { color: var(--text); }
.nav .nav-cta { color: var(--green-ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 108px) 0 0; }

.hero-bg {
  position: absolute; inset: -20% -10% 0;
  background:
    radial-gradient(58% 46% at 50% 18%, rgba(232, 178, 74, .16) 0%, rgba(232, 178, 74, 0) 62%),
    radial-gradient(40% 34% at 82% 60%, rgba(53, 209, 90, .07) 0%, rgba(53, 209, 90, 0) 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 84px);
  pointer-events: none;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: clamp(120px, 17vw, 176px); height: auto; margin-bottom: 26px;
  filter: drop-shadow(0 18px 40px rgba(232, 178, 74, .28));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero h1 { max-width: 16ch; margin-bottom: .55em; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ticker */
.ticker {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  animation: slide 34s linear infinite;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}
.ticker-track i { color: var(--gold); font-style: normal; font-size: .55rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ── Flagship game ───────────────────────────────────────────────────────── */

.game-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.game-copy p { color: var(--text-dim); }
.game-title { font-size: clamp(2.6rem, 6.4vw, 4.4rem); margin-bottom: .1em; }
.game-tag {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: var(--gold); margin-bottom: 1.6em;
}

.facts { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.facts span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.facts strong { font-size: .92rem; font-weight: 600; color: var(--text); }

.game-shot { position: relative; margin: 0; }
.shot-glow {
  position: absolute; inset: -12% -8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232,178,74,.22), transparent 70%);
  filter: blur(18px);
}
.game-shot img {
  position: relative; width: 100%; border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(232,178,74,.08);
}

/* ── Cards / pillars ─────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 30px 26px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .22s ease, transform .22s ease;
}
.card:hover { border-color: rgba(232,178,74,.4); transform: translateY(-4px); }
.card-num {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 16px;
}
.card p { color: var(--text-dim); font-size: .95rem; margin: 0; }

/* ── Arsenal ─────────────────────────────────────────────────────────────── */

.group-label {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; letter-spacing: .18em; color: var(--text-faint);
  margin: 44px 0 20px;
}
.group-label:first-of-type { margin-top: 0; }
.group-label span { color: var(--gold); }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.spells { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.spell {
  padding: 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.spell:hover { border-color: rgba(232,178,74,.42); transform: translateY(-4px); background: #14151b; }
.spell img {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 14px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.6));
}
.spell h4 { font-size: .92rem; margin-bottom: 6px; letter-spacing: .02em; }
.spell-el { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.spell-quote { font-size: .87rem; color: var(--text-dim); font-style: italic; margin: 0; }

/* ── Biomes ──────────────────────────────────────────────────────────────── */

.biomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.biome {
  padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
}
.biome-n { font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 10px; }
.biome h3 { margin-bottom: 10px; }
.biome-cast { font-size: .82rem; color: var(--text-faint); letter-spacing: .04em; margin-bottom: 16px; }
.biome p { color: var(--text-dim); font-size: .94rem; }
.biome strong { color: var(--text); font-weight: 600; }
.biome-boss { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.biome-boss span { color: var(--gold-light); font-weight: 600; }

/* ── Studio ──────────────────────────────────────────────────────────────── */

.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.studio-grid p { color: var(--text-dim); }
.values { display: grid; gap: 14px; }
.value {
  padding: 22px 24px; border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(232,178,74,.07), transparent 70%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.value h3 { font-size: .95rem; margin-bottom: 6px; }
.value p { margin: 0; font-size: .9rem; color: var(--text-dim); }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 20ch; }
.contact .section-sub { margin-bottom: 30px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer { background: #050506; border-top: 1px solid var(--line); padding: 64px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-note { color: var(--text-faint); font-size: .88rem; margin: 16px 0 0; max-width: 34ch; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.footer-cols h4 { color: var(--text); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text-dim); font-size: .9rem; padding: 4px 0; transition: color .18s ease; }
.footer-cols a:hover { color: var(--gold-light); }

.footer-address { font-style: normal; color: var(--text-dim); font-size: .9rem; line-height: 1.9; }
.footer-address h4 { color: var(--text); margin-bottom: 14px; }
.footer-address a { color: var(--gold-light); }
.footer-address a:hover { text-decoration: underline; }

.footer-bottom { padding-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--text-faint); }
.fineprint { font-size: .76rem; color: #565b66; max-width: 88ch; line-height: 1.6; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.15rem; margin: 2.2em 0 .7em; }
.legal h3 { font-size: .95rem; margin: 1.7em 0 .5em; color: var(--gold-light); letter-spacing: .02em; }
.legal p, .legal li { color: var(--text-dim); font-size: .97rem; }
.legal strong { color: var(--text); }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; color: var(--gold-light); background: rgba(255,255,255,.05); padding: .1em .4em; border-radius: 4px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2.4em; }
.legal .back { display: inline-block; margin-top: 40px; }

/* 404 */
.notfound { min-height: 66vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); line-height: 1; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .game-grid, .studio-grid { grid-template-columns: 1fr; }
  .game-shot { max-width: 420px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-address { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,10,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { margin-top: 16px; border-bottom: none; justify-content: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
