/* =====================================================================
   OPUS DESIGNR — Tokens
   Rebuilt for the new site: acid green (#C8FC0B), Horizon + Anonymous Pro
   + Montserrat. Black canvas, dark grey layers only. No whites, no gradients.
   ===================================================================== */

/* --- WEBFONTS -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Montserrat:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Horizon';
  src: url('../assets/fonts/Horizon.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Horizon Outlined';
  src: url('../assets/fonts/Horizon_Outlined.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand ---------------------------------------------------------- */
  --acid:          #C8FC0B;
  --acid-hover:    #B6E800;
  --acid-pressed:  #A3D200;
  --acid-dim:      #7F9B10;

  /* --- Canvas / greys (NO WHITE surfaces) ----------------------------
   *
   * Lifted ~+22 per step from the original pitch-black ladder so cards /
   * hovers / inner surfaces stay perceptibly lighter than the page
   * they sit on. The new palette landed first as a scoped override in
   * home-a.html / mobile-a.html (Dylan's app dark-mode A/B test); this
   * pulls it up to the shared token layer so index.html + mobile.html
   * pick it up too. */
  --bg-0: #161616;     /* page background */
  --bg-1: #1f1f22;     /* section band */
  --bg-2: #2a2a2f;     /* card surface */
  --bg-3: #34353a;     /* inner card / input */
  --bg-4: #3f4045;     /* hover surface */
  --bg-5: #4a4b50;     /* deepest grey */

  /* --- Borders ------------------------------------------------------- */
  --line-1: rgba(255,255,255,0.12);
  --line-2: rgba(255,255,255,0.18);
  --line-3: rgba(255,255,255,0.28);
  --line-4: rgba(255,255,255,0.44);

  /* --- Text ---------------------------------------------------------- */
  --ink-1: #FFFFFF;
  --ink-2: rgba(255,255,255,0.84);
  --ink-3: rgba(255,255,255,0.68);
  --ink-4: rgba(255,255,255,0.52);
  --ink-5: rgba(255,255,255,0.36);

  /* On-acid text */
  --on-acid-1: #000000;
  --on-acid-2: rgba(0,0,0,0.72);

  /* --- Type stacks --------------------------------------------------- */
  --ff-display: 'Horizon', 'Horizon Outlined', Impact, sans-serif;
  --ff-mono:    'Anonymous Pro', 'JetBrains Mono', ui-monospace, monospace;
  --ff-sans:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* --- Radii --------------------------------------------------------- */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-pill: 999px;

  /* --- Motion -------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  220ms;
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Put `overflow-x: clip` on BOTH html and body so no descendant's
   horizontal overflow (e.g. the mobile carousel) can leak into the
   document-level scroll. `clip` does NOT create a new scroll container,
   so `position: sticky` on descendants (the nav) keeps working on
   iOS Safari — unlike `hidden`, which would break it. */
html { overflow-x: clip; }
body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--ff-mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Legacy fallback for browsers without overflow: clip support.
   Only applied to body (not html) so sticky isn't broken. */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img, svg { display: block; max-width: 100%; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* =====================================================================
   TYPE UTILITIES
   ===================================================================== */
/* Horizon — brand marks + big editorial emphasis */
.t-horizon {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}
/* Anonymous Pro — mono headers */
.t-mono-h {
  font-family: var(--ff-mono);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
/* Anonymous Pro — mono body */
.t-mono-b {
  font-family: var(--ff-mono);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
}
/* Montserrat — secondary header */
.t-sans-h {
  font-family: var(--ff-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
/* Montserrat — secondary body */
.t-sans-b {
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Eyebrow labels — [ BRACKETED ] tracked caps */
.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acid);
}
.eyebrow--bracket::before { content: "[ "; }
.eyebrow--bracket::after  { content: " ]"; }
.eyebrow--muted { color: var(--ink-3); }

/* Meta strip — SYSTEM_STATUS: [OPTIMAL] */
.meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.accent { color: var(--acid); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap--wide { max-width: 1440px; }
.section { padding: 120px 0; position: relative; }
.section--pad-sm { padding: 72px 0; }
.hairline { border-top: 1px solid var(--line-1); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--acid);
  color: var(--on-acid-1);
  border-color: var(--acid);
}
.btn--primary:hover { background: var(--acid-hover); border-color: var(--acid-hover); }
.btn--primary:active { background: var(--acid-pressed); }

.btn--outline {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--line-3);
}
.btn--outline:hover { border-color: var(--ink-1); background: var(--bg-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-2);
}
.btn--ghost:hover { color: var(--ink-1); border-color: var(--line-3); }

.btn--invert {
  background: var(--bg-0);
  color: var(--ink-1);
  border-color: var(--bg-0);
}
.btn--invert:hover { background: var(--bg-2); }

.btn--lg { padding: 18px 28px; font-size: 13px; }
.btn--sm { padding: 10px 16px; font-size: 10px; letter-spacing: 0.2em; }

.btn .arrow { font-family: var(--ff-mono); font-size: 14px; line-height: 1; }

/* =====================================================================
   CHIPS + INDICATORS
   ===================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink-3);
}
.chip--acid { background: var(--acid); color: var(--on-acid-1); border-color: var(--acid); }
.chip--dark { background: var(--bg-0); color: var(--ink-1); border-color: var(--bg-0); }
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 252, 11, 0.6);
}
.chip--acid .dot { background: var(--bg-0); box-shadow: none; }

/* =====================================================================
   STATUS STRIPS (top + bottom of page)
   ===================================================================== */
.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line-1);
}
.status-strip--bottom { border-bottom: 0; border-top: 1px solid var(--line-1); }
.status-strip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--acid); display: inline-block; margin-right: 8px;
  box-shadow: 0 0 8px rgba(200, 252, 11, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { background: var(--bg-3); border-color: var(--line-3); }

/* =====================================================================
   UTIL
   ===================================================================== */
.sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
