:root {
  color-scheme: light;
  --ink: #172033;
  --ink-strong: #0b1220;
  --muted: #68748a;
  --muted-light: #8d98aa;
  --line: #e3e8f1;
  --line-strong: #d4dbe8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-blue: #eef6ff;
  --page: #f2f5fa;
  --navy: #081225;
  --navy-soft: #0d1d38;
  --blue: #0e9bb3;
  --blue-dark: #087d96;
  --cyan: #11c5dd;
  --violet: #7c69ef;
  --green: #16865b;
  --green-soft: #e9f7f0;
  --violet-soft: #f1efff;
  --amber: #9a6412;
  --amber-soft: #fff6dd;
  --shadow: 0 20px 60px rgba(29, 52, 89, 0.1);
  --header-height: 72px;
  --page-inline: 20px;
  --title-hero: 30px;
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
}

@supports (padding: constant(safe-area-inset-top)) {
  :root {
    --safe-top: constant(safe-area-inset-top);
    --safe-right: constant(safe-area-inset-right);
    --safe-bottom: constant(safe-area-inset-bottom);
    --safe-left: constant(safe-area-inset-left);
  }
}

@supports (padding: env(safe-area-inset-top)) {
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.7;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
  border-style: none;
  vertical-align: middle;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: rgba(17, 197, 221, 0.18);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  z-index: 50;
  top: 0;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  padding-right: var(--safe-right);
  padding-left: var(--safe-left);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(8, 18, 37, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 40px);
  width: min(1480px, calc(100% - 40px));
  height: var(--header-height);
  margin: auto;
}

.brand-wrap,
.topbar-actions,
.brand {
  display: flex;
  align-items: center;
}

.brand-wrap {
  min-width: 0;
  gap: 18px;
}

.brand {
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(17, 197, 221, 0.18);
}

.top-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.current-section {
  overflow: hidden;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.home-link,
.product-link,
.language-toggle,
.menu-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.home-link,
.product-link {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.home-link:hover,
.product-link:hover {
  border-color: rgba(17, 197, 221, 0.45);
  color: #fff;
  background: rgba(17, 197, 221, 0.1);
}

.product-link {
  border-color: rgba(17, 197, 221, 0.38);
  color: var(--cyan);
}

.language-toggle {
  display: grid;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  place-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.language-toggle:hover {
  border-color: rgba(17, 197, 221, 0.45);
  color: var(--cyan);
  background: rgba(17, 197, 221, 0.1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  cursor: pointer;
}

.menu-button svg {
  width: 18px;
  height: 18px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 24px;
  width: calc(100% - 40px);
  width: min(1480px, calc(100% - 40px));
  margin: 24px auto 0;
}

.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top) + 24px);
  align-self: start;
  height: calc(100vh - var(--header-height) - 48px);
  height: calc(100dvh - var(--header-height) - var(--safe-top) - 48px);
  padding: 18px 14px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 35px rgba(34, 57, 91, 0.07);
}

.sidebar-intro {
  padding: 4px 8px 16px;
}

.sidebar-actions {
  display: none;
}

.sidebar-product-link,
.sidebar-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sidebar-product-link {
  border-color: #14233d;
  background: #14233d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 35, 61, 0.14);
}

.sidebar-home-link {
  background: var(--surface-soft);
  color: #46546b;
}

.sidebar-intro strong {
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
}

.sidebar-intro span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  color: #8a96aa;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.search-box input:focus {
  border-color: rgba(57, 124, 246, 0.6);
  background: white;
  box-shadow: 0 0 0 3px rgba(57, 124, 246, 0.1);
}

.nav-group {
  margin: 17px 8px 7px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-group:first-of-type {
  margin-top: 2px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 2px 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #48566e;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-button::before {
  width: 6px;
  height: 6px;
  border: 1px solid #a7b2c4;
  border-radius: 50%;
  content: "";
}

.nav-button:hover {
  background: #f0f4fa;
  color: var(--ink-strong);
  transform: translateX(2px);
}

.nav-button.active {
  background: #e8f2ff;
  color: #1763cc;
  font-weight: 700;
}

.nav-button.active::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(57, 124, 246, 0.13);
}

.content-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-header {
  position: relative;
  min-height: 188px;
  padding: 36px 46px 30px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 90% 14%,
      rgba(34, 191, 210, 0.16),
      transparent 31%
    ),
    radial-gradient(
      circle at 68% 120%,
      rgba(124, 105, 239, 0.12),
      transparent 34%
    ),
    linear-gradient(145deg, #fbfdff 0%, #f4f8ff 100%);
}

.content-header::after {
  position: absolute;
  top: 24px;
  right: 38px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(57, 124, 246, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(57, 124, 246, 0.035),
    0 0 0 52px rgba(57, 124, 246, 0.02);
  content: "";
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-header h1 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  color: var(--ink-strong);
  font-size: var(--title-hero);
  font-weight: 730;
  letter-spacing: 0;
  line-height: 1.3;
}

.content-header .lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 14px 0 0;
  color: #5d6b82;
  font-size: 14px;
  line-height: 1.68;
}

.status-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 820px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #dce5f1;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #526078;
  font-size: 12px;
  line-height: 1.6;
}

.demo-notice {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: 820px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #d8e7f6;
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  background: rgba(238, 246, 255, 0.72);
  color: #3f4e66;
  font-size: 12px;
  line-height: 1.6;
}

.demo-notice strong {
  color: var(--ink-strong);
  font-size: 12px;
}

.status-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-badge.available {
  background: var(--green-soft);
  color: var(--green);
}

.status-badge.evolving {
  background: var(--violet-soft);
  color: #6248c9;
}

.status-badge.planned {
  background: var(--amber-soft);
  color: var(--amber);
}

.doc-content {
  padding: 42px 58px 68px;
}

.summary-grid,
.card-grid,
.comparison-grid {
  display: grid;
  gap: 12px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.summary-item {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.summary-item span,
.rail-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
  line-height: 1.55;
}

.doc-section {
  margin-top: 42px;
}

.doc-section:first-child {
  margin-top: 0;
}

.doc-section h2 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.35;
}

.section-intro {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.product-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #c7d5e8;
  border-radius: 15px;
  background: #0e1117;
  box-shadow: 0 20px 46px rgba(20, 45, 81, 0.12);
}

.figure-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #181d26, #11151c);
}

.figure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #445064;
}

.figure-dot:first-child {
  background: #6fa8ff;
}

.figure-label {
  overflow: hidden;
  margin-left: 5px;
  color: #aeb9ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.figure-link {
  display: block;
  background: #0b0e13;
  cursor: zoom-in;
}

.product-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease;
}

.figure-link:hover img {
  opacity: 0.96;
  transform: scale(1.004);
}

.product-figure figcaption {
  padding: 13px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #121721;
  color: #aeb9ca;
  font-size: 11px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid .product-figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.gallery-grid .figure-link {
  display: grid;
  flex: 1;
  place-items: center;
  background: #edf2f7;
}

.gallery-grid .product-figure img {
  max-height: 520px;
  object-fit: contain;
}

.gallery-grid .product-figure figcaption {
  flex: 1;
}

.gallery-grid .product-figure--compact .figure-link {
  padding: 16px;
}

.gallery-grid .product-figure--compact img {
  width: auto;
  max-width: 100%;
  max-height: 252px;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding:
    calc(20px + var(--safe-top)) calc(20px + var(--safe-right))
    calc(20px + var(--safe-bottom)) calc(20px + var(--safe-left));
  color: #fff;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(6, 12, 23, 0.78);
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  width: min(1180px, 96vw);
  max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
  margin: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(178, 205, 245, 0.28);
  border-radius: 8px;
  background: #07101f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: translateY(6px) scale(0.985);
  transition: transform 0.18s ease;
}

.image-lightbox.open .image-lightbox-panel {
  transform: translateY(0) scale(1);
}

.image-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 14px;
  padding: 11px 12px 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #101827;
}

.image-lightbox-header strong {
  overflow: hidden;
  color: #dce8f8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-close {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  place-items: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.image-lightbox-close:hover {
  border-color: rgba(17, 197, 221, 0.52);
  background: rgba(17, 197, 221, 0.14);
  color: #fff;
}

.image-lightbox-media {
  display: grid;
  overflow: auto;
  min-height: 0;
  background: #050912;
  place-items: center;
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 152px - var(--safe-top) - var(--safe-bottom));
  object-fit: contain;
}

.image-lightbox-caption {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #101827;
  color: #c8d3e3;
  font-size: 12px;
  line-height: 1.6;
}

.topology {
  overflow: hidden;
  border: 1px solid #233654;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at top right,
      rgba(68, 138, 255, 0.2),
      transparent 34%
    ),
    linear-gradient(145deg, #101a2b, #17243a 62%, #0e1727);
  box-shadow: 0 22px 48px rgba(18, 35, 60, 0.16);
}

.topology-layer {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topology-layer:last-child {
  border-bottom: 0;
}

.topology-layer-title {
  color: #8fbaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topology-nodes {
  display: grid;
  grid-template-columns: repeat(
    var(--topology-count, 3),
    minmax(0, 1fr)
  );
  gap: 10px;
}

.topology-node {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(159, 193, 241, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.topology-node strong,
.topology-node span {
  display: block;
}

.topology-node strong {
  color: white;
  font-size: 12px;
}

.topology-node span {
  margin-top: 5px;
  color: #aebed5;
  font-size: 10px;
  line-height: 1.5;
}

.card-grid,
.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-card,
.comparison-card {
  padding: 20px 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.capability-card:hover {
  border-color: #b9cbea;
  box-shadow: 0 14px 30px rgba(37, 68, 113, 0.08);
  transform: translateY(-2px);
}

.card-kicker {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-card h3,
.comparison-card h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 16px;
  letter-spacing: -0.015em;
}

.capability-card p,
.comparison-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(var(--flow-count, 4), minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #cfe1f8;
  border-radius: 13px;
  background: #cfe1f8;
}

.flow-step {
  position: relative;
  min-height: 96px;
  padding: 19px 20px;
  background: var(--surface-blue);
}

.flow-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #cfe1f8;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  content: "→";
  font-size: 10px;
  transform: translateY(-50%);
}

.flow-step b,
.flow-step span {
  display: block;
}

.flow-step b {
  color: var(--ink-strong);
  font-size: 13px;
}

.flow-step span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.detail-list,
.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list li,
.step-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: #506078;
  font-size: 13px;
  line-height: 1.65;
}

.detail-list li {
  padding: 14px 16px 14px 39px;
}

.detail-list li::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  content: "";
}

.step-list {
  counter-reset: steps;
}

.step-list li {
  padding: 16px 18px 16px 54px;
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 14px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e6f1ff;
  color: var(--blue-dark);
  content: counter(steps);
  font-size: 11px;
  font-weight: 800;
}

.comparison-card {
  background: var(--surface-soft);
}

.comparison-card.current {
  border-top: 3px solid var(--green);
}

.comparison-card.future {
  border-top: 3px solid var(--violet);
}

.comparison-card .status-badge {
  margin-bottom: 18px;
}

.callout {
  margin-top: 20px;
  padding: 17px 18px;
  border: 1px solid #cfe1f8;
  border-left: 4px solid var(--blue);
  border-radius: 11px;
  background: #f4f9ff;
  color: #4e607c;
  font-size: 13px;
  line-height: 1.7;
}

.callout strong {
  color: var(--ink-strong);
}

pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid #1f2c43;
  border-radius: 13px;
  background: var(--navy);
  color: #dce9ff;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  tab-size: 2;
}

.doc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-pager-button,
.doc-pager-spacer {
  min-height: 82px;
}

.doc-pager-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: var(--surface);
  color: #3f4f6c;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 28px rgba(36, 55, 86, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.doc-pager-button.next {
  text-align: right;
}

.doc-pager-button:hover {
  border-color: #a9c5ee;
  color: var(--blue-dark);
  box-shadow: 0 16px 34px rgba(36, 70, 118, 0.12);
  transform: translateY(-1px);
}

.doc-pager-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.doc-pager-copy span {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-pager-copy strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-pager-button:hover .doc-pager-copy strong {
  color: var(--blue-dark);
}

.doc-pager-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d4e1f4;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.doc-pager-button:hover .doc-pager-arrow {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.context-rail {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  display: grid;
  gap: 14px;
}

.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(34, 57, 91, 0.055);
}

.rail-card h2 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 13px;
}

.rail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.rail-facts {
  display: grid;
  gap: 11px;
}

.rail-fact {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.rail-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rail-fact strong {
  display: block;
  color: #3f4e66;
  font-size: 11px;
  line-height: 1.55;
}

.offline-note {
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 40px);
  width: min(1480px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 28px 4px calc(42px + var(--safe-bottom));
  color: #7b879a;
  font-size: 11px;
}

.footer-safety {
  display: grid;
  max-width: 760px;
  gap: 8px;
}

.footer-safety > span {
  color: #7b879a;
}

.footer-safety > strong {
  color: #4e5c72;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.footer-policy-links a {
  color: #5c6a80;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer-policy-links a:hover {
  color: var(--blue-dark);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.github-link,
.footer-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #d9e0eb;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  color: #46546b;
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.github-link:hover,
.footer-home:hover {
  border-color: #afc1df;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.github-link svg,
.footer-home svg {
  width: 15px;
  height: 15px;
}

.sidebar-overlay {
  display: none;
}

.empty-search {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1180px) {
  :root {
    --title-hero: 29px;
  }

  .docs-layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .context-rail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .top-divider,
  .current-section {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
    --title-hero: 28px;
  }

  .topbar-inner,
  .docs-layout,
  .site-footer {
    width: calc(100% - 28px);
    width: min(100% - 28px, 1480px);
  }

  .home-link,
  .product-link {
    display: none;
  }

  .brand-wrap {
    flex: 1 1 auto;
  }

  .topbar-actions {
    gap: 8px;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
  }

  .docs-layout {
    display: block;
    margin-top: 14px;
  }

  .sidebar {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    width: 320px;
    width: min(320px, calc(100% - 48px));
    height: 100vh;
    height: 100dvh;
    padding-top: calc(22px + var(--safe-top));
    padding-right: 14px;
    padding-bottom: calc(24px + var(--safe-bottom));
    padding-left: calc(14px + var(--safe-left));
    border: 0;
    border-radius: 0 18px 18px 0;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    -webkit-transition: -webkit-transform 0.24s ease;
    transition: transform 0.24s ease;
  }

  .sidebar-actions {
    display: grid;
    gap: 8px;
    margin: 0 8px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    border: 0;
    background: rgba(5, 12, 24, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .content-header {
    min-height: auto;
    padding: 30px 30px 26px;
  }

  .content-header::after {
    right: -40px;
    opacity: 0.7;
  }

  .doc-content {
    padding: 34px 34px 54px;
  }
}

@media (max-width: 660px) {
  :root {
    --title-hero: 22px;
  }

  .topbar-inner,
  .docs-layout,
  .site-footer {
    width: calc(100% - 20px);
    width: min(100% - 20px, 1480px);
  }

  .language-toggle {
    min-width: 44px;
    height: 40px;
    padding-inline: 9px;
  }

  .content-shell {
    border-radius: 14px;
  }

  .content-header {
    padding: 22px 20px 20px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .content-header .lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.58;
  }

  .status-strip {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 14px;
    padding: 10px 12px;
  }

  .demo-notice {
    margin-top: 12px;
    padding: 11px 12px;
  }

  .doc-content {
    padding: 28px 22px 44px;
  }

  .summary-grid,
  .card-grid,
  .comparison-grid,
  .gallery-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .topology-layer {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 16px;
  }

  .topology-nodes {
    grid-template-columns: 1fr;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    content: "↓";
    transform: translateX(50%);
  }

  .doc-section {
    margin-top: 34px;
  }

  .doc-section h2 {
    font-size: 20px;
  }

  .product-figure {
    margin-inline: -10px;
    border-radius: 12px;
  }

  .figure-bar {
    min-height: 32px;
    padding-inline: 11px;
  }

  .product-figure figcaption {
    padding: 11px 13px 12px;
  }

  .image-lightbox {
    padding:
      calc(10px + var(--safe-top)) calc(10px + var(--safe-right))
      calc(10px + var(--safe-bottom)) calc(10px + var(--safe-left));
  }

  .image-lightbox-panel {
    width: 100%;
    max-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
  }

  .image-lightbox-header {
    padding: 9px 9px 9px 12px;
  }

  .image-lightbox-close {
    width: 32px;
    height: 32px;
  }

  .image-lightbox-image {
    max-height: calc(100dvh - 136px - var(--safe-top) - var(--safe-bottom));
  }

  .image-lightbox-caption {
    padding: 10px 12px 12px;
    font-size: 11px;
  }

  .doc-pager {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 36px;
    padding-top: 22px;
  }

  .doc-pager-spacer {
    display: none;
  }

  .doc-pager-button {
    min-height: 76px;
    padding: 14px;
  }

  .doc-pager-copy strong {
    white-space: normal;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-policy-links {
    gap: 8px 10px;
  }

  .github-link,
  .footer-home {
    justify-content: center;
    flex: 1;
  }

  .footer-legal {
    min-width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --title-hero: 21px;
  }

  .topbar-inner,
  .docs-layout,
  .site-footer {
    width: calc(100% - 16px);
    width: min(100% - 16px, 1480px);
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-toggle,
  .menu-button {
    height: 40px;
  }

  .language-toggle {
    min-width: 42px;
    padding-inline: 8px;
  }

  .menu-button {
    width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
}

@media print {
  .topbar,
  .sidebar,
  .sidebar-overlay,
  .menu-button,
  .language-toggle,
  .context-rail {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .docs-layout,
  .doc-content,
  .content-header,
  .site-footer {
    width: auto !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .content-header h1 {
    font-size: 28px;
  }
}

.footer-filings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 11px;
  line-height: 1.6;
}

.footer-filings a {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.police-filing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.police-filing img {
  flex: 0 0 14px;
  width: 14px;
  height: 16px;
  object-fit: contain;
}
