:root {
  --bg: #12051d;
  --panel: #1c0a2b;
  --line: #34184a;
  --text: #f5eefb;
  --muted: #bba7cc;
  --pink: #ff3ea5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); }

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

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(18, 5, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand img { width: 40px; height: 40px; border-radius: 50%; }

.links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.links a,
.buttons a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.links a:hover,
.buttons a:hover { border-color: var(--pink); }

a.buy { background: var(--pink); border-color: var(--pink); color: #fff; }

/* hero */
.hero {
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  padding: 64px 24px;
  background:
    linear-gradient(90deg, rgba(18, 5, 29, 0.85) 0%, rgba(18, 5, 29, 0.35) 55%, rgba(18, 5, 29, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 5, 29, 0) 30%),
    url("assets/hero.jpg") 70% 30% / cover no-repeat;
}

.hero-inner { max-width: 700px; margin-left: max(0px, calc((100vw - 1100px) / 2)); }

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ticker {
  margin: 10px 0 18px;
  color: var(--pink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.lead { max-width: 560px; margin: 0 0 24px; font-size: 20px; }

/* CA box */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 8px 8px 14px;
  background: rgba(28, 10, 43, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ca-label { color: var(--muted); font-size: 14px; font-weight: 700; }

.ca code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.ca button {
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* story */
main { max-width: 760px; margin: 0 auto; padding: 24px 24px 40px; }

main > section { padding: 40px 0; border-bottom: 1px solid var(--line); }

main > section:last-child { border-bottom: 0; }

h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 850; }

p { margin: 0 0 16px; }

figure { margin: 22px 0; }

figure img,
.grid img { border-radius: 12px; border: 1px solid var(--line); }

figcaption { margin-top: 8px; font-size: 14px; }

a.zoom { display: block; }

figcaption a { color: var(--muted); }

ol.chat { padding-left: 24px; margin: 0 0 22px; }

ol.chat li { margin-bottom: 10px; padding-left: 4px; }

ol.chat li::marker { color: var(--pink); font-weight: 800; }

.grid { display: grid; gap: 12px; margin: 0 0 22px; }

ul { padding-left: 22px; margin: 0 0 16px; }

ul li { margin-bottom: 8px; }

/* coin */
.coin { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }

.coin-logo { width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--pink); }

.buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* sources */
.sources ul { columns: 2; column-gap: 32px; font-size: 15px; }

.sources li { break-inside: avoid; }

footer {
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer p { max-width: 640px; margin: 0 auto; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { padding: 10px 16px; }
  .brand span { display: none; }
  .links a { padding: 6px 11px; font-size: 14px; }
  .hero {
    min-height: 0;
    padding: 240px 16px 32px;
    background:
      linear-gradient(0deg, var(--bg) 35%, rgba(18, 5, 29, 0.2) 70%, rgba(18, 5, 29, 0) 100%),
      url("assets/hero.jpg") 78% 0 / auto 420px no-repeat,
      var(--bg);
  }
  .lead { font-size: 18px; }
  main { padding: 8px 16px 32px; }
  main > section { padding: 32px 0; }
  .coin { grid-template-columns: 1fr; text-align: left; }
  .coin-logo { width: 120px; height: 120px; }
  .sources ul { columns: 1; }
}

[hidden] { display: none !important; }
.password-gate { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(100%, 460px); padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.gate-card img { border-radius: 50%; margin-bottom: 24px; }
.gate-card h1 { font-size: 36px; margin-bottom: 16px; }
.gate-card label { display: block; margin-bottom: 8px; }
.gate-card input { width: 100%; padding: 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; }
.gate-card button { margin-top: 16px; padding: 12px 20px; font: inherit; font-weight: 700; color: white; background: var(--pink); border: 0; border-radius: 8px; cursor: pointer; }
#password-error { margin: 16px 0 0; color: #ffb5d9; }
