@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Variables ── */
:root {
  --bg:       #0f0e0b;
  --surface:  #1a1814;
  --raised:   #242118;
  --border:   #35312a;
  --gold:     #c8922a;
  --gold-lg:  #e8b84a;
  --amber:    #a06820;
  --tan:      #8b7560;
  --cream:    #e0d4bc;
  --muted:    #8a7a68;
  --slate:    #4a5668;
  --code-bg:  #1a1e24;
  --green:    #4a8a5a;
  --radius:   6px;
  --max-w:    1080px;
  --font:     'Space Grotesk', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
h2 { font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.7; }
strong { color: var(--cream); font-weight: 600; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

/* ── Two-column grid (responsive) ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,14,11,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.brand span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}
.btn-gold { background: var(--gold); color: #0f0e0b; }
.btn-gold:hover { background: var(--gold-lg); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(200,146,42,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--amber);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero > .container > p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats bar ── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--cream); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Section helpers ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-desc { max-width: 560px; margin-bottom: 2.75rem; }

/* ── Cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.card h3 { margin-bottom: 0.5rem; color: var(--cream); }
.card p { font-size: 0.9rem; }
.card-gold { border-color: var(--amber); background: rgba(200,146,42,0.04); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  background: var(--raised);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Code ── */
pre, code { font-family: var(--mono); font-size: 0.85rem; }
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.code-block code { color: #a8c4a0; white-space: pre; }
code.inline {
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--gold-lg);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* ── Method + badges ── */
.method {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  background: rgba(200,146,42,0.12);
  color: var(--gold);
  border: 1px solid rgba(200,146,42,0.28);
}
.badge-free {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 3px;
  background: rgba(74,138,90,0.14);
  color: #6ab87a;
  border: 1px solid rgba(74,138,90,0.28);
}
.badge-paid {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 3px;
  background: rgba(200,146,42,0.1);
  color: var(--gold);
  border: 1px solid rgba(200,146,42,0.24);
}

/* ── Flow steps ── */
.flow-steps { display: flex; gap: 0; flex-wrap: wrap; }
.flow-step {
  flex: 1;
  min-width: 180px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.flow-step:not(:first-child) { border-left: none; }
.flow-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow-step::after {
  content: '→';
  position: absolute;
  right: -0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.1rem;
  z-index: 1;
}
.flow-step:last-child::after { display: none; }
.flow-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}
.flow-step h4 { color: var(--cream); margin-bottom: 0.25rem; }
.flow-step p { font-size: 0.82rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.25rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}
.timeline-item h3 { color: var(--cream); margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.9rem; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── UID / address ── */
.uid {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--tan);
  word-break: break-all;
  line-height: 1.5;
}

/* ── Callout ── */
.callout {
  background: rgba(200,146,42,0.05);
  border: 1px solid rgba(200,146,42,0.22);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.callout strong { color: var(--gold); }
.callout p { margin-top: 0.4rem; font-size: 0.88rem; }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 700; font-size: 0.95rem; }
.footer-brand span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ── Phase badge ── */
.phase-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { gap: 1.5rem; }
  .flow-steps { flex-direction: column; }
  .flow-step { border-left: 1px solid var(--border) !important; border-radius: 0 !important; }
  .flow-step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .flow-step:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .flow-step::after { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
