:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f0f3f8;
  --text: #18212f;
  --muted: #667085;
  --border: #e4e7ec;
  --brand: #d71920;
  --brand-dark: #a90e14;
  --ink: #111827;
  --code: #101828;
  --success: #087443;
  --warning: #9a6700;
  --shadow: 0 12px 35px rgba(16, 24, 40, .08);
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.main-nav { display: flex; gap: 22px; align-items: center; flex: 1; }
.main-nav a, .lang-switch a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.main-nav a:hover, .main-nav a.active, .lang-switch a:hover, .lang-switch a.active { color: var(--brand); }
.lang-switch { display: flex; gap: 9px; align-items: center; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
}
.hero {
  padding: 86px 0 64px;
  background:
    radial-gradient(circle at 80% 10%, rgba(215,25,32,.13), transparent 32%),
    linear-gradient(180deg, #fff, var(--bg));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hero h1 {
  max-width: 800px;
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}
.actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: white; border-color: var(--border); }
.env-grid, .feature-grid, .endpoint-grid {
  display: grid;
  gap: 18px;
}
.env-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.endpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 9px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.env-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.env-url { display: block; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; }
.section { padding: 70px 0; }
.section-alt { background: white; border-block: 1px solid var(--border); }
.section-title { margin: 0 0 12px; font-size: 34px; letter-spacing: -.025em; }
.section-intro { margin: 0 0 30px; max-width: 760px; color: var(--muted); }
.method {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: var(--success);
  margin-right: 9px;
}
.method.post { background: #175cd3; }
.endpoint-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.page-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 42px; padding: 46px 0 80px; }
.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.sidebar a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.sidebar a:hover, .sidebar a.active { color: var(--brand); background: #fff1f1; }
.prose { min-width: 0; }
.prose h1 { font-size: 42px; line-height: 1.13; margin-top: 0; letter-spacing: -.035em; }
.prose h2 { margin-top: 44px; font-size: 27px; letter-spacing: -.02em; }
.prose h3 { margin-top: 30px; font-size: 20px; }
.prose p, .prose li { color: #475467; }
.prose code:not(pre code) {
  background: #eef1f5;
  border: 1px solid #e1e5ea;
  padding: 2px 6px;
  border-radius: 6px;
  color: #344054;
}
pre {
  background: var(--code);
  color: #f2f4f7;
  border-radius: 13px;
  padding: 19px;
  overflow-x: auto;
  line-height: 1.55;
  box-shadow: var(--shadow);
}
.callout {
  border-left: 4px solid var(--brand);
  background: #fff5f5;
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 22px 0;
}
.callout.warning { border-color: #f79009; background: #fffaeb; }
.callout.success { border-color: #12b76a; background: #ecfdf3; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; border: 1px solid var(--border); padding: 12px; vertical-align: top; }
th { background: var(--surface-alt); }
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.api-frame { width: 100%; min-height: calc(100vh - 69px); border: 0; display: block; }
.ref-bar {
  min-height: 52px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111827;
  color: white;
  font-size: 14px;
}
.ref-bar a { color: white; text-decoration: none; }
.ref-bar .spacer { flex: 1; }
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .lang-switch { margin-left: 0; }
  .feature-grid, .endpoint-grid { grid-template-columns: 1fr; }
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 620px) {
  .env-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: 43px; }
}