/* ===== Design tokens (locked) =====
   Palette sampled directly from assets/avatar.png:
   background near-black #07080C, coral #FCA18C, slate #6D6E7A, mint #7DE3B4
   Type: IBM Plex Sans (all body copy, the site is text heavy and has to stay readable)
         Press Start 2P (accent display only: wordmark, section numbers, small labels)
         VT323 (numeric readouts: countdown digits, percentages)
   Spacing scale: 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 px
   Corner radius: 0 everywhere (chunky pixel blocks, no rounding)
   Motion: one idiom, the hard-offset "pixel button press" (shadow collapses on :active)
*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg: #07080C;
  --panel: #101116;
  --panel-2: #16171E;
  --border: #2A2C36;
  --border-soft: #1E2028;
  --mint: #7DE3B4;
  --mint-dim: #5CBE95;
  --coral: #FCA18C;
  --coral-dim: #D97F68;
  --slate: #9497A6;
  --text: #ECEBF0;
  --text-dim: #A2A5B4;
  --text-mute: #7C7F8E;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --max-width: 1120px;
  --display: 'Press Start 2P', monospace;
  --readout: 'VT323', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-4); }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.5; margin: 0 0 var(--space-4); }

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: var(--space-6) 0 var(--space-2);
  color: var(--text);
}

p { margin: 0 0 var(--space-3); }

a { color: inherit; text-decoration: none; }

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

strong { font-weight: 600; color: var(--text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand { display: flex; align-items: center; gap: var(--space-2); }

.brand-mark { width: 34px; height: 34px; image-rendering: pixelated; border: 2px solid var(--border); }

.brand-name { font-family: var(--display); font-size: 12px; letter-spacing: 0.02em; color: var(--mint); }

.site-nav { display: flex; gap: var(--space-4); }

.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--coral); border-bottom-color: var(--coral); }

/* Token bar */
.token-bar { background: var(--panel); border-bottom: 2px solid var(--border); }

.token-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.token-ticker { font-family: var(--display); font-size: 11px; color: var(--mint); }

.chain-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  border: 1px solid var(--border);
  padding: 4px 8px;
  background: var(--panel-2);
}

.token-ca {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--panel-2);
  border: 2px solid var(--border);
  padding: 5px 10px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s ease;
}

.token-ca:hover { border-color: var(--mint); }

.token-ca-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }

.token-ca-value {
  font-size: 13px;
  font-weight: 500;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-ca-copied { display: none; font-size: 13px; font-weight: 600; color: var(--mint); }
.token-ca.is-copied .token-ca-value { display: none; }
.token-ca.is-copied .token-ca-copied { display: inline; }

.token-buy {
  margin-left: auto;
  background: var(--coral);
  color: #1A0E0A;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 2px solid var(--coral-dim);
  box-shadow: 3px 3px 0 var(--coral-dim);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.token-buy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--coral-dim); }
.token-buy:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--coral-dim); }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.social-icon:hover { color: var(--mint); border-color: var(--mint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-primary {
  border: 2px solid var(--mint-dim);
  background: var(--mint);
  color: #06110C;
  box-shadow: 4px 4px 0 var(--mint-dim);
}

.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--mint-dim); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--mint-dim); }

.btn-ghost {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  box-shadow: 4px 4px 0 var(--border);
}

.btn-ghost:hover { color: var(--coral); border-color: var(--coral-dim); box-shadow: 5px 5px 0 var(--coral-dim); transform: translate(-1px, -1px); }
.btn-ghost:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--coral-dim); }

/* Hero */
.hero {
  position: relative;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-position: right -40px center;
  background-size: 640px auto;
  image-rendering: pixelated;
  border-bottom: 2px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 46%, rgba(7,8,12,0.6) 68%, rgba(7,8,12,0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-8);
  padding-bottom: var(--space-7);
  max-width: 660px;
}

.eyebrow {
  display: inline-block;
  color: var(--coral);
  font-size: 11px;
  font-family: var(--display);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.eyebrow-section { color: var(--text-mute); margin-bottom: var(--space-3); }

.hero h1 { font-size: 34px; color: var(--mint); margin-bottom: var(--space-3); }

.tagline {
  font-size: 21px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-3);
}

.hero-description { font-size: 17px; color: var(--text-dim); max-width: 580px; margin-bottom: var(--space-5); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.hero-actions .btn { font-size: 10px; padding: var(--space-3); }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 660px;
}

.hero-facts li {
  border-top: 2px solid var(--border);
  padding-top: var(--space-2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mute);
}

.hero-facts strong { display: block; color: var(--mint); font-weight: 600; margin-bottom: 2px; }

/* Sections */
.section { padding: var(--space-8) 0; scroll-margin-top: 88px; }

.section-alt { background: var(--panel); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }

.section h2 { font-size: 20px; max-width: 720px; color: var(--text); }

.section-lead {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 680px;
  margin-bottom: var(--space-6);
}

/* Prose */
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-7);
  align-items: start;
}

.prose { max-width: 680px; color: var(--text-dim); }

.prose .lead { font-size: 19px; color: var(--text); line-height: 1.65; margin-bottom: var(--space-4); }

.prose h3 { color: var(--mint); }

.prose h3:first-of-type { margin-top: var(--space-6); }

.prose-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: var(--space-4); }

.aside-figure { margin: 0; border: 2px solid var(--border); background: var(--panel); }

.aside-figure img { image-rendering: pixelated; width: 100%; }

.aside-figure figcaption {
  border-top: 2px solid var(--border);
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mute);
}

.aside-note { border: 2px solid var(--border); background: var(--panel-2); padding: var(--space-3) var(--space-4); }

.aside-note-title {
  font-family: var(--display);
  font-size: 10px;
  line-height: 1.7;
  color: var(--coral);
  margin-bottom: var(--space-3);
}

.aside-note p { font-size: 13px; line-height: 1.6; color: var(--text-mute); margin-bottom: var(--space-2); }
.aside-note p:last-child { margin-bottom: 0; }
.aside-note strong { color: var(--text); }

/* Anatomy list */
.anatomy-list { margin: 0; border-top: 2px solid var(--border); }

.anatomy-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 2px solid var(--border);
}

.anatomy-row dt {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mint);
}

.anatomy-row dd { margin: 0; color: var(--text-dim); font-size: 16px; max-width: 680px; }

/* Vesting visualizer */
.visualizer {
  background: var(--panel-2);
  border: 2px solid var(--border);
  box-shadow: 8px 8px 0 var(--border-soft);
  padding: var(--space-5);
}

.section-alt .visualizer { background: var(--panel-2); }

.visualizer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.visualizer-title {
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.visualizer-sub { font-size: 13px; color: var(--text-mute); margin: 0; }

.visualizer-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--mint-dim);
  padding: 3px 8px;
  white-space: nowrap;
}

.visualizer-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-3); }

.visualizer-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.visualizer-percent { font-family: var(--readout); font-size: 30px; color: var(--mint); }

.countdown { display: flex; align-items: flex-end; gap: var(--space-2); margin-bottom: var(--space-4); }

.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; }

.countdown-value {
  font-family: var(--readout);
  font-size: 54px;
  line-height: 1;
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--border);
  padding: 6px 10px;
  min-width: 64px;
  text-align: center;
}

.countdown-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-sep { font-family: var(--readout); font-size: 40px; color: var(--slate); padding-bottom: 22px; }

.progress-track {
  height: 22px;
  background: var(--panel);
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, var(--mint) 0, var(--mint) 10px, var(--mint-dim) 10px, var(--mint-dim) 20px);
  transition: width 0.6s linear;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  margin-top: var(--space-1);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.unlock-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 90px;
  gap: var(--space-3);
  padding-bottom: var(--space-1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 2px solid var(--border);
}

.unlock-head span:last-child { text-align: right; }

.unlock-list { list-style: none; margin: 0; padding: 0; }

.unlock-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 90px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 2px solid var(--border);
  font-size: 15px;
}

.unlock-list li.is-next { color: var(--coral); }

.unlock-date { color: var(--text-dim); font-weight: 500; }
.unlock-list li.is-next .unlock-date { color: var(--coral); }

.unlock-name { color: var(--text-dim); }
.unlock-list li.is-next .unlock-name { color: var(--coral); font-weight: 600; }

.unlock-pct { font-family: var(--readout); font-size: 22px; color: var(--mint); text-align: right; }
.unlock-list li.is-next .unlock-pct { color: var(--coral); }

.visualizer-foot { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: baseline; }

.visualizer-sync {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.visualizer-disclaimer { margin: 0; flex: 1 1 320px; font-size: 13px; line-height: 1.6; color: var(--text-mute); }

/* Worked example */
.worked-example {
  margin-top: var(--space-6);
  border-left: 4px solid var(--coral-dim);
  padding-left: var(--space-4);
  max-width: 720px;
}

.worked-example h3 { margin-top: 0; color: var(--coral); }

.worked-example p { color: var(--text-dim); font-size: 16px; }
.worked-example p:last-child { margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }

.step {
  background: var(--panel-2);
  border: 2px solid var(--border);
  box-shadow: 5px 5px 0 var(--border-soft);
  padding: var(--space-4);
}

.step-number { display: block; font-family: var(--display); font-size: 12px; color: var(--coral); margin-bottom: var(--space-3); }

.step h3 { margin: 0 0 var(--space-2); font-size: 18px; }

.step p { color: var(--text-dim); font-size: 15px; margin-bottom: 0; }

/* FAQ */
.faq { border-top: 2px solid var(--border); max-width: 860px; }

.faq-item { border-bottom: 2px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: 0;
  padding: var(--space-4) 0;
  cursor: pointer;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  transition: color 0.15s ease;
}

.faq-q:hover { color: var(--mint); }

.faq-mark {
  font-family: var(--readout);
  font-size: 30px;
  line-height: 1;
  color: var(--coral);
  flex: none;
  width: 24px;
  text-align: center;
}

.faq-item.is-open .faq-q { color: var(--mint); }
.faq-item.is-open .faq-mark { color: var(--mint); }

.faq-a { display: none; padding: 0 0 var(--space-4); max-width: 720px; }

.faq-item.is-open .faq-a { display: block; }

.faq-a p { color: var(--text-dim); font-size: 16px; margin-bottom: 0; }

/* Footer */
.site-footer { padding: var(--space-6) 0 var(--space-5); border-top: 2px solid var(--border); background: var(--panel); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}

.footer-brand { display: flex; align-items: center; gap: var(--space-2); }

.footer-mark { width: 30px; height: 30px; image-rendering: pixelated; border: 2px solid var(--border); }

.footer-name { font-family: var(--display); font-size: 10px; color: var(--mint); margin: 0 0 4px; }

.footer-line { font-size: 13px; color: var(--text-mute); margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }

.footer-nav a { font-size: 14px; color: var(--text-dim); transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--coral); }

.footer-disclaimer {
  margin: var(--space-4) 0 var(--space-3);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 760px;
}

.footer-copy { color: var(--text-mute); font-size: 12px; margin: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Responsive */
@media (max-width: 1000px) {
  .prose-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .prose-aside { position: static; max-width: 560px; }
  .anatomy-row { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-4); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .token-buy { margin-left: 0; width: 100%; text-align: center; justify-content: center; }
  .token-ca-value { max-width: 150px; }
  .hero { background-position: right -160px top -20px; background-size: 480px auto; }
  .hero::before { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 58%, rgba(7,8,12,0.55) 82%, rgba(7,8,12,0.2) 100%); }
  .hero h1 { font-size: 24px; }
  .hero-facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .anatomy-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .countdown { flex-wrap: wrap; }
  .countdown-value { font-size: 42px; min-width: 56px; }
  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: var(--space-7) 0; }
  .section h2 { font-size: 16px; line-height: 1.6; }
  .hero h1 { font-size: 20px; }
  .tagline { font-size: 18px; }
  .section-lead, .prose .lead { font-size: 17px; }
  .visualizer { padding: var(--space-3); }
  .visualizer-head { flex-direction: column; }
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); }
  .countdown-sep { display: none; }
  .countdown-unit { min-width: 0; }
  .countdown-value { font-size: 28px; min-width: 0; width: 100%; padding: 6px 2px; }
  .unlock-head { grid-template-columns: 1fr 70px; }
  .unlock-head span:nth-child(2) { display: none; }
  .unlock-list li { grid-template-columns: 1fr 70px; row-gap: 2px; }
  .unlock-name { grid-column: 1 / 2; font-size: 13px; }
  .unlock-pct { grid-row: 1 / 3; grid-column: 2 / 3; font-size: 20px; }
  .worked-example { padding-left: var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
