@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/unbounded.woff2") format("woff2");
}

:root {
  --mint: #7ce3a1;
  --ground: #0b0e12;
  --white: #ffffff;
  --surface: #12161c;
  --line: #1a1f27;
  --line-strong: #222832;
  --muted: #8a929e;
  --ink: #e8ebef;
  --mint-tint: #173a26;
  --light-green: #22b566;
  --mint-ink: #167a43;
  --loss: #f07171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--white); }
code, .mono {
  font-family: Inter, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  word-break: break-all;
}
::selection { background: var(--mint-tint); color: var(--white); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 56px; }
.wrap-trade { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 56px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-height: 28px;
}
.brand:hover { color: var(--white); }
.brand img { height: 26px; width: auto; display: block; }
.brand span {
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

h1, h2, h3 { color: var(--white); font-weight: 600; }
h1 {
  margin: 0;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.01em;
}
h1 em, h1 .mint, .mint { font-style: normal; color: var(--mint); }
h2 {
  margin: 0 0 8px;
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h3 { margin: 8px 0; font-family: Inter, sans-serif; font-size: 16px; font-weight: 600; }
.lede, .sub, p { color: var(--muted); }
.lede { max-width: 640px; margin: 18px 0 0; font-size: 16px; line-height: 1.5; }
.sub { margin: 0 0 16px; max-width: 680px; line-height: 1.5; }
strong { color: var(--white); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
button, .btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ground);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover, .btn:hover { color: var(--ground); background: #9aebbb; }
button.ghost, .btn.ghost, a.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
button.ghost:hover, .btn.ghost:hover, a.ghost:hover {
  color: var(--white);
  background: var(--surface);
  border-color: var(--line-strong);
}
button:disabled { opacity: 0.5; cursor: default; }

.card, .program, .capsule, .routes, form.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.card { margin-top: 12px; }
.card p, .program strong { color: var(--muted); font-weight: 400; line-height: 1.45; }
.card h2 { font-size: 22px; margin-bottom: 12px; }

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
input, select, textarea {
  width: 100%;
  background: var(--ground);
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
  font: 14px/1.4 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  outline: none;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); }
::placeholder { color: var(--muted); }
select { appearance: none; }

.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 36px; align-items: end; padding: 36px 0 12px; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--mint); }
.card > label:first-child,
form.card > label:first-child { margin-top: 0; }

.capsule { padding: 8px 18px; }
.flow { display: grid; }
.step-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.step-line:first-child { border-top: 0; }
.step-line b { display: block; color: var(--white); font-size: 14px; font-weight: 600; }
.step-line span { color: var(--muted); font-size: 13px; }
.num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  background: var(--mint-tint);
  color: var(--mint);
}

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 28px 0 8px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px 12px;
}
.stat .label, .kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.kicker { color: var(--mint); display: inline-block; margin-bottom: 6px; }
.stat .value, .amount, .balance {
  margin-top: 8px;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.balance { font-size: 32px; margin: 6px 0 10px; }
.stat .sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.epochbar, .bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}
.epochbar i, .bar > span { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 999px; }

section { padding: 28px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
a.program { text-decoration: none; display: block; color: inherit; }
a.program:hover { border-color: var(--line-strong); }
a.program strong { display: block; color: var(--white); margin: 8px 0; font-weight: 600; }
a.program code { color: var(--muted); font-size: 12px; }

.bridge { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; margin-top: 18px; }
.facts { display: grid; gap: 0; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}
.fact span { color: var(--muted); }
.fact b { font-weight: 600; text-align: right; color: var(--white); word-break: break-all; }
.banner, .note {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 14px 16px;
  line-height: 1.45;
}
.genesis {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 16px;
  background: var(--surface);
}
.genesis span { color: var(--muted); font-size: 13px; font-weight: 500; }
.genesis code { font-size: 13px; color: var(--white); }
.warn { color: var(--loss); }
.ok { color: var(--mint); }

.grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-top: 22px; }
.route { padding: 12px 0; border-top: 1px solid var(--line); }
.route strong { color: var(--white); }

footer {
  padding: 10px 0 40px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--white); }

ol { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
ol li { margin: 6px 0; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.stack button, .stack .btn { margin: 0; }

@media (max-width: 980px) {
  .hero, .bridge, .grid, .grid3, .programs, .stats { grid-template-columns: 1fr 1fr; }
  .hero, .bridge, .grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .grid3, .programs, .stats, .split, .row { grid-template-columns: 1fr; display: grid; }
  .nav-links { gap: 12px; }
  h1 { font-size: 40px; }
}
