/* ==========================================================
   Anglia LLC — Homepage styles
   Edit the tokens below to re-theme the whole site.
   ========================================================== */

:root {
  /* Colors */
  --bg:        #0b0c0e;
  --bg-2:      #111317;
  --surface:   #16191e;
  --line:      #262a31;
  --text:      #ece8e1;
  --muted:     #9a978f;
  --faint:     #5f5d58;

  /* "Heat map" accents (nod to The Fog Below's proximity radar) */
  --heat-1:    #f5d14a; /* yellow  */
  --heat-2:    #f2913d; /* orange  */
  --heat-3:    #e5483a; /* red     */
  --accent:    var(--heat-2);

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --max:     1200px;
  --gutter:  clamp(16px, 4vw, 40px);
  --radius:  14px;
  --section: clamp(80px, 12vw, 150px);
  --ease:    cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--heat-2); color: #111; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--heat-1); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 15px/1 var(--font-body);
  padding: 15px 24px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(100deg, var(--heat-1), var(--heat-2) 55%, var(--heat-3));
  color: #14110c;
  box-shadow: 0 8px 30px -10px rgba(242, 145, 61, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(242, 145, 61, .75); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.05); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn--large { padding: 18px 30px; font-size: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 14, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  font: 600 14px/1 var(--font-mono);
  color: #14110c; background: var(--heat-1);
  padding: 7px 7px; border-radius: 6px;
}
.brand__name { font: 800 22px/1 var(--font-display); letter-spacing: -0.03em; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) { font-size: 15px; color: var(--muted); transition: color .2s; position: relative; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(11,12,14,.86), rgba(11,12,14,.35) 60%, transparent),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__content { position: relative; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 13px/1 var(--font-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  background: rgba(11,12,14,.6);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--heat-1); box-shadow: 0 0 12px var(--heat-1); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero__title {
  font-size: clamp(46px, 9vw, 116px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .95;
  margin: 28px 0 28px;
  max-width: 12ch;
}
.heat-text {
  background: linear-gradient(100deg, var(--heat-1), var(--heat-2) 50%, var(--heat-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: #c9c5bd; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 56px;
  font: 400 13px/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em;
}
.hero__meta li::before { content: "■ "; color: var(--heat-2); font-size: 9px; vertical-align: 2px; }

.hero__hint {
  position: absolute; bottom: 28px; right: var(--gutter);
  font: 400 12px/1 var(--font-mono); color: var(--faint); letter-spacing: .08em;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section__head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
.section__sub { color: var(--muted); margin-top: 18px; font-size: 18px; }
.section__sub a { color: var(--heat-1); border-bottom: 1px solid currentColor; }
.kicker {
  font: 600 13px/1 var(--font-mono); color: var(--heat-2);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px;
}

/* ---------- Games ---------- */
.games__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .4s var(--ease);
}
.game:hover { border-color: #3a3f48; transform: translateY(-4px); }
.game__media { position: relative; display: block; overflow: hidden; aspect-ratio: 460 / 215; background: #000; }
.game__media {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(242,145,61,.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 20px),
    #0f1114;
}
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); color: transparent; font-size: 0; }
.game:hover .game__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
  padding: 8px 11px; border-radius: 999px; backdrop-filter: blur(8px);
}
.badge--live { background: rgba(245, 209, 74, .92); color: #14110c; }
.badge--soon { background: rgba(11, 12, 14, .75); color: var(--heat-1); border: 1px solid rgba(245, 209, 74, .5); }

.game__body { padding: 30px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.game__body h3 { font-size: 30px; font-weight: 800; }
.game__body > p { color: var(--muted); font-size: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font: 400 12px/1 var(--font-mono); color: var(--text);
  border: 1px solid var(--line); padding: 7px 10px; border-radius: 6px;
}
.game__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 0;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.game__facts dt { font: 400 11px/1.2 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.game__facts dd { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.game__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ---------- Benefits ---------- */
.benefits { background: var(--bg-2); border-block: 1px solid var(--line); }
.benefits__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.benefit { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.benefit + .benefit { padding-left: 28px; }
.benefit:last-child { border-right: 0; }
.benefit__icon { display: block; font: 600 13px/1 var(--font-mono); color: var(--heat-1); margin-bottom: 40px; }
.benefit h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.benefit p { color: var(--muted); font-size: 16px; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  position: relative; padding: 38px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s;
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(242,145,61,.12), transparent 60%);
}
.service:hover { border-color: #3a3f48; }
.service:hover::before { opacity: 1; }
.service__glyph {
  font: 600 20px/1 var(--font-mono); color: var(--heat-1);
  width: 58px; height: 58px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 30px; background: var(--bg);
}
.service h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { margin-top: 22px; display: grid; gap: 8px; }
.service li { font: 400 14px/1.4 var(--font-mono); color: var(--text); }
.service li::before { content: "→ "; color: var(--heat-2); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--heat-1), var(--heat-2), var(--heat-3), transparent);
  opacity: .5;
}
.step { position: relative; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  font: 600 14px/1 var(--font-mono); color: var(--heat-1);
  margin-bottom: 28px; position: relative;
}
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-2); border-block: 1px solid var(--line); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  margin: 0; padding: 34px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
}
.quote__tag { font: 600 12px/1 var(--font-mono); color: var(--heat-1); text-transform: uppercase; letter-spacing: .1em; margin-bottom: -16px; }
.quote blockquote { margin: 0; font: 400 20px/1.45 var(--font-display); letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quote small { color: var(--muted); font-size: 13px; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 600 16px/1 var(--font-mono); color: #14110c;
  background: linear-gradient(135deg, var(--heat-1), var(--heat-3));
}

/* ---------- FAQ ---------- */
.faq__layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq__layout .section__head { position: sticky; top: 110px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
  font: 600 19px/1.35 var(--font-body); transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--heat-1); }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--font-mono); color: var(--heat-2); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 40px 28px 0; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { padding: var(--section) 0; }
.cta__inner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: clamp(60px, 9vw, 120px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(229,72,58,.35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 110%, rgba(245,209,74,.25), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.cta h2 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; position: relative; }
.cta p:not(.kicker) { color: #c9c5bd; max-width: 520px; margin: 22px auto 0; font-size: 18px; position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; position: relative; }
.cta .kicker { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 300px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font: 600 12px/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px;
}
.footer__col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--heat-1); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13px;
}
.footer__base .mono { font-size: 12px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .benefit, .benefit + .benefit { padding: 30px 24px 30px 0; border-right: 0; border-top: 1px solid var(--line); }
  .benefit:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .steps::before { display: none; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid .quote:last-child { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,12,14,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 16px 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 20px; padding: 16px; }
  .nav.menu-open { background: rgba(11,12,14,.97); border-color: var(--line); }

  .games__grid, .services__grid { grid-template-columns: 1fr; }
  .faq__layout { grid-template-columns: 1fr; gap: 10px; }
  .faq__layout .section__head { position: static; }
  .hero__hint { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .benefits__grid, .steps, .testimonials__grid { grid-template-columns: 1fr; }
  .benefit:nth-child(even) { padding-left: 0; border-left: 0; }
  .benefit__icon { margin-bottom: 18px; }
  .game__body, .service, .quote { padding: 26px 22px; }
  .game__facts { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .btn--large { white-space: normal; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; }
}

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