:root {
  --bg: #0b0d07;
  --panel: #11150b;
  --line: #242c15;
  --ink: #edf2e2;
  --muted: #9aa58a;
  --neon: #cdff04;
  --neon-dim: #a5cc10;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.9rem clamp(1.25rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img { image-rendering: pixelated; border: 1px solid var(--line); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn:hover { border-color: var(--neon-dim); color: var(--neon); }

.btn-solid {
  background: var(--neon);
  border-color: var(--neon);
  color: #10130a;
  font-weight: 700;
}

.btn-solid:hover { background: #dcff45; border-color: #dcff45; color: #10130a; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 9vh, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
}

.kicker {
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 1.4rem 0 1.9rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stats dd {
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- spotlight ---------- */

.spotlight-frame {
  position: relative;
  aspect-ratio: 1;
  max-width: 26rem;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.spotlight-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  transition: opacity 0.45s ease;
}

#spot-b { opacity: 0; }

.spotlight-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.7rem 1rem 0.8rem;
  background: rgba(8, 10, 5, 0.82);
  border-top: 1px solid var(--line);
}

.spotlight-caption span:first-child {
  color: var(--neon);
  font-weight: 700;
  font-size: 1.05rem;
}

.spotlight-caption .mono { color: var(--muted); font-size: 0.8rem; }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vh, 5.5rem) clamp(1.25rem, 5vw, 4rem); }

.section-head { max-width: 72rem; margin: 0 auto 2.5rem; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
}

.section-head .sub { color: var(--muted); margin-top: 0.6rem; max-width: 36rem; }

/* ---------- marquee ---------- */

.collection { border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }

.collection .section-head { padding: 0 clamp(1.25rem, 5vw, 4rem); }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.marquee:last-child { border-bottom: 1px solid var(--line); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 70s linear infinite;
}

.marquee[data-direction="right"] .marquee-track { animation-direction: reverse; }

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  width: clamp(7rem, 12vw, 10rem);
  height: auto;
  image-rendering: pixelated;
  border-right: 1px solid var(--line);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .spotlight-frame img { transition: none; }
}

/* ---------- balgends ---------- */

.balgend-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1.1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.balgend-grid li {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.balgend-grid li:hover {
  transform: translateY(-4px);
  border-color: var(--neon-dim);
}

.balgend-grid img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
}

.tag b { color: var(--neon); font-size: 0.92rem; font-weight: 700; }

.tag .mono { color: var(--muted); font-size: 0.78rem; }

/* ---------- details ---------- */

.details { border-top: 1px solid var(--line); }

.detail-rows {
  max-width: 72rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 1.25rem;
  flex-wrap: wrap;
}

.detail-row + .detail-row { border-top: 1px solid var(--line); }

.detail-label {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.detail-value { word-break: break-all; }

.detail-value a { color: var(--neon); }

.detail-value a:hover { text-decoration: underline; }

.copy {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
}

.copy:hover { color: var(--neon); border-color: var(--neon-dim); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .spotlight-frame { margin: 0 auto; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
