:root {
  --bg: #0b0e0c;
  --bg-raise: #121614;
  --text: #eef3ef;
  --muted: #9aa59e;
  --faint: #6e7872;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(22, 26, 23, 0.72);
  --green: #3dff8a;
  --green-ink: #062414;
  --white: #f7f8f6;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -40px, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(700px 480px at 78% 18%, rgba(61, 255, 138, 0.08), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color-scheme: dark;
}

::selection {
  background: #143d26;
  color: #eafff3;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a312c;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--white);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(16, 18, 17, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.mark {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.nav-links a.solid {
  background: var(--white);
  color: #111412;
}

.nav-links a.solid[aria-current="page"] {
  background: var(--white);
  color: #111412;
}

.nav-cta {
  margin-left: auto;
  text-decoration: none;
  background: var(--white);
  color: #121412;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-cta svg { display: block; }

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 128px;
  padding-bottom: 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
  min-height: 560px;
}

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.048em; }

h1 {
  font-size: 4.5rem;
  line-height: 0.96;
  max-width: 11ch;
}

h2 {
  font-size: 2.75rem;
  line-height: 1.02;
  max-width: 14ch;
}

.lede {
  margin: 22px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  background: var(--white);
  color: #141614;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.wide { width: 100%; min-height: 52px; font-size: 16px; }

.stage {
  position: relative;
  height: 520px;
  margin-top: 8px;
}

.orb, .ring { position: absolute; pointer-events: none; }

.orb {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a524c, #161917 62%, #0c0e0d);
  box-shadow: inset -10px -16px 30px rgba(0, 0, 0, 0.45), 0 20px 40px rgba(0, 0, 0, 0.25);
}

.orb-a { width: 210px; height: 210px; right: 18px; top: 78px; }
.orb-b { width: 92px; height: 92px; right: 168px; bottom: 78px; }
.orb-c { width: 54px; height: 54px; right: 46px; bottom: 126px; opacity: 0.9; }

.ring {
  width: 180px;
  height: 180px;
  left: 46px;
  top: 36px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.16);
  transform: rotate(18deg) scale(1.05, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slip {
  position: absolute;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(38, 42, 40, 0.78), rgba(18, 20, 19, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.slip-top {
  width: 230px;
  right: 18px;
  top: 36px;
  padding: 16px 16px 14px;
  transform: rotate(8deg);
  animation: float 7s ease-in-out infinite;
}

.slip-main {
  width: 340px;
  left: 36px;
  top: 128px;
  padding: 16px 16px 18px;
  transform: rotate(-6deg);
  animation: float 7s ease-in-out infinite reverse;
}

.slip-chip {
  right: 4px;
  bottom: 78px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  transform: rotate(4deg);
}

.slip-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.slip-amt {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.slip-sub { color: var(--faint); font-size: 13px; margin-top: 2px; }

.row-between, .mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-id { font-weight: 700; letter-spacing: -0.03em; font-size: 14px; }
.ok { color: var(--green); font-size: 13px; font-weight: 650; }

.slip hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 12px 0;
}

.mini-label { color: var(--faint); font-size: 13px; }
.mini-val {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.mini-val.green { color: var(--green); }
.mini-meta { color: var(--faint); font-size: 12px; text-align: right; }

.coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1c1f1d;
  border: 1px solid var(--line);
  flex: none;
}
.coin.green { background: rgba(61, 255, 138, 0.16); color: var(--green); }
.coin.sm { width: 22px; height: 22px; }

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 255, 138, 0.16);
  color: var(--green);
  flex: none;
}

.hero, .section, .band, .page-hero, .foot-card { scroll-margin-top: 108px; }

.section { margin-top: 92px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 36px;
  align-items: start;
}

.swap-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px;
}

.tape {
  height: 228px;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}

.tape-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  font-size: 14px;
  font-weight: 650;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 255, 138, 0.12);
}

.tape-track { animation: rise 22s linear infinite; }

.tape-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.tape-item strong { color: var(--text); font-weight: 650; }

.asset {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-top { display: flex; gap: 12px; align-items: center; }
.asset-top b { display: block; letter-spacing: -0.03em; }
.asset-top span { color: var(--faint); font-size: 13px; }

.pips { display: flex; gap: 6px; flex-wrap: wrap; }
.pip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: #1a1e1b;
  color: #c9d1cb;
  border: 1px solid var(--line-soft);
}
.pip.on { background: var(--green); color: var(--green-ink); border-color: transparent; }

.swap {
  background: linear-gradient(180deg, rgba(32, 36, 34, 0.92), rgba(16, 18, 17, 0.94));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}

.swap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}


.lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

.badge {
  background: rgba(61, 255, 138, 0.14);
  color: var(--green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 12px 14px 14px;
}

.field label, .fine {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
}

.field-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.amt {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.amt:focus { outline: none; }

.addr {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
}
.addr:focus { outline: none; }
.amt.out { color: var(--green); }

.token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.token small { display: block; color: var(--faint); font-weight: 550; font-size: 11px; }

.arrow-wrap { display: grid; place-items: center; margin: -8px 0; position: relative; z-index: 1; }
.arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1c211e;
  border: 1px solid var(--line);
  color: var(--muted);
}

.quote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 4px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.quote b { color: var(--text); font-weight: 650; }

.band {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 36px 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.eyebrow {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band h2 { margin-top: 8px; }

.card3d {
  justify-self: end;
  width: min(100%, 360px);
  min-height: 180px;
  border-radius: 22px;
  padding: 20px 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 42%, rgba(61, 255, 138, 0.08)),
    #1a1e1b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform: rotate(7deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card3d header { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.card-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 34px;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.card-meta .right { text-align: right; }
.card-meta .right strong { font-size: 22px; }

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-list details {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 6px 0 16px;
}

.faq-list summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease;
}

details[open] .chev { transform: rotate(180deg); }

.faq-list details p {
  margin: 0 40px 16px 0;
  color: var(--muted);
  max-width: 62ch;
}

.page-hero { max-width: none; }
.page-hero h2 { max-width: 16ch; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.hop {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
  padding: 18px 18px 18px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.hop b {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hop-title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hop p { margin: 0; color: var(--muted); max-width: 62ch; }

.stats {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 28px;
}

.stat {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 22px;
}

.stat .num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 10px 0;
}

.stat p { margin: 0; color: var(--muted); }

.bars { display: flex; align-items: end; gap: 8px; height: 140px; margin-top: 18px; }
.bars span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--green), rgba(61, 255, 138, 0.2));
  min-height: 8px;
}

.doc {
  max-width: 68ch;
  color: var(--muted);
}
.doc h2 { margin: 36px 0 10px; max-width: none; color: var(--text); }
.doc p { margin: 0 0 12px; }
.doc a { color: var(--text); }

.foot-card {
  margin-top: 72px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 28px 28px 16px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 18px;
}

.foot-brand p { color: var(--muted); max-width: 32ch; margin: 10px 0 0; font-size: 14px; }

.col-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
  font-weight: 700;
}

.foot-grid a {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 4px 0;
  font-size: 14px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
}

.only-flow,
.only-tape,
.only-docs { display: none; }

body[data-view="swap"] .only-home,
body[data-view="flow"] .only-home,
body[data-view="flow"] .only-both,
body[data-view="tape"] .only-home,
body[data-view="tape"] .only-both,
body[data-view="docs"] .only-home,
body[data-view="docs"] .only-both { display: none; }

body[data-view="flow"] .only-flow,
body[data-view="tape"] .only-tape,
body[data-view="docs"] .only-docs { display: block; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes rise {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .slip-top, .slip-main, .tape-track { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .nav-links a:not(.solid) { display: none; }
  .wrap { width: min(1080px, calc(100% - 28px)); padding-top: 108px; }
  .hero, .split, .band, .faq, .stats, .foot-grid { grid-template-columns: 1fr; }
  .stage { height: 440px; margin-top: 12px; }
  .slip-main { width: min(320px, 86%); left: 8px; }
  .slip-top { width: 200px; }
  .card3d { justify-self: start; transform: none; }
  h1 { max-width: 14ch; font-size: 2.8rem; }
  h2 { font-size: 1.75rem; }
  .amt { font-size: 34px; }
}
