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

:root {
  --neon: #ccff00;
  --neon-hot: #d8ff33;
  --neon-deep: #b8e600;
  --cream: #faf7f0;
  --cream-deep: #f3eee4;
  --paper: #ffffff;
  --ink: #110e08;
  --ink-soft: #2a241c;
  --muted: #6b6560;
  --line: rgba(17, 14, 8, 0.1);
  --line-strong: rgba(17, 14, 8, 0.16);
  --on-primary: #110e08;
  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-body: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-zh: "Noto Sans SC", "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --radius: 18px;
  --cut: 10px;
}

html {
  scroll-behavior: smooth;
}

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

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(17, 14, 8, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 14, 8, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

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

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

.accent {
  color: #7a9900;
}

.zh {
  font-family: var(--font-zh);
}

.center {
  text-align: center;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
  background: rgba(250, 247, 240, 0.96);
  box-shadow: 0 8px 28px rgba(17, 14, 8, 0.06);
}

.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(--ink);
}

.nav-mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.nav-wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.nav-ticker {
  font-family: var(--font-zh);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--on-primary);
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--neon);
}

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

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  padding: 0.5rem 1.1rem !important;
  background: var(--neon);
  color: var(--on-primary) !important;
  font-weight: 700 !important;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--neon-hot) !important;
  color: var(--on-primary) !important;
  transform: translateY(-1px);
}

.nav-x {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(204, 255, 0, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 80%, rgba(204, 255, 0, 0.12), transparent 36%),
    var(--cream);
}

.hero-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: rise-in 0.9s var(--ease-out) both;
}

.hero-kicker {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: var(--neon);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  margin-bottom: 1.15rem;
}

.hero-brand {
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.hero-brand .accent {
  color: #7a9900;
}

.hero-title {
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.hero-lede {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.6;
}

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

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rise-in 1s var(--ease-out) 0.08s both;
}

.hero-logo {
  width: min(100%, 460px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow:
    0 24px 60px rgba(17, 14, 8, 0.1),
    0 0 0 10px rgba(204, 255, 0, 0.22);
}

.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 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
}

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

.contract-pill code {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.78rem;
  word-break: break-all;
}

@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.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper);
}

.btn-x {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-x:hover {
  border-color: var(--ink);
}

.btn-lg {
  padding: 1rem 1.7rem;
  font-size: 0.95rem;
}

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

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

/* ── Ticker ── */
.ticker {
  background: var(--neon);
  color: var(--on-primary);
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

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

.ticker-sep {
  opacity: 0.4;
}

.ticker-track .zh {
  font-family: var(--font-zh);
  text-transform: none;
}

@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: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f8a00;
  margin-bottom: 0.9rem;
}

.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: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.15rem;
  color: var(--ink);
}

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

.section-text.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

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

.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: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(17, 14, 8, 0.08);
  position: relative;
  z-index: 1;
}

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

/* ── Origin tweet ── */
.origin {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(204, 255, 0, 0.18), transparent 52%),
    var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.origin-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.tweet-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(17, 14, 8, 0.06);
  padding: 1.35rem 1.4rem 1.2rem;
  min-height: 100%;
}

.tweet-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tweet-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--neon);
  color: var(--on-primary);
  border: 2px solid var(--ink);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.tweet-card__who {
  min-width: 0;
  flex: 1;
}

.tweet-card__who strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.tweet-card__who span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tweet-card__x {
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}

.tweet-card__x:hover {
  color: var(--ink);
}

.tweet-card__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1rem;
}

.tweet-card__quote {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 14px;
}

.tweet-card__quote p + p {
  margin-top: 0.35rem;
}

.tweet-card__quote strong {
  font-size: 0.88rem;
}

.tweet-card__quote span {
  color: var(--muted);
  font-size: 0.78rem;
}

.tweet-card__quote p:last-child {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tweet-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.tweet-card__meta a {
  color: #6f8a00;
  text-decoration: none;
  font-weight: 700;
}

.tweet-card__meta a:hover {
  color: var(--ink);
}

.embed-panel {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 0.85rem 0.85rem 0.35rem;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.embed-panel .twitter-tweet,
.embed-panel iframe {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.origin-follow {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

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

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

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

.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: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17, 14, 8, 0.06);
}

.loot__coin img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 6px rgba(204, 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.1em;
  text-transform: uppercase;
  color: #6f8a00;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.loot__stats strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.loot__stats strong.zh {
  font-family: var(--font-zh);
  color: var(--ink);
}

.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.55rem 0.55rem 0.55rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.token-ca code {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.copy-toast {
  text-align: center;
  margin-top: 1rem;
  min-height: 1.4em;
  color: #6f8a00;
  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(204, 255, 0, 0.22), transparent 55%),
    var(--cream-deep);
  border-top: 1px solid var(--line);
  text-align: center;
}

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

/* ── Footer ── */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  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: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.footer-brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.footer-brand span {
  font-family: var(--font-zh);
  font-size: 0.82rem;
  color: #6f8a00;
  font-weight: 700;
}

.footer-x {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-x:hover {
  color: #6f8a00;
}

.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: none;
}

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

  .hero-art {
    order: -1;
  }

  .hero-logo {
    width: min(72vw, 340px);
  }

  .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(250, 247, 240, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .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;
  }

  .nav-ticker {
    display: none;
  }

  .hero {
    align-items: center;
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .contract-pill code {
    max-width: 58vw;
  }

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

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

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

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