/* ============================================================
   SUBSPARQ — site.css
   Shared design tokens, nav, footer, utilities
   Brand: #0A0B0F dark, #FFCD11 cat yellow, Barlow Condensed
============================================================ */

:root {
  /* Backgrounds */
  --void:       #0A0B0F;
  --dark:       #0F1014;
  --surface:    #16181D;
  --surface-2:  #1E2028;
  --surface-3:  #252830;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  /* Yellow — the brand */
  --yellow:       #FFCD11;
  --yellow-dim:   #E6B800;
  --yellow-glow:  rgba(255,205,17,0.15);
  --yellow-pale:  rgba(255,205,17,0.08);

  /* Text */
  --white:      #FFFFFF;
  --off-white:  #F0F1F3;
  --muted:      #6B7280;
  --muted-2:    #9CA3AF;
  --subtle:     rgba(255,255,255,0.45);

  /* Signals */
  --bid-green:    #22C55E;
  --look-amber:   #F59E0B;
  --twice-red:    #EF4444;
  --bid-green-bg: rgba(34,197,94,0.10);
  --look-amber-bg:rgba(245,158,11,0.10);
  --twice-red-bg: rgba(239,68,68,0.10);

  /* Risk */
  --risk-red:    #DC2626;
  --risk-yellow: #D97706;
  --risk-green:  #16A34A;

  /* Typography */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans:    'Barlow', system-ui, sans-serif;

  /* Spacing / shape */
  --radius:    3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); background: var(--void); color: var(--muted-2); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--yellow); }
.section-sub { font-size: 1.0625rem; color: var(--muted-2); line-height: 1.75; max-width: 580px; }

/* ── Hatch texture (diagonal lines) ── */
.hatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,0.015) 28px, rgba(255,255,255,0.015) 29px);
  pointer-events: none;
}

/* ── Spark icon SVG (inline reuse) ── */
.spark-icon { color: var(--yellow); flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--void);
  padding: 12px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(255,205,17,0.30);
}
.btn-yellow:hover {
  background: #FFD740;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,205,17,0.45);
}
.btn-yellow-lg { padding: 16px 36px; font-size: 1.125rem; }
.btn-ghost {
  background: transparent;
  color: var(--muted-2);
  padding: 12px 26px;
  font-size: 1rem;
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-sm { padding: 9px 20px; font-size: 0.875rem; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,15,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 28px; height: 28px; }
.nav-wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}
.nav-wordmark .sparq { color: var(--yellow); }
/* Nav links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-sign-in {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
}
.nav-sign-in:hover { color: var(--white); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,0.015) 28px, rgba(255,255,255,0.015) 29px);
  pointer-events: none;
}
/* Yellow glow */
.page-hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,205,17,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 16px;
}
.page-hero h1 em { color: var(--yellow); font-style: italic; }
.page-hero p { font-size: 1.125rem; color: var(--muted-2); max-width: 560px; line-height: 1.7; }
.page-hero-rule { width: 40px; height: 3px; background: var(--yellow); border-radius: 2px; margin: 20px 0; }

/* ── FINAL CTA ── */
.final-cta {
  background: var(--dark);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,0.015) 28px, rgba(255,255,255,0.015) 29px);
}
.final-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(255,205,17,0.09) 0%, transparent 65%);
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 18px;
}
.final-cta h2 em { color: var(--yellow); font-style: italic; }
.final-cta p { font-size: 1.0625rem; color: var(--muted-2); max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }
.final-cta-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.beta-note { font-size: 0.8125rem; color: var(--muted); margin-top: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand .footer-wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .footer-wordmark span { color: var(--yellow); }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; max-width: 260px; }
.footer-col-title {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.18s; }
.footer-col-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.75rem; color: var(--muted); transition: color 0.18s; }
.footer-legal a:hover { color: var(--white); }

/* ── Scroll animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  nav .nav-links { display: none; }
  .nav-sign-in { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .final-cta-btns { flex-direction: column; align-items: center; }
}
