:root {
  --bg: #000;
  --bg-2: #070a09;
  --ink: #fff;
  --mute: rgba(255, 255, 255, 0.58);
  --dim: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --mint: #8ef0d6;
  --mint-soft: rgba(142, 240, 214, 0.12);
  --warn: #ffb0a0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.02em; }
.mint { color: var(--mint); }
.dim { color: var(--dim); }
.warn { color: var(--warn); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
h2 { text-wrap: balance; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-mint { background: var(--mint); color: #001a14; }
.btn-mint:hover { box-shadow: 0 0 0 4px rgba(142, 240, 214, 0.18); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 72px; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad); transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.solid { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--mute); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: #fff; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: flex-end; overflow: clip; }
.hero-img {
  position: absolute; inset: 0; background: url(img/fields.webp) center 62% / cover no-repeat;
  transform: scale(1.06); animation: settle 2.6s var(--ease) forwards;
}
@keyframes settle { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.82) 82%, #000 100%); }
.hero-in { position: relative; width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; padding-bottom: clamp(56px, 9vh, 104px); }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 800; }
.hero-sub { margin-top: 22px; max-width: 600px; text-wrap: pretty; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, 0.74); }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-live { position: absolute; right: var(--pad); bottom: clamp(60px, 9.5vh, 108px); display: flex; align-items: center; gap: 10px; color: var(--mute); max-width: 360px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); flex: none; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.stat { padding: 30px 0 28px; display: grid; gap: 6px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--dim); }

/* how */
.how { padding: clamp(96px, 12vw, 150px) 0 40px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.step { display: grid; align-content: start; gap: 16px; }
.step p { color: var(--mute); font-size: 15px; }
.step-n { color: var(--mint); }
.ui { background: var(--bg-2); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.ui-card { padding: 20px; min-height: 178px; display: grid; align-content: space-between; gap: 12px; }
.ui-meta { color: var(--dim); }
.ui-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.ui-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ui-big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--mint); }
.ui-tag { color: var(--dim); }
.ui-lanes { padding: 10px; min-height: 178px; display: grid; align-content: center; gap: 6px; }
.lane { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, 0.03); }
.lane .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.lane.win { background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(142, 240, 214, 0.35); }
.lane.win .av { background: var(--mint); color: #001a14; }
.lane.junk { opacity: 0.7; }
.ui-receipt { padding: 20px; min-height: 178px; display: grid; align-content: center; gap: 12px; }
.rc { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14px; color: var(--mute); }
.rc b { font-size: 22px; letter-spacing: -0.03em; }
.rc-foot { margin-top: 4px; }

/* tables */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.link { color: var(--mint); font-weight: 700; font-size: 15px; }
.board, .receipts { padding: clamp(80px, 10vw, 130px) 0 0; }
.table { border-top: 1px solid var(--line); }
.tr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 100px 190px 80px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tr-r { grid-template-columns: 120px minmax(0, 1fr) 140px 150px; }
.th { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 14px 0; }
.tr .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .r { font-weight: 700; font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--mute); }
.st i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.st.open i { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.st.paid { color: var(--mint); }
.tr a.tx { color: var(--mute); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.tr a.tx:hover { color: var(--mint); }

/* bonds */
.bonds { padding: clamp(110px, 13vw, 170px) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.facts { list-style: none; margin: 28px 0 32px; display: grid; gap: 16px; color: var(--mute); max-width: 520px; }
.facts b { color: #fff; font-weight: 700; }
.ui-bond { padding: 26px; display: grid; gap: 18px; background: radial-gradient(120% 90% at 100% 0%, rgba(142, 240, 214, 0.1), transparent 55%), var(--bg-2); }
.bond-top { display: flex; justify-content: space-between; }
.bond-big { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.bond-big small { font-size: 18px; letter-spacing: 0; color: var(--mute); font-weight: 700; }
.bond-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bond-bar i { display: block; height: 100%; background: var(--mint); border-radius: 6px; }
.bond-rows { display: grid; gap: 10px; font-size: 14px; font-weight: 600; }
.bond-rows div { display: flex; justify-content: space-between; }
.bond-actions { display: flex; gap: 10px; }

/* agents */
.agents { padding: clamp(110px, 13vw, 170px) 0 0; }
.lede { color: var(--mute); margin-top: 14px; max-width: 560px; font-size: 17px; }
.ways { display: grid; gap: 12px; margin-top: 36px; }
.way { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; }
.code { display: block; padding: 18px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); white-space: nowrap; overflow-x: auto; scrollbar-width: none; cursor: copy; transition: box-shadow 0.25s var(--ease); }
.code:hover { box-shadow: inset 0 0 0 1px rgba(142, 240, 214, 0.4); }
.code.copied { box-shadow: inset 0 0 0 1px var(--mint); }

/* faq */
.faq { padding: clamp(110px, 13vw, 170px) 0 0; }
.qs { margin-top: 30px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--mint); font-weight: 500; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { text-wrap: pretty; color: var(--mute); padding: 0 0 24px; max-width: 720px; }

/* footer */
.foot { display: flex; align-items: center; gap: 28px; padding: 110px 0 56px; flex-wrap: wrap; }
.foot img { height: 28px; width: auto; }
.foot-links { display: flex; gap: 22px; font-weight: 600; font-size: 14px; color: var(--mute); }
.foot-links a:hover { color: #fff; }
.foot p { margin-left: auto; }

/* reveal */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } .hero-img { animation: none; transform: none; } }

/* responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonds { grid-template-columns: 1fr; }
  .way { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero-live { display: none; }
  .hero-img { background-position: 30% 70%; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0.35) 48%, rgba(0,0,0,0.9) 72%, #000 100%); }
  .code { white-space: normal; overflow-wrap: anywhere; }
  .sec-head { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 48px minmax(0, 1fr) 70px; }
  .tr > :nth-child(4), .tr > :nth-child(5) { display: none; }
  .tr-r { grid-template-columns: 80px minmax(0, 1fr) 90px; }
  .tr-r > :nth-child(4) { display: none; }
  .foot p { margin-left: 0; }
}

/* pre-launch: body.pre until the API answers */
.pre .live-only { display: none !important; }
body:not(.pre) .pre-only { display: none !important; }
.soon { margin-top: 18px; }
