:root {
  --bg: #070b16;
  --ink: #f4efe4;
  --muted: #a7b3c9;
  --red: #e10600;
  --gold: #f6c453;
  --line: rgba(246, 196, 83, 0.28);
  --card: rgba(12, 18, 36, 0.78);
  --up: #5ee0a0;
  --down: #ff6b81;
  --serif: Fraunces, Georgia, serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --display: Syne, Outfit, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 40% at 78% 18%, rgba(225, 6, 0, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 12% 70%, rgba(47, 107, 255, 0.22), transparent 62%),
    linear-gradient(180deg, #08101f 0%, #0b1428 48%, #140910 100%);
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 72%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 7vw;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  flex-shrink: 0;
  text-decoration: none;
  background: var(--red);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  min-height: min(calc(100svh - 74px), 820px);
  padding: 48px 7vw 72px;
}
.spine {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  letter-spacing: 0.42em;
  font-family: var(--display);
  font-size: 12px;
  color: rgba(246, 196, 83, 0.7);
}
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}
.kicker span { color: var(--ink); }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 10vw, 132px);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.lede {
  margin: 22px 0 0;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); }
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
.ca-label { color: var(--gold); font-size: 12px; letter-spacing: 0.14em; }
.ca code { font-size: 14px; color: var(--muted); }
.copy, .contract-box {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.copy {
  background: var(--gold);
  color: #1a1203;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
}
.copy:hover { filter: brightness(1.05); }

.portrait {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
}
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 46% 46% 18px 18px;
  box-shadow: 0 30px 80px rgba(225, 6, 0, 0.28);
}
.ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(246, 196, 83, 0.55);
  box-shadow: 0 0 0 10px rgba(225, 6, 0, 0.12);
}
.portrait { animation: float 6s ease-in-out infinite; }
@keyframes float {
  50% { transform: translateY(-10px); }
}

.tape {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #12060a;
  color: var(--gold);
}
.tape-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 12px 0;
  font-family: var(--display);
  letter-spacing: 0.18em;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.market, .story, .buy, .contract {
  padding: 88px 7vw;
  scroll-margin-top: 84px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 700;
}
.section-head p, .fine, footer p { color: var(--muted); margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.stats article {
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid var(--red);
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.stats strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
}
.up { color: var(--up); }
.down { color: var(--down); }
.pair {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.story p { color: var(--muted); font-size: 17px; }
.panels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.panels li {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--card);
  border: 1px solid rgba(255,255,255,0.06);
}
.panels em {
  font-style: normal;
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: 0.12em;
}
.panels h3 { margin: 8px 0 6px; font-size: 20px; }
.panels p { margin: 0; }

.buy ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.buy li {
  min-height: 180px;
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  counter-increment: step;
}
.buy li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 28px;
  color: var(--red);
}
.buy strong { display: block; font-size: 20px; }
.buy span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.buy .addr {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.link-row a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gold);
}
.link-row a:hover { background: rgba(246, 196, 83, 0.08); }

.contract { text-align: center; }
.contract .kicker { justify-content: center; }
.contract-box {
  display: grid;
  gap: 8px;
  width: min(920px, 100%);
  margin: 28px auto 0;
  padding: 22px 18px;
  color: var(--ink);
  background: #10060c;
  border: 1px dashed var(--gold);
  border-radius: 18px;
}
.contract-box code {
  font-size: clamp(14px, 2vw, 22px);
  word-break: break-all;
}
.contract-box span { color: var(--gold); font-size: 13px; }
.fine { max-width: 46rem; margin: 18px auto 0; font-size: 14px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 7vw 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
footer strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.08em;
}
footer span { color: var(--muted); font-size: 14px; }
footer p { max-width: 36rem; font-size: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  background: var(--gold);
  color: #1a1203;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav { gap: 12px; padding: 14px 16px; }
  .nav-cta { margin-left: auto; }
  .nav-links { display: none; }
  .brand { font-size: 14px; letter-spacing: 0.04em; }
  .hero, .story, .stats, .buy ol { grid-template-columns: 1fr; }
  .hero { min-height: auto; min-width: 0; padding: 28px 20px 48px; }
  .hero-copy { min-width: 0; }
  .spine { display: none; }
  .portrait { width: min(280px, 72%); order: -1; }
  .section-head, footer { flex-direction: column; align-items: start; }
  .market, .story, .buy, .contract { padding: 56px 20px; }
  h1 { font-size: clamp(52px, 15vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  .portrait, .tape-track { animation: none; }
  html { scroll-behavior: auto; }
}
