/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
html { scroll-padding-top: 128px; }

/* ── Variables ── */
:root {
  --black:    #0a0a0a;
  --charcoal: #111111;
  --surface:  #1a1a1a;
  --surface2: #222222;
  --border:   #2a2a2a;
  --amber:    #f5a623;
  --amber-dim:#c4841c;
  --white:    #f0ede8;
  --muted:    #a0a098;
  --green:    #4caf7d;
  --red:      #e05252;
  --blue:     #5b8def;
}

/* ── Base ── */
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }

/* ── Nav ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px); z-index: 200;
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-hamburger { display: none; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.nav-hamburger:hover { color: var(--white); }
.nav-drawer { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--charcoal); border-bottom: 1px solid var(--border); z-index: 199; padding: 8px 0; flex-direction: column; }
.nav-drawer.open { display: flex; }
.nav-drawer a { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); padding: 13px 20px; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--amber); }
.nav-drawer-sep { border-top: 1px solid var(--border); margin: 4px 0; }

/* ── Jump Nav ── */
/* Outer wrapper is sticky; inner nav handles overflow-x separately.
   iOS Safari breaks position:sticky when overflow is set on the same element. */
.jump-nav-wrap {
  position: sticky; top: 56px; z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
}
.jump-nav {
  display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jump-nav::-webkit-scrollbar { display: none; }
.jump-link {
  font-family: 'DM Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 12px 16px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.jump-link:hover { color: var(--white); }
.jump-link.active { color: var(--amber); border-bottom-color: var(--amber); }

/* ── Section Label ── */
.section-label {
  font-family: 'DM Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 12px;
}
.section-anchor { display: block; visibility: hidden; }

/* ── Hero ── */
.hub-heading {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  line-height: 1; letter-spacing: 0.02em; margin-bottom: 4px;
}
.hub-heading span { color: var(--amber); }
.hub-tagline { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.hub-lead { font-size: 15px; color: var(--white); line-height: 1.65; margin-bottom: 28px; opacity: 0.85; }

/* ── Quick Facts ── */
.quick-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; margin-bottom: 32px;
}
.fact-cell {
  background: var(--surface); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.fact-icon { font-size: 16px; }
.fact-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.fact-value { font-size: 14px; color: var(--white); font-weight: 500; }

/* ── Alert Banner ── */
.alert-banner {
  border: 1px solid; border-radius: 6px;
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert-banner.warn    { border-color: rgba(245,166,35,0.4);  background: rgba(245,166,35,0.06); }
.alert-banner.info    { border-color: rgba(91,141,239,0.4);  background: rgba(91,141,239,0.06); }
.alert-banner.success { border-color: rgba(76,175,125,0.4);  background: rgba(76,175,125,0.06); }
.alert-icon  { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.alert-text  { font-size: 14px; color: var(--muted); line-height: 1.5; }
.alert-link  { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--amber); margin-top: 6px; display: inline-block; }
.alert-link:hover { text-decoration: underline; }

/* ── Affiliate Grid ── */
.affiliate-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 40px;
}
.affiliate-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 18px; transition: border-color 0.15s;
}
.affiliate-card:hover { border-color: #3a3a3a; }
.affiliate-icon  { font-size: 22px; margin-bottom: 8px; }
.affiliate-title { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.affiliate-desc  { font-size: 14px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.affiliate-cta   { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--amber); }
.affiliate-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── FAQ ── */
.faq-list { margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 16px; font-weight: 500; color: var(--white);
  cursor: pointer; display: flex; justify-content: space-between; align-items: start;
  gap: 12px; user-select: none;
}
.faq-q::after { content: '+'; font-family: 'DM Mono', monospace; font-size: 16px; color: var(--muted); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; color: var(--amber); }
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.6; padding-top: 10px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 24px 20px;
  text-align: center; font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--amber); }
.footer-disclaimer { margin-top: 10px; font-size: 10px; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}
@media (max-width: 600px) {
  .hub-heading { font-size: 36px; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
}
