/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --border: #26262a;
  --border-strong: #3f3f46;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ef4444;
  --accent-strong: #dc2626;
  --accent-hover: #b91c1c;
  --accent-soft: rgba(239, 68, 68, 0.12);

  /* Status: always shown with an icon and a text label, never color alone. */
  --good: #0ca30c;
  --warning: #fab219;

  /* Allocation slots, assigned in this fixed order (validated for color-vision deficiency
     on --bg and --surface: worst adjacent CVD ΔE 9.4, normal-vision ΔE 19.3, all ≥ 3:1). */
  --series-1: #e66767;
  --series-2: #3987e5;
  --series-3: #d95926;
  --series-4: #199e70;
  --series-5: #9085e9;
  --series-6: #c98500;
  --series-7: #d55181;
  --series-8: #008300;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent-strong);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }

.btn-sm { height: 38px; padding: 0 1.1rem; font-size: .875rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.icon-btn:hover { color: var(--text); background: var(--border); }
.icon-btn svg, .nav-toggle svg, .social svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .header-buy { margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav a { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav-open .nav { display: flex; }
  .nav-toggle { margin-left: auto; }
  .header-buy:not([hidden]) + .nav-toggle { margin-left: 0; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background: radial-gradient(45% 45% at 50% 35%, rgba(239, 68, 68, .22), transparent 70%);
  pointer-events: none;
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: .75; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 96px; height: 96px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 40px rgba(239, 68, 68, .35));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .82rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.eyebrow.is-pending .dot { background: var(--muted); box-shadow: 0 0 0 4px rgba(161, 161, 170, .15); }

h1 {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.accent { color: var(--accent); }

.lead {
  max-width: 40rem;
  margin: 1.25rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contract-pill {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  max-width: 100%;
  min-height: 48px;
  margin-bottom: 1.75rem;
  padding: .35rem .4rem .35rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.contract-pill:not(:has([data-copy]:not([hidden]))) { padding-right: 1.1rem; }
.pill-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contract-pill code { font: .9rem var(--mono); white-space: nowrap; }
.pill-pending { color: var(--muted); font-family: var(--font); }
.addr-short { display: none; }
@media (max-width: 560px) {
  .addr-full { display: none; }
  .addr-short { display: inline; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--border);
}

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }

.kicker {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-lead { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card-index {
  display: block;
  margin-bottom: .9rem;
  color: var(--accent);
  font: 600 .85rem var(--mono);
}

/* ---------------------------------------------------------------- tokenomics */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stat-note { color: var(--muted); font-size: .8rem; }
.stat:first-child .stat-value { font-size: clamp(2rem, 5vw, 3rem); }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:first-child { grid-column: 1 / -1; }
}

.allocation { position: relative; }
.allocation-title { margin-bottom: 1.25rem; font-size: 1rem; color: var(--muted); font-weight: 600; }

/* A 24px stacked bar: 2px surface gaps between segments, 4px rounded outer ends. */
.alloc-bar {
  display: flex;
  gap: 2px;
  height: 24px;
}
.alloc-seg {
  position: relative;
  min-width: 4px;
  background: var(--seg);
  transition: filter .15s, opacity .15s;
}
.alloc-seg:first-child { border-radius: 4px 0 0 4px; }
.alloc-seg:last-child { border-radius: 0 4px 4px 0; }
.alloc-seg:only-child { border-radius: 4px; }
/* Hit target taller than the mark. */
.alloc-seg::before { content: ""; position: absolute; inset: -10px 0; }
.alloc-bar.is-hovering .alloc-seg { opacity: .35; }
.alloc-bar.is-hovering .alloc-seg.is-active { opacity: 1; filter: brightness(1.12); }

.alloc-tooltip {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: translate(-50%, calc(-100% - 12px));
  pointer-events: none;
  white-space: nowrap;
}
.alloc-tooltip strong { font-size: 1rem; }
.alloc-tooltip span { color: var(--muted); font-size: .85rem; }

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .5rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .85rem;
  padding: .7rem .25rem;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.legend.is-hovering li { opacity: .45; }
.legend.is-hovering li.is-active { opacity: 1; }
.swatch {
  align-self: center;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--seg);
}
.legend-amount { display: block; color: var(--muted); font-size: .85rem; }
.legend-pct { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- how to buy */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.steps-cta { margin-top: 2rem; }

/* ---------------------------------------------------------------- contract facts */

.facts-card { max-width: 820px; padding: 0; overflow: hidden; }
.facts-message { margin: 0; padding: 1.5rem 1.75rem; color: var(--muted); }
.facts-message a { color: var(--text); }

.facts { margin: 0; }
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
}
.fact:last-child { border-bottom: 0; }
.fact dt { flex: none; color: var(--muted); }
.fact dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.fact dd a { font: 500 .9rem var(--mono); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.fact dd a:hover { text-decoration-color: var(--accent); }

@media (max-width: 560px) {
  .fact { flex-direction: column; gap: .2rem; padding: .9rem 1.25rem; }
  .fact dd { text-align: left; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.status svg {
  flex: none;
  width: 16px; height: 16px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status-good svg { stroke: var(--good); }
.status-warning svg { stroke: var(--warning); }
.fact-sub { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }

/* ---------------------------------------------------------------- chart */

.chart-frame {
  position: relative;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- roadmap */

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.roadmap .kicker { margin-bottom: .5rem; }
.roadmap ul {
  display: grid;
  gap: .55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.roadmap li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.roadmap li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* ---------------------------------------------------------------- faq */

.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--border); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.socials { display: flex; gap: .5rem; }
.social {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color .15s, border-color .15s;
}
.social:hover { color: var(--text); border-color: var(--border-strong); }
.social svg.filled { fill: currentColor; stroke: none; }
.footer-note { max-width: 52rem; margin: 2rem 0 .75rem; color: var(--muted); font-size: .875rem; }
.copyright { margin: 0; color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 2rem);
  padding: .7rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: .9rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- motion */

/* Content only starts hidden once main.js has run, so it's never lost without JS. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .toast, .alloc-seg, .legend li, .faq summary::after { transition: none; }
}
