/* The Gazette — marketing site v2 ("teaser energy")
   Tokens from TheGazetteBrandBook.pdf v1.0. Azure is the only brand colour;
   green/amber appear only as functional status pills. */

:root {
  --base: #0A0E16;
  --surface: #111723;
  --surface-2: #151C2B;
  --azure: #3A86FF;
  --azure-dim: rgba(58, 134, 255, 0.14);
  --live: #2BD4A0;
  --review: #F4B740;
  --text: #EEF2F8;
  --muted: #8A95A7;
  --line: rgba(138, 149, 167, 0.16);
  --line-strong: rgba(138, 149, 167, 0.30);

  --font-display: "Schibsted Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============================== header ============================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.nav .cta {
  color: #fff; background: var(--azure);
  padding: 9px 20px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 0 0 0 rgba(58,134,255,0);
  transition: background .2s, box-shadow .3s;
}
.nav .cta:hover { background: #2f76ea; text-decoration: none; box-shadow: 0 4px 24px rgba(58,134,255,.35); }
.menu-toggle { display: none; }

/* ============================== type ============================== */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.eyebrow .bars i { display: block; height: 3px; border-radius: 2px; background: var(--muted); opacity: .65; }
.eyebrow .bars i:first-child { width: 18px; background: var(--azure); opacity: 1; }
.eyebrow .bars i:nth-child(2) { width: 13px; }
.eyebrow .bars i:nth-child(3) { width: 9px; }

.money { font-family: var(--font-mono); font-size: 0.94em; white-space: nowrap; }

/* ============================== THE WALL ============================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
}
.hero.hero-sub { min-height: 72vh; padding: 150px 0 80px; }

.wall {
  position: absolute; inset: -12% -8%;
  perspective: 1100px;
  perspective-origin: 50% 38%;
  z-index: 0;
  pointer-events: none;
}
.wall-plane {
  position: absolute; inset: 0;
  display: flex; gap: 22px; justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.wall-col {
  width: 250px; flex: 0 0 auto;
  overflow: visible;
}
.wall-col-inner {
  display: flex; flex-direction: column; gap: 22px;
  animation: wallScroll var(--dur, 60s) linear infinite;
  will-change: transform;
}
.wall-col.rev .wall-col-inner { animation-direction: reverse; }
@keyframes wallScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.wall-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  flex: 0 0 auto;
}
.wall-card .wc-title {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  line-height: 1.35; color: var(--text); margin-bottom: 8px;
}
.wall-card .wc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.wall-card .wc-amt { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.wall-card .wc-amt b { color: var(--text); font-weight: 600; }

.wall-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(10,14,22,0.30) 0%, rgba(10,14,22,0.78) 58%, var(--base) 100%),
    linear-gradient(to bottom, rgba(10,14,22,0.65), rgba(10,14,22,0.15) 30%, rgba(10,14,22,0.2) 70%, var(--base) 100%);
}
.hero-sub .wall { opacity: .5; }

.hero-content { position: relative; z-index: 2; }

/* ============================== pills & cards ============================== */

.pill {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pill-live { color: var(--live); background: rgba(43, 212, 160, 0.13); }
.pill-review { color: var(--review); background: rgba(244, 183, 64, 0.13); }

/* ============================== counters ============================== */

.counter-block { margin-top: 56px; }
.counter-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 9px;
}
.counter-label .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.counter {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.01em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter .unit { font-size: 0.38em; color: var(--muted); font-weight: 500; margin-left: 12px; }

.stat-row { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 48px; }
.stat .counter { font-size: clamp(30px, 3.6vw, 46px); }
.stat .counter-label { margin-bottom: 6px; }

/* ============================== buttons ============================== */

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 14px 30px; border-radius: 11px; border: 1px solid transparent;
  transition: background .2s, box-shadow .3s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--azure); color: #fff; }
.btn-primary:hover { background: #2f76ea; box-shadow: 0 6px 32px rgba(58,134,255,.4); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(17,23,35,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--muted); }

/* ============================== sections ============================== */

section { padding: 110px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .step-label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 16px; display: block;
}

/* ============================== ledger blocks ============================== */

.ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 2;
  overflow-x: auto;
}
.ledger .lg-title {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.ledger table { border-collapse: collapse; width: 100%; min-width: 360px; }
.ledger td { padding: 1px 0; }
.ledger td.amt { text-align: right; white-space: pre; width: 1%; font-variant-numeric: tabular-nums; }
.ledger .credit { color: var(--live); }
.ledger .debit { color: var(--muted); }
.ledger .acct { color: var(--text); }
.ledger tr.rule td { border-top: 1px solid var(--line); padding-top: 8px; }
.ledger .note { font-family: var(--font-body); color: var(--muted); font-size: 14px; margin-top: 16px; line-height: 1.6; }

/* ============================== tables ============================== */

.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th {
  text-align: left; font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line-strong);
}
.tbl td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl td:first-child { color: var(--text); font-weight: 500; }

/* ============================== gate diagram ============================== */

.gate { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.gate .arrow { align-self: center; color: var(--azure); font-size: 24px; font-family: var(--font-mono); }

/* ============================== FAQ ============================== */

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--azure); font-size: 22px; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }
.faq-item .faq-body p + p { margin-top: 10px; }

/* ============================== forms ============================== */

.waitlist-form { display: flex; gap: 12px; max-width: 500px; }
.waitlist-form input[type="email"] {
  flex: 1; background: rgba(17,23,35,.7); border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 14px 18px; color: var(--text);
  font-family: var(--font-body); font-size: 16px;
}
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form button {
  background: var(--azure); color: #fff; border: 0; border-radius: 11px;
  padding: 14px 28px; font-family: var(--font-body); font-weight: 600;
  font-size: 16px; cursor: pointer; transition: background .2s, box-shadow .3s;
}
.waitlist-form button:hover { background: #2f76ea; box-shadow: 0 6px 32px rgba(58,134,255,.4); }
.form-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ============================== footer ============================== */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .fcol { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--muted); font-size: 14.5px; }
.site-footer a:hover { color: var(--text); text-decoration: none; }
.site-footer .legal { color: var(--muted); font-size: 13.5px; max-width: 46ch; line-height: 1.6; }
.site-footer img { height: 26px; margin-bottom: 8px; }

/* ============================== motion & responsive ============================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-col-inner { animation: none !important; }
  .wall { opacity: .35; }
  .counter-label .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 880px) {
  section { padding: 72px 0; }
  .hero { padding: 120px 0 80px; min-height: 92vh; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; }
  .gate .arrow { transform: rotate(90deg); justify-self: center; }
  .nav { gap: 16px; }
  .nav a:not(.cta) { display: none; }
  .menu-toggle {
    display: block; background: rgba(17,23,35,.6); border: 1px solid var(--line-strong);
    color: var(--text); border-radius: 9px; padding: 8px 14px;
    font-family: var(--font-body); font-size: 14px; cursor: pointer;
  }
  .site-header.open { background: var(--base); }
  .site-header.open .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--base); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px;
  }
  .site-header.open .nav a { display: block; font-size: 16px; }
  .waitlist-form { flex-direction: column; }
  .stat-row { gap: 32px; }
  .wall-col { width: 200px; }
}
