/* ================= TOKENS ================= */
:root {
  --bg: #0b0830;
  --bg-2: #1a1160;
  --panel: #150f45;
  --ink: #05031a;
  --line: #3b2f9e;
  --teal: #14f195;
  --cyan: #3ee6ff;
  --purple: #9945ff;
  --pink: #ff4fd8;
  --text: #f3f0ff;
  --muted: #b5addf;
  --grad: linear-gradient(90deg, var(--teal), var(--cyan) 45%, var(--purple) 80%, var(--pink));

  --f-pixel: "Press Start 2P", ui-monospace, monospace;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* chunky pixel shadow */
  --px: 4px;
  --hard: var(--px) var(--px) 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  background:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent),
    radial-gradient(2px 2px at 66% 9%, #bfe9ff, transparent),
    radial-gradient(2px 2px at 38% 64%, #fff, transparent),
    radial-gradient(2px 2px at 86% 42%, #ffd4f7, transparent),
    radial-gradient(2px 2px at 22% 88%, #c7fff0, transparent),
    radial-gradient(ellipse at 10% 30%, rgba(20, 241, 149, 0.12), transparent 50%),
    radial-gradient(ellipse at 90% 70%, rgba(153, 69, 255, 0.2), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-size: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 100% 1200px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-color: var(--bg);
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.mono {
  font-family: var(--f-mono);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  background: var(--panel);
  border: var(--px) solid var(--line);
  box-shadow: var(--hard), 0 0 30px rgba(153, 69, 255, 0.15);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--f-pixel);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  border: 3px solid var(--ink);
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2), background 0.15s ease;
}

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

.btn:active {
  transform: translate(var(--px), var(--px));
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.btn-ghost {
  color: var(--text);
  background: var(--purple);
}

.btn-ghost:hover {
  background: #a95eff;
}

.btn-sm {
  padding: 11px 14px;
  font-size: 0.62rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(11, 8, 48, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--px) solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  image-rendering: auto;
}

.brand-name {
  font-family: var(--f-pixel);
  font-size: 0.7rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ================= HERO ================= */
.hero {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-bottom: var(--px) solid var(--line);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(860px, calc(100% - 32px));
  margin: clamp(-80px, -5vw, -20px) auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 44px);
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  font-family: var(--f-pixel);
  font-size: 0.55rem;
  color: var(--teal);
  background: rgba(20, 241, 149, 0.08);
  border: 2px solid var(--teal);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.title {
  margin: 0;
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(1.4rem, 4.6vw, 2.8rem);
  line-height: 1.35;
  text-shadow: 4px 4px 0 var(--ink);
}

.title .grad {
  text-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--ink));
}

.ticker {
  margin: 0;
  font-family: var(--f-pixel);
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(255, 79, 216, 0.5);
}

.tagline {
  max-width: 520px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.ca-pill {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  padding: 0;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--hard);
  cursor: pointer;
}

.ca-tag,
.ca-copy {
  flex: none;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  font-family: var(--f-pixel);
  font-size: 0.6rem;
}

.ca-tag {
  color: var(--ink);
  background: var(--teal);
}

.ca-code {
  min-width: 0;
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  color: var(--text);
  background: var(--purple);
}

.ca-pill:hover .ca-copy {
  background: var(--pink);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

/* ================= STRIP ================= */
.strip {
  overflow: hidden;
  border-top: var(--px) solid var(--ink);
  border-bottom: var(--px) solid var(--ink);
  background: var(--grad);
}

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

.strip-track span {
  padding: 16px 0;
  font-family: var(--f-pixel);
  font-size: 0.72rem;
  color: var(--ink);
  white-space: nowrap;
}

.strip-track span::after {
  content: "■";
  margin: 0 24px;
}

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

/* ================= SECTIONS ================= */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 16px;
}

.eyebrow {
  margin: 0;
  font-family: var(--f-pixel);
  font-size: 0.62rem;
  color: var(--teal);
}

.h2 {
  margin: 16px 0 20px;
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.8vw, 1.7rem);
  line-height: 1.5;
  text-shadow: 3px 3px 0 var(--ink);
}

.h2 .grad {
  text-shadow: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

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

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--muted);
}

.about-copy strong {
  color: var(--text);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--f-pixel);
  font-size: 0.62rem;
  color: var(--ink);
  background: var(--grad);
  border-bottom: var(--px) solid var(--ink);
}

.specs {
  margin: 0;
  padding: 8px 20px 14px;
}

.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-size: 0.9rem;
  border-bottom: 2px dashed var(--line);
}

.specs > div:last-child {
  border-bottom: 0;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Constituents */
.constituents,
.buy {
  text-align: center;
}

.memes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.meme {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 14px;
  overflow: hidden;
  transition: transform 0.1s steps(2);
}

.meme:hover {
  transform: translate(-2px, -6px);
}

.meme img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 10px;
  border-bottom: var(--px) solid var(--ink);
}

.meme b {
  font-size: 0.98rem;
}

.meme span {
  font-size: 0.74rem;
  color: var(--teal);
}

.fineprint {
  margin: 22px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.8;
}

/* How to buy */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
}

.step-num {
  font-family: var(--f-pixel);
  font-size: 0.8rem;
  color: var(--pink);
}

.step h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.mini-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 0.76rem;
  background: var(--ink);
  border: 2px solid var(--line);
  cursor: pointer;
}

.mini-ca span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ca b {
  flex: none;
  color: var(--teal);
}

/* Join */
.join {
  padding: 0 16px clamp(80px, 10vw, 120px);
}

.join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.join-panel img {
  width: 140px;
  height: 140px;
  border: var(--px) solid var(--ink);
  box-shadow: var(--hard);
}

.join-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ================= FOOTER ================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 16px 36px;
  text-align: center;
  border-top: var(--px) solid var(--line);
  background: rgba(5, 3, 26, 0.6);
}

.footer img {
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
}

.footer-name {
  margin: 6px 0 0;
  font-family: var(--f-pixel);
  font-size: 0.66rem;
  line-height: 1.6;
}

.footer-name span {
  color: var(--pink);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 12px 18px;
  font-family: var(--f-pixel);
  font-size: 0.62rem;
  color: var(--ink);
  background: var(--teal);
  border: 3px solid var(--ink);
  box-shadow: var(--hard);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 0.2s ease, transform 0.2s steps(3);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .memes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .hero-panel {
    margin-top: 12px;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .memes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .strip-track,
  .dot {
    animation: none;
  }
}
