:root {
  --bg: #050505;
  --bg-elevated: #121212;
  --fg: #ffffff;
  --muted: #a6a6a6;
  --bandana: #e10600;
  --eye: #39ff14;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --nav-h: 72px;
  --font-display: "Anton", "Archivo", sans-serif;
  --font-ui: "Space Grotesk", "Archivo", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
  selection-background-color: var(--bandana);
}

::selection {
  background: var(--bandana);
  color: #fff;
}

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

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

button,
input {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bandana);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section__sub {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-bandana {
  color: var(--bandana);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--bandana);
  color: #fff;
  border-color: var(--bandana);
}

.btn--primary:hover {
  background: #ff1a12;
  border-color: #ff1a12;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  font-size: 1rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: #fff;
  color: var(--bandana);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.25rem;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.nav__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.nav__links {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: #fff;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.25s ease;
}

.nav.is-open .nav__burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 39;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1rem;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .nav__burger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  min-height: calc(100dvh - var(--nav-h));
  padding: 2.5rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto 10% 15% 10%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(225, 6, 0, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 16vw, 7.5rem);
  letter-spacing: 0.02em;
  line-height: 0.88;
}

.hero__sub {
  margin: 1.1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.ca-chip__label {
  color: var(--bandana);
  font-weight: 700;
}

.ca-chip code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(42vw, 280px);
}

.ca-chip button {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #fff;
  color: #000;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.hero__art {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin-inline: auto;
}

.hero__art img {
  width: 100%;
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: hero-float 5.5s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.15fr;
    padding-inline: 2.5rem;
    text-align: left;
  }

  .hero__inner {
    margin-inline: 0;
    text-align: left;
  }

  .hero__ctas,
  .ca-chip {
    justify-content: flex-start;
  }

  .hero__sub {
    margin-inline: 0;
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0a0a0a;
  padding: 0.9rem 0;
}

.marquee--alt {
  background: var(--bandana);
  border-color: transparent;
}

.marquee--alt .marquee__track {
  color: #fff;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee__track--reverse {
  animation-direction: reverse;
}

.marquee .dot {
  color: var(--bandana);
  font-size: 0.7em;
}

.marquee--alt .dot {
  color: rgba(255, 255, 255, 0.55);
}

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

/* Sections */
.section {
  position: relative;
  padding: 5.5rem 0;
}

.section__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bandana), transparent);
  opacity: 0.55;
}

.about__copy {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 48rem;
  color: #d0d0d0;
  font-size: 1.05rem;
}

.about__copy p {
  margin: 0;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0 0 0 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: rgba(225, 6, 0, 0.35);
}

.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bandana);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.2);
  transform: translateX(-4px);
}

.timeline time {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bandana);
}

.timeline h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.timeline__lead {
  margin: 0.45rem 0 0.7rem;
  color: #fff;
  font-weight: 600;
}

.timeline p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Receipts */
.receipts__header {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.receipts__mascot {
  width: min(280px, 70%);
  justify-self: start;
  filter: drop-shadow(0 0 24px rgba(57, 255, 20, 0.15));
}

.receipts__grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.receipt {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.receipt:hover {
  border-color: rgba(225, 6, 0, 0.55);
  transform: translateY(-3px);
}

.receipt img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #111;
}

.receipt figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.2rem;
}

.receipt strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.receipt span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .receipts__header {
    grid-template-columns: 1fr auto;
  }

  .receipts__mascot {
    justify-self: end;
  }

  .receipts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .receipts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* How to buy */
.howto {
  background:
    radial-gradient(ellipse at top right, rgba(225, 6, 0, 0.12), transparent 45%),
    #080808;
  border-block: 1px solid var(--line);
}

.howto__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.howto__card {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.howto__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eye);
  letter-spacing: 0.08em;
}

.howto__card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.howto__card p {
  margin: 0;
  color: var(--muted);
}

.howto__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .howto__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tokenomics */
.tokenomics__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

.tok-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #141414, #0a0a0a);
}

.tok-card img {
  width: min(160px, 55%);
  margin-bottom: 0.5rem;
}

.tok-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tok-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.03em;
}

.ca-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius);
  background: rgba(225, 6, 0, 0.06);
}

.ca-panel__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bandana);
}

.ca-panel code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  word-break: break-all;
}

@media (min-width: 800px) {
  .tokenomics__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PFP */
.pfp {
  background: #0a0a0a;
  border-block: 1px solid var(--line);
}

.pfp__layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
  align-items: start;
}

.pfp__preview {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.pfp__preview::before,
.pfp__preview::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(225, 6, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.pfp__preview::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.pfp__preview::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

#pfp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pfp__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bandana);
}

.pfp__frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pfp__frame {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pfp__frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

.pfp__frame span {
  font-size: 0.85rem;
  font-weight: 700;
}

.pfp__frame.is-active,
.pfp__frame:hover {
  border-color: var(--bandana);
}

.pfp__slider {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.pfp__slider input[type="range"] {
  width: 100%;
  accent-color: var(--bandana);
}

.pfp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 880px) {
  .pfp__layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .pfp__preview {
    margin-inline: 0;
  }
}

/* Crew */
.crew {
  padding-bottom: 6rem;
  overflow: hidden;
}

.crew__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.crew__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.crew__art {
  width: min(560px, 100%);
  justify-self: center;
  filter: drop-shadow(0 0 40px rgba(57, 255, 20, 0.12));
  animation: herd-pulse 4.5s ease-in-out infinite;
}

@keyframes herd-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@media (min-width: 900px) {
  .crew__inner {
    grid-template-columns: 1fr 1fr;
  }

  .crew__art {
    justify-self: end;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #030303;
}

.footer__inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.footer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-weight: 700;
}

.footer__links a:hover {
  color: var(--bandana);
}

/* Toast + reveal */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  transform: translateX(-50%);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.toast[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__art img,
  .crew__art,
  .marquee__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
