:root {
  color-scheme: light dark;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --text: #15202b;
  --muted: #526170;
  --line: #d9e1e8;
  --brand: #0f766e;
  --brand-strong: #0b5d57;
  --brand-soft: #e7f7f4;
  --link: #1d4ed8;
  --accent: #c2410c;
  --code-bg: #111827;
  --code-text: #e5eef7;
  --success: #047857;
  --warning-bg: #fff7ed;
  --warning-line: #fdba74;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; height: auto; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.4); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-soft); color: var(--brand); }
.site-nav .nav-cta { margin-left: 6px; background: var(--brand); color: #fff; }
.site-nav .nav-cta:hover { background: var(--brand-strong); color: #fff; }

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 64px;
}
.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #94a3b8; }
.breadcrumbs a { color: inherit; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; letter-spacing: 0; }
h1 { max-width: 900px; margin-bottom: 20px; font-size: 48px; font-weight: 820; }
h2 { margin-bottom: 18px; font-size: 30px; }
h3 { margin-bottom: 10px; font-size: 19px; }
.hero__lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button:hover { border-color: var(--brand); color: var(--brand); }
.button--primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button--primary:hover { border-color: var(--brand-strong); background: var(--brand-strong); color: #fff; }
.meta-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 17px; height: 17px; color: var(--brand); }

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  align-items: start;
}
.article { min-width: 0; }
.article section { padding: 0 0 52px; scroll-margin-top: 92px; }
.article p, .article li { color: var(--muted); }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 24px; }
.article li + li { margin-top: 8px; }
.toc {
  position: sticky;
  top: 92px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}
.toc strong { display: block; margin-bottom: 10px; font-size: 13px; color: var(--text); }
.toc a { display: block; min-height: 38px; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--brand); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature svg { width: 24px; height: 24px; margin-bottom: 16px; color: var(--brand); }
.feature p { margin: 0; font-size: 14px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps > li { position: relative; padding: 0 0 30px 54px; counter-increment: steps; }
.steps > li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }

.code-block { margin: 18px 0 22px; border: 1px solid #293548; border-radius: var(--radius); overflow: hidden; background: var(--code-bg); color: var(--code-text); box-shadow: var(--shadow); }
.code-block__label { padding: 8px 14px; border-bottom: 1px solid #293548; color: #a9b7c8; font-size: 12px; font-weight: 700; }
pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.65; tab-size: 2; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
:not(pre) > code { padding: 2px 6px; border-radius: 4px; background: var(--surface-soft); color: var(--brand-strong); font-size: 0.9em; overflow-wrap: anywhere; }

.notice { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--brand-soft); }
.notice--warning { border-left-color: var(--accent); background: var(--warning-bg); }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0; }

.endpoint-list { margin: 20px 0 0; border-top: 1px solid var(--line); }
.endpoint-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.endpoint-row code { align-self: start; color: var(--brand-strong); font-weight: 700; }
.endpoint-row p { margin: 0; }

.pricing-wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-card--featured { border: 2px solid var(--brand); }
.price-badge { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 800; }
.price-credit { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.price { margin: 0 0 18px; font-size: 36px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-size: 14px; font-weight: 650; color: var(--muted); }
.price-card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.price-card li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; }
.price-card li + li { margin-top: 8px; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.price-card .button { width: 100%; }
.pricing-facts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pricing-facts h2 { grid-column: 1 / -1; margin-bottom: 0; }
.pricing-facts p { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--text); font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--muted); }

.cta-band { border-top: 1px solid var(--line); background: var(--surface); }
.cta-band__inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 52px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin-bottom: 8px; font-size: 28px; }
.cta-band p { margin: 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #101821; color: #cbd5e1; }
.site-footer__inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 40px 0; display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.site-footer .brand { color: #f8fafc; }
.site-footer p { max-width: 440px; margin: 12px 0 0; color: #9baabd; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links strong { display: block; margin-bottom: 8px; color: #fff; font-size: 13px; }
.footer-links a { min-height: 34px; display: block; color: #cbd5e1; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #5eead4; }
.footer-bottom { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 18px 0 26px; border-top: 1px solid #263341; color: #8797a9; font-size: 12px; }

@media (max-width: 980px) {
  .site-nav .nav-secondary { display: none; }
  .page-shell { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .feature-grid, .pricing-facts { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header__inner { width: min(100% - 24px, var(--max)); min-height: 58px; gap: 10px; }
  .site-header .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 9px; font-size: 13px; }
  .site-nav .nav-hide-mobile { display: none; }
  .site-nav .nav-cta { margin-left: 2px; }
  .hero__inner, .page-shell, .pricing-wrap, .cta-band__inner, .site-footer__inner, .footer-bottom { width: calc(100% - 32px); }
  .hero__inner { padding: 48px 0 44px; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .hero__lead { font-size: 17px; }
  .page-shell, .pricing-wrap { padding: 40px 0 60px; }
  .article section { padding-bottom: 42px; }
  .feature-grid, .pricing-grid, .pricing-facts { grid-template-columns: 1fr; }
  .endpoint-row { grid-template-columns: 1fr; gap: 8px; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  pre { font-size: 12px; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1218;
    --surface: #111a23;
    --surface-soft: #19242f;
    --text: #f1f5f9;
    --muted: #afbdca;
    --line: #2a3947;
    --brand: #5eead4;
    --brand-strong: #99f6e4;
    --brand-soft: #113633;
    --link: #93c5fd;
    --accent: #fb923c;
    --warning-bg: #382416;
    --warning-line: #9a5b25;
    --shadow: none;
  }
}
