*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0052cc;
  --blue-dark: #0747a6;
  --blue-light: #deebff;
  --blue-xlight: #f0f4ff;
  --green: #00875a;
  --green-light: #e3fcef;
  --amber: #ff8b00;
  --amber-light: #fffae6;
  --text: #172b4d;
  --text-muted: #626f86;
  --border: #dfe1e6;
  --bg: #ffffff;
  --bg-subtle: #f7f8f9;
  --sidebar-w: 240px;
  --header-h: 56px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.4px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.18); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0747a6 0%, #0052cc 60%, #0065ff 100%);
  color: #fff;
  padding: 88px 28px 80px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -.6px;
  line-height: 1.1;
}
.hero .tagline {
  font-size: 1.2rem;
  opacity: .88;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-primary:hover { background: #e8f0fe; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ── Page sections (default layout) ── */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 60px 28px;
}
.section + .section { padding-top: 0; }
.section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ── Feature cards ── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin: 8px 0 32px;
}
.feature-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(0,82,204,.13);
  border-color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.card-cta { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--blue); }

/* ── Stat strip ── */
.stat-strip {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0;
  background: #fff;
}
.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ── Highlight banner ── */
.highlight-banner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #e9f2fe 0%, #f0f4ff 100%);
  border: 1px solid #b3cff7;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 28px 0;
}
.banner-icon { font-size: 26px; flex-shrink: 0; padding-top: 2px; }
.banner-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.banner-body p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.65; }

/* ── Callout panels ── */
.callout {
  display: flex;
  gap: 14px;
  border-radius: 7px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.65;
}
.callout-icon { font-size: 18px; flex-shrink: 0; padding-top: 2px; }
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: 3px; font-size: 14px; }
.callout-info { background: #e9f2fe; border: 1px solid #b3cff7; }
.callout-tip { background: var(--green-light); border: 1px solid #79f2c0; }
.callout-warning { background: var(--amber-light); border: 1px solid #ffd561; }

/* ── Visual steps ── */
.steps { list-style: none; padding: 0; margin: 20px 0 28px; }
.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,82,204,.3);
}
.step-content { padding-top: 5px; font-size: 15px; line-height: 1.65; }
.step-content strong { font-weight: 700; }

/* ── Mini feature grid (home product card) ── */
.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.feature-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
}
.feature-mini strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.feature-mini span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Sidebar ── */
.page-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 60px);
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 36px 0 36px 28px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--bg-subtle);
}
.nav-section { margin-bottom: 28px; }
.nav-section-title {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 0 8px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 5px;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--blue-xlight); color: var(--blue); }
.nav-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ── Content area (doc pages) ── */
.content {
  flex: 1;
  min-width: 0;
  padding: 48px 60px 80px;
}

.content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.4px;
  line-height: 1.2;
}
.content .page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 660px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid var(--border);
}
.content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 44px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.content h3 { font-size: 1rem; font-weight: 700; margin: 30px 0 8px; }
.content h4 { font-size: .95rem; font-weight: 700; margin: 20px 0 6px; }
.content p { margin-bottom: 16px; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 16px; }
.content li { margin-bottom: 6px; }
.content a { color: var(--blue); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content strong { font-weight: 700; }
.content em { color: var(--text-muted); }
.content code {
  font-family: "SF Mono", "Fira Code", Menlo, monospace;
  font-size: 12.5px;
  background: #f0f2f5;
  border: 1px solid #dde0e5;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}
.content pre {
  background: #1e2433;
  color: #cdd9ea;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.65;
}
.content pre code { background: none; border: none; padding: 0; color: inherit; font-size: 13px; }
.content blockquote {
  border-left: 4px solid var(--blue-light);
  padding: 10px 18px;
  color: var(--text-muted);
  margin: 0 0 18px;
  background: var(--bg-subtle);
  border-radius: 0 5px 5px 0;
  font-size: 14px;
}
.content hr { border: none; border-top: 1.5px solid var(--border); margin: 44px 0; }
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.content th {
  background: #f0f2f5;
  font-weight: 700;
  text-align: left;
  padding: 11px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.content td { padding: 11px 16px; border-top: 1px solid var(--border); }
.content tr:hover td { background: #f9fafc; }
.content .callout {
  display: flex;
  gap: 14px;
  border-radius: 7px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.65;
}
.content .callout-info { background: #e9f2fe; border: 1px solid #b3cff7; }
.content .callout-tip { background: var(--green-light); border: 1px solid #79f2c0; }
.content .callout-warning { background: var(--amber-light); border: 1px solid #ffd561; }
.content .callout-icon { font-size: 18px; flex-shrink: 0; padding-top: 2px; }
.content .callout-body { flex: 1; }
.content .callout-body strong { display: block; margin-bottom: 3px; }
.content .steps { list-style: none; padding: 0; margin: 20px 0 28px; }
.content .step-item { display: flex; gap: 18px; margin-bottom: 22px; align-items: flex-start; }
.content .step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.content .step-content { padding-top: 4px; line-height: 1.65; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 22px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .page-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; height: auto; padding: 20px 24px 4px; border-right: none; border-bottom: 1px solid var(--border); }
  .content { padding: 28px 22px 52px; }
  .hero h1 { font-size: 2rem; }
  .stat-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .feature-cards { grid-template-columns: 1fr; }
}
