*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 100;
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 0; }

/* Contract-address bar: always at the very top, full width, always visible */
.ca-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: linear-gradient(180deg, var(--color-navy), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}
.ca-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
}
.ca-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-highlight);
  flex: none;
}
.ca-bar__value {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2.4vw, 18px);
  font-weight: 500;
  color: var(--color-text);
  overflow-wrap: anywhere;
  flex: 1 1 260px;
}
.ca-bar[data-state="absent"] .ca-bar__value { color: var(--color-text-muted); font-style: italic; }
.ca-bar__copy {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  min-height: var(--tap-min);
  min-width: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(11, 160, 253, 0.12);
  color: var(--color-highlight);
  cursor: pointer;
}
.ca-bar__copy:disabled { opacity: 0.45; cursor: not-allowed; }
.ca-bar__copy[data-copied] { background: var(--color-accent); color: var(--color-navy); }
.ca-bar__note {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-basis: 100%;
}
@media (min-width: 720px) {
  .ca-bar__note { flex-basis: auto; margin-left: auto; text-align: right; }
}

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 30; }
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  min-height: var(--tap-min);
}
.nav__links {
  display: none;
  gap: 28px;
  margin-left: 24px;
  font-weight: 700;
  font-size: 15px;
}
.nav__links a { color: var(--color-text-muted); text-decoration: none; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--color-text); }
.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.social-icon {
  width: var(--tap-min);
  height: var(--tap-min);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
  border: 1px solid transparent;
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon[data-state="stated"] { border-color: var(--color-border); }
.social-icon[data-state="stated"]:hover { background: rgba(185, 249, 253, 0.1); }
.social-icon[aria-disabled="true"] { color: var(--color-text-muted); opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  flex-shrink: 0;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: box-shadow var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast);
}
.btn--primary, .btn--buy {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-navy);
  box-shadow: 0 10px 40px -10px rgba(11, 160, 253, 0.65);
}
.btn--primary:hover, .btn--buy:hover { box-shadow: 0 14px 44px -8px rgba(11, 160, 253, 0.85); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-highlight); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* Hero */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 20px 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__mark { width: 96px; height: 96px; margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.hero__lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}
.hero__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 4px 0 0;
}

/* Story */
.story {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .story { grid-template-columns: repeat(3, 1fr); }
}
.story__beat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.story__beat h2 { font-size: 20px; margin: 0 0 12px; }
.story__beat p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* Arc progress */
.arc-progress { padding: 40px 20px 120px; }
.arc-progress__sticky {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  position: sticky;
  top: 120px;
}
.arc-progress__svg { width: 100%; height: auto; transform: rotate(-90deg); }
.arc-progress__track { fill: none; stroke: var(--color-border); stroke-width: 10; }
.arc-progress__fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .arc-progress__fill { transition: none; }
}
.arc-progress__label { font-weight: 800; margin: 16px 0 4px; }
.arc-progress__readout { font-family: var(--font-mono); color: var(--color-highlight); margin: 0 0 12px; }
.arc-progress__caption { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* Alphabet tool */
.alphabet {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 96px;
  text-align: center;
}
.alphabet h2 { font-size: 28px; margin: 0 0 12px; }
.alphabet__intro { color: var(--color-text-muted); margin: 0 0 24px; }
.alphabet__input {
  width: 100%;
  max-width: 360px;
  min-height: var(--tap-min);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  text-align: center;
}
.alphabet__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}
.alpha-strip__cell {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-transform: uppercase;
}
.alpha-strip__cell.is-hit {
  color: var(--color-navy);
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.alphabet__output { color: var(--color-text-muted); min-height: 48px; }
.alphabet__output strong { color: var(--color-highlight); }

/* Registry */
.registry {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}
.registry__head { text-align: center; margin-bottom: 24px; }
.registry__head h2 { font-size: 28px; margin: 0 0 8px; }
.registry__head p { color: var(--color-text-muted); margin: 0; }
.registry__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.registry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.registry-row__label { font-weight: 800; }
.registry-row__status {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.registry-row[data-state="stated"] .registry-row__status { color: var(--color-navy); background: var(--color-accent); border-color: var(--color-accent); }
.registry-row[data-state="absent"] .registry-row__status,
.registry-row[data-state="unconfirmed"] .registry-row__status { color: var(--color-text-muted); }
.registry-row__detail {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}
.registry__foot { color: var(--color-text-muted); font-size: 13px; margin-top: 20px; }

/* Footer */
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  border-top: 1px solid var(--color-border);
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  font-size: 14.4px;
  color: var(--color-text-muted);
}
.site-footer__disclaimer {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  opacity: 0.8;
}
