/* ═══════════════════════════════════════════════════════════════════════
   QofE — hero-only teaser (2026-07-08 direction)
   Sleek/modern/tech background: near-black canvas, faint engineering grid,
   two soft gradient glows, animated particle network (nodes + connecting
   lines — a small nod to "connecting financial data points"). Monochrome
   base + rationed red accent, per the brand book. 8px grid, radii ≤ 20px.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --void: #08090A;              /* near-black base, slightly cool */
  --ink-2: #333333;
  --ink-3: #666666;
  --ink-4: #999999;
  --paper: #E9E9E9;
  --white: #FFFFFF;
  --red: #FF0408;

  --hairline: rgba(255, 255, 255, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --track-display: -0.035em;
  --track-body: -0.011em;

  --r-pill: 999px;
  --pad-x: clamp(20px, 5vw, 64px);
}

/* ─── Reset-ish ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-optical-sizing: auto;
  letter-spacing: var(--track-body);
  background: var(--void);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: var(--white); }

/* ─── Background stack ──────────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--void);
}

/* Fine engineering grid, fading toward the edges so it reads as depth,
   not wallpaper. */
.bg__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 0%, transparent 78%);
}

/* Two soft gradient glows — mostly neutral, one whisper of red (rationed
   accent, per the brand book). Transform-only animation so the blur never
   has to be recomputed per frame. */
.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg__glow--a {
  top: -18vw;
  left: -8vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
  animation: glow-drift-a 34s ease-in-out infinite alternate;
}
.bg__glow--b {
  bottom: -20vw;
  right: -10vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 4, 8, 0.09) 0%, transparent 70%);
  animation: glow-drift-b 40s ease-in-out infinite alternate;
}
@keyframes glow-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vw) scale(1.12); }
}
@keyframes glow-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-3vw, -4vw) scale(1.08); }
}

/* Particle-network canvas — drawn by js/main.js */
.bg__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Everything above the background */
.nav, main, .footer { position: relative; z-index: 1; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: var(--track-body);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--paper); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(8, 9, 10, 0.4);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--sm { padding: 10px 22px; font-size: 14px; }

.link-quiet {
  font-size: 15px;
  color: var(--ink-4);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--white); border-color: var(--ink-3); }

/* ─── Status badge (non-interactive — stands in for the CTA until launch) ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: var(--track-body);
}
.badge--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(8, 9, 10, 0.4);
  backdrop-filter: blur(8px);
}
.badge--light {
  padding: 16px 32px;
  font-size: 16px;
  background: var(--white);
  color: var(--black);
}

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
}
.nav__logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--track-display);
}

/* ─── Shared type ───────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 12px;
  vertical-align: 1px;
  box-shadow: 0 0 12px 1px rgba(255, 4, 8, 0.7);
}

/* ─── Hero (fills the viewport — the whole page for now) ─────────────── */
main { flex: 1; display: flex; }
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px var(--pad-x) 96px;
}
.hero__content { position: relative; max-width: 980px; }
.hero .eyebrow { margin-bottom: 32px; }
.hero__title {
  font-size: clamp(44px, 7.6vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: var(--track-display);
  margin-bottom: 32px;
}
.hero__sub {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-4);
  max-width: 560px;
  margin-bottom: 44px;
}
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ─── Footer (single line, low emphasis) ───────────────────────────── */
.footer {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px var(--pad-x) 28px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer a:hover { color: var(--white); }

/* ─── Reveal-on-load ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Motion & small screens ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg__glow { animation: none !important; }
  .btn { transition: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 104px; padding-bottom: 88px; }
  .bg__grid { background-size: 40px 40px; }
  .footer { gap: 18px; }
}
