:root {
  color-scheme: light;
  --ink: #14231c;
  --muted: #617067;
  --green: #087443;
  --green-dark: #075634;
  --green-soft: #e8f5ed;
  --paper: #fffef9;
  --alt: #f4f6f1;
  --line: #dce4dd;
  --code: #10251b;
  --radius: 18px;
  --shell: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 8px 14px; color: white; background: var(--green-dark); border-radius: 8px; }
.skip:focus { top: 12px; }
.page-shell, .nav-shell, .footer-inner { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 254, 249, .96); }
.nav-shell { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 9px; font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .inline-links a:hover { color: var(--green); }
.nav-cta { padding: 7px 14px; border: 0; color: white; background: var(--green); border-radius: 999px; font-size: inherit; font-weight: inherit; }
.nav-cta:hover { background: var(--green-dark); }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; }

.hero { padding: 30px 0 32px; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-panel { overflow: hidden; padding: clamp(46px, 6vw, 76px); border-radius: 24px; color: white; background: radial-gradient(circle at 88% 8%, rgba(196, 240, 125, .14), transparent 34%), var(--green-dark); box-shadow: 0 20px 54px rgba(7, 86, 52, .14); }
.hero-copy { max-width: 980px; }
.hero .eyebrow { color: #c4f07d; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 780px; margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -.055em; }
.hero h1 { max-width: 980px; color: white; font-size: clamp(42px, 5.2vw, 64px); }
.hero h1 span { color: #c4f07d; }
.lead { max-width: 820px; margin: 26px 0 0; color: #405047; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.55; }
.hero .lead { color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .button.green { border-color: #c4f07d; color: #153625; background: #c4f07d; }
.hero .button.green:hover { border-color: #d3f69b; background: #d3f69b; }
.hero .button.secondary { border-color: rgba(255, 255, 255, .34); color: white; background: rgba(255, 255, 255, .06); }
.hero .button.secondary:hover { border-color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .1); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .17); color: rgba(255, 255, 255, .68); font-size: 14px; }
.facts span + span::before { margin-right: 24px; content: "·"; color: #c4f07d; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font-weight: 750; }
.button:hover { border-color: #afbbb2; }
.button.green { color: white; border-color: var(--green); background: var(--green); }
.button.green:hover { background: var(--green-dark); }
.button.secondary { background: transparent; }
.button.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }

.section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--alt); }
.section h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; letter-spacing: -.04em; }
.capability-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-list article { min-height: 185px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.65); }
.capability-list h3 { margin: 0 0 10px; font-size: 19px; }
.capability-list p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 28px; padding: 0; counter-reset: steps; list-style: none; }
.steps li { position: relative; min-height: 140px; padding: 26px 24px 22px 62px; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: steps; }
.steps li::before { position: absolute; left: 22px; top: 23px; width: 28px; height: 28px; display: grid; place-items: center; content: counter(steps); color: white; background: var(--green); border-radius: 50%; font-size: 13px; font-weight: 800; }
.steps strong, .steps span { display: block; }
.steps span { margin-top: 8px; color: var(--muted); }
.prompt-box { overflow: hidden; border: 1px solid #244333; border-radius: var(--radius); color: #edf7f0; background: var(--code); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid #2a4b3a; }
.prompt-head .button { color: #edf7f0; border-color: #52705f; background: transparent; }
.prompt-box pre { margin: 0; padding: 22px; overflow: auto; white-space: pre-wrap; line-height: 1.75; font-size: 13px; }
.inline-links { display: flex; gap: 24px; margin-top: 18px; font-weight: 750; }

.docs-toolbar { position: sticky; top: 70px; z-index: 10; display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 20px; padding: 14px 0; background: var(--alt); }
.docs-toolbar input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cbd6cd; border-radius: 10px; color: var(--ink); background: white; }
.docs-toolbar nav { display: flex; align-items: center; gap: 14px; overflow-x: auto; white-space: nowrap; font-size: 13px; font-weight: 750; }
.docs-toolbar nav a { color: var(--green-dark); }
.notice { margin: 10px 0 28px; padding: 14px 16px; border-left: 4px solid var(--green); color: #3f5147; background: var(--green-soft); }
.doc-group { padding: 28px 0 4px; }
.doc-group h2 { margin-bottom: 14px; font-size: 24px; }
.endpoint { border-top: 1px solid var(--line); background: rgba(255,255,255,.45); }
.endpoint:last-child { border-bottom: 1px solid var(--line); }
.endpoint summary { display: grid; grid-template-columns: 54px minmax(230px, .8fr) 1fr; align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px; cursor: pointer; list-style: none; }
.endpoint summary::-webkit-details-marker { display: none; }
.endpoint summary:hover { background: #edf2ed; }
.method { color: var(--green); font-size: 12px; font-weight: 900; }
.path { min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 650; }
.summary { min-width: 0; color: #46564d; }
.endpoint-body { padding: 4px 14px 22px 82px; }
.endpoint-body p { margin: 8px 0; }
.code-window { margin: 12px 0; overflow-x: auto; border-radius: 10px; color: #ddefe3; background: var(--code); }
.code-window pre { margin: 0; padding: 16px; font-size: 12px; }

.pricing-table { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pricing-table article { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-table h3 { margin: 0 0 18px; }
.pricing-table strong { color: var(--green-dark); font-size: 28px; }
.pricing-table p { margin: 12px 0 0; color: var(--muted); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.status-row h2 { margin-bottom: 4px; }
.status-row p { margin: 0; color: var(--muted); }
.status-row > strong { color: #197448; }
.status-row > strong[data-state="error"] { color: #b33b31; }
.status-row > strong[data-state="unknown"] { color: #726e5c; }
.site-footer { padding: 36px 0; color: #d7e7dc; background: #10251b; }
.site-footer .brand { color: white; }
.site-footer .brand-mark { background: #dcebd1; color: #10251b; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 8px 0 0; color: #9fb2a7; }

@media (max-width: 820px) {
  .page-shell, .nav-shell, .footer-inner { width: min(calc(100% - 28px), var(--shell)); }
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 62px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 18px 50px rgba(14,42,27,.14); }
  .site-nav[data-open] { display: flex; }
  .site-nav a, .site-nav button { padding: 10px 12px; }
  .nav-cta { text-align: center; }
  .hero { padding: 16px 0 22px; }
  .hero-panel { padding: 44px 30px; border-radius: 20px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .section { padding: 58px 0; }
  .capability-list, .pricing-table { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .docs-toolbar { top: 70px; grid-template-columns: 1fr; gap: 8px; }
  .endpoint summary { grid-template-columns: 48px minmax(0, 1fr); }
  .endpoint .summary { grid-column: 2; }
  .endpoint-body { padding-left: 14px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .capability-list, .pricing-table { grid-template-columns: 1fr; }
  .hero-panel { padding: 38px 22px; border-radius: 18px; }
  .hero-actions .button { width: 100%; }
  .facts { display: grid; gap: 6px; }
  .facts span + span::before { margin-right: 8px; }
  .prompt-head { align-items: flex-start; }
  .status-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
