:root {
  --red: #ff1a1a;
  --red-deep: #9a0505;
  --red-glow: #ff3b3b;
  --chrome: #d5dbe3;
  --chrome-dark: #8b939e;
  --ink: #070709;
  --paper: #f3efe6;
  --panel: #121218;
  --line: #000;
  --shadow: 6px 6px 0 #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: "Exo 2", system-ui, sans-serif;
  background: #050507;
  overflow-x: hidden;
}

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

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

button,
.copy-btn {
  font-family: inherit;
  cursor: pointer;
}

.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.09;
  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");
  mix-blend-mode: overlay;
}

.speed-hud {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(255, 26, 26, 0.22), transparent 55%),
    linear-gradient(180deg, #050507 0%, #0b0b10 100%);
}

.speed-hud::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 140vmax;
  height: 70vh;
  transform: translateX(-50%) perspective(420px) rotateX(68deg);
  transform-origin: center top;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 7.4%,
      rgba(255, 26, 26, 0.12) 7.4% 7.7%,
      transparent 7.7% 14.8%
    ),
    linear-gradient(90deg, transparent 48.7%, #ff1a1a 48.7% 51.3%, transparent 51.3%);
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
  opacity: 0.35;
}

/* NAV */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 18px 0;
}

.nav-blade {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 10px;
  background: linear-gradient(90deg, rgba(10, 10, 14, 0.92), rgba(22, 8, 8, 0.88));
  border: 4px solid #000;
  box-shadow: var(--shadow), inset 0 0 0 2px #ff1a1a;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 28px 100%);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bangers", cursive;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 3px solid #000;
  background: #000;
  transform: skewX(-8deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Teko", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px 7px;
  background: var(--red);
  color: #fff;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-family: "Bangers", cursive;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.nav-buy:hover {
  background: #fff;
  color: #000;
}

.menu-btn {
  display: none;
  background: var(--red);
  color: #fff;
  border: 3px solid #000;
  width: 44px;
  height: 40px;
  font-size: 1.3rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.28) 0%, rgba(5, 5, 7, 0.55) 55%, #050507 100%),
    url("../3.png") center / cover no-repeat;
}

.hero-speedlines {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    repeating-conic-gradient(from 0deg at 50% 62%, transparent 0 6deg, rgba(255, 255, 255, 0.05) 6deg 6.35deg);
  mask-image: radial-gradient(circle at 50% 58%, transparent 12%, #000 46%);
  animation: spin-slow 48s linear infinite;
  opacity: 0.55;
}

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

.hero-stage {
  width: min(1180px, calc(100% - 32px));
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.logo-orbit {
  position: relative;
  display: grid;
  place-items: center;
}

.logo-orbit::before {
  content: "";
  position: absolute;
  width: min(78%, 430px);
  aspect-ratio: 1;
  border: 4px dashed rgba(255, 26, 26, 0.55);
  transform: rotate(12deg);
  animation: dash 18s linear infinite;
}

@keyframes dash {
  to {
    transform: rotate(372deg);
  }
}

.logo-plate {
  width: min(78%, 430px);
  aspect-ratio: 1;
  padding: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45));
  border: 6px solid #000;
  box-shadow:
    10px 10px 0 #000,
    0 0 80px rgba(255, 26, 26, 0.35);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transform: rotate(-3deg);
}

.logo-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  animation: hover-logo 4.5s ease-in-out infinite;
}

@keyframes hover-logo {
  50% {
    transform: translateY(-10px);
  }
}

.sfx {
  position: absolute;
  font-family: "Bangers", cursive;
  color: var(--red);
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 0.08em;
  transform: rotate(-14deg);
}

.sfx-zap {
  top: 8%;
  left: 2%;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.sfx-go {
  right: 4%;
  bottom: 10%;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  transform: rotate(12deg);
  color: #fff;
}

.hero-copy {
  transform: rotate(1.5deg);
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px 2px;
  background: var(--paper);
  color: #000;
  border: 3px solid #000;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

h1 {
  margin: 0;
  font-family: "Bangers", cursive;
  font-size: clamp(4.4rem, 12vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow:
    5px 5px 0 #000,
    -2px 0 0 var(--red),
    0 0 28px rgba(255, 26, 26, 0.45);
}

.symbol {
  margin: 8px 0 16px;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.34em;
  color: var(--red);
  font-size: 1rem;
}

.bio-burst {
  position: relative;
  margin: 0 0 22px;
  padding: 16px 18px 14px 22px;
  background: #fff;
  color: #111;
  border: 4px solid #000;
  box-shadow: var(--shadow);
  font-size: 1.12rem;
  line-height: 1.35;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 100%, 0 100%);
}

.bio-burst::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -22px;
  border-width: 22px 18px 0 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 10px;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: "Bangers", cursive;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.ca-ticket {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  border: 4px solid #000;
  box-shadow: var(--shadow);
  background: #fff;
  color: #000;
  overflow: hidden;
}

.ca-label {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--red);
  color: #fff;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
}

.ca-value {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-family: "Russo One", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  border: 0;
  border-left: 4px solid #000;
  background: #111;
  color: #fff;
  padding: 0 14px;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
}

.copy-btn:hover {
  background: var(--red);
}

/* SECTION SHELLS — each one a different geometry */
.section {
  position: relative;
  z-index: 1;
  padding: 92px 20px;
  overflow: hidden;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
}

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

.section-head h2 {
  margin: 6px 0 0;
  font-family: "Bangers", cursive;
  font-size: clamp(3rem, 8vw, 5.6rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-shadow: 4px 4px 0 #000;
}

.slash {
  display: inline-block;
  padding: 3px 12px 1px;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--red);
  border: 3px solid #000;
}

/* ABOUT — hexagonal inspection hatch */
.about {
  background:
    linear-gradient(120deg, rgba(5, 5, 8, 0.78), rgba(80, 8, 8, 0.55) 48%, rgba(5, 5, 8, 0.82)),
    url("../2.png") center / cover no-repeat;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin-top: -40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hatch {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.35)),
    url("../banner.png") center / cover no-repeat;
  border: 7px solid #000;
  box-shadow: 12px 12px 0 #000, 0 0 0 10px rgba(255, 26, 26, 0.28);
  clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%);
}

.hatch-bolt {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--chrome);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 3px #666;
}

.hatch-bolt.tl { top: 18%; left: 16%; }
.hatch-bolt.tr { top: 18%; right: 16%; }
.hatch-bolt.bl { bottom: 18%; left: 16%; }
.hatch-bolt.br { bottom: 18%; right: 16%; }

.about-copy {
  background: rgba(255, 247, 232, 0.94);
  color: #111;
  border: 5px solid #000;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  transform: rotate(1.2deg) skewX(-2deg);
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.stat {
  background: #111;
  color: #fff;
  border: 3px solid #000;
  padding: 10px 8px;
  text-align: center;
  transform: skewX(-8deg);
}

.stat b {
  display: block;
  font-family: "Bangers", cursive;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--red);
}

.stat span {
  display: block;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  transform: skewX(8deg);
}

/* HOW TO BUY — pit-lane / power-rail, not cards */
.howto {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 26, 26, 0.16), transparent 48%),
    #09090d;
}

.howto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ff1a1a 1.1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.pitlane {
  display: grid;
  grid-template-columns: 1fr 86px 1fr;
  gap: 0 10px;
  position: relative;
}

.rail {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: relative;
  background: linear-gradient(180deg, var(--red), #fff 12%, var(--red) 24%, #fff 36%, var(--red) 48%, #fff 60%, var(--red) 72%, #fff 84%, var(--red));
  border: 4px solid #000;
  box-shadow: 0 0 24px rgba(255, 26, 26, 0.45);
}

.rail::before,
.rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  background: #fff;
  border: 4px solid #000;
  border-radius: 50%;
}

.rail::before { top: -18px; }
.rail::after { bottom: -18px; }

.station {
  margin: 12px 0;
  padding: 22px 20px 18px;
  border: 5px solid #000;
  box-shadow: var(--shadow);
  position: relative;
}

.station-left {
  grid-column: 1;
  background: #fff;
  color: #111;
  clip-path: polygon(0 0, 100% 8%, 92% 100%, 0 92%);
  text-align: right;
}

.station-right {
  grid-column: 3;
  background: #16161c;
  color: #fff;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 0 100%);
  box-shadow: -6px 6px 0 #000;
}

.station-gold {
  background: #ffd400;
}

.station-ignite {
  background: var(--red);
}

.step-no {
  font-family: "Bangers", cursive;
  font-size: 3.4rem;
  line-height: 0.8;
  letter-spacing: 0.04em;
  text-shadow: 3px 3px 0 #000;
}

.station h3 {
  margin: 4px 0 8px;
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
}

.station p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.nub {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--red);
  border: 3px solid #000;
  transform: translateY(-50%) rotate(45deg);
}

.station-left .nub { right: -28px; }
.station-right .nub { left: -28px; }

/* COMMUNITY — circular arena, not a card row */
.community {
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.55), rgba(5, 5, 8, 0.78)),
    url("../1.png") center / cover no-repeat;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  min-height: 86vh;
  display: grid;
  align-items: center;
}

.arena {
  width: min(720px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(20, 8, 8, 0.2), rgba(0, 0, 0, 0.72) 62%);
  border: 8px solid #000;
  border-radius: 50%;
  box-shadow:
    0 0 0 10px var(--red),
    0 0 0 16px #000,
    18px 22px 0 #000;
  position: relative;
}

.arena::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.arena-inner {
  position: relative;
  padding: 40px 36px;
  max-width: 78%;
}

.arena h2 {
  margin: 8px 0 10px;
  font-family: "Bangers", cursive;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-shadow: 4px 4px 0 #000;
}

.arena p {
  margin: 0 0 22px;
  font-size: 1.08rem;
}

.social-orbit {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 4px solid #000;
  background: #fff;
  color: #000;
  font-size: 1.8rem;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-6deg);
}

.social:nth-child(2) {
  background: var(--red);
  color: #fff;
  transform: rotate(4deg);
}

.social:nth-child(3) {
  background: #111;
  color: #fff;
  transform: rotate(-2deg);
}

.social:hover {
  transform: rotate(0deg) scale(1.06);
}

.social svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* FOOTER uses banner as horizon, never the hero */
.footer {
  position: relative;
  padding: 70px 20px 28px;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.2), rgba(5, 5, 7, 0.88)),
    url("../banner.png") center 35% / cover no-repeat;
  border-top: 8px solid #000;
}

.footer-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-mark img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 4px solid #000;
}

.footer-mark strong {
  font-family: "Bangers", cursive;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-shadow: 3px 3px 0 #000;
}

.footer-mark small {
  opacity: 0.8;
  letter-spacing: 0.18em;
  font-family: "Teko", sans-serif;
  font-size: 1.05rem;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  background: #fff;
  color: #000;
  border: 4px solid #000;
  box-shadow: var(--shadow);
  padding: 10px 18px;
  font-family: "Bangers", cursive;
  letter-spacing: 0.08em;
  transition: transform 0.28s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #111;
    border: 4px solid #000;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .hero-stage,
  .about-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding-top: 108px;
  }

  .logo-plate,
  .logo-orbit::before {
    width: min(72%, 320px);
  }

  .hatch {
    min-height: 280px;
    clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  }

  .pitlane {
    grid-template-columns: 22px 1fr;
  }

  .rail {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .station-left,
  .station-right {
    grid-column: 2;
    text-align: left;
    clip-path: none;
  }

  .nub {
    display: none;
  }

  .arena {
    aspect-ratio: auto;
    border-radius: 28px;
    width: 100%;
  }

  .arena::before {
    border-radius: 20px;
  }

  .about,
  .community {
    clip-path: none;
  }
}
