:root {
  color-scheme: dark;
  --bg: #111211;
  --surface: #181a18;
  --ink: #f1f2ef;
  --muted: #a1a69f;
  --line: #30332f;
  --soft: #222520;
  --success: #b8d2bc;
  --warning: #dbc69c;
  --error: #edb3aa;
  --sans: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #cbd0c8; color: #111211; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--bg); transform: translateY(-150%); clip-path: inset(50%); }
.skip:focus { transform: translateY(0); clip-path: none; }
.header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 25px; font-weight: 650; letter-spacing: -.065em; }
.brand svg { width: 27px; height: 27px; }
.product { color: var(--muted); margin-left: 15px; padding-left: 22px; border-left: 1px solid var(--line); font-size: 13px; letter-spacing: 0; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav .nav-connect { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 3.7vw, 48px); }
h3 { font-size: 23px; letter-spacing: -.035em; }
.hero { padding: 102px 0 108px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.lead { color: var(--muted); font-size: 18px; max-width: 40ch; margin-top: 26px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.button:hover { border-color: #797f75; }
.button-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button-primary:hover { background: #d9ddd5; color: var(--bg); border-color: #d9ddd5; }
.text-link { font-size: 14px; padding: 12px 6px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.small { font-size: 13px; color: var(--muted); }
.hero-note { margin-top: 18px; max-width: 48ch; }
.hero > *, .section-grid > *, .connect-layout > * { min-width: 0; }
.payment-preview { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.preview-label { color: var(--muted); font-size: 13px; }
.preview-title { margin-top: 28px; font-size: 18px; }
.preview-amount { margin-top: 8px; font-size: 52px; letter-spacing: -.06em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.preview-amount span { color: var(--muted); font-size: 20px; letter-spacing: 0; }
.preview-details { margin: 28px 0 20px; font-size: 14px; }
.preview-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.preview-details dt { color: var(--muted); }
.preview-details dd { margin: 0; text-align: right; }
.section { border-top: 1px solid var(--line); padding: 76px 0 84px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.section-copy p { color: var(--muted); margin-top: 22px; max-width: 49ch; }
.fee { font-size: clamp(72px, 9vw, 116px); font-weight: 450; line-height: 1; letter-spacing: -.075em; margin-bottom: 22px; }
.fee-description { font-size: 17px; }
.detail-list { margin: 25px 0 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; margin: 35px 0 0; counter-reset: steps; }
.steps li { padding: 24px 0 24px 42px; border-top: 1px solid var(--line); position: relative; counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 0; top: 26px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.steps h3 { font-size: 18px; letter-spacing: -.025em; line-height: 1.4; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.inline-code, p code, li code, td code, dt code { font-family: var(--mono); font-size: .86em; color: #d4dbcd; overflow-wrap: anywhere; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.closing h2 { max-width: 18ch; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-status[data-kind="error"] { color: var(--error); }
.page-heading { padding: 74px 0 55px; max-width: 790px; }
.page-heading h1 { font-size: clamp(42px, 5vw, 64px); }
.page-heading .lead { max-width: 55ch; }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 70px; padding-bottom: 90px; }
.docs-nav { position: sticky; top: 28px; align-self: start; display: grid; gap: 13px; font-size: 13px; }
.docs-nav a { text-decoration: none; color: var(--muted); }
.docs-nav a:hover { color: var(--ink); }
.docs-body { min-width: 0; }
.docs-section { padding: 40px 0; border-top: 1px solid var(--line); }
.docs-section:first-child { padding-top: 0; border-top: 0; }
.docs-section h2 { font-size: 30px; letter-spacing: -.04em; margin-bottom: 22px; }
.docs-section h3 { font-size: 19px; line-height: 1.4; margin: 28px 0 14px; }
.docs-section p { color: var(--muted); margin: 16px 0; }
.docs-section ul, .docs-section ol { color: var(--muted); padding-left: 22px; }
.docs-section li { margin: 8px 0; }
pre { margin: 18px 0; padding: 23px 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.8; tab-size: 2; }
.code-example { border: 1px solid var(--line); border-radius: 6px; margin: 18px 0; }
.code-example summary, .payment-details summary { min-height: 48px; padding: 12px 16px; cursor: pointer; font-size: 14px; }
.code-example[open] summary { border-bottom: 1px solid var(--line); }
.code-example pre { margin: 0; border: 0; border-radius: 0 0 6px 6px; }
.payment-details { margin-top: 28px; color: var(--muted); }
.payment-details summary { padding-inline: 0; }
.payment-details .checkout-meta { margin-top: 0; }
code { font-family: var(--mono); }
.code-caption { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 -8px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 12px 13px 0; vertical-align: top; }
th { font-weight: 500; color: var(--ink); }
td { color: var(--muted); }
.note { padding-left: 17px; border-left: 2px solid #697163; font-size: 14px; color: var(--muted); }
.connect-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; padding-bottom: 90px; }
.connect-contact { border-top: 1px solid var(--line); padding-top: 28px; }
.connect-contact h2 { font-size: 28px; }
.connect-contact p { margin-top: 20px; color: var(--muted); }
.contact-address { font-size: clamp(20px, 2.6vw, 30px); display: inline-block; margin-top: 28px; letter-spacing: -.03em; }
.checkout-shell { max-width: 670px; margin: 0 auto; padding: 60px 0 100px; }
.checkout-heading { padding-bottom: 28px; }
.checkout-heading h1 { font-size: 36px; letter-spacing: -.04em; }
.checkout-merchant { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.test-notice { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--warning); font-size: 13px; margin-bottom: 28px; }
.test-notice strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 3px; }
.invoice-total { font-size: 56px; letter-spacing: -.065em; line-height: 1.2; margin-top: 12px; font-variant-numeric: tabular-nums; }
.invoice-currency { font-size: 20px; color: var(--muted); letter-spacing: -.02em; }
.checkout-title { font-size: 17px; letter-spacing: -.02em; margin: 30px 0 16px; }
.networks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.network { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 20px 8px; display: flex; align-items: center; gap: 17px; }
.network:hover { background: var(--surface); }
.network[aria-pressed="true"] { background: var(--surface); }
.network-selector { width: 16px; height: 16px; border: 1px solid #707769; border-radius: 50%; flex: none; }
.network[aria-pressed="true"] .network-selector { box-shadow: inset 0 0 0 4px var(--surface); background: var(--ink); border-color: var(--ink); }
.network-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.network-name { font-weight: 500; font-size: 15px; }
.network-asset { font-size: 12px; color: var(--muted); }
.network-price { display: grid; text-align: right; gap: 4px; font-variant-numeric: tabular-nums; }
.network-total { font-size: 15px; }
.network-fee { font-size: 12px; color: var(--muted); }
.network:disabled { cursor: default; opacity: .55; }
.quote-summary { margin-top: 26px; }
.quote-summary .detail-list { margin: 0; font-size: 14px; }
.quote-summary .detail-list .total-row { font-size: 18px; border-bottom: 0; color: var(--ink); padding-top: 19px; }
.quote-summary .total-row dt { color: var(--ink); }
.quote-note { margin-top: 16px; }
.checkout-action { width: 100%; margin-top: 28px; }
.checkout-state { margin-top: 24px; font-size: 14px; color: var(--muted); }
.checkout-state[data-kind="success"] { color: var(--success); }
.checkout-state[data-kind="error"] { color: var(--error); }
.checkout-meta { margin-top: 32px; color: var(--muted); font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; line-height: 1.8; }
.complete-shell { max-width: 730px; padding: 100px 0 120px; }
.complete-shell .lead { max-width: 50ch; }
@media (max-width: 1000px) {
  .hero { gap: 45px; }
  .section-grid { gap: 60px; }
  .connect-layout { gap: 55px; }
  .docs-layout { gap: 38px; grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 78px; gap: 8px; flex-direction: column; align-items: stretch; padding: 16px 0 8px; }
  .brand { font-size: 23px; }
  .brand svg { width: 25px; }
  .product { padding-left: 12px; margin-left: 5px; font-size: 12px; }
  .nav { gap: 12px; font-size: 13px; justify-content: space-between; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 50px); }
  .lead { font-size: 16px; }
  .payment-preview { max-width: 520px; width: 100%; padding: 24px; }
  .actions { margin-top: 24px; }
  .actions .button { width: 100%; }
  .actions .text-link { min-height: 44px; padding-inline: 0; }
  .section { padding: 48px 0 54px; }
  .section-grid, .connect-layout { grid-template-columns: 1fr; gap: 42px; }
  .fee { margin-top: 4px; }
  .closing { align-items: flex-start; flex-direction: column; }
  .footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .page-heading { padding: 52px 0 42px; }
  .docs-layout { grid-template-columns: 1fr; gap: 35px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 10px 23px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .docs-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .docs-section { padding: 32px 0; }
  pre { padding: 18px; font-size: 11px; }
  .connect-layout { padding-bottom: 60px; }
  .checkout-shell { padding-top: 38px; }
  .checkout-heading h1 { font-size: 31px; }
  .invoice-total { font-size: 48px; }
  .network { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px 12px; padding: 18px 8px; }
  .network-price { grid-column: 2; text-align: left; }
  .network-asset, .network-fee { font-size: 13px; overflow-wrap: anywhere; }
  .network-total { font-size: 17px; }
  .complete-shell { padding: 65px 0 90px; }
}
@media (max-width: 420px) {
  .hero { padding-top: 32px; }
  .actions { gap: 8px; }
  .button { padding-inline: 18px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .text-link { text-align: center; }
  .page-heading h1, .complete-shell h1 { font-size: 36px; }
  .checkout-heading h1 { font-size: 28px; }
  .preview-details > div { gap: 10px; }
  .detail-list > div { gap: 12px; }
  .detail-list dt, .detail-list dd { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.top-space { margin-top: 20px; }
.bottom-space { margin-bottom: 20px; }
.no-top { margin-top: 0; }
