:root {
  --bg: #0d0b14;
  --bg-soft: #16121f;
  --card: #1c1729;
  --border: #2c2440;
  --text: #ece9f3;
  --muted: #a79fc0;
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --brand-soft: rgba(124, 58, 237, 0.15);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

.icon {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.icon-fill { fill: currentColor; stroke: none; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 11, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .logo { font-size: 22px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px; background: radial-gradient(circle, var(--brand-soft), transparent 60%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-2); font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--brand-2), #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; font-size: 34px; margin: 0 0 12px; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 560px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-2);
}
.card .ico .icon { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Platforms */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.plat { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: 14px; transition: all .12s; }
.plat:hover { border-color: var(--brand); color: var(--text); }
.plat-more { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-2); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--border);
}
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.price-card.hl { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price-card h3 { margin: 0 0 6px; font-size: 18px; }
.price-card .amount { font-size: 40px; font-weight: 800; margin: 12px 0; }
.price-card .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.price-card li { padding: 7px 0 7px 26px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--border); position: relative; }
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Code blocks */
pre {
  background: #0a0810; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px;
  color: #d6d0ea; line-height: 1.55;
}
code { font-family: var(--mono); }
p code, li code, td code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 13px; color: var(--brand-2); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-side { position: sticky; top: 86px; }
.docs-side ul { list-style: none; padding: 0; margin: 0; }
.docs-side li { margin: 4px 0; }
.docs-side a { color: var(--muted); font-size: 14px; display: block; padding: 5px 10px; border-radius: 7px; }
.docs-side a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.endpoint { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.endpoint h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 16px; }
.method { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.method.get { background: rgba(52,211,153,.15); color: var(--ok); }
.method.post { background: var(--brand-soft); color: var(--brand-2); }
.badge-auth { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); margin-left: auto; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }

/* Playground */
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px; font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: auto; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.result-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }
.chip b { color: var(--text); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tab { padding: 9px 16px; cursor: pointer; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--brand-2); border-bottom-color: var(--brand); }
.tab-body { display: none; }
.tab-body.active { display: block; }
.report-render { background: #0a0810; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; max-height: 520px; overflow-y: auto; }
.report-render h1 { font-size: 22px; } .report-render h2 { font-size: 18px; margin-top: 20px; }
.report-render table th, .report-render table td { border-color: var(--border); }
.status { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.status.show { display: block; }
.status.ok { background: rgba(52,211,153,.12); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.status.err { background: rgba(248,113,113,.12); color: var(--err); border: 1px solid rgba(248,113,113,.3); }
.status.loading { background: var(--brand-soft); color: var(--brand-2); border: 1px solid var(--border); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--brand-2); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--muted); text-align: center; padding: 60px 20px; font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: -.5px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; }

@media (max-width: 860px) {
  .grid, .steps, .price-wrap, .pg-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .hero h1 { font-size: 38px; }
  .nav-links .hide-sm { display: none; }
}

/* =========================================================================
   Landing polish — from the 5-expert + CPO review.
   Additive/override block: depth & elevation, CJK-friendly type, two-column
   hero with product demo, honest trust chips, FAQ, compliance & footer.
   ========================================================================= */

/* Brand monogram (nav + footer share .brand .logo) */
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; font-size: 16px; line-height: 1;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, .7);
}

/* CJK titles: drop the latin negative tracking, add weight so big 中文 doesn't look cramped/cheap */
.hero h1 { letter-spacing: 0; font-weight: 800; line-height: 1.15; }
.section-title { letter-spacing: 0; font-weight: 800; }
.page-head h1 { letter-spacing: 0; font-weight: 800; }

/* Elevation: surfaces get a subtle gradient + shadow so cards read as "raised" */
.card, .price-card, .panel, .endpoint {
  background: linear-gradient(180deg, #1e1830, #181123);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -18px rgba(0, 0, 0, .85);
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 22px 48px -20px rgba(124, 58, 237, .5); }
.price-card.hl { box-shadow: 0 0 0 1px var(--brand), 0 24px 60px -24px rgba(124, 58, 237, .55); }
.btn-primary { box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(124, 58, 237, .8); }

/* Give same-background neighbouring sections a hairline of separation */
section + section { border-top: 1px solid rgba(255, 255, 255, .05); }

/* Platform chips: a touch of surface + lift so the wall doesn't read as placeholder */
.plat { background: linear-gradient(180deg, #1e1830, #181123); }
.plat:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--text); box-shadow: 0 8px 18px -10px rgba(124, 58, 237, .5); }

/* Hero: two columns (copy + product demo) */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; text-align: left; }
.hero-copy .hero-lead { font-size: 17px; color: var(--text); margin: 0 0 14px; max-width: 560px; }
.hero-copy p { color: var(--muted); max-width: 560px; margin: 0 0 18px; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-cta-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Honest trust chips (no fabricated stats) */
.trust-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
}
.trust-chip .icon { color: var(--ok); width: 1em; height: 1em; }

/* Product demo card (simulated Markdown report) */
.hero-demo {
  background: linear-gradient(180deg, #1b1530, #141021); border: 1px solid #34294f; border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .5); overflow: hidden;
}
.hero-demo .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.hero-demo .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3152; display: inline-block; }
.hero-demo .bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.demo-body { padding: 18px 20px; }
.demo-req { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.demo-method { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; padding: 2px 7px; border-radius: 6px; font-size: 11px; }
.demo-ok { margin-left: auto; color: var(--ok); font-size: 11px; }
.hero-demo h4 { margin: 0 0 12px; font-size: 15px; font-family: var(--mono); }
.demo-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.demo-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.demo-table td:first-child { color: var(--text); width: 64px; }
.demo-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-tags span { font-size: 12px; color: var(--brand-2); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }

/* Platform trademark disclaimer + compliance strip */
.platform-note { text-align: center; color: var(--muted); font-size: 12.5px; max-width: 640px; margin: 22px auto 0; line-height: 1.7; }
.compliance-strip { padding: 26px 0; }
.compliance-strip p { text-align: center; color: var(--muted); font-size: 13px; max-width: 760px; margin: 0 auto; line-height: 1.7; }

/* FAQ (native <details>) */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq p { color: var(--muted); margin: 0; padding: 14px 18px 16px; line-height: 1.7; }

/* Multi-column footer */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-slogan { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.footer-entity { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.footer-col h5 { margin: 0 0 12px; font-size: 13px; color: var(--text); }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 12.5px; color: var(--muted); }
.footer-legal a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-copy .hero-lead, .hero-copy p { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-copy .hero-actions, .trust-bar { justify-content: center; }
  .hero { padding: 56px 0 44px; }
  section { padding: 48px 0; }
  .hero h1 { font-size: 33px; }
  .section-title { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
