:root {
  --paper: #f5f8fc;
  --paper-raised: #ffffff;
  --paper-deep: #e9eff7;
  --ink: #0b1424;
  --ink-soft: #42516a;
  --ink-muted: #68768a;
  --line: #cfdaea;
  --line-strong: #a8b8ce;
  --signal: #2457e6;
  --signal-dark: #173aa6;
  --signal-soft: #e8eeff;
  --success: #087f6c;
  --success-soft: #e1f5f0;
  --warning: #8a5a00;
  --warning-soft: #fff3d6;
  --code: #0c1729;
  --code-soft: #15233a;
  --code-text: #e9f0fb;
  --code-muted: #91a4bd;
  --code-key: #8fb5ff;
  --code-string: #74d6bf;
  --shadow-sm: 0 1px 2px rgba(11, 20, 36, 0.06), 0 8px 24px rgba(11, 20, 36, 0.05);
  --shadow-lg: 0 24px 70px rgba(25, 50, 92, 0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --page: min(1180px, calc(100% - 40px));
  --sans: Inter, "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(82, 108, 147, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 108, 147, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 620px;
  background:
    radial-gradient(circle at 72% 12%, rgba(36, 87, 230, 0.13), transparent 34%),
    radial-gradient(circle at 16% 26%, rgba(8, 127, 108, 0.09), transparent 28%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(36, 87, 230, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--signal-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(168, 184, 206, 0.7);
  background: rgba(245, 248, 252, 0.91);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: var(--page);
  min-height: 70px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  place-items: center;
  background: var(--ink);
}

.brand-mark::before {
  width: 14px;
  height: 8px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: skewX(-24deg);
}

.brand-divider {
  color: var(--line-strong);
  font-weight: 400;
}

.brand-context {
  color: var(--ink-soft);
  font-weight: 560;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.nav-actions a,
.locale-toggle,
.nav-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.89rem;
  font-weight: 640;
  text-decoration: none;
}

.nav-links a,
.nav-actions a {
  padding: 0 12px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-actions a:hover,
.locale-toggle:hover {
  color: var(--ink);
  background: rgba(207, 218, 234, 0.45);
}

.locale-toggle {
  min-width: 46px;
  padding: 0 9px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--signal);
  box-shadow: 0 9px 22px rgba(36, 87, 230, 0.22);
}

.button-primary:hover {
  background: var(--signal-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

.button-secondary:hover {
  border-color: var(--ink-soft);
  background: #fff;
}

.button-small {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 0.86rem;
}

.status-strip {
  border-bottom: 1px solid rgba(168, 184, 206, 0.55);
  background: rgba(255, 243, 214, 0.72);
}

.status-strip-inner {
  display: flex;
  width: var(--page);
  min-height: 42px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #634100;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bd7900;
  box-shadow: 0 0 0 4px rgba(189, 121, 0, 0.12);
}

.page-shell,
.section-shell,
.hero-shell {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 9px;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 6.8vw, 6.25rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 31px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  display: flex;
  margin-top: 20px;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.hero-note svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--success);
  stroke-width: 2;
}

.request-console {
  overflow: hidden;
  border: 1px solid #263a5a;
  border-radius: var(--radius-lg);
  background: var(--code);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.8deg);
}

.console-topbar {
  display: flex;
  min-height: 48px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(145, 164, 189, 0.18);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52667f;
}

.console-code {
  overflow-x: auto;
  margin: 0;
  padding: 26px 24px 20px;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
  white-space: pre;
}

.console-code .method,
.method-badge.post {
  color: #75d6bf;
}

.console-code .path,
.method-badge.get {
  color: #8fb5ff;
}

.console-code .muted {
  color: var(--code-muted);
}

.trace {
  position: relative;
  display: grid;
  padding: 17px 20px 22px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(145, 164, 189, 0.16);
}

.trace::before {
  position: absolute;
  top: 30px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: rgba(143, 181, 255, 0.42);
  content: "";
}

.trace-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-align: center;
}

.trace-node i {
  display: block;
  width: 13px;
  height: 13px;
  border: 3px solid var(--code);
  border-radius: 50%;
  background: #8fb5ff;
  box-shadow: 0 0 0 1px #8fb5ff;
}

.trace-node:first-child i,
.trace-node:last-child i {
  background: #74d6bf;
  box-shadow: 0 0 0 1px #74d6bf;
}

.trust-row {
  display: grid;
  padding: 24px 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  min-width: 0;
  padding: 5px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.trust-item span {
  color: var(--ink-muted);
  font-size: 0.79rem;
}

.section {
  padding: 96px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(233, 239, 247, 0.55);
}

.section-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-heading p {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.use-card,
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.use-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
}

.use-card::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.card-label {
  display: inline-flex;
  margin-bottom: 30px;
  align-items: center;
  gap: 8px;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-label::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--signal);
  content: "";
}

.use-card h3,
.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.use-card p,
.info-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1.38fr);
  gap: 70px;
}

.workflow-intro {
  position: sticky;
  top: 112px;
  align-self: start;
}

.workflow-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.workflow-intro p {
  color: var(--ink-soft);
}

.workflow-list {
  counter-reset: workflow;
}

.workflow-step {
  position: relative;
  display: grid;
  min-height: 150px;
  padding: 28px 0 32px 70px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  border-top: 1px solid var(--line);
  counter-increment: workflow;
}

.workflow-step:last-child {
  border-bottom: 1px solid var(--line);
}

.workflow-step::before {
  position: absolute;
  top: 27px;
  left: 0;
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--signal-dark);
  background: var(--paper-raised);
  content: counter(workflow, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  place-items: center;
}

.workflow-step h3 {
  margin-bottom: 7px;
  font-size: 1.2rem;
}

.workflow-step p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.endpoint {
  display: inline-flex;
  min-height: 32px;
  padding: 0 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.71rem;
  white-space: nowrap;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
  gap: 54px;
}

.quickstart-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 3.9rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.quickstart-copy > p {
  color: var(--ink-soft);
}

.quick-list {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  gap: 17px;
  list-style: none;
}

.quick-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.quick-list b {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: var(--signal-dark);
  background: var(--signal-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  place-items: center;
}

.code-panel {
  overflow: hidden;
  border: 1px solid #263a5a;
  border-radius: var(--radius-md);
  background: var(--code);
  box-shadow: var(--shadow-lg);
}

.code-tabs {
  display: flex;
  min-height: 50px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(145, 164, 189, 0.18);
}

.code-tab-list {
  display: flex;
  align-items: center;
  gap: 3px;
}

.code-tab,
.copy-button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: var(--code-muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.code-tab[aria-selected="true"] {
  color: var(--code-text);
  background: var(--code-soft);
}

.copy-button:hover,
.code-tab:hover {
  color: var(--code-text);
}

.code-sample {
  display: none;
  overflow-x: auto;
  min-height: 260px;
  margin: 0;
  padding: 24px;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  white-space: pre;
}

.code-sample.is-active {
  display: block;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contract-card {
  padding: 26px;
  border-top: 2px solid var(--signal);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
}

.contract-card h3 {
  margin-bottom: 9px;
  font-size: 1.03rem;
}

.contract-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: clamp(38px, 7vw, 76px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.cta-panel::after {
  position: absolute;
  top: 50%;
  right: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(143, 181, 255, 0.32);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  max-width: 650px;
  margin-bottom: 13px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.cta-copy p {
  max-width: 630px;
  margin-bottom: 0;
  color: #b9c7d9;
}

.cta-panel .button {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: #fff;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: rgba(245, 248, 252, 0.82);
}

.footer-shell {
  display: flex;
  width: var(--page);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-copy,
.footer-links {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Documentation */
.docs-hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.docs-hero h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.docs-hero p {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.07rem;
}

.docs-layout {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 46px 0 96px;
  grid-template-columns: 220px minmax(0, 760px) minmax(180px, 1fr);
  gap: 42px;
  align-items: start;
}

.docs-sidebar,
.docs-on-this-page {
  position: sticky;
  top: 104px;
}

.docs-sidebar-title,
.docs-on-this-page h2 {
  margin-bottom: 12px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-nav,
.toc-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 2px;
  list-style: none;
}

.docs-nav a,
.toc-list a {
  display: flex;
  min-height: 38px;
  padding: 7px 10px;
  align-items: center;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.docs-nav a:hover,
.docs-nav a.is-active,
.toc-list a:hover {
  color: var(--signal-dark);
  background: var(--signal-soft);
}

.docs-nav .group-label {
  margin: 18px 10px 5px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-main {
  min-width: 0;
}

.doc-section {
  padding: 0 0 62px;
}

.doc-section + .doc-section {
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.doc-section h3 {
  margin: 34px 0 11px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.doc-section p,
.doc-section li {
  color: var(--ink-soft);
}

.doc-section ul,
.doc-section ol {
  padding-left: 22px;
}

.doc-section li + li {
  margin-top: 7px;
}

.inline-code,
.doc-section code:not(pre code) {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--signal-dark);
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 0.82em;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.76);
}

.callout.warning {
  border-left-color: #bd7900;
  background: var(--warning-soft);
}

.callout.success {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.callout p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.doc-code {
  position: relative;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid #263a5a;
  border-radius: var(--radius-sm);
  background: var(--code);
}

.doc-code pre {
  overflow-x: auto;
  margin: 0;
  padding: 21px;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.72;
  white-space: pre;
}

.doc-code .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(145, 164, 189, 0.2);
  background: var(--code-soft);
}

.resource-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.83rem;
}

.resource-table th,
.resource-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.resource-table th {
  color: var(--ink);
  background: var(--paper-deep);
  font-size: 0.75rem;
}

.resource-table td {
  color: var(--ink-soft);
}

.resource-table tr:last-child td {
  border-bottom: 0;
}

.method-badge {
  display: inline-flex;
  min-width: 52px;
  min-height: 25px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.method-badge.get {
  color: #1749bc;
  background: #e4edff;
}

.method-badge.post {
  color: #006853;
  background: #dbf5ed;
}

.method-badge.patch {
  color: #714400;
  background: #fff0cf;
}

.method-badge.delete {
  color: #a02e35;
  background: #ffeaeb;
}

/* Reference */
.reference-controls {
  position: sticky;
  top: 70px;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 252, 0.94);
  backdrop-filter: blur(18px);
}

.reference-controls-inner {
  display: grid;
  width: var(--page);
  min-height: 74px;
  margin: 0 auto;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.search-field,
.filter-select {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.search-field {
  width: 100%;
  padding: 0 15px;
  font-size: 16px;
}

.filter-select {
  padding: 0 38px 0 13px;
  font-size: 0.85rem;
}

.reference-meta {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.reference-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 44px 0 96px;
}

.reference-group {
  margin-bottom: 48px;
}

.reference-group-title {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.reference-group-title span {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.operation-list {
  display: grid;
  gap: 9px;
}

.operation {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.operation summary {
  display: grid;
  min-height: 62px;
  padding: 9px 15px;
  grid-template-columns: 60px minmax(210px, 0.75fr) minmax(250px, 1fr) 24px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

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

.operation summary:hover {
  background: rgba(232, 238, 255, 0.55);
}

.operation-path {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-summary {
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.operation-chevron {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2;
  transition: transform 160ms ease;
}

.operation[open] .operation-chevron {
  transform: rotate(180deg);
}

.operation-body {
  display: grid;
  padding: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  background: rgba(245, 248, 252, 0.8);
}

.operation-block h3 {
  margin-bottom: 9px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.operation-block p,
.operation-block li {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.operation-block ul {
  margin: 0;
  padding-left: 18px;
}

.operation-block code {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  min-height: 28px;
  padding: 0 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: #fff;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.empty-state {
  padding: 48px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .quickstart-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 54px;
  }

  .request-console {
    max-width: 680px;
    transform: none;
  }

  .workflow-intro {
    position: static;
    max-width: 680px;
  }

  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .docs-on-this-page {
    display: none;
  }

  .operation summary {
    grid-template-columns: 58px minmax(180px, 0.75fr) minmax(190px, 1fr) 20px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 30px, 680px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px 15px 15px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .nav-actions .button-small {
    display: none;
  }

  .hero {
    padding: 62px 0 58px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 15vw, 5rem);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading,
  .card-grid,
  .contract-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    padding: 17px;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    border-bottom: 0;
  }

  .trust-item:first-child {
    padding-left: 17px;
  }

  .workflow-step {
    padding-left: 58px;
    grid-template-columns: 1fr;
  }

  .workflow-step::before {
    width: 38px;
    height: 38px;
  }

  .endpoint {
    justify-self: start;
    white-space: normal;
  }

  .cta-panel .button {
    justify-self: start;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-layout {
    display: block;
    padding-top: 26px;
  }

  .docs-sidebar {
    position: static;
    overflow-x: auto;
    margin-bottom: 38px;
    padding-bottom: 8px;
  }

  .docs-sidebar-title,
  .docs-nav .group-label {
    display: none;
  }

  .docs-nav {
    display: flex;
    width: max-content;
    gap: 5px;
  }

  .docs-nav a {
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
  }

  .resource-table {
    display: block;
    overflow-x: auto;
  }

  .reference-controls {
    top: 70px;
  }

  .reference-controls-inner {
    padding: 12px 0;
    grid-template-columns: 1fr 130px;
  }

  .reference-meta {
    grid-column: 1 / -1;
  }

  .operation summary {
    min-height: 82px;
    grid-template-columns: 55px minmax(0, 1fr) 20px;
  }

  .operation-summary {
    grid-column: 2 / 3;
  }

  .operation-path {
    white-space: normal;
    word-break: break-word;
  }

  .operation-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand-context,
  .brand-divider {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trace {
    padding-inline: 10px;
  }

  .trace-node {
    font-size: 0.58rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .code-tabs {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
