* { box-sizing: border-box; }

:root {
  --bg: #12141a;
  --bg-alt: #171a22;
  --surface: #1d2029;
  --surface-2: #232733;
  --line: #2c313f;
  --text: #e8eaf0;
  --muted: #9aa1b5;
  --accent: #ff7b00;
  --accent-2: #f0a500;
  --ok: #4ec36a;
  --mono: 'JetBrains Mono', Menlo, monospace;
  --sans: 'SN Pro', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(255, 123, 0, .12), transparent 60%),
    radial-gradient(800px 400px at 0% 30%, rgba(90, 169, 230, .08), transparent 60%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
  z-index: 60;
}

img, svg { max-width: 100%; }

a { color: inherit; }

/* ================= TOPBAR ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(18, 20, 26, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
}

.topbar__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #161616;
  font-weight: 700;
  font-size: .85rem;
}

.topbar__links {
  display: flex;
  gap: clamp(.6rem, 2vw, 1.4rem);
  font-family: var(--mono);
  font-size: .8rem;
}

.topbar__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}

.topbar__links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .topbar__links { display: none; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) 1.25rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 49, 63, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 49, 63, .35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 62rem; z-index: 2; }

.hero__pre {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent-2);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: .95;
  margin: 0;
  letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(255, 123, 0, .25);
}

.hero__dash { color: var(--accent); }

.hero__sub {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

.hero__sub em { color: var(--accent); font-style: normal; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem;
  margin: 2.5rem 0 2rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem .8rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.stat__num {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-2);
}

.stat__label { font-size: .75rem; color: var(--muted); }

.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-size: .85rem;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 10px;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #161616;
  font-weight: 700;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,123,0,.35); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  opacity: .12;
  z-index: 1;
}

.hero__crosshair i {
  position: absolute;
  background: var(--accent);
}

.hero__crosshair i:nth-child(1) { top: 0; left: 50%; width: 2px; height: 55px; }
.hero__crosshair i:nth-child(2) { bottom: 0; left: 50%; width: 2px; height: 55px; }
.hero__crosshair i:nth-child(3) { left: 0; top: 50%; height: 2px; width: 55px; }
.hero__crosshair i:nth-child(4) { right: 0; top: 50%; height: 2px; width: 55px; }

.hero__scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ================= SECTIONS ================= */
.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section__head { max-width: 46rem; margin-bottom: 2.5rem; }

.section__tag {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .1em;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: .5rem 0 .8rem;
  line-height: 1.15;
}

.section__lead { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ================= TIMELINE ================= */
.section__route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-family: var(--mono);
  font-size: .74rem;
}

.route__step {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: .3rem .65rem;
  border-radius: 999px;
  transition: border-color .2s, color .2s, transform .2s;
}

.route__step:hover { border-color: var(--accent-2); color: var(--text); transform: translateY(-2px); }

.route__step--final {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #161616;
  font-weight: 700;
}

.route__arrow { color: var(--accent); }

.tl { position: relative; }

.tl::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--line));
}

.tl__item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.tl__item.visible { opacity: 1; transform: none; }

.tl__dot {
  position: absolute;
  left: 3px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(255, 123, 0, .5);
}

.tl__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem 1.2rem;
  transition: border-color .2s, transform .2s;
}

.tl__card:hover { border-color: var(--accent); transform: translateX(4px); }

.tl__date {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tl__card h3 { margin: .35rem 0 .5rem; font-size: 1.15rem; }

.tl__card p { margin: 0; color: var(--muted); font-size: .94rem; }

.tl__card p + p { margin-top: .5rem; }

.tl__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ok);
  background: rgba(78, 195, 106, .1);
  border: 1px solid rgba(78, 195, 106, .3);
  padding: .18rem .55rem;
  border-radius: 999px;
}

@media (min-width: 720px) {
  .tl::before { left: 50%; }
  .tl__item { width: 50%; padding-right: 2.5rem; padding-left: 0; }
  .tl__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 2.5rem; }
  .tl__item .tl__dot { left: auto; right: -8px; }
  .tl__item:nth-child(even) .tl__dot { left: -8px; right: auto; }
}

/* ================= VERSION CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.vcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--accent-2));
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.3rem;
  transition: transform .2s, box-shadow .2s;
}

.vcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.vcard--hl { outline: 1px dashed var(--accent); }

.vcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }

.vcard__year {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent, var(--accent-2));
}

.vcard__badge {
  font-family: var(--mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge--now { background: rgba(255,123,0,.15); color: var(--accent); border-color: var(--accent); }

.vcard h3 { margin: 0 0 .5rem; font-size: 1.12rem; }

.vcard p { margin: 0; color: var(--muted); font-size: .9rem; }

.vcard__specs {
  margin: .9rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  display: grid;
  gap: .35rem;
}

.vcard__specs li::before { content: '▸ '; color: var(--accent); }

/* ================= MAPS ================= */
.mapgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

.mapcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}

.mapcard:hover {
  transform: translateY(-5px);
  border-color: var(--glow, var(--accent));
  box-shadow: 0 14px 34px rgba(0,0,0,.4), 0 0 24px -6px var(--glow, var(--accent));
}

.mapcard__preview {
  background: #10121a;
  border-bottom: 1px solid var(--line);
}

.mapcard__preview svg { display: block; width: 100%; height: auto; }

.mapcard__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.mapcard__body { padding: 1.1rem 1.2rem 1.3rem; }

.mapcard__body h3 {
  margin: 0 0 .5rem;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent-2);
}

.mapcard__body p { margin: 0; color: var(--muted); font-size: .9rem; }

.mapcard__stat {
  display: inline-block;
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: .25rem .6rem;
  border-radius: 8px;
}

/* ================= FACTS ================= */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: border-color .2s, transform .2s;
}

.fact:hover { border-color: var(--accent-2); transform: scale(1.02); }

.fact__emoji { font-size: 1.7rem; }

.fact b {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--accent);
}

.fact p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ================= ESPORTS ================= */
.esports {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 860px) {
  .esports { grid-template-columns: 1.1fr 1fr; }
}

.esports h3 { margin-top: 0; font-size: 1.2rem; }

.mtl {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.mtl li {
  position: relative;
  padding: .55rem 0 .55rem 1.4rem;
  color: var(--muted);
  font-size: .93rem;
}

.mtl li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.05rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.mtl li b { color: var(--text); font-family: var(--mono); }

.players { display: grid; gap: .8rem; }

.player {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  transition: border-color .2s, transform .2s;
}

.player:hover { border-color: var(--c, var(--accent)); transform: translateX(4px); }

.player__ava {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent);
  border: 1px solid var(--c, var(--accent));
}

.player__info { display: flex; flex-direction: column; }

.player__info b { font-size: 1rem; }

.player__info span { font-size: .8rem; color: var(--muted); }

/* ================= LEGACY ================= */
.legacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.legacy__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
}

.legacy__num {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.legacy__item h3 { margin: .4rem 0 .6rem; }

.legacy__item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--line);
  background: #0e1015;
  padding: 2.5rem clamp(1rem, 5vw, 4rem);
}

.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 1rem; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .85rem;
}

.footer p { color: var(--muted); font-size: .82rem; margin: 0; max-width: 50rem; }

.footer__links { display: flex; gap: 1.2rem; font-family: var(--mono); font-size: .8rem; }

.footer__links a { color: var(--accent-2); text-decoration: none; }

.footer__links a:hover { text-decoration: underline; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl__item { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
