/* ============================================================================
   HyperScore — Live site foundation
   Design tokens + reset + shared primitives. Section-specific styles live in
   styles/sections.css. Change the brand look here; nothing else hardcodes it.
   ========================================================================== */
:root {
  --bg: #0b0b0f;
  --bg-elev: #15151c;
  --bg-card: #14141b;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --faint: #6b6b76;
  --border: #2a2a35;

  --red: #C81E1E;
  --blue: #1E3A8A;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --gold: #fbbf24;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --section-pad: clamp(2.75rem, 6vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background-color: #0a0a0e;
  background-image:
    radial-gradient(1300px 1050px at 100% 0%, rgba(40, 60, 140, 0.45), transparent 60%),
    radial-gradient(1200px 1000px at 0% 100%, rgba(150, 30, 40, 0.28), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Layout primitives */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.5rem; }
.section { padding-block: var(--section-pad); }

/* Section eyebrow + heading rhythm shared across sections */
.eyebrow {
  display: inline-block; margin: 0 0 0.9rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; font-weight: 800;
}
.section-sub {
  color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 56ch; margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border-radius: var(--radius); padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); }

/* Card primitive */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 1rem; letter-spacing: 1px; }

/* Reveal-on-scroll (progressively enhanced; visible by default if JS/IO absent) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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