/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0f1a2b;
  background: #fbfaf7;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --ink: #0f1a2b;
  --ink-soft: #435067;
  --muted: #7a849a;
  --paper: #fbfaf7;
  --paper-alt: #f3efe6;
  --line: #e6e1d4;
  --accent: #e85d2f;
  --accent-soft: #fde7dc;
  --navy: #0f1a2b;
  --mint: #0e8a6b;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--paper-alt); }
.section-contact { background: var(--navy); color: #f6f1e6; border-top: none; }
.section-contact .eyebrow { color: #e85d2f; }
.section-contact h2 { color: #fff; }
.section-contact .lede { color: #c9d0dc; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 16px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.8vw, 64px); line-height: 1.05; margin: 0 0 24px; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 20px; letter-spacing: -0.015em; }
h3 { font-size: 20px; margin: 0 0 10px; }

.lede { font-size: 19px; color: var(--ink-soft); max-width: 720px; margin: 0 0 28px; }
.lede.narrow { max-width: 640px; }
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c94a1f; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.section-contact .btn-ghost { border-color: #3a4359; color: #f6f1e6; }
.section-contact .btn-ghost:hover { border-color: #f6f1e6; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Header ---------- */
.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--accent) 0 50%, var(--navy) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.brand-mark.small { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; display: inline-block; }
.brand-name { letter-spacing: -0.01em; }
nav[aria-label="primary"] { display: flex; align-items: center; gap: 28px; }
nav[aria-label="primary"] a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
nav[aria-label="primary"] a:hover { color: var(--ink); }
nav[aria-label="primary"] a.btn { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 640px; }
.hero-note {
  margin-top: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--mint);
}
.hero-note::before {
  content: "●";
  color: var(--mint);
  margin-right: 8px;
  animation: pulse 1.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15,26,43,0.08) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Stats band ---------- */
.band {
  background: var(--navy);
  color: #f6f1e6;
  padding: 36px 0;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-num {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat-label {
  margin: 0;
  color: #b6bccb;
  font-size: 14px;
}
.stat-label a { color: var(--accent); text-decoration: none; }
.stat-label a:hover { text-decoration: underline; }

/* ---------- Two-col ---------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cols-2.align-top { align-items: start; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.feature-icon {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- Cards (shipped) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); }
.card-live:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px -18px rgba(232, 93, 47, 0.5);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-flag { font-size: 22px; }
.card p { color: var(--ink-soft); margin: 0 0 12px; }
.card-link { font-weight: 500; color: var(--accent); margin: 0; }
.card-link.muted { color: var(--muted); }
.card-link.muted a { color: var(--accent); text-decoration: none; }
.card-soon { background: var(--paper-alt); border-style: dashed; }
.card-next { background: transparent; border-style: dashed; }

.pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
}
.pill-live { background: #e4f6ef; color: var(--mint); }
.pill-soon { background: var(--accent-soft); color: var(--accent); }

/* ---------- Codebox ---------- */
.codebox {
  background: #0f1a2b;
  color: #e6e9f0;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  border: 1px solid #0a1220;
  box-shadow: 0 20px 60px -30px rgba(15, 26, 43, 0.4);
}
.codebox-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a2538;
  border-bottom: 1px solid #0a1220;
}
.codebox-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a4359;
}
.codebox-bar em {
  margin-left: auto;
  font-style: normal;
  color: #8994ad;
  font-size: 12px;
}
.codebox pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.7;
}
.codebox code { color: #cfd5e2; }

/* ---------- Paths ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.path {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.path p { color: var(--ink-soft); margin: 0; }

/* ---------- Market stats ---------- */
.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 56px 0 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mstat { position: relative; padding: 0 20px; }
.mstat + .mstat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.mstat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 14px;
}
.mstat-unit {
  font-size: 0.45em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 2px;
}
.mstat-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.mstat-source {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mstat-source em { font-style: italic; text-transform: none; letter-spacing: 0; }
.market-close { max-width: 720px; }
.market-close p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-foot {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-grid p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 88px 0 72px; }
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .market-stats { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .mstat { padding: 16px 0 0; }
  .mstat + .mstat { border-top: 1px solid var(--line); }
  .mstat + .mstat::before { display: none; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  nav[aria-label="primary"] a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 36px; }
}
