:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef2f3;
  background: #0b1114;
  --muted: #a5b0b5;
  --line: #2b3942;
  --gold: #c5a052;
  --gold-light: #d3b06a;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; background: radial-gradient(ellipse at 90% 0, #c5a05208, transparent 38rem); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, main:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.16; }
p, code { overflow-wrap: anywhere; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.shell { width: min(76rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .75rem; left: 1rem; transform: translateY(-180%); padding: .75rem 1rem; border-radius: .5rem; background: var(--gold); color: #0b1114; }
.skip-link:focus { transform: translateY(0); }
.topbar { display: flex; align-items: center; gap: 2rem; min-height: 7.5rem; border-bottom: 1px solid var(--line); }
.brand { min-width: 0; text-decoration: none; }
.brand strong { display: block; font-size: 1.35rem; letter-spacing: -.035em; }
.brand strong span { color: var(--muted); font-weight: 450; }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-left: auto; }
nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-size: .875rem; }
nav a:hover, .text-link:hover { color: #ead6ad; }
.environment { flex-shrink: 0; padding: .25rem .75rem; border: 1px solid #66542f; border-radius: 999px; color: var(--gold-light); font-size: .75rem; }
.hero { max-width: 48rem; padding-block: clamp(3rem, 6vw, 5rem) 2.75rem; }
.eyebrow, .card-number, .field-label { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.25rem; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5vw, 4.25rem); font-weight: 600; letter-spacing: -.055em; }
h1 span { color: var(--gold-light); }
.lead { max-width: 42rem; margin-bottom: 1.25rem; color: var(--muted); font-size: 1.125rem; }
.network-note { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 0; color: var(--muted); font-size: .8125rem; }
.network-note > span { flex: 0 0 .4rem; height: .4rem; margin-top: .48rem; border-radius: 50%; background: var(--gold); }
.endpoint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.endpoint-card { min-width: 0; padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-top-color: #8e7542; border-radius: 1rem; background: linear-gradient(145deg, #182126, #111a1f 70%); }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1.5rem; }
.service-tag, .inactive-tag { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; }
.endpoint-card h2 { margin-bottom: 1rem; font-size: 1.8rem; font-weight: 550; letter-spacing: -.035em; }
.card-copy { min-height: 5rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .9375rem; }
.base-block { padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: #0b1114; }
.field-label { display: block; margin-bottom: .5rem; font-size: .65rem; }
.base-block code { display: block; min-width: 0; color: #d8e1e5; font-size: .8125rem; line-height: 1.7; }
.endpoint-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.endpoint-list li + li { border-top: 1px solid var(--line); }
.endpoint { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: start; gap: .85rem; min-width: 0; padding: 1.1rem 0; text-decoration: none; }
.endpoint > span { min-width: 0; }
.endpoint code { color: #e5ebee; font-size: .875rem; }
.endpoint small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
a.endpoint:hover code, a.endpoint:hover .endpoint-arrow { color: var(--gold-light); }
.method { display: inline-flex; justify-content: center; padding: .2rem .3rem; border: 1px solid #46564e; border-radius: .3rem; color: #b3d1bd; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 700; }
.method-post { border-color: #66542f; color: var(--gold-light); }
.endpoint-arrow { color: var(--gold); font-size: .875rem; }
.card-note { margin: .4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.gateway-note { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-block: 1.5rem 3rem; padding: 1.5rem 2rem; border: 1px solid var(--line); border-radius: .8rem; background: #10181d; }
.gateway-note > div { min-width: 0; }
.gateway-note h2 { margin-bottom: .5rem; font-size: 1.1rem; font-weight: 550; }
.gateway-note p { max-width: 48rem; margin: 0; color: var(--muted); font-size: .875rem; }
.inactive-tag { flex-shrink: 0; }
.next-step { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; }
.next-step > div { min-width: 0; }
.next-step h2 { margin-bottom: .65rem; font-size: 1.4rem; font-weight: 550; letter-spacing: -.025em; }
.next-step p { max-width: 35rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.25rem; padding: .85rem 1.15rem; border: 1px solid var(--gold); border-radius: .6rem; background: var(--gold); color: #101519; text-decoration: none; font-size: .875rem; font-weight: 700; }
.button:hover { border-color: var(--gold-light); background: var(--gold-light); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--gold-light); font-size: .875rem; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
footer p { margin-bottom: 0; }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: .75rem 1.5rem; padding-block: 1.5rem; }
  .brand { margin-right: auto; }
  nav { order: 1; width: 100%; margin: 0; }
  .next-step { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 760px) {
  .endpoint-grid { grid-template-columns: minmax(0, 1fr); }
  .card-copy { min-height: 0; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 2.25rem); }
  .topbar { gap: .75rem; }
  .brand small { max-width: 10rem; font-size: .65rem; }
  .environment { padding-inline: .55rem; font-size: .65rem; }
  nav { gap: .25rem 1.25rem; }
  nav a { font-size: .75rem; }
  .hero { padding-top: 2.5rem; }
  .lead { font-size: 1rem; }
  .endpoint-card { padding: 1.25rem; }
  .endpoint-card h2 { font-size: 1.6rem; }
  .base-block { padding: .85rem; }
  .base-block code { font-size: .75rem; }
  .endpoint { grid-template-columns: 2.8rem minmax(0, 1fr) auto; gap: .65rem; }
  .gateway-note { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .actions, .button { width: 100%; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
