/* ── SKIP LINK ── */
.skip-link { position:absolute; top:-40px; left:0; background:var(--gold); color:#000; padding:8px 16px; font-size: 13px; z-index:200; transition:top .2s; text-decoration:none; font-weight:600; }
.skip-link:focus { top:0; }

/* ── FOCUS VISIBLE ── */
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}
::selection { background: rgba(212,175,55,0.18); }

/* ── GRAIN ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.45;
}
/* ── RADIAL GLOW ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(212,175,55,0.055) 0%, transparent 70%);
}

/* ── SCANLINE ── */
.scanline {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.scanline::after {
  content: ''; position: absolute; width: 100%; height: 2px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.015), transparent);
  animation: scanline 10s linear infinite;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; padding: 0 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(8,6,4,0.92);
  border-color: rgba(212,175,55,0.07);
  backdrop-filter: blur(14px);
}
.nav-brand { font-family: var(--sc); font-size: clamp(14px,1.2vw,20px); letter-spacing: 6px; color: var(--gold); text-transform: uppercase; text-decoration: none; justify-self: start; }
.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a { color: rgba(212,175,55,0.75); font-size: clamp(14px,1.2vw,20px); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; font-family: var(--sc); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { padding: 10px 20px; border: 1px solid rgba(212,175,55,0.5); color: var(--gold); font-size: clamp(13px,0.9vw,15px); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; font-family: var(--sc); transition: all 0.3s; background: transparent; cursor: pointer; justify-self: end; }
.nav-right { display: flex; gap: 10px; align-items: center; justify-self: end; }
.nav-cta:hover { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.8); }

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.section-label {
  font-size: clamp(13px,0.9vw,15px); letter-spacing: 6px; text-transform: uppercase;
  color: rgba(212,175,55,0.7); margin-bottom: 18px;
  font-family: var(--sc); text-align: center;
}
.section-title {
  font-size: clamp(32px, 6vw, 56px);
  font-family: var(--sc); font-weight: 600;
  color: var(--text); letter-spacing: 3px;
  text-align: center; line-height: 1.2; margin-bottom: 16px;
}
.section-title .gold { color: var(--gold); }
.section-sub {
  font-size: clamp(14px,1.1vw,19px); color: var(--text-dim); font-style: italic;
  font-family: var(--serif); max-width: 580px;
  margin: 0 auto 52px; text-align: center; line-height: 1.8;
}

.divider {
  height: 1px; margin: 80px 24px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
}

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 90px; text-align: center;
}
.hero-label { font-size: clamp(13px,0.9vw,15px); letter-spacing: 8px; color: rgba(212,175,55,0.7); text-transform: uppercase; margin-bottom: 24px; font-family: var(--sc); animation: fadeUp 1s ease both; }
@media (max-width: 480px) { .hero-label { letter-spacing: 2px; font-size: 12px; } }
.hero-title {
  font-size: clamp(42px, 12vw, 110px); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
  line-height: 0.88; font-family: var(--sc);
  animation: glow 5s ease infinite, fadeUp 1s ease 0.1s both;
  margin-bottom: 10px;
}
.hero-tagline { font-size: clamp(14px,1.1vw,18px); font-style: italic; color: var(--text-dim); letter-spacing: 3px; font-family: var(--serif); animation: fadeUp 1s ease 0.35s both; margin-bottom: 56px; }
.waitlist-box { animation: fadeUp 1s ease 0.55s both; width: 100%; max-width: 520px; }

/* ── HERO CTA ── */
.hero-cta-btn {
  display: block; width: 100%; max-width: 380px; margin: 0 auto;
  padding: 16px 32px; background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.55); color: var(--gold);
  font-size: 13px; letter-spacing: 5px; text-transform: uppercase;
  text-decoration: none; font-family: var(--sc);
  transition: all 0.3s; animation: fadeUp 1s ease 0.55s both;
}
.hero-cta-btn:hover { background: rgba(212,175,55,0.16); border-color: var(--gold); letter-spacing: 6px; }
.cta-btn-narrow { max-width: 360px; }
.email-note { font-size: 13px; color: rgba(212,175,55,0.45); letter-spacing: 3px; margin-top: 14px; text-transform: uppercase; }
.email-note-mt { margin-top: 16px; }
/* By default hide the auth CTA — shown via html.logged-in below */
.hero-auth-cta { display: none; }
.hero-signin-link { display: block; margin-top: 16px; font-size: 13px; letter-spacing: 3px; color: rgba(212,175,55,0.35); text-transform: uppercase; font-family: var(--sc); text-decoration: none; transition: color 0.2s; }
.hero-signin-link:hover { color: rgba(212,175,55,0.7); }

/* ── SCROLL INDICATOR ── */
.scroll-ind {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: float 2.2s ease infinite;
}
.scroll-ind span { font-size: 11px; letter-spacing: 4px; color: rgba(212,175,55,0.18); text-transform: uppercase; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(180deg, rgba(212,175,55,0.28), transparent); }

/* ── STATS ── */
#stats { padding: 56px 24px; }
.stats-row { display: flex; justify-content: center; gap: clamp(32px, 8vw, 120px); flex-wrap: wrap; max-width: 960px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-val { font-size: clamp(36px,3.5vw,58px); color: var(--gold); font-family: var(--sc); letter-spacing: 3px; line-height: 1; font-weight: 600; }
.stat-lbl { font-size: clamp(12px,0.85vw,14px); letter-spacing: 4px; color: rgba(212,175,55,0.65); text-transform: uppercase; margin-top: 8px; }

/* ── MAP ── */
#map { padding: 80px 24px; }
#map .container { text-align: center; }
.map-wrap {
  position: relative; border-radius: 3px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.1); background: #0c0a06;
  aspect-ratio: 16/9; max-height: 440px;
  margin: 0 auto; width: 100%;
}
.map-tooltip {
  display: none; position: absolute; bottom: 115%; left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  background: rgba(8,6,4,0.96); border: 1px solid rgba(212,175,55,0.2);
  padding: 8px 14px; z-index: 20; pointer-events: none;
}
.map-tooltip-rank { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-family: var(--sc); }
.map-tooltip-dist { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(212,175,55,0.3); margin-top: 3px; }
.map-tooltip-lock { font-size: 12px; color: rgba(240,232,216,0.55); font-style: italic; font-family: var(--serif); margin-top: 5px; }
.map-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(8,6,4,0.85) 100%);
}
.map-lock-msg {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; font-size: 13px; letter-spacing: 4px;
  color: rgba(212,175,55,0.75); text-transform: uppercase; font-family: var(--sc);
}
.map-live-badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 13px; letter-spacing: 3px; color: rgba(212,175,55,0.6); text-transform: uppercase;
}
.map-active-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 13px; letter-spacing: 3px; color: rgba(212,175,55,0.6); text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: ping 1.5s ease-out infinite; opacity: 0.7;
}

/* ── RANKS ── */
#ranks { padding: 80px 24px; }
.ranks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.rank-card {
  padding: 24px 18px; border: 1px solid rgba(212,175,55,0.09);
  background: rgba(212,175,55,0.01); border-radius: 2px;
  transition: all 0.3s ease; cursor: default;
}
.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.04);
}
.rank-level { font-size: 13px; letter-spacing: 4px; color: rgba(212,175,55,0.65); font-family: var(--sc); margin-bottom: 10px; text-transform: uppercase; }
.rank-title { font-size: clamp(13px,1.1vw,18px); font-family: var(--sc); font-weight: 600; letter-spacing: 2px; margin-bottom: 8px; }
.rank-pts { font-size: 13px; color: rgba(212,175,55,0.6); letter-spacing: 1px; margin-bottom: 12px; }
.rank-desc { font-size: clamp(12px,1vw,16px); color: rgba(240,232,216,0.75); font-style: italic; font-family: var(--serif); line-height: 1.6; border-top: 1px solid rgba(212,175,55,0.08); padding-top: 10px; }
.ranks-dist { margin-top: 40px; padding: 32px 28px 24px; border: 1px solid rgba(212,175,55,0.1); background: rgba(212,175,55,0.015); }
.dist-label { font-size: 13px; letter-spacing: 5px; color: rgba(212,175,55,0.75); text-transform: uppercase; margin-bottom: 28px; text-align: center; font-family: var(--sc); }
.dist-source { font-size: 13px; letter-spacing: 1.5px; color: rgba(212,175,55,0.5); text-align: center; margin-top: 20px; font-style: italic; font-family: var(--serif); }
.dist-bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; }
.dist-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0; justify-content: flex-end; }
.dist-pct { font-size: 13px; color: rgba(212,175,55,0.85); font-family: var(--sc); letter-spacing: 0.5px; margin-bottom: 4px; opacity: 0; transition: opacity 0.6s ease 1.2s; font-weight: 400; }
.dist-pct.shown { opacity: 1; }
.dist-bar { width: 100%; border-radius: 2px 2px 0 0; transition: height 1.4s cubic-bezier(0.23, 1, 0.32, 1); }
.dist-bar-lbl { font-size: 12px; color: rgba(212,175,55,0.6); font-family: var(--sc); margin-top: 5px; letter-spacing: 1px; }

/* ── MAP MAPBOX ── */
#index-map-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
#index-map-gl .mapboxgl-ctrl-bottom-left,
#index-map-gl .mapboxgl-ctrl-bottom-right,
#index-map-gl .mapboxgl-ctrl-top-right,
#index-map-gl .mapboxgl-ctrl-top-left { display: none !important; }
.map-placeholder { position: absolute; inset: 0; background: #070504; }
/* ── MAP BUBBLES ── */
.map-bubble {
  position: absolute; transform: translate(-50%, -50%);
  cursor: pointer; transition: transform 0.25s ease; z-index: 2;
}
.map-bubble:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 10; }
.map-bubble:hover .map-tooltip { display: block; }
@media (max-width: 600px) {
  .map-bubble { transform: translate(-50%, -50%) scale(0.58); }
  .map-bubble:hover { transform: translate(-50%, -50%) scale(0.65); }
}
.bubble-ping {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid; opacity: 0;
  animation: ping 2.2s ease-out infinite; pointer-events: none;
}
.bubble-avatar {
  border-radius: 50%; border: 2px solid;
  position: relative; background: rgba(7,5,3,0.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.bubble-initial {
  font-size: 13px; font-family: var(--sc); letter-spacing: 1px;
  line-height: 1; pointer-events: none;
}
.bubble-rank-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6.5px; font-family: var(--sc); font-weight: 700;
  border: 1.5px solid rgba(7,5,3,0.6); pointer-events: none; letter-spacing: 0;
}

/* ── HOW ── */
#how { padding: 80px 24px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  padding: 36px 26px; border: 1px solid rgba(212,175,55,0.09);
  background: rgba(212,175,55,0.01); border-radius: 2px;
  transition: all 0.3s ease; position: relative;
}
.step-card:hover { border-color: rgba(212,175,55,0.28); background: rgba(212,175,55,0.035); }
.step-num { font-size: 13px; letter-spacing: 4px; color: rgba(212,175,55,0.6); text-transform: uppercase; margin-bottom: 20px; font-family: var(--sc); }
.step-icon { font-size: 26px; color: rgba(212,175,55,0.38); margin-bottom: 16px; }
.step-title { font-size: clamp(15px,1.3vw,22px); color: var(--text); font-family: var(--sc); font-weight: 600; letter-spacing: 2px; margin-bottom: 12px; }
.step-body { font-size: clamp(13px,1.05vw,17px); color: rgba(240,232,216,0.68); line-height: 1.85; font-family: var(--serif); font-style: italic; }
.step-arrow { position: absolute; top: 50%; right: -12px; transform: translateY(-50%); font-size: 13px; color: rgba(212,175,55,0.18); z-index: 2; }
.tiers { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.tier-card { flex: 1 1 160px; max-width: 210px; padding: 18px 20px; border-radius: 2px; text-align: center; }
.tier-icon { font-size: 22px; margin-bottom: 8px; }
.tier-name { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-family: var(--sc); margin-bottom: 6px; }
.tier-desc { font-size: 13px; color: rgba(240,232,216,0.62); font-style: italic; font-family: var(--serif); }

/* ── FEATURES ── */
#features { padding: 80px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  padding: 28px 22px; border: 1px solid rgba(212,175,55,0.07);
  background: rgba(212,175,55,0.01); border-radius: 2px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(212,175,55,0.22); transform: translateY(-3px); }
.feature-icon { font-size: 22px; color: rgba(212,175,55,0.4); margin-bottom: 14px; }
.feature-title { font-size: clamp(14px,1.1vw,19px); color: var(--text); font-family: var(--sc); letter-spacing: 2px; margin-bottom: 8px; font-weight: 600; }
.feature-body { font-size: clamp(13px,1vw,16px); color: rgba(240,232,216,0.65); line-height: 1.75; font-family: var(--serif); font-style: italic; }

/* ── MANIFESTO ── */
#manifesto { padding: 100px 24px; }
.manifesto-line { line-height: 1.7; margin-bottom: 18px; }
.manifesto-line.big { font-size: clamp(24px, 4.5vw, 40px); color: var(--gold); font-family: var(--serif); font-weight: 700; margin-bottom: 24px; }
.manifesto-line.small { font-size: clamp(15px, 2.2vw, 20px); color: rgba(240,232,216,0.75); font-family: var(--serif); font-style: italic; font-weight: 300; }
.manifesto-quote {
  margin-top: 48px; padding: 32px;
  border: 1px solid rgba(212,175,55,0.09); background: rgba(212,175,55,0.015);
  border-radius: 2px;
}
.manifesto-quote p { font-size: clamp(15px,1.2vw,20px); color: rgba(240,232,216,0.68); font-style: italic; font-family: var(--serif); line-height: 1.95; margin-bottom: 18px; }
.manifesto-quote strong { color: rgba(212,175,55,0.55); font-weight: 400; }
.manifesto-attr { font-size: 13px; letter-spacing: 4px; color: rgba(212,175,55,0.55); text-transform: uppercase; font-family: var(--sc); }
.vline { width: 1px; height: 56px; margin: 0 auto; }

/* ── FINAL CTA ── */
#cta { padding: 100px 24px; text-align: center; }
.cta-ornament {
  width: 80px; height: 80px; margin: 0 auto 44px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.cta-ring-1 { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(212,175,55,0.14); animation: rotateSlow 12s linear infinite; }
.cta-ring-2 { position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.07); animation: rotateSlow 8s linear infinite reverse; }
.cta-glyph { font-size: 20px; color: rgba(212,175,55,0.6); position: relative; z-index: 1; }
.trust-row { display: flex; justify-content: center; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.trust-item { font-size: 13px; letter-spacing: 2px; color: rgba(212,175,55,0.6); text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.trust-item span { color: rgba(212,175,55,0.7); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1; padding: 28px 48px;
  border-top: 1px solid rgba(212,175,55,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-family: var(--sc); font-size: clamp(12px,0.95vw,16px); letter-spacing: 5px; color: rgba(212,175,55,0.5); }
.footer-tagline { font-size: 13px; letter-spacing: 3px; color: rgba(212,175,55,0.4); text-transform: uppercase; }
.footer-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer-link { text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: rgba(212,175,55,0.7); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0) translateX(-50%); } 50% { transform: translateY(-10px) translateX(-50%); } }
@keyframes glow { 0%,100% { text-shadow: 0 0 20px rgba(212,175,55,0.15); } 50% { text-shadow: 0 0 60px rgba(212,175,55,0.55), 0 0 100px rgba(212,175,55,0.18); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pulseRing { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.28); } 50% { box-shadow: 0 0 0 14px rgba(212,175,55,0); } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes borderPulse { 0%,100% { border-color: rgba(212,175,55,0.12); } 50% { border-color: rgba(212,175,55,0.38); } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback — si JS échoue, tout reste lisible */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── HAMBURGER ── */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px 4px; flex-direction: column; gap: 5px; justify-self: end;
}
.nav-burger span {
  display: block; width: 22px; height: 1px;
  background: rgba(212,175,55,0.7); transition: all 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── FAQ ── */
#faq { padding: 80px 24px; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  border: 1px solid rgba(212,175,55,0.09); background: rgba(212,175,55,0.01);
  border-radius: 2px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(212,175,55,0.22); }
.faq-q {
  list-style: none; padding: 22px 28px; cursor: pointer;
  font-family: var(--sc); font-size: clamp(13px,1.05vw,17px); letter-spacing: 2px;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 18px; color: rgba(212,175,55,0.5); font-family: var(--sans); font-weight: 300; transition: transform 0.3s; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--gold); }
.faq-a {
  padding: 0 28px 22px; font-size: clamp(13px,1vw,16px);
  color: rgba(240,232,216,0.68); font-family: var(--serif); font-style: italic;
  line-height: 1.85; border-top: 1px solid rgba(212,175,55,0.06);
  padding-top: 18px; margin-top: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
    background: rgba(8,6,4,0.97); border-bottom: 1px solid rgba(212,175,55,0.1);
    backdrop-filter: blur(14px); flex-direction: column; align-items: center;
    padding: 28px 0; gap: 22px;
  }
  .nav-links.open { display: flex; }
  .ranks-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .step-arrow { display: none; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Adaptive nav buttons based on auth state ── */
/* .hidden is applied in HTML by default.
   auth-check.js (synchronous, no defer) adds html.logged-in before first paint.
   Rules below use !important to beat .hidden { display:none !important } */
.hidden { display: none !important; }

/* Logged-in state — applied at parse time by auth-check.js */
html.logged-in .nav-cta:not(.nav-dashboard) { display: none !important; }
html.logged-in .nav-dashboard { display: inline-block !important; }
html.logged-in .hero-guest-cta { display: none !important; }
html.logged-in .hero-auth-cta  { display: block !important; }
html.logged-in .hero-signin-link { display: none !important; }
html.logged-in .email-note { display: none !important; }

/* Legacy fallback: body.logged-in added async by index.js after session check */
body.logged-in .nav-cta:not(.nav-dashboard) { display: none; }
body.logged-in .nav-dashboard { display: inline-block; }
body.logged-in .hero-guest-cta { display: none; }
body.logged-in .hero-auth-cta  { display: block; }
body.logged-in .hero-signin-link { display: none; }
