@font-face {
  font-family: Geist;
  src: url("/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --indigo: #402aff;
  --ink: #f4f2ff;
  --ink-soft: rgb(244 242 255 / 0.78);
  --hairline: rgb(244 242 255 / 0.16);
  --sunk: rgb(10 8 40 / 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0.25rem;
  --nav: 4.25rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--indigo);
  color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 4.5rem;
}
@media (max-width: 48rem) { .shell { padding: 0 1.25rem; } }

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--nav);
  background: rgb(64 42 255 / 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}
.nav nav a { color: var(--ink-soft); }
.nav nav a:hover,
.nav nav a[aria-current="page"] { color: var(--ink); }

.mark { color: var(--ink); display: flex; align-items: center; }
.mark svg { display: block; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sub {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.lede {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.hero {
  min-height: calc(100dvh - var(--nav));
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
}

.hero-copy { max-width: 28rem; }

#how,
#limits,
#tokens,
#key {
  scroll-margin-top: calc(var(--nav) + 1rem);
}

.act {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

button,
.btn {
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--indigo);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease-out),
    opacity 150ms linear,
    background 200ms var(--expo);
}
button:active,
.btn:active { transform: scale(0.97); }
button:disabled { opacity: 0.55; cursor: default; transform: none; }
button:focus-visible,
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  button:hover,
  .btn:hover { opacity: 0.9; }
}

.btn-ghost,
button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover,
  button.ghost:hover { background: rgb(255 255 255 / 0.08); opacity: 1; }
}

.how {
  padding: 5.5rem 0 6rem;
}
.how article {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 36rem);
  gap: 0 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
}
.how article:last-child { border-bottom: 1px solid var(--hairline); }
.how-n {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.how article p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.band {
  padding: 5.5rem 0;
  border-top: 1px solid var(--hairline);
}

.pair {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 48rem) { .pair { grid-template-columns: 1fr; } }

.pair article {
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--sunk);
}
.pair .amt {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pair .amt span {
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  font-weight: 500;
}
.pair p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.nets {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}
.nets[hidden] { display: none; }
.nets button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  font-weight: 500;
}
.nets button[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .nets button:hover { color: var(--ink); opacity: 1; }
}

.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.tokens li { font-size: 0.9375rem; }
.tokens small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.metrics {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
@media (max-width: 48rem) { .metrics { grid-template-columns: 1fr; gap: 1.5rem; } }
.metrics strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.metrics span {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.key-block { max-width: 36rem; }
.key-block .sub { max-width: 42ch; }

.status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.status[data-bad="true"] { color: var(--ink); }

.result {
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}
.result[hidden] { display: none; }

.field + .field { margin-top: 1.25rem; }
.field-label {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.value {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

code,
pre {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
}
code.box,
pre.code {
  display: block;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--sunk);
  border-radius: var(--radius);
  overflow-x: auto;
  color: var(--ink);
}
code.box { flex: 1; word-break: break-all; line-height: 1.6; padding: 0.7rem 0.85rem; }
pre.code code { background: none; padding: 0; font-size: inherit; }

.copy {
  flex: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 0.55rem 0.8rem;
  font-size: 0.8125rem;
}
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: rgb(255 255 255 / 0.08); opacity: 1; }
}

.site-foot {
  padding: 2rem 0 4.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
  display: grid;
  gap: 0.75rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.site-foot p { margin: 0; max-width: 44ch; }
.site-foot a { text-decoration: underline; text-underline-offset: 0.18em; }

.docs {
  display: grid;
  grid-template-columns: 10rem minmax(0, 38rem);
  gap: 5rem;
  padding: 3.5rem 0 7rem;
  min-width: 0;
}

.docs-nav {
  position: sticky;
  top: calc(var(--nav) + 1.25rem);
  align-self: start;
  display: grid;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.docs-nav a[aria-current="page"] { color: var(--ink); }

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.article h1 {
  font-size: clamp(2.15rem, 4.2vw, 3rem);
  max-width: 16ch;
}
.article h2 {
  margin: 3.25rem 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--nav) + 1rem);
}
.article p { margin: 0.9rem 0 0; color: var(--ink-soft); max-width: 44ch; }
.article ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); max-width: 44ch; }
.article li code { word-break: break-all; }
.article li + li { margin-top: 0.45rem; }
.article pre.code { margin-top: 1.15rem; }
.article .btn { margin-top: 1.5rem; }
.article a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.article .ends a,
.article .map a {
  text-decoration: none;
}

.ends {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: 38rem;
}
.article ul.ends {
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: 38rem;
}
.ends li {
  display: block;
  margin: 0;
}
.ends li + li { margin-top: 0; }
.ends a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.ends li:last-child a { border-bottom: 1px solid var(--hairline); }
.ends span {
  flex: 0 0 6.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ends code {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article .costs {
  margin: 1.25rem 0 0;
  max-width: 38rem;
}
.article .costs article h3 { margin-bottom: 0.55rem; }
.article .costs article p { margin: 0; max-width: none; }

.map { margin: 2rem 0 0; display: grid; gap: 0; }
.map a {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.map a:last-child { border-bottom: 1px solid var(--hairline); }
.map strong { font-weight: 500; color: var(--ink); }
.map span { color: var(--ink-soft); }

.note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.rise { animation: rise 0.7s var(--expo) both; }
.rise:nth-child(2) { animation-delay: 0.07s; }
.rise:nth-child(3) { animation-delay: 0.14s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: reveal 0.45s var(--ease-out) both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(0.4rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.js-motion .await {
  opacity: 0;
  transform: translateY(0.9rem);
  transition:
    opacity 0.65s var(--expo),
    transform 0.65s var(--expo);
}
.js-motion .await.seen {
  opacity: 1;
  transform: none;
}
.js-motion .await:nth-child(2) { transition-delay: 0.06s; }
.js-motion .await:nth-child(3) { transition-delay: 0.12s; }

@media (max-width: 48rem) {
  .nav { gap: 1rem; }
  .nav nav { gap: 1rem; font-size: 0.875rem; }

  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    padding: 1.15rem 0 5rem;
  }

  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding: 0 1.25rem 0.85rem;
    border-bottom: 1px solid var(--hairline);
  }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav a { flex: 0 0 auto; }

  .article h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    max-width: none;
  }
  .article h2 { margin-top: 2.35rem; }
  .article p,
  .article ul { max-width: none; }

  .ends a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    align-items: start;
  }
  .ends span { flex: none; }

  .map a {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .pair article { padding: 1.25rem 1.15rem 1.15rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .bar {
    background: var(--indigo);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: fade 0.2s linear both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .js-motion .await,
  .js-motion .await.seen {
    opacity: 1;
    transform: none;
    transition: none;
  }
  button, .btn { transition: opacity 0.15s linear; }
}
