:root {
  --bg: #05070a;
  --text: #f4f7f8;
  --muted: #9aa3ad;
  --accent: #3ee8ff;
  --accent-dim: rgba(62, 232, 255, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(62, 232, 255, 0.28); color: var(--text); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 10, 0.78);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: Oswald, sans-serif; font-weight: 600; letter-spacing: 0.1em; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #041016; }
.nav-links .btn:hover { color: #041016; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px;
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.btn-primary { background: var(--accent); color: #041016; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.14); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-cyan { background: var(--accent-dim); color: var(--accent); border-color: rgba(62,232,255,0.28); }
.btn-cyan:hover { background: rgba(62, 232, 255, 0.2); }
.btn-cyan.is-copied { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
[hidden] { display: none !important; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex; align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.94) 0%, rgba(5,7,10,0.78) 34%, rgba(5,7,10,0.32) 60%, rgba(5,7,10,0.16) 100%),
    linear-gradient(180deg, rgba(5,7,10,0.35) 0%, rgba(5,7,10,0.08) 36%, rgba(5,7,10,0.82) 100%),
    url("assets/hero.webp") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 96px 0 72px; max-width: 620px; }
.kicker {
  font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: 0.2em;
  font-size: 12px; color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
h1 {
  font-family: Anton, sans-serif; font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(40px, 7.2vw, 76px); line-height: 0.94; text-transform: uppercase;
}
.lede { margin-top: 18px; color: #d5dbe0; font-size: 17px; line-height: 1.5; max-width: 28em; }

/* Contract address */
.ca-box {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 24px; max-width: 100%;
  padding: 8px 8px 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ca-k {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.ca-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.4; font-weight: 500;
  color: var(--text); overflow-wrap: anywhere; user-select: all;
}
.ca-copy { flex: 0 0 auto; height: 36px; padding: 0 14px; font-size: 13px; }

/* Sections */
section, .hero { scroll-margin-top: 72px; }
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section-label {
  font-family: Oswald, sans-serif; letter-spacing: 0.18em; font-size: 11px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
h2 {
  font-family: Anton, sans-serif; font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; margin-bottom: 32px;
}

/* Story */
.timeline { display: grid; gap: 32px; }
.beat {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px 24px; align-items: start;
}
.beat-num {
  font-family: Anton, sans-serif; font-size: 24px; color: var(--accent);
  line-height: 1; padding-top: 3px;
}
.beat h3 { font-family: Oswald, sans-serif; font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.03em; }
.beat p { color: var(--muted); max-width: 46em; }
.beat figure { margin-top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); max-width: 720px; }
.beat img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Trophy */
.trophy {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center;
  max-width: 560px; padding: 20px; border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(62,232,255,0.22);
}
.trophy img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.trophy .unlocked { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.trophy h3 { font-family: Oswald, sans-serif; font-size: 22px; margin-bottom: 4px; }
.trophy p { color: var(--muted); font-style: italic; }

/* Tokenomics / buy */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; }
.card dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card dd { font-family: Oswald, sans-serif; font-size: 20px; font-weight: 600; }
.card-ca { grid-column: 1 / -1; }
.card-ca dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.step span { display: block; font-family: Anton, sans-serif; color: var(--accent); font-size: 20px; margin-bottom: 8px; }
.step h3 { font-family: Oswald, sans-serif; font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Chart */
.chart-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b0e13;
  height: 560px;
}
.chart-frame iframe {
  display: block; width: 100%; height: 100%; border: 0;
}

/* Footer */
footer { padding: 36px 0 52px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.foot-links { display: flex; gap: 18px; }
.foot-links:not(:has(a:not([hidden]))) { display: none; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.disclaimer { max-width: 62em; line-height: 1.55; }

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 36px)); }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn) { display: none; }
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(5,7,10,0.28) 0%, rgba(5,7,10,0.5) 42%, rgba(5,7,10,0.94) 100%),
      url("assets/hero.webp") 70% center / cover no-repeat;
    align-items: flex-end;
  }
  .hero-inner { padding: 72px 0 48px; }
  .lede { font-size: 16px; }
  section { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .beat { grid-template-columns: 1fr; gap: 6px; }
  .beat-num { padding-top: 0; font-size: 20px; }
  .trophy { grid-template-columns: 64px 1fr; }
  .trophy img { width: 64px; height: 64px; }
  .chart-frame { height: 420px; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  nav .wrap { height: 58px; }
  .nav-links .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .ca-box { flex-wrap: wrap; padding: 10px; gap: 8px 10px; }
  .ca-k { padding-left: 2px; }
  .ca-value { flex: 1 1 100%; order: 3; font-size: 12px; }
  .ca-copy { margin-left: auto; min-width: 84px; }
  .btn-row .btn { flex: 1 1 auto; min-width: 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .chart-frame { height: 380px; }
}
