:root {
  --paper: #fff;
  --canvas: #f4f7fb;
  --canvas-strong: #eaf0f7;
  --ink: #142033;
  --ink-soft: #506078;
  --ink-muted: #7d8ba0;
  --navy: #111c2e;
  --blue: #2d63d7;
  --blue-deep: #1f4fb5;
  --blue-soft: #eaf1ff;
  --green: #16805b;
  --green-soft: #e8f7f0;
  --amber: #ad641d;
  --amber-soft: #fff4e5;
  --red: #b43b45;
  --red-soft: #fff0f1;
  --line: #dce4ee;
  --line-strong: #c5d0de;
  --shadow: 0 14px 38px rgba(20, 32, 51, .1);
  --max: 1180px;
  --header-height: 66px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.docs-body { background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 228, 238, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(45, 99, 215, .22);
}
.button-primary:hover { background: var(--blue-deep); }
.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper);
}
.button-secondary:hover { border-color: var(--blue); color: var(--blue-deep); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 20px;
}

.product-hero {
  position: relative;
  display: flex;
  min-height: 620px;
  min-height: min(720px, calc(100svh - var(--header-height) - 80px));
  overflow: hidden;
  background: #101827;
}

.hero-copy-band {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  padding: 88px 0 80px;
  background: #101827;
}

.release-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 750;
}

.release-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.product-hero .release-label { color: #8fb2ff; }
.product-hero .release-label::before { background: #42d392; }

.hero-copy h1 {
  max-width: 980px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 80px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: #bdc8d8;
  font-size: 20px;
  line-height: 1.65;
}

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

.hero-actions .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
  background: transparent;
}

.hero-actions .button-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
}

.proof-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.proof-item:last-child { border-right: 1px solid var(--line); }
.proof-item strong { display: block; font-size: 17px; }
.proof-item span { color: var(--ink-muted); font-size: 13px; }

.section { padding: 84px 0; }
.section-soft { background: var(--canvas); }
.section-dark { color: #fff; background: var(--navy); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 {
  margin: 10px 0 0;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}
.section-heading p { margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }
.section-dark .section-heading p { color: #b7c4d8; }

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.problem-statement { padding-top: 8px; }
.problem-statement h2 {
  margin: 10px 0 18px;
  font-size: 42px;
  line-height: 1.22;
}
.problem-statement p { color: var(--ink-soft); font-size: 17px; }
.outcome-list { border-top: 1px solid var(--line-strong); }
.outcome-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.outcome-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}
.outcome-item h3 { margin: 0 0 4px; font-size: 18px; }
.outcome-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

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

.capability-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.capability-index { color: var(--blue); font-size: 12px; font-weight: 800; }
.capability-card h3 { margin: 20px 0 8px; font-size: 20px; }
.capability-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.capability-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.capability-card li {
  position: relative;
  margin-top: 7px;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}
.capability-card li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.product-showcase {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.showcase-tabs { display: grid; gap: 8px; }
.showcase-tab {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.showcase-tab[aria-selected="true"] {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--blue-soft);
}
.showcase-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.showcase-panel[hidden] { display: none; }
.showcase-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.showcase-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.showcase-caption strong { font-size: 14px; }
.showcase-caption span { color: var(--ink-muted); font-size: 13px; text-align: right; }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scenario { padding: 24px 0; border-top: 3px solid var(--blue); }
.scenario:nth-child(2) { border-top-color: var(--green); }
.scenario:nth-child(3) { border-top-color: var(--amber); }
.scenario h3 { margin: 0 0 10px; font-size: 20px; }
.scenario p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.fit-grid,
.deployment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-column {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.fit-column.good { border-top: 4px solid var(--green); }
.fit-column.caution { border-top: 4px solid var(--amber); }
.fit-column h3 { margin: 0; font-size: 20px; }
.fit-column ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); }
.fit-column li + li { margin-top: 9px; }

.deployment-option {
  padding: 28px;
  border: 1px solid #31415a;
  border-radius: 8px;
  background: #18253a;
}
.deployment-option .option-label { color: #8fb1ff; font-size: 12px; font-weight: 800; }
.deployment-option h3 { margin: 10px 0 8px; font-size: 23px; }
.deployment-option p,
.deployment-option li { color: #b7c4d8; font-size: 14px; }
.deployment-option ul { margin: 18px 0 0; padding-left: 20px; }

.responsibility-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.responsibility-band > div { padding: 28px; }
.responsibility-band > div + div {
  border-left: 1px solid var(--line);
  background: var(--canvas);
}
.responsibility-band h3 { margin: 0 0 10px; font-size: 19px; }
.responsibility-band p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.final-cta {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--blue-soft);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-inner h2 { margin: 0; font-size: 38px; }
.cta-inner p { margin: 8px 0 0; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  background: var(--paper);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--blue-deep); }

/* Documentation */
.docs-intro {
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.docs-intro h1 {
  margin: 10px 0 0;
  font-size: 50px;
  line-height: 1.12;
}
.docs-intro p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}
.docs-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--canvas);
  font-size: 12px;
  font-weight: 700;
}

.docs-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 820px);
  gap: 42px;
  align-items: start;
  justify-content: center;
  padding: 38px 0 84px;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow: auto;
}
.docs-search {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  font-size: 13px;
}
.docs-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 99, 215, .12);
}
.docs-nav { display: grid; gap: 3px; margin-top: 14px; }
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.docs-nav a:hover,
.docs-nav a.active {
  border-left-color: var(--blue);
  color: var(--blue-deep);
  background: var(--blue-soft);
}
.docs-nav a[hidden] { display: none; }
.toc-toggle { display: none; }
.docs-content { min-width: 0; }

.doc-section {
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.doc-section + .doc-section { margin-top: 20px; }
.doc-section h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.28; }
.doc-section h3 { margin: 30px 0 10px; font-size: 19px; }
.doc-section p { margin: 10px 0; color: var(--ink-soft); }
.doc-section ul,
.doc-section ol { margin: 12px 0; padding-left: 23px; color: var(--ink-soft); }
.doc-section li + li { margin-top: 6px; }
.doc-section strong { color: var(--ink); }
.doc-section :not(pre) > code {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
  background: var(--canvas);
  font: 13px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}
.doc-section a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-grid,
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.doc-option,
.check-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
}
.doc-option h3 { margin: 0 0 6px; font-size: 17px; }
.doc-option p { margin: 0; font-size: 13px; }

.steps { margin-top: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 28px 50px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 7px;
  left: 15px;
  width: 1px;
  background: var(--line-strong);
}
.step h3 { margin: 0 0 5px; font-size: 18px; }
.step p { margin-top: 5px; }

.code-block {
  position: relative;
  margin: 14px 0 18px;
  overflow: hidden;
  border: 1px solid #273650;
  border-radius: 7px;
  background: var(--navy);
}
.code-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px 20px;
  color: #e7eef9;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre;
}
.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 52px;
  height: 30px;
  border: 1px solid #41516b;
  border-radius: 6px;
  color: #c8d5e7;
  background: #1d2b42;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.copy-button:hover { color: #fff; border-color: #8fb1ff; }

.callout {
  margin: 18px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 7px 7px 0;
  color: var(--ink-soft);
  background: var(--blue-soft);
  font-size: 14px;
}
.callout.warning { border-left-color: var(--amber); background: var(--amber-soft); }
.callout.danger { border-left-color: var(--red); background: var(--red-soft); }
.callout.success { border-left-color: var(--green); background: var(--green-soft); }

.doc-table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-table th,
.doc-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc-table th { color: var(--ink-soft); background: var(--canvas); font-weight: 750; }
.doc-table tr:last-child td { border-bottom: 0; }

.check-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}
.check-item::before { content: "✓"; color: var(--green); font-weight: 900; }

@media (max-width: 960px) {
  .product-hero {
    min-height: min(640px, calc(100svh - var(--header-height) - 80px));
  }
  .hero-copy h1 { font-size: 64px; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 4px; }
  .header-actions .button-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .problem-grid,
  .product-showcase { grid-template-columns: 1fr; gap: 30px; }
  .showcase-tabs {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    overflow-x: auto;
  }
  .showcase-tab { white-space: nowrap; }
  .docs-shell { grid-template-columns: 1fr; gap: 18px; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; }
  .toc-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
  }
  .docs-sidebar-panel {
    display: none;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
  }
  .docs-sidebar-panel.open { display: block; }
}

@media (max-width: 720px) {
  :root { --header-height: 60px; }
  .container { width: min(100% - 28px, var(--max)); }
  .header-actions .button-primary { display: none; }
  .product-hero {
    min-height: min(620px, calc(100svh - var(--header-height) - 72px));
  }
  .hero-copy-band { padding: 54px 0 48px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy .lead { font-size: 17px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item,
  .proof-item:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .section { padding: 60px 0; }
  .section-heading h2,
  .problem-statement h2,
  .cta-inner h2 { font-size: 31px; }
  .capability-grid,
  .scenario-grid,
  .fit-grid,
  .deployment-grid,
  .responsibility-band,
  .doc-grid,
  .checklist { grid-template-columns: 1fr; }
  .responsibility-band > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .showcase-tabs { grid-template-columns: repeat(4, 150px); }
  .showcase-caption,
  .cta-inner,
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .showcase-caption { gap: 3px; }
  .showcase-caption span { text-align: left; }
  .footer-inner { padding: 24px 0; }
  .docs-intro { padding: 36px 0 30px; }
  .docs-intro h1 { font-size: 36px; }
  .docs-shell { padding-top: 20px; }
  .doc-section { padding: 26px 20px; }
  .doc-section h2 { font-size: 24px; }
  .step { padding-left: 44px; }
  .code-block pre { padding: 46px 16px 16px; font-size: 12px; }
}

@media (max-width: 360px) {
  .product-hero {
    min-height: min(560px, calc(100svh - var(--header-height) - 64px));
  }
  .hero-copy-band { padding: 44px 0 40px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy .lead { font-size: 15px; line-height: 1.55; }
  .hero-actions { margin-top: 22px; }
}

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