:root {
  --lime: #d6ff00;
  --lime-dim: #9fbf00;
  --moss: #2a4030;
  --pine: #071109;
  --pine-2: #0d1a10;
  --ink: #061008;
  --feather: #c45a1a;
  --foam: #eef8d4;
  --mute: #a7b89a;
  --line: rgba(214, 255, 0, 0.16);
  --pixel: 4px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--pine);
  color: var(--foam);
  font-family: Syne, sans-serif;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(214, 255, 0, 0.08), transparent 55%),
    radial-gradient(700px 480px at 8% 70%, rgba(42, 64, 48, 0.7), transparent 60%),
    linear-gradient(180deg, #08140b 0%, #071109 48%, #050c07 100%);
}

#facetField,
#pixelMotes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 255, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 0, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.28;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.28;
}

.glow-a {
  width: 280px;
  height: 280px;
  background: var(--lime);
  top: 12%;
  right: 14%;
  animation: pulse 7s ease-in-out infinite;
}

.glow-b {
  width: 220px;
  height: 220px;
  background: var(--feather);
  bottom: 16%;
  left: 8%;
  opacity: 0.12;
  animation: pulse 9s ease-in-out infinite reverse;
}

.ridge {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background:
    linear-gradient(transparent, rgba(7, 17, 9, 0.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpolygon fill='%230d1a10' points='0,180 0,110 80,90 160,130 260,70 360,120 470,40 580,100 690,55 800,115 910,65 1020,125 1120,80 1200,120 1200,180'/%3E%3Cpolygon fill='%23142718' points='0,180 0,140 140,120 250,150 380,100 520,145 650,95 790,150 930,110 1080,150 1200,120 1200,180'/%3E%3C/svg%3E")
      bottom / 100% 100% no-repeat;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--feather), var(--lime));
  box-shadow: 0 0 16px var(--lime);
}

.topbar,
main,
.colophon {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: var(--pixel) solid #0a160c;
  background: rgba(7, 17, 9, 0.78);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.topbar.hide {
  transform: translateY(-110%);
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: var(--pixel) solid var(--lime);
  box-shadow: 4px 4px 0 #0a160c;
}

.mark strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.mark small {
  display: block;
  color: var(--mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--lime);
  transition: width 0.25s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--lime);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: var(--pixel) solid var(--line);
  background: rgba(13, 26, 16, 0.8);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.glyph img {
  width: 18px;
  height: 18px;
}

.glyph:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lime);
  background: #122016;
  box-shadow: 4px 4px 0 var(--lime);
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: var(--pixel) solid var(--lime);
}

.burger i {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--lime);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 48px 0 0;
  overflow: hidden;
}

.hero-slash {
  position: absolute;
  inset: 8% -10% auto;
  height: 42%;
  background: linear-gradient(115deg, transparent 36%, rgba(214, 255, 0, 0.07) 36.2%, rgba(214, 255, 0, 0.07) 62%, transparent 62.2%);
  transform: skewY(-6deg);
  animation: slashPulse 6s ease-in-out infinite;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.pixel-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--feather);
  animation: tagPop 0.7s var(--ease) both;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.82;
  letter-spacing: 0.02em;
}

.hero h1 .word {
  display: block;
}

.hero h1 .lime {
  color: var(--lime);
  text-shadow: 6px 6px 0 #102014;
  animation: titleFlicker 5.5s steps(2, end) infinite;
}

.lede {
  max-width: 540px;
  margin: 22px 0 26px;
  font-size: 18px;
  line-height: 1.6;
  color: #d5e2c4;
}

.meta-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 10px;
  border: var(--pixel) solid var(--line);
  background: rgba(13, 26, 16, 0.75);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--pixel) solid var(--lime);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn.solid {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--feather);
}

.btn.hollow {
  color: var(--lime);
  background: transparent;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #0a160c;
}

.ca {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 620px);
  margin-top: 22px;
  padding: 12px 14px;
  border: var(--pixel) solid var(--line);
  background: #0a160d;
  text-align: left;
}

.ca-label,
.ca-state {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--lime);
}

.ca-value {
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca:hover {
  border-color: var(--lime);
}

.hero-orb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-orb:hover .hat {
  animation: none;
}

.hat {
  position: relative;
  z-index: 2;
  width: min(380px, 78%);
  border: 6px solid #101c12;
  box-shadow:
    10px 10px 0 #050c07,
    0 0 0 8px rgba(214, 255, 0, 0.12);
  animation: hatFloat 5.2s ease-in-out infinite;
  transform-style: preserve-3d;
}

.ring {
  position: absolute;
  border: 2px dashed rgba(214, 255, 0, 0.28);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.ring-1 { width: 300px; height: 300px; }
.ring-2 { width: 390px; height: 390px; animation-duration: 34s; animation-direction: reverse; }
.ring-3 { width: 480px; height: 480px; animation-duration: 48s; }

.facet-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  background: conic-gradient(from 90deg, transparent, rgba(214, 255, 0, 0.22), transparent 40%);
  filter: blur(8px);
  animation: spin 10s linear infinite;
}

.orb-caption {
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: 3;
  padding: 10px 12px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--feather);
  animation: captionBob 3.4s ease-in-out infinite;
}

.orb-caption span {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
}

.orb-caption strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ticker {
  margin-top: 56px;
  border-block: var(--pixel) solid #132016;
  background: #09140c;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 14px 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.16em;
  color: var(--lime);
  animation: marquee 22s linear infinite;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 720px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.section-sub {
  max-width: 560px;
  margin-top: 12px;
  color: var(--mute);
  line-height: 1.6;
}

.about,
.howtobuy,
.chart,
.joinus {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel,
.step,
.join-card,
.bezel {
  border: var(--pixel) solid var(--line);
  background: linear-gradient(180deg, rgba(16, 32, 20, 0.86), rgba(8, 18, 12, 0.92));
}

.panel {
  padding: 28px;
  min-height: 240px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel .stamp {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border: var(--pixel) solid var(--lime);
}

.index {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--lime);
}

.panel h3,
.step h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.panel p,
.step p,
.join-copy {
  color: #c9d6b8;
  line-height: 1.7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  list-style: none;
}

.facts li {
  padding: 12px;
  border: var(--pixel) solid var(--line);
  background: #0a150e;
}

.facts em {
  display: block;
  margin-bottom: 6px;
  font-style: normal;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--lime);
}

.trail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 22px;
}

.step::before {
  content: "";
  position: absolute;
  top: 46px;
  left: -14px;
  width: 14px;
  height: 4px;
  background: var(--lime);
}

.step:first-child::before {
  display: none;
}

.step-face {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-face img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.step-no {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.text-link:hover {
  text-decoration: underline;
}

.bezel {
  overflow: hidden;
}

.bezel-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  background: #0a160d;
  border-bottom: var(--pixel) solid var(--line);
}

.bezel-bar a {
  color: var(--lime);
}

.bezel-screen {
  height: min(640px, 78vh);
  background: #050805;
}

.bezel-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.banner-frame {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border: var(--pixel) solid var(--lime);
  box-shadow: 10px 10px 0 #0a160c;
  animation: bannerIn 0.9s var(--ease) both;
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}

.join-copy {
  max-width: 640px;
  margin: 24px 0 28px;
  font-size: 18px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.join-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  min-height: 140px;
}

.join-card img {
  width: 28px;
  height: 28px;
}

.join-card span {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.join-card:hover {
  border-color: var(--lime);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--lime);
}

.colophon {
  padding: 28px 0 40px;
  border-top: var(--pixel) solid #132016;
  color: var(--mute);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

body.fx .panel,
body.fx .step,
body.fx .join-card,
body.fx .section-head,
body.fx .banner-frame,
body.fx .bezel,
body.fx .hero-copy,
body.fx .hero-orb {
  opacity: 0;
  transform: translateY(28px);
}

.reveal {
  animation: rise 0.8s var(--ease) forwards;
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes gridDrift {
  to { background-position: 28px 28px; }
}

@keyframes pulse {
  50% { transform: scale(1.15); opacity: 0.4; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes hatFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes captionBob {
  50% { transform: translateY(-8px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes slashPulse {
  50% { opacity: 0.55; }
}

@keyframes titleFlicker {
  92% { opacity: 1; }
  93% { opacity: 0.72; }
  94% { opacity: 1; }
}

@keyframes tagPop {
  from { transform: translateY(12px); opacity: 0; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  20%, 100% { transform: translateX(120%); }
}

@keyframes bannerIn {
  from { transform: scale(0.98); opacity: 0; }
}

@media (max-width: 980px) {
  .hero-layout,
  .about-grid,
  .trail,
  .join-grid,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    position: fixed;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: #0b160e;
    border: var(--pixel) solid var(--lime);
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: block;
  }

  .step::before {
    display: none;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .hero-layout,
  .about-grid,
  .trail,
  .join-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero-orb {
    min-height: 380px;
    order: -1;
  }

  .ca {
    grid-template-columns: 1fr;
  }

  .bar-tools .glyph:nth-child(n+3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
