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

:root {
  --lime: #c6ff00;
  --lime-hot: #dfff4d;
  --lime-deep: #a8d900;
  --ink: #050505;
  --ink-soft: #121212;
  --ink-mid: #1a1a1a;
  --muted: #8a8a8a;
  --white: #f5f5f0;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --border: 1px solid rgba(198, 255, 0, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(198, 255, 0, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container.narrow {
  width: min(720px, 92vw);
}

.accent {
  color: var(--lime);
}

.center {
  text-align: center;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: var(--border);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, 92vw);
  margin: 0 auto;
  height: 100%;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.nav-mark {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--lime);
  box-shadow: 0 0 16px rgba(198, 255, 0, 0.25);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(245, 245, 240, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.5rem 1.05rem !important;
  background: var(--lime);
  color: var(--ink) !important;
  font-weight: 700 !important;
  border: none;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--lime-hot) !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(198, 255, 0, 0.4);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 1.5rem) 0 3.75rem;
  overflow: hidden;
  background: var(--ink);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: hero-drift 32s var(--ease-out) infinite alternate;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(5, 5, 5, 0.96) 0%,
      rgba(5, 5, 5, 0.55) 36%,
      rgba(5, 5, 5, 0.2) 62%,
      rgba(5, 5, 5, 0.35) 100%
    ),
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.55) 0%,
      transparent 55%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
  max-width: 640px;
  margin-left: max(4vw, calc((100vw - 1100px) / 2));
  animation: rise-in 0.9s var(--ease-out) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 40px rgba(198, 255, 0, 0.25);
}

.hero-brand .accent {
  color: var(--lime);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--lime);
  margin-bottom: 0.85rem;
}

.hero-lede {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(245, 245, 240, 0.78);
  max-width: 28rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(198, 255, 0, 0.28);
  font-size: 0.78rem;
}

.contract-pill span {
  color: var(--lime);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.contract-pill code {
  font-family: var(--font-body);
  color: rgba(245, 245, 240, 0.75);
  font-size: 0.82rem;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.07) translate(-1.2%, -0.8%); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.btn-primary:hover {
  background: var(--lime-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 245, 240, 0.35);
}

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

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 0.92rem;
}

.btn-copy {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
}

.btn-copy.copied {
  background: var(--ink-soft);
  color: var(--lime);
  border-color: var(--lime);
}

/* ── Ticker ── */
.ticker {
  background: var(--lime);
  color: var(--ink);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker-sep {
  opacity: 0.45;
}

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

/* ── Sections ── */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.9rem;
  opacity: 0.75;
}

.eyebrow.center {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.section-text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 34rem;
}

.section-text.lead {
  color: rgba(245, 245, 240, 0.82);
  font-size: 1.08rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.25rem;
  font-size: 0.98rem;
}

/* ── Story ── */
.story {
  background: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-portrait {
  position: relative;
}

.story-portrait img {
  width: 100%;
  max-width: 420px;
  display: block;
  border: 1px solid rgba(198, 255, 0, 0.35);
  box-shadow: 0 0 60px rgba(198, 255, 0, 0.12);
  position: relative;
  z-index: 1;
}

.story-glow {
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.22), transparent 70%);
  filter: blur(28px);
  z-index: 0;
}

/* ── Media embeds ── */
.media {
  background: var(--ink-soft);
  border-top: var(--border);
  border-bottom: var(--border);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.embed-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(198, 255, 0, 0.16);
  padding: 1rem;
  min-height: 280px;
  display: flex;
  justify-content: center;
}

.embed-panel .twitter-tweet {
  margin: 0 auto !important;
}

.yt-panel {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.yt-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── ASCII band ── */
.ascii-band {
  background: var(--ink);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 0.85rem 0;
}

.ascii-band pre {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lime);
  white-space: nowrap;
  width: max-content;
  animation: band-scroll 40s linear infinite;
  opacity: 0.7;
}

/* ── Token ── */
.token {
  background: var(--ink);
}

.loot {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.loot__coin {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(198, 255, 0, 0.06), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(198, 255, 0, 0.22);
}

.loot__coin img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--lime);
  box-shadow: 0 0 40px rgba(198, 255, 0, 0.28);
}

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

.loot__stats span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(198, 255, 0, 0.55);
  margin-bottom: 0.25rem;
}

.loot__stats strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
}

.token-actions {
  display: flex;
  justify-content: center;
}

.token-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  background: var(--ink-soft);
  border: 1px solid rgba(198, 255, 0, 0.22);
}

.token-ca code {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(245, 245, 240, 0.8);
}

.copy-toast {
  text-align: center;
  margin-top: 1rem;
  min-height: 1.4em;
  color: var(--lime);
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show {
  opacity: 1;
}

/* ── Community ── */
.community {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 255, 0, 0.12), transparent 55%),
    var(--ink-soft);
  border-top: var(--border);
  text-align: center;
}

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  border-top: var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--lime);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}

.footer-brand span {
  font-size: 0.78rem;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 320px;
  text-align: right;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .story-grid,
  .media-grid,
  .loot__coin {
    grid-template-columns: 1fr;
  }

  .story-portrait {
    display: flex;
    justify-content: center;
  }

  .story-portrait img {
    max-width: 280px;
  }

  .loot__coin img {
    max-width: 160px;
    margin: 0 auto;
  }

  .loot__stats {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: var(--border);
    padding: 0.5rem 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(198, 255, 0, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 1.25rem;
  }

  .nav-cta {
    margin: 0.75rem 1.25rem 1rem !important;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    align-items: flex-end;
    min-height: 92vh;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }

  .hero-banner {
    object-position: 20% center;
  }

  .hero-veil {
    background:
      linear-gradient(
        to top,
        rgba(5, 5, 5, 0.97) 0%,
        rgba(5, 5, 5, 0.65) 45%,
        rgba(5, 5, 5, 0.35) 100%
      );
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

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

  .footer-disclaimer {
    text-align: left;
  }

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

  .yt-panel {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner,
  .ticker-track,
  .ascii-band pre {
    animation: none;
  }

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