:root {
  color-scheme: dark;
  --ink: #f6f5f1;
  --muted: #989894;
  --line: rgba(255, 255, 255, 0.11);
  --panel: #151515;
  --green: #36df83;
  --green-dark: #28bf6c;
  --black: #090909;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 4%, rgba(54, 223, 131, 0.10), transparent 24rem),
    var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.86);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > img { display: block; width: 104px; height: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--line); }
.brand-context { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.topbar-actions { display: flex; align-items: center; gap: 26px; }
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7d7d1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.network-badge img { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; }
nav { display: flex; gap: 28px; color: #c9c9c4; font-size: 13px; }
nav a:hover, footer a:hover { color: var(--green); }

.hero { padding: 112px 0 86px; }
.eyebrow, .mini-label { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
h1 { max-width: 800px; margin: 24px 0; font-size: clamp(62px, 10vw, 124px); line-height: .84; letter-spacing: -.075em; }
h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 400; }
.hero > p { max-width: 660px; color: #b7b7b1; font-size: clamp(17px, 2vw, 21px); }
.hero code { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { padding: 13px 18px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 750; }
.button.primary { border-color: var(--green); background: var(--green); color: #090909; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary:hover { border-color: #555; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 76px 0 0; border-block: 1px solid var(--line); }
.facts div { min-width: 0; padding: 22px 24px 22px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { overflow: hidden; margin: 5px 0 0; font-size: 14px; text-overflow: ellipsis; }
.network-inline { display: flex; align-items: center; gap: 7px; }
.network-inline img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 72px 1fr; margin-bottom: 36px; }
.section-heading > span { padding-top: 10px; color: var(--green); font: 700 12px/1 monospace; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { margin: 12px 0 0; color: var(--muted); }

.code-card, .response-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; }
.copy { border: 0; background: none; color: var(--green); cursor: pointer; font: inherit; }
pre { overflow-x: auto; margin: 0; padding: 24px; color: #e6e6df; font-size: 13px; line-height: 1.75; }
.response-card { position: relative; margin: 14px 0 0 72px; background: #0d0d0d; }
.status { position: absolute; top: 15px; right: 16px; color: var(--green); font: 700 11px monospace; }

.endpoint-list { margin-left: 72px; border-top: 1px solid var(--line); }
.endpoint-list article { display: grid; grid-template-columns: 56px minmax(220px, .8fr) 1fr; align-items: baseline; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.endpoint-list b { color: var(--green); font: 800 11px monospace; }
.endpoint-list code { font-size: 13px; }
.endpoint-list p { margin: 0; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 8px; margin: 0 0 12px 72px; }
.tab { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { border-color: var(--green); background: rgba(54, 223, 131, .08); color: var(--green); }
.sample { display: none; margin-left: 72px; }
.sample.active { display: block; }

.contract-table { width: calc(100% - 72px); margin-left: 72px; border-collapse: collapse; border-top: 1px solid var(--line); text-align: left; }
.contract-table caption { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
.contract-table th, .contract-table td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contract-table th:first-child, .contract-table td:first-child { width: 180px; padding-right: 20px; color: var(--muted); }
.contract-table th { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.contract-table code { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding-block: 0; background: var(--line); }
.split article { padding: 38px; background: var(--black); }
.split h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.split p { margin: 0; color: var(--muted); font-size: 14px; }
footer { display: flex; justify-content: space-between; padding-block: 42px; color: var(--muted); font-size: 12px; }
footer div { display: flex; gap: 22px; }

@media (max-width: 760px) {
  .topbar-actions { gap: 12px; }
  .network-badge span { display: none; }
  .network-badge { padding-right: 7px; }
  .brand > img { width: 90px; }
  .brand-context, .brand-divider { display: none; }
  nav a:not(:last-child) { display: none; }
  .hero { padding-top: 72px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { grid-template-columns: 42px 1fr; }
  .response-card, .endpoint-list, .tabs, .sample, .contract-table { margin-left: 0; }
  .endpoint-list article { grid-template-columns: 48px 1fr; }
  .endpoint-list p { grid-column: 2; }
  .contract-table { width: 100%; }
  .contract-table th:first-child, .contract-table td:first-child { width: 112px; }
  .split { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; }
}
