/* =====================================================================
   City of Los Santos — Hub
   Cohesive design system. GTA VI / Razed inspired: cinematic, warm,
   full-bleed, no harsh borders, clean type.
   ===================================================================== */

/* ── reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:        #09090b;
  --bg-2:      #0c0c0f;
  --bg-3:      #111116;
  --text:      #f4f2ee;
  --muted:     #a8a49c;
  --faint:     #6d6960;

  --accent:    #ff8a34;
  --accent-2:  #ffb24d;
  --accent-ink:#20100a;
  --green:     #57cf86;

  --line:      rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.05);

  --shell:  1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --r:    14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.16,1,.3,1);

  --font:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;

  --fs-small: 14px;
  --fs-lead:  clamp(15px, 1.4vw, 17px);
}

/* ── base ──────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}
main, .foot, .nav, .hero, .section, .feature, .status, .start {
  width: 100%;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; letter-spacing: -.02em; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-lead);
}
.section-head .kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font: 700 12px/1 var(--font);
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px -10px rgba(255,138,52,.6);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255,138,52,.7); }
.btn-primary .ico { filter: brightness(0) saturate(100%) invert(6%) sepia(30%) saturate(1500%) hue-rotate(-10deg); }

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost .ico { width: 18px; height: 18px; opacity: .9; }

.ico { width: 20px; height: 20px; object-fit: contain; }

/* ── nav (scrolls away with hero) ──────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  box-sizing: border-box;
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-word { font: 700 16px/1 var(--display); letter-spacing: .01em; }
.brand-word b { font-weight: 800; color: var(--accent-2); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a {
  padding: 9px 14px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links > a:hover, .nav-links > a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta {
  margin-left: 6px;
  color: var(--accent-ink) !important;
  background: linear-gradient(120deg, var(--accent-2), var(--accent)) !important;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700 !important;
}
.nav-cta .ico { width: 15px; height: 15px; filter: brightness(0) saturate(100%) invert(6%) sepia(30%) saturate(1500%) hue-rotate(-10deg); }
.nav-cta:hover { transform: translateY(-1px); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; transition: transform .25s; }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: 120px 0 88px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 70% at 15% 70%, rgba(255,138,52,.12), transparent 55%),
    linear-gradient(90deg, rgba(9,9,11,.72) 0%, rgba(9,9,11,.35) 48%, rgba(9,9,11,.2) 100%),
    linear-gradient(180deg, rgba(9,9,11,.45) 0%, transparent 30%, transparent 65%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 640px; }
.hero-logo {
  width: clamp(96px, 12vw, 140px);
  height: auto;
  border-radius: 50%;
  margin-bottom: 22px;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.45));
}
.hero-tagline {
  max-width: 520px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* live ribbon under hero cta */
.hero-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.live-dot {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.live-dot i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 0 rgba(87,207,134,.5);
}
.live-dot.is-on i { background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87,207,134,.5); }
  70% { box-shadow: 0 0 0 8px rgba(87,207,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,207,134,0); }
}
.hero-count { display: inline-flex; align-items: baseline; gap: 8px; }
.hero-count strong { font: 800 22px/1 var(--display); }
.hero-count span { color: var(--muted); font-size: 13px; }
.hero-count.is-offline strong { color: var(--muted); }

.hero-connectbar { display: inline-flex; align-items: center; gap: 12px; }
.hero-connectbar code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--accent-2);
}
#copy-connect { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
#copy-connect:hover { color: #fff; }
#copy-connect.is-done { color: var(--green); }

.hero-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero-scroll span { animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── whitelist how-to ──────────────────────────────────────────────── */
.start { background: var(--bg); }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.path {
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
}
.path-accent {
  background: linear-gradient(145deg, rgba(255,138,52,.16), rgba(255,255,255,.04) 55%);
}
.path-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font: 700 11px/1 var(--font);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.path-label .ico {
  width: 14px;
  height: 14px;
  opacity: .95;
  filter: brightness(0) saturate(100%) invert(62%) sepia(79%) saturate(1200%) hue-rotate(346deg) brightness(104%) contrast(101%);
}
.path h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.path > p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 36ch;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(22px, 2.8vw, 30px) 0;
  border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step-num {
  font: 800 22px/1 var(--display);
  color: var(--accent);
  letter-spacing: .04em;
  padding-top: 4px;
}
.step h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.step p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 58ch;
}
.step-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.step .btn { margin-top: 4px; }

/* ── feature band (make your mark) ─────────────────────────────────── */
.feature { position: relative; min-height: clamp(460px, 70vh, 640px); display: flex; align-items: center; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; z-index: 0; }
.feature-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.feature-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(9,9,11,.82) 38%, rgba(9,9,11,.15) 75%, transparent 100%),
    linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg));
}
.feature-copy { position: relative; z-index: 2; max-width: 560px; }
.feature-copy h2 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; text-transform: uppercase; }
.feature-copy p { margin-top: 18px; color: rgba(255,255,255,.82); font-size: var(--fs-lead); }
.feature-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent-2);
  font-size: 15px; font-weight: 700;
  transition: gap .2s;
}
.text-link:hover { gap: 12px; }
.text-link.is-ghost { color: var(--muted); }
.text-link.is-ghost:hover { color: #fff; }

/* ── live status ───────────────────────────────────────────────────── */
.status { background: var(--bg-2); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 22px); }
.status-card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
}
.status-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.status-card-head .ico { width: 24px; height: 24px; }
.status-card-head h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.status-flag {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(87,207,134,.14); color: var(--green);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.status-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-flag.is-off { background: rgba(255,255,255,.06); color: var(--muted); }
.status-stat { display: flex; align-items: baseline; gap: 10px; }
.status-stat strong { font: 800 clamp(38px, 6vw, 56px)/1 var(--display); }
.status-stat span { color: var(--muted); font-size: var(--fs-lead); }
.status-sub { margin-top: 6px; color: var(--faint); font-size: var(--fs-small); }
.status-card .btn { margin-top: 24px; }

/* ── update teaser (sits under status cards) ────────────────────────── */
.teaser-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 32px;
  margin-top: clamp(16px, 2vw, 22px);
  padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.teaser-card:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }
.teaser-card .kicker { display: block; color: var(--accent); font: 700 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.teaser-card h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-transform: none; letter-spacing: -.01em; }
.teaser-card p { margin-top: 8px; color: var(--muted); font-size: var(--fs-lead); max-width: 60ch; }
.teaser-go { position: relative; color: var(--accent-2); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ── changelog page ────────────────────────────────────────────────── */
.page-hero {
  position: relative; min-height: 300px; display: flex; align-items: flex-end;
  padding: 150px 0 56px; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,.4), rgba(9,9,11,.75) 60%, var(--bg));
}
.page-hero-copy { position: relative; z-index: 2; }
.page-back { display: inline-flex; margin-bottom: 16px; color: var(--muted); font-size: var(--fs-small); font-weight: 700; transition: color .2s; }
.page-back:hover { color: #fff; }
.page-hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; text-transform: uppercase; }
.page-lead { max-width: 560px; margin-top: 14px; color: rgba(255,255,255,.72); font-size: var(--fs-lead); }

.changelog { background: var(--bg); padding: clamp(48px,7vw,88px) 0 clamp(72px,10vw,120px); }
.changelog-list { display: flex; flex-direction: column; gap: 12px; }
.cl-entry { border-radius: var(--r); background: rgba(255,255,255,.035); overflow: hidden; }
.cl-toggle {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: 16px; padding: 20px 24px; text-align: left;
}
.cl-toggle:hover { background: rgba(255,255,255,.03); }
.cl-version { display: inline-flex; align-items: center; gap: 12px; }
.cl-version strong { font: 800 20px/1 var(--display); text-transform: uppercase; }
.cl-latest { padding: 4px 10px; border-radius: 999px; background: rgba(255,138,52,.16); color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cl-date { color: var(--faint); font-size: var(--fs-small); font-weight: 600; }
.cl-chevron { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
.cl-entry.is-open .cl-chevron { transform: rotate(-135deg); }
.cl-body { display: none; padding: 0 24px 24px; }
.cl-entry.is-open .cl-body { display: block; }
.cl-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; background: rgba(255,138,52,.08); color: rgba(255,255,255,.82); font-size: var(--fs-small); line-height: 1.6; }
.cl-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.cl-copy,
.cl-share-open {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font: 700 12px/1 var(--font);
  letter-spacing: .04em;
  transition: background .2s, color .2s, transform .2s;
}
.cl-copy {
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
}
.cl-copy:hover { transform: translateY(-1px); }
.cl-copy.is-done { filter: saturate(1.1); }
.cl-share-open {
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
}
.cl-share-open:hover { color: #fff; background: rgba(255,255,255,.1); }
.cl-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 32px; }
.cl-kind { margin-bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cl-kind-add { color: var(--green); }
.cl-kind-fix { color: #8eb0d4; }
.cl-kind-update { color: var(--accent-2); }
.cl-kind-remove { color: #d48888; }
.cl-group ul { display: flex; flex-direction: column; gap: 9px; }
.cl-group li { position: relative; padding-left: 16px; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.cl-group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ── footer ────────────────────────────────────────────────────────── */
.foot { background: #060607; padding-top: clamp(56px, 7vw, 84px); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-brand .nav-brand { margin-bottom: 16px; }
.foot-brand .nav-brand img { width: 48px; height: 48px; }
.foot-blurb { max-width: 320px; color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.06); transition: background .2s, transform .2s; }
.foot-social a:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.foot-social .ico { width: 19px; height: 19px; }
.foot-col h4 { margin-bottom: 16px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font); }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-small); font-weight: 500; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col a .ico { width: 15px; height: 15px; opacity: .85; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 22px 0 34px; margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 12px;
}
.foot-disclaimer { max-width: 680px; line-height: 1.6; }
.foot-powered { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.foot-powered .ico { width: 15px; height: 15px; opacity: .8; }

/* ── cinematic intro ───────────────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  transition: opacity .7s var(--ease), visibility .7s;
}
.intro.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-bg,
.intro-scrim,
.intro-grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* persistent site-wide snow — sits above everything, purely decorative */
.site-snow {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.site-snow.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .site-snow { display: block !important; }
}
/* Keep snow even when OS reduced-motion is on */
.intro-bg {
  opacity: 0;
  animation: introBgIn .7s .15s cubic-bezier(.16,1,.3,1) forwards;
}
.intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.14);
  filter: saturate(1.1) contrast(1.08) brightness(.8);
  animation: introKen 11s .15s linear forwards;
  will-change: transform;
}
.intro-scrim {
  opacity: 0;
  animation: introFade .6s .25s ease forwards;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(255,138,52,.28), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.92) 100%);
}
.intro-grain {
  opacity: 0;
  z-index: 1;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: introGrainIn .6s .35s ease forwards, introGrain 4s steps(2) infinite;
}
@keyframes introGrainIn {
  from { opacity: 0; }
  to { opacity: .08; }
}
.intro-stage {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 100%;
}
.intro-flash {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.4);
  font: 900 clamp(64px, 14vw, 140px)/.9 var(--display);
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,138,52,.55);
  opacity: 0;
  pointer-events: none;
  animation: introFlash .9s .35s cubic-bezier(.16,1,.3,1) forwards;
}
.intro-ring {
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(78vw, 440px);
  height: min(78vw, 440px);
  margin: 0;
  transform: translate(-50%, -50%) scale(.5);
  border-radius: 50%;
  border: 1px solid rgba(255,178,77,.25);
  box-shadow: 0 0 0 0 rgba(255,138,52,0);
  opacity: 0;
  animation: introRing .75s 1.35s cubic-bezier(.16,1,.3,1) forwards;
  pointer-events: none;
}
.intro-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255,178,77,.14);
  opacity: 0;
  animation: introRingInner .55s 1.7s var(--ease) forwards;
}
.intro-logo {
  position: relative;
  width: clamp(140px, 28vw, 220px);
  height: auto;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.4);
  filter: drop-shadow(0 0 0 rgba(255,138,52,0));
  animation: introLogo .7s 1.05s cubic-bezier(.16,1,.3,1) forwards;
}
.intro-line {
  width: 0;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: introLine .55s 1.85s var(--ease) forwards;
}
.intro-mark {
  margin-top: 18px;
  font: 800 clamp(28px, 5.5vw, 48px)/1.05 var(--display);
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: introUp .55s 2.1s var(--ease) forwards;
}
.intro-mark span { font-weight: 600; color: rgba(255,255,255,.78); }
.intro-mark b { color: var(--accent-2); font-weight: 800; }
.intro-beat {
  margin-top: 12px;
  color: rgba(255,255,255,.7);
  font: 600 clamp(15px, 2vw, 18px)/1.35 var(--font);
  opacity: 0;
  transform: translateY(14px);
  animation: introUp .5s 2.55s var(--ease) forwards;
}
.intro-sub {
  margin-top: 14px;
  color: rgba(255,255,255,.5);
  font: 700 12px/1 var(--font);
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: introUp .5s 3s var(--ease) forwards;
}
.intro-enter {
  margin-top: 32px;
  padding: 14px 28px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 40px -12px rgba(255,138,52,.65);
  font: 700 15px/1 var(--font);
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(16px) scale(.94);
  animation: introCta .55s 3.45s var(--ease) forwards, introPulse 2.2s 4.1s ease-in-out infinite;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.intro-enter:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 18px 44px -10px rgba(255,138,52,.75);
  animation: introCta 0.01s forwards, none;
}
.intro-skip {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 4vw, 36px);
  bottom: clamp(16px, 4vw, 36px);
  color: rgba(255,255,255,.5);
  font: 600 12px/1 var(--font);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  animation: introUp .45s 3.9s var(--ease) forwards;
  transition: color .2s;
}
.intro-skip:hover { color: #fff; }
.intro-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,.06);
  z-index: 5;
  overflow: hidden;
}
.intro-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: introBar 11s linear forwards;
}

@keyframes introBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes introFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes introGrain {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-1%, 1%); }
}
@keyframes introKen {
  from { transform: scale(1.14); filter: saturate(1.1) contrast(1.08) brightness(.45); }
  to { transform: scale(1.04); filter: saturate(1.1) contrast(1.08) brightness(.85); }
}
@keyframes introFlash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); filter: blur(8px); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
}
@keyframes introLogo {
  0% { opacity: 0; transform: scale(.4); filter: drop-shadow(0 0 0 rgba(255,138,52,0)); }
  60% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 36px rgba(255,138,52,.6)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)); }
}
@keyframes introRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); box-shadow: 0 0 0 0 rgba(255,138,52,0); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 70px 8px rgba(255,138,52,.2); }
  100% { opacity: .85; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 50px 4px rgba(255,138,52,.12); }
}
@keyframes introRingInner {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes introLine {
  from { width: 0; opacity: 0; }
  to { width: min(180px, 40vw); opacity: 1; }
}
@keyframes introUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introCta {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes introPulse {
  0%, 100% { box-shadow: 0 14px 40px -12px rgba(255,138,52,.55); }
  50% { box-shadow: 0 16px 52px -8px rgba(255,138,52,.9); }
}
@keyframes introBar {
  from { width: 0; }
  to { width: 100%; }
}

html.intro-done .intro { display: none !important; }
html.intro-force .intro { display: grid !important; }

/* ── motion ────────────────────────────────────────────────────────── */
[data-motion] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-motion] { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 16px;
    background: rgba(14,14,17,.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; justify-content: center; }

  .paths { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .status-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .cl-groups { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
