:root {
  color-scheme: light;
  --si-bg: #f5f7f8;
  --si-bg-deep: #edf1f3;
  --si-surface: #ffffff;
  --si-surface-raised: #ffffff;
  --si-surface-soft: #edf2f4;
  --si-ink: #0b1720;
  --si-text: #283943;
  --si-muted: #65757e;
  --si-faint: #8b99a0;
  --si-line: #d8e0e4;
  --si-line-strong: #bcc8cd;
  --si-brand: #0c8178;
  --si-brand-strong: #08645e;
  --si-brand-soft: #e0f0ee;
  --si-signal: #4fd0bd;
  --si-warm: #b68a4a;
  --si-dark: #0a171e;
  --si-code: #08151b;
  --si-code-text: #cbe6e2;
  --si-header: rgba(245, 247, 248, .88);
  --si-grid: rgba(26, 51, 65, .055);
  --si-shadow: 0 22px 70px rgba(22, 46, 58, .1);
  --si-shadow-sm: 0 10px 30px rgba(22, 46, 58, .07);
  --si-radius: 18px;
  --si-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --si-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --si-bg: #071117;
  --si-bg-deep: #0a161d;
  --si-surface: #0d1b23;
  --si-surface-raised: #11232c;
  --si-surface-soft: #10232b;
  --si-ink: #eef5f7;
  --si-text: #c7d3d8;
  --si-muted: #8ea0a8;
  --si-faint: #6d818a;
  --si-line: #213640;
  --si-line-strong: #38505a;
  --si-brand: #55d2c0;
  --si-brand-strong: #82e0d2;
  --si-brand-soft: #123732;
  --si-signal: #62d9c6;
  --si-warm: #d0a667;
  --si-code: #050c10;
  --si-code-text: #cbe5e2;
  --si-header: rgba(7, 17, 23, .88);
  --si-grid: rgba(205, 232, 239, .05);
  --si-shadow: 0 22px 70px rgba(0, 0, 0, .3);
  --si-shadow-sm: 0 10px 30px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--si-bg);
  color: var(--si-text);
  font-family: var(--si-font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }

::selection {
  background: var(--si-brand);
  color: #fff;
}

.site-container { max-width: 1248px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--si-ink);
  color: var(--si-bg);
  text-decoration: none;
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--si-brand) 75%, transparent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid transparent;
  background: var(--si-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
  border-color: var(--si-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .045);
}

.site-header .navbar { min-height: 64px; padding: 7px 0; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 32px;
  color: var(--si-ink);
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--si-line-strong);
  border-radius: 10px;
  background: var(--si-dark);
  color: var(--si-signal);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.brand-symbol svg { width: 27px; height: 27px; }
.brand-symbol img { width: 30px; height: 30px; object-fit: contain; }

.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong { color: var(--si-ink); font-size: 17px; font-weight: 760; letter-spacing: -.03em; }

.site-header .navbar-nav { gap: 3px; }
.site-header .nav-link {
  position: relative;
  padding: 9px 12px !important;
  color: var(--si-muted);
  font-size: 14px;
  font-weight: 620;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active { color: var(--si-ink); }

.site-header .nav-link.active::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--si-brand);
  content: "";
}

.nav-console { margin-left: 10px; }
.console-link {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--si-line-strong);
  border-radius: 8px;
  background: var(--si-surface);
  color: var(--si-ink);
  font-weight: 650;
}

.console-link:hover { border-color: var(--si-brand); background: var(--si-brand-soft); color: var(--si-brand-strong); }

/* Not found */
.not-found-page { display: flex; min-height: 100dvh; flex-direction: column; background: var(--si-bg); }
.not-found-page > main { display: flex; flex: 1 0 auto; }
.not-found-section { display: grid; width: 100%; min-height: 0; place-items: center; overflow: hidden; padding: clamp(42px, 6vw, 76px) 0; }
.not-found-layout { display: grid; align-items: center; grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr); gap: clamp(46px, 8vw, 126px); }
.not-found-visual { position: relative; display: grid; width: min(100%, 430px); aspect-ratio: 1; place-items: center; color: var(--si-brand-strong); }
.not-found-visual::before { position: absolute; inset: 11%; border: 1px solid var(--si-line); border-radius: 50%; background: radial-gradient(circle at 44% 38%, var(--si-brand-soft), transparent 67%); content: ""; }
.not-found-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--si-brand) 28%, var(--si-line)); border-radius: 50%; }
.not-found-orbit::after { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--si-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--si-brand) 12%, transparent); content: ""; }
.not-found-orbit.orbit-one { inset: 1%; transform: rotate(-18deg); }
.not-found-orbit.orbit-two { inset: 23%; transform: rotate(48deg); }
.not-found-code { position: relative; z-index: 1; color: color-mix(in srgb, var(--si-brand) 11%, transparent); font-family: var(--si-mono); font-size: clamp(92px, 12vw, 166px); font-weight: 800; letter-spacing: -.12em; line-height: 1; transform: translateX(-.06em); }
.not-found-visual svg { position: absolute; z-index: 2; width: 76px; height: 76px; padding: 17px; border: 1px solid color-mix(in srgb, var(--si-brand) 30%, var(--si-line)); border-radius: 18px; background: color-mix(in srgb, var(--si-surface) 90%, transparent); box-shadow: var(--si-shadow-sm); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.not-found-copy { max-width: 650px; }
.not-found-copy .section-kicker { margin-bottom: 22px; }
.not-found-copy h1 { max-width: 620px; margin: 0; color: var(--si-ink); font-size: clamp(42px, 5.4vw, 76px); font-weight: 740; line-height: 1.05; letter-spacing: -.06em; }
.not-found-copy > p { max-width: 570px; margin: 27px 0 0; color: var(--si-muted); font-size: 16px; line-height: 1.85; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.not-found-actions .btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 26px; padding: 11px 18px; }
.not-found-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--si-line); color: var(--si-faint); font-family: var(--si-mono); font-size: 10px; letter-spacing: .02em; }
.not-found-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--si-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--si-brand) 11%, transparent); }

.theme-trigger,
.menu-trigger {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--si-line);
  border-radius: 8px;
  background: var(--si-surface);
  color: var(--si-ink);
}

.theme-menu { margin-left: 20px; }

.theme-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme-preference="light"] .theme-icon-light,
[data-theme-preference="dark"] .theme-icon-dark,
[data-theme-preference="auto"] .theme-icon-auto { display: block; }

.theme-menu .dropdown-menu {
  width: 178px;
  margin-top: 10px !important;
  padding: 7px;
  border: 1px solid var(--si-line);
  border-radius: 11px;
  background: var(--si-surface-raised);
  box-shadow: var(--si-shadow-sm);
}

.theme-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--si-text);
  font-size: 13px;
}

.theme-menu .dropdown-item:hover { background: var(--si-surface-soft); color: var(--si-ink); }
.theme-check { margin-left: auto; color: var(--si-brand); opacity: 0; }
.theme-menu .dropdown-item[aria-pressed="true"] .theme-check { opacity: 1; }
.mode-dot { width: 13px; height: 13px; border: 1px solid var(--si-line-strong); border-radius: 50%; background: #f5f7f8; }
[data-theme-value="dark"] .mode-dot { background: #0b1920; }
.mode-dot.split { background: linear-gradient(90deg, #f5f7f8 50%, #0b1920 50%); }

.menu-trigger { position: relative; display: inline-flex; flex-direction: column; gap: 4px; justify-content: center; padding: 0; }
.menu-trigger span { display: block; width: 18px; height: 1.5px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Shared typography and controls */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--si-brand-strong);
  font-family: var(--si-mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
}

.section-kicker span { display: inline-block; width: 26px; height: 1px; background: var(--si-brand); }
.section-kicker.light { color: #a9e8d2; }
.section-kicker.light span { background: #61d8b3; }

.content-section { padding: 118px 0; }
.content-section h2,
.closing-section h2 {
  margin: 0;
  color: var(--si-ink);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1.12;
}

.btn-brand,
.btn-quiet,
.docs-banner .btn-light {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.btn-brand { border: 1px solid var(--si-brand-strong); background: var(--si-brand-strong); color: #fff; }
[data-bs-theme="dark"] .btn-brand { border-color: #50c8b7; background: #50c8b7; color: #07151a; }
.btn-brand:hover { transform: translateY(-2px); border-color: var(--si-ink); background: var(--si-ink); color: var(--si-bg); }
.btn-quiet { border: 1px solid var(--si-line-strong); background: transparent; color: var(--si-ink); }
.btn-quiet:hover { transform: translateY(-2px); border-color: var(--si-brand); background: var(--si-brand-soft); color: var(--si-brand-strong); }
.play-dot { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid var(--si-line-strong); border-radius: 50%; font-size: 18px; line-height: 1; }

/* Hero */
.hero-section {
  position: relative;
  min-height: 770px;
  min-height: calc(100svh - 78px);
  overflow: hidden;
  border-bottom: 1px solid var(--si-line);
  background:
    radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--si-brand) 11%, transparent), transparent 34%),
    var(--si-bg);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: .72;
  background-image: linear-gradient(var(--si-grid) 1px, transparent 1px), linear-gradient(90deg, var(--si-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-layout { min-height: 690px; min-height: calc(100svh - 174px); padding: 48px 0 44px; }
.hero-section h1 {
  max-width: 780px;
  margin: 0;
  color: var(--si-ink);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 690;
  letter-spacing: -.065em;
  line-height: 1.05;
}
.hero-section h1 em { color: var(--si-brand); font-style: normal; }
.hero-lead { max-width: 720px; margin: 24px 0 0; color: var(--si-muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; color: var(--si-muted); font-size: 12px; }
.hero-principles span { display: inline-flex; align-items: center; gap: 8px; }
.hero-principles i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--si-brand); box-shadow: 0 0 0 4px var(--si-brand-soft); }

.inference-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--si-line-strong);
  border-radius: 13px;
  background: #f9fbfc;
  color: var(--si-text);
  box-shadow: 0 40px 100px rgba(22, 46, 58, .14);
}

.inference-console::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 28%, rgba(69, 207, 190, .11), transparent 31%);
  content: "";
}

.console-head {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--si-line);
  color: var(--si-text);
  font-family: var(--si-mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}
.console-head div { display: flex; align-items: center; gap: 8px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #55d4c0; box-shadow: 0 0 0 5px rgba(85, 212, 192, .1); }
.console-body { position: relative; padding: 20px; }
.input-rail p { margin: 0 0 10px; color: var(--si-muted); font-family: var(--si-mono); font-size: 10px; font-weight: 650; letter-spacing: .1em; }
.rail-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rail-items span { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--si-line); border-radius: 6px; background: var(--si-surface); color: var(--si-text); font-family: var(--si-mono); font-size: 10px; font-weight: 650; }
.rail-items b { color: var(--si-brand-strong); font-size: 9px; font-weight: 750; }
.workload-router { display: flex; min-height: 196px; flex-direction: column; justify-content: center; gap: 10px; margin: 14px 0; padding: 18px; border: 1px solid var(--si-line); border-radius: 7px; background: #f3f7f8; }
.router-axis { display: grid; grid-template-columns: 1fr auto; margin-bottom: 3px; color: var(--si-muted); font-family: var(--si-mono); font-size: 9px; font-weight: 650; letter-spacing: .09em; }
.router-row { display: grid; min-height: 44px; grid-template-columns: 68px minmax(36px, 1fr) 50px; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--si-line); border-radius: 5px; background: var(--si-surface); }
.router-type { color: var(--si-brand-strong); font-family: var(--si-mono); font-size: 10px; font-weight: 750; letter-spacing: .05em; }
.router-row small { color: var(--si-muted); font-family: var(--si-mono); font-size: 9px; font-weight: 650; text-align: right; }
.router-track { position: relative; display: flex; height: 18px; align-items: center; }
.router-track::before { position: absolute; right: 0; left: 0; height: 1px; background: var(--si-line-strong); content: ""; }
.stream-track { justify-content: space-between; }
.stream-track i { position: relative; width: 5px; height: 5px; border: 1px solid var(--si-brand); border-radius: 50%; background: var(--si-surface); }
.stream-track i:last-child { background: var(--si-brand); box-shadow: 0 0 0 3px var(--si-brand-soft); }
.job-track { gap: 5px; }
.job-track i { position: relative; width: 18%; height: 6px; border-radius: 1px; background: color-mix(in srgb, var(--si-brand) 30%, var(--si-line)); }
.job-track i:nth-child(-n+3) { background: var(--si-brand); opacity: .75; }
.service-track { justify-content: flex-end; }
.service-track i { position: absolute; left: 0; width: 52%; height: 2px; background: var(--si-brand); }
.service-track b { position: relative; color: var(--si-brand); font-family: var(--si-mono); font-size: 12px; font-weight: 500; }
.runtime-block { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border: 1px solid var(--si-line); border-left: 3px solid var(--si-brand); border-radius: 6px; background: var(--si-surface); }
.runtime-block div:first-child { display: flex; flex-direction: column; }
.runtime-block span { color: var(--si-muted); font-family: var(--si-mono); font-size: 9px; font-weight: 650; letter-spacing: .1em; }
.runtime-block strong { margin-top: 3px; color: var(--si-ink); font-size: 14px; font-weight: 700; }
.runtime-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.runtime-tags span { padding: 5px 6px; border: 1px solid var(--si-line); border-radius: 4px; color: var(--si-brand-strong); }
.result-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.result-strip div { display: flex; min-height: 58px; flex-direction: column; justify-content: center; padding: 9px 11px; border: 1px solid var(--si-line); border-radius: 5px; background: var(--si-surface); }
.result-strip small { color: var(--si-muted); font-family: var(--si-mono); font-size: 9px; font-weight: 650; letter-spacing: .09em; }
.result-strip strong { margin-top: 3px; color: var(--si-text); font-size: 12px; font-weight: 650; line-height: 1.45; }

[data-bs-theme="dark"] .inference-console { border-color: #29424d; background: #07151b; color: #d9e8ec; box-shadow: 0 40px 100px rgba(5, 27, 38, .24); }
[data-bs-theme="dark"] .console-head { border-bottom-color: #29434d; color: #aec2c8; }
[data-bs-theme="dark"] .input-rail p { color: #9bb0b7; }
[data-bs-theme="dark"] .rail-items span { border-color: #203943; background: #0a1a21; color: #aec1c7; }
[data-bs-theme="dark"] .rail-items b { color: #67d8c7; }
[data-bs-theme="dark"] .workload-router { border-color: #1c343e; background: rgba(7, 21, 27, .9); }
[data-bs-theme="dark"] .router-row { border-color: #203943; background: #0a1a21; }
[data-bs-theme="dark"] .router-axis,
[data-bs-theme="dark"] .router-row small { color: #92aab2; }
[data-bs-theme="dark"] .router-track::before { background: #35505a; }
[data-bs-theme="dark"] .stream-track i { background: #0a1a21; }
[data-bs-theme="dark"] .stream-track i:last-child { background: #55d2c0; box-shadow: 0 0 0 3px rgba(85, 210, 192, .12); }
[data-bs-theme="dark"] .runtime-block { border-color: #294650; border-left-color: #53cfbd; background: #0c2026; }
[data-bs-theme="dark"] .runtime-block span { color: #91aaa9; }
[data-bs-theme="dark"] .runtime-block strong { color: #dce9ec; }
[data-bs-theme="dark"] .runtime-tags span { border-color: #294650; color: #8fc9c2; }
[data-bs-theme="dark"] .result-strip div { border-color: #1d3540; background: transparent; }
[data-bs-theme="dark"] .result-strip small { color: #87a2aa; }
[data-bs-theme="dark"] .result-strip strong { color: #c3d5da; }

.trust-strip { border-bottom: 1px solid var(--si-line); background: var(--si-surface); }
.trust-grid { display: grid; min-height: 84px; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; color: var(--si-text); font-family: var(--si-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.trust-item { position: relative; display: flex; min-width: 0; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; text-align: center; }
.trust-item + .trust-item::before { position: absolute; top: 24px; bottom: 24px; left: 0; width: 1px; background: var(--si-line); content: ""; }
.trust-item i { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border: 1px solid color-mix(in srgb, var(--si-brand) 70%, var(--si-line)); border-radius: 50%; background: var(--si-brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--si-brand) 8%, transparent); }

/* Product position */
.position-section { background: var(--si-surface); }
.section-intro { margin-bottom: 58px; }
.section-intro .col-lg-5 > p { max-width: 520px; margin: 0 0 5px auto; color: var(--si-muted); font-size: 17px; line-height: 1.85; }
.architecture-stack { border: 1px solid var(--si-line); border-radius: var(--si-radius); background: var(--si-bg); box-shadow: var(--si-shadow-sm); }
.arch-layer { display: grid; grid-template-columns: 290px 1fr; min-height: 124px; align-items: stretch; }
.arch-layer + .arch-connector { border-top: 1px solid var(--si-line); }
.layer-label { display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-right: 1px solid var(--si-line); }
.layer-label small { color: var(--si-brand); font-family: var(--si-mono); font-size: 10px; }
.layer-label strong { margin-top: 5px; color: var(--si-ink); font-size: 17px; }
.layer-label em { margin-top: 3px; color: var(--si-muted); font-size: 11px; font-style: normal; }
.layer-items { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 8px; padding: 22px; }
.layer-items span { display: grid; min-height: 58px; place-items: center; padding: 10px; border: 1px solid var(--si-line); border-radius: 7px; background: var(--si-surface); color: var(--si-muted); font-size: 11px; font-weight: 650; text-align: center; }
.inference-layer { position: relative; background: color-mix(in srgb, var(--si-brand-soft) 52%, var(--si-surface)); }
.inference-layer::before { position: absolute; top: 0; bottom: 0; left: -1px; width: 4px; background: var(--si-brand); content: ""; }
.layer-items.strong span { border-color: color-mix(in srgb, var(--si-brand) 35%, var(--si-line)); color: var(--si-brand-strong); }
.arch-connector { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--si-line); background: var(--si-surface); color: var(--si-text); font-family: var(--si-mono); font-size: 10px; letter-spacing: .07em; }
.arch-connector b { padding: 7px 12px; border: 1px solid var(--si-line); border-radius: 999px; background: var(--si-surface-soft); color: var(--si-text); font-weight: 700; line-height: 1.45; text-align: center; }
.arch-connector span { position: relative; display: block; width: 42px; height: 1px; background: var(--si-line-strong); }
.arch-connector span:first-child::after { position: absolute; top: -2px; right: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--si-brand); content: ""; }
.arch-connector span:last-child::before { position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--si-brand); content: ""; }
.foundation-line { display: grid; min-height: 72px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; padding: 12px 18px; border-top: 1px solid var(--si-line); border-radius: 0 0 var(--si-radius) var(--si-radius); background: #e7edef; color: var(--si-text); font-size: 11px; font-weight: 650; }
.foundation-line span { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; text-align: center; }
.foundation-line span::before { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 1px; background: var(--si-brand); content: ""; transform: rotate(45deg); }
.foundation-line span + span { border-left: 1px solid var(--si-line-strong); }
[data-bs-theme="dark"] .foundation-line { background: var(--si-dark); color: #b8cbd1; }
[data-bs-theme="dark"] .arch-connector b { border-color: var(--si-line-strong); background: var(--si-surface-soft); color: var(--si-text); }

/* Workloads */
.workload-section { background: var(--si-bg-deep); }
.section-heading.centered { max-width: 820px; margin: 0 auto 58px; text-align: center; }
.section-heading.centered p { max-width: 700px; margin: 24px auto 0; color: var(--si-muted); font-size: 17px; }
.workload-card { position: relative; height: 100%; min-height: 550px; overflow: hidden; padding: 28px; border: 1px solid var(--si-line); border-radius: 14px; background: var(--si-surface); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.workload-card:hover { transform: translateY(-6px); border-color: var(--si-line-strong); box-shadow: var(--si-shadow); }
.card-code { color: var(--si-faint); font-family: var(--si-mono); font-size: 9px; letter-spacing: .12em; }
.workload-card h3 { margin: 34px 0 14px; color: var(--si-ink); font-size: 25px; font-weight: 680; letter-spacing: -.035em; }
.workload-card > p { min-height: 85px; margin: 0; color: var(--si-muted); font-size: 14px; }
.workload-card ul { display: grid; gap: 10px; margin: 24px 0 31px; padding: 20px 0 0; border-top: 1px solid var(--si-line); list-style: none; }
.workload-card li { position: relative; padding-left: 16px; color: var(--si-text); font-size: 13px; }
.workload-card li::before { position: absolute; top: .75em; left: 0; width: 5px; height: 5px; border: 1px solid var(--si-brand); border-radius: 50%; content: ""; }
.workload-card > a { display: inline-flex; align-items: center; gap: 12px; color: var(--si-brand-strong); font-size: 13px; font-weight: 700; text-decoration: none; }
.workload-card > a span { transition: transform .18s ease; }
.workload-card > a:hover span { transform: translateX(4px); }
.workload-icon { display: flex; height: 116px; align-items: center; justify-content: center; gap: 7px; margin-top: 27px; border: 1px solid var(--si-line); border-radius: 8px; background-image: linear-gradient(var(--si-grid) 1px, transparent 1px), linear-gradient(90deg, var(--si-grid) 1px, transparent 1px); background-size: 18px 18px; }
.workload-icon span { width: 5px; border-radius: 4px; background: var(--si-brand); }
.workload-icon span:nth-child(1) { height: 22px; }.workload-icon span:nth-child(2) { height: 49px; }.workload-icon span:nth-child(3) { height: 78px; }.workload-icon span:nth-child(4) { height: 42px; }.workload-icon span:nth-child(5) { height: 62px; }
.job-visual { display: flex; height: 116px; align-items: center; justify-content: center; gap: 7px; margin-top: 27px; border: 1px solid var(--si-line); border-radius: 8px; background: var(--si-surface-soft); }
.job-visual span { display: grid; height: 34px; min-width: 61px; place-items: center; border: 1px solid var(--si-line-strong); border-radius: 5px; background: var(--si-surface); color: var(--si-muted); font-family: var(--si-mono); font-size: 8px; }
.job-visual i { position: relative; width: 20px; height: 1px; background: var(--si-brand); }
.job-visual i::after { position: absolute; top: -2px; right: 0; border-width: 2.5px 0 2.5px 4px; border-style: solid; border-color: transparent transparent transparent var(--si-brand); content: ""; }
.service-visual { display: grid; height: 116px; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin-top: 27px; padding: 0 18px; border: 1px solid var(--si-line); border-radius: 8px; background: var(--si-surface-soft); }
.service-visual span, .service-visual b { color: var(--si-brand-strong); font-family: var(--si-mono); font-size: 8px; font-weight: 700; }
.service-visual code { overflow: hidden; padding: 7px 8px; border: 1px solid var(--si-line-strong); border-radius: 4px; background: var(--si-surface); color: var(--si-muted); font-family: var(--si-mono); font-size: 8px; text-overflow: ellipsis; }
.service-visual b { padding: 4px 6px; border-radius: 3px; background: var(--si-brand-soft); }
[data-bs-theme="dark"] .service-visual { background: var(--si-dark); }
[data-bs-theme="dark"] .service-visual span,
[data-bs-theme="dark"] .service-visual b { color: #5bd4c2; }
[data-bs-theme="dark"] .service-visual code { border-color: #29434c; background: transparent; color: #aac8ce; }
[data-bs-theme="dark"] .service-visual b { background: #173b3d; }

/* Algorithm commerce */
.commerce-section { padding: 24px 0 112px; background: var(--si-bg-deep); }
.commerce-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: 58px; overflow: hidden; padding: 62px; border: 1px solid #223b45; border-radius: 17px; background: var(--si-dark); color: #dce9ed; box-shadow: 0 30px 80px rgba(6, 30, 41, .2); }
.commerce-copy h2 { margin: 0; color: #f1f7f9; font-size: clamp(38px, 4.3vw, 57px); font-weight: 660; letter-spacing: -.055em; line-height: 1.12; }
.commerce-copy > p { max-width: 530px; margin: 24px 0; color: #99aeb6; font-size: 14px; line-height: 1.9; }
.gateway-core-link { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 48%, transparent); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .18s ease, text-decoration-color .18s ease; }
.gateway-core-link:hover { color: var(--si-brand-strong); text-decoration-color: currentColor; }
.commerce-shell .gateway-core-link:hover { color: #78dfcf; }
.commerce-link { display: inline-flex; align-items: center; gap: 12px; color: #66d7c6; font-size: 12px; font-weight: 700; text-decoration: none; }
.commerce-link span { transition: transform .18s ease; }
.commerce-link:hover { color: #91e7da; }
.commerce-link:hover span { transform: translateX(4px); }
.commerce-diagram { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.commerce-flow { display: grid; grid-template-columns: minmax(0, .95fr) 16px minmax(0, 1.5fr) 16px minmax(0, 1fr) 16px minmax(0, .86fr); align-items: stretch; gap: 7px; }
.commerce-flow > i { display: grid; place-items: center; color: #7f9aa2; font-family: var(--si-mono); font-size: 14px; font-style: normal; text-align: center; }
.commerce-node { display: flex; min-width: 0; min-height: 132px; flex-direction: column; justify-content: center; padding: 18px 15px; border: 1px solid #35515b; border-radius: 8px; background: #0c1d24; }
.commerce-node.primary { border-color: #3b8f87; border-left: 3px solid #55d2c0; background: #0d282c; }
.commerce-node.endpoint { border-style: dashed; }
.commerce-node small { color: #94aab1; font-family: var(--si-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.commerce-node strong { margin: 9px 0 6px; color: #e4eef1; font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.commerce-node.primary strong { color: #73dbc9; font-size: 12px; letter-spacing: -.01em; white-space: nowrap; }
.commerce-node span { color: #a7bbc1; font-size: 11px; line-height: 1.55; }
.commerce-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.commerce-units div { display: flex; min-height: 66px; flex-direction: column; justify-content: center; padding: 11px 14px; border: 1px solid #2c4650; border-radius: 6px; background: #091820; }
.commerce-units span { color: #68cabc; font-family: var(--si-mono); font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.commerce-units strong { margin-top: 4px; color: #c2d1d5; font-size: 11px; font-weight: 650; line-height: 1.45; }
.commerce-truth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; color: #b5c7cc; font-size: 10px; line-height: 1.55; }
.commerce-truth span { display: flex; min-width: 0; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid #29434d; border-radius: 6px; background: color-mix(in srgb, #102832 72%, transparent); }
.commerce-truth i { width: 5px; height: 5px; flex: 0 0 auto; margin-top: .55em; border-radius: 50%; background: #52cdbb; box-shadow: 0 0 0 3px rgba(82, 205, 187, .1); }

[data-bs-theme="light"] .commerce-shell { border-color: var(--si-line-strong); background: #f8fafb; color: var(--si-text); box-shadow: var(--si-shadow); }
[data-bs-theme="light"] .commerce-shell .section-kicker.light { color: var(--si-brand-strong); }
[data-bs-theme="light"] .commerce-shell .section-kicker.light span { background: var(--si-brand); }
[data-bs-theme="light"] .commerce-copy h2 { color: var(--si-ink); }
[data-bs-theme="light"] .commerce-copy > p { color: var(--si-muted); }
[data-bs-theme="light"] .commerce-shell .gateway-core-link:hover { color: var(--si-brand-strong); }
[data-bs-theme="light"] .commerce-link { color: var(--si-brand-strong); }
[data-bs-theme="light"] .commerce-link:hover { color: var(--si-brand); }
[data-bs-theme="light"] .commerce-flow > i { color: var(--si-line-strong); }
[data-bs-theme="light"] .commerce-node { border-color: var(--si-line); background: var(--si-surface); }
[data-bs-theme="light"] .commerce-node.primary { border-color: color-mix(in srgb, var(--si-brand) 42%, var(--si-line)); border-left-color: var(--si-brand); background: var(--si-brand-soft); }
[data-bs-theme="light"] .commerce-node small { color: var(--si-faint); }
[data-bs-theme="light"] .commerce-node strong { color: var(--si-ink); }
[data-bs-theme="light"] .commerce-node.primary strong { color: var(--si-brand-strong); }
[data-bs-theme="light"] .commerce-node span { color: var(--si-muted); }
[data-bs-theme="light"] .commerce-units div { border-color: var(--si-line); background: var(--si-surface-soft); }
[data-bs-theme="light"] .commerce-units span { color: var(--si-brand-strong); }
[data-bs-theme="light"] .commerce-units strong { color: var(--si-text); }
[data-bs-theme="light"] .commerce-truth { color: var(--si-muted); }
[data-bs-theme="light"] .commerce-truth span { border-color: var(--si-line); background: var(--si-surface); }

/* Principles and scenarios */
.principles-section { border-top: 1px solid var(--si-line); background: var(--si-surface); }
.sticky-copy { padding-right: 40px; }
.sticky-copy h2 { font-size: clamp(38px, 4vw, 57px); }
.sticky-copy > p { max-width: 440px; margin: 25px 0; color: var(--si-muted); font-size: 16px; }
.text-link { display: inline-flex; gap: 12px; color: var(--si-brand-strong); font-size: 13px; font-weight: 700; text-decoration: none; }
.principle-list { border-top: 1px solid var(--si-line); }
.principle-list article { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--si-line); }
.principle-list article > span { color: var(--si-brand); font-family: var(--si-mono); font-size: 10px; }
.principle-list h3 { margin: 0 0 9px; color: var(--si-ink); font-size: 21px; font-weight: 670; }
.principle-list p { max-width: 590px; margin: 0; color: var(--si-muted); font-size: 14px; }

.scenarios-section { background: var(--si-bg); }
.section-intro.compact { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-intro.compact h2 { font-size: clamp(39px, 4.8vw, 60px); }
.section-intro.compact > p { max-width: 420px; margin: 0; color: var(--si-muted); }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--si-line-strong); }
.scenario-card { position: relative; display: grid; min-height: 225px; grid-template-columns: 48px 1fr 30px; gap: 20px; padding: 34px 28px 32px 0; border-bottom: 1px solid var(--si-line); transition: background-color .2s ease; }
.scenario-card:nth-child(odd) { border-right: 1px solid var(--si-line); }
.scenario-card:nth-child(even) { padding-left: 28px; }
.scenario-card:hover { background: var(--si-surface-soft); }
.scenario-index { color: var(--si-brand); font-family: var(--si-mono); font-size: 10px; }
.scenario-card small { color: var(--si-faint); font-family: var(--si-mono); font-size: 9px; letter-spacing: .1em; }
.scenario-card h3 { margin: 12px 0 9px; color: var(--si-ink); font-size: 22px; font-weight: 670; }
.scenario-card p { margin: 0; color: var(--si-muted); font-size: 13px; }
.scenario-arrow { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--si-line); border-radius: 50%; color: var(--si-muted); font-size: 12px; }

/* Docs preview and closing */
.docs-preview-section { padding-top: 50px; background: var(--si-bg); }
.docs-banner { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 17px; background: var(--si-dark); color: #dce9ed; box-shadow: 0 30px 80px rgba(6, 30, 41, .22); }
.docs-banner-copy { padding: 64px; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 38px 38px; }
.docs-banner h2 { margin: 0; color: #f1f7f9; font-size: clamp(38px, 4.3vw, 58px); font-weight: 660; letter-spacing: -.055em; line-height: 1.12; }
.docs-banner-copy > p { max-width: 580px; margin: 24px 0 30px; color: #9db0b7; }
.docs-banner .btn-light { border: 0; background: #edf7f6; color: #0a272a; }
.docs-preview-list { display: flex; flex-direction: column; justify-content: center; padding: 34px 44px; border-left: 1px solid #263c46; }
.docs-preview-list a { display: grid; grid-template-columns: 34px 1fr 20px; gap: 14px; align-items: center; padding: 24px 0; border-bottom: 1px solid #263c46; color: inherit; text-decoration: none; }
.docs-preview-list a:last-child { border-bottom: 0; }
.docs-preview-list a > span { color: #59d2c0; font-family: var(--si-mono); font-size: 9px; }
.docs-preview-list a div { display: flex; flex-direction: column; }
.docs-preview-list small { color: #718b94; font-family: var(--si-mono); font-size: 8px; letter-spacing: .12em; }
.docs-preview-list strong { margin-top: 4px; color: #dce9ed; font-size: 15px; font-weight: 600; }
.docs-preview-list b { color: #718b94; font-size: 12px; transition: transform .18s ease, color .18s ease; }
.docs-preview-list a:hover b { transform: translate(3px, -3px); color: #5ed5c3; }

[data-bs-theme="light"] .docs-banner { border: 1px solid var(--si-line-strong); background: #edf3f5; color: var(--si-text); box-shadow: var(--si-shadow); }
[data-bs-theme="light"] .docs-banner-copy { background-image: linear-gradient(var(--si-grid) 1px, transparent 1px), linear-gradient(90deg, var(--si-grid) 1px, transparent 1px); }
[data-bs-theme="light"] .docs-banner .section-kicker.light { color: var(--si-brand-strong); }
[data-bs-theme="light"] .docs-banner .section-kicker.light span { background: var(--si-brand); }
[data-bs-theme="light"] .docs-banner h2 { color: var(--si-ink); }
[data-bs-theme="light"] .docs-banner-copy > p { color: var(--si-muted); }
[data-bs-theme="light"] .docs-banner .btn-light { background: var(--si-brand-strong); color: #fff; }
[data-bs-theme="light"] .docs-preview-list { border-color: var(--si-line); }
[data-bs-theme="light"] .docs-preview-list a { border-bottom-color: var(--si-line); }
[data-bs-theme="light"] .docs-preview-list a > span { color: var(--si-brand); }
[data-bs-theme="light"] .docs-preview-list small { color: var(--si-faint); }
[data-bs-theme="light"] .docs-preview-list strong { color: var(--si-ink); }
[data-bs-theme="light"] .docs-preview-list b { color: var(--si-muted); }

.closing-section { padding: 125px 0; border-top: 1px solid var(--si-line); background: var(--si-surface); }
.closing-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; }
.closing-grid > div:last-child > p { max-width: 470px; margin: 0; color: var(--si-muted); font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--si-line); color: var(--si-muted); font-size: 13px; line-height: 1.6; }
.site-footer__inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.site-footer__identity, .site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-footer__identity p { margin: 0; }
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--si-line-strong); border-radius: 8px; background: var(--si-dark); color: var(--si-signal); }
.site-footer__mark svg { width: 19px; height: 19px; }
.site-footer__mark img { width: 20px; height: 20px; object-fit: contain; }
.site-footer__product { color: var(--si-text); font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.site-footer a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--si-brand); text-decoration: underline; }
.site-footer a:focus-visible { border-radius: 3px; outline: 2px solid var(--si-brand); outline-offset: 3px; }
.site-footer__version { padding: 1px 8px; border: 1px solid var(--si-line); border-radius: 999px; color: var(--si-text); font-family: var(--si-mono); white-space: nowrap; }

/* Documentation shared */
.docs-page { background: var(--si-bg); }
.breadcrumb-nav { display: flex; align-items: center; gap: 9px; color: var(--si-faint); font-size: 11px; }
.breadcrumb-nav a { text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--si-brand-strong); }
.breadcrumb-nav span { color: var(--si-line-strong); }
.breadcrumb-nav strong { overflow: hidden; max-width: 60vw; color: var(--si-muted); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }

.docs-hero { padding: 18px 0; border-bottom: 1px solid var(--si-line); background: var(--si-surface); }
.docs-hero .site-container { display: flex; justify-content: center; }
.docs-search { display: flex; width: 100%; max-width: 720px; height: 50px; flex: 0 1 720px; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--si-line-strong); border-radius: 10px; background: var(--si-bg); color: var(--si-muted); box-shadow: 0 8px 24px color-mix(in srgb, var(--si-ink) 4%, transparent); transition: border-color .18s ease, box-shadow .18s ease; }
.docs-search:focus-within { border-color: var(--si-brand); box-shadow: 0 0 0 4px var(--si-brand-soft); }
.docs-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.docs-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--si-ink); font-size: 13px; }
.docs-search input::placeholder { color: var(--si-faint); }
.docs-search kbd { padding: 2px 7px; border: 1px solid var(--si-line); border-radius: 4px; background: var(--si-surface); color: var(--si-faint); font-family: var(--si-mono); font-size: 10px; box-shadow: none; }
.docs-directory { padding: 36px 0 120px; }
.docs-index-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 70px; }
.docs-index-aside { position: sticky; top: 110px; align-self: start; }
.docs-index-aside > p, .doc-toc > p { margin: 0 0 14px; color: var(--si-faint); font-family: var(--si-mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.docs-index-aside > a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; color: var(--si-muted); font-size: 13px; text-decoration: none; }
.docs-index-aside > a:hover { color: var(--si-brand-strong); }
.docs-index-aside > a span { color: var(--si-faint); font-family: var(--si-mono); font-size: 8px; }
.aside-status { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding-top: 19px; border-top: 1px solid var(--si-line); }
.aside-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--si-warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--si-warm) 15%, transparent); }
.aside-status div { display: flex; flex-direction: column; }
.aside-status strong { color: var(--si-ink); font-size: 10px; }
.aside-status span { color: var(--si-faint); font-size: 9px; }
.docs-groups { min-width: 0; }
.docs-group { margin-bottom: 62px; scroll-margin-top: 110px; }
.docs-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 13px; border-bottom: 1px solid var(--si-line-strong); }
.docs-group-head h2 { margin: 0; color: var(--si-ink); font-size: 20px; font-weight: 670; }
.docs-group-head span { color: var(--si-brand); font-family: var(--si-mono); font-size: 9px; }
.docs-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.docs-card { display: flex; min-height: 255px; flex-direction: column; padding: 25px; border: 1px solid var(--si-line); border-radius: 11px; background: var(--si-surface); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.docs-card:hover { transform: translateY(-3px); border-color: var(--si-brand); box-shadow: var(--si-shadow-sm); }
.docs-card-top { display: flex; align-items: center; justify-content: space-between; }
.docs-card-top span { color: var(--si-brand); font-family: var(--si-mono); font-size: 9px; }
.docs-card-top small { color: var(--si-faint); font-size: 9px; }
.docs-card h3 { margin: 30px 0 10px; color: var(--si-ink); font-size: 19px; font-weight: 670; }
.docs-card p { margin: 0; color: var(--si-muted); font-size: 12px; line-height: 1.75; }
.docs-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; color: var(--si-brand-strong); font-size: 11px; font-weight: 700; }
.docs-card-action b { font-size: 11px; transition: transform .18s ease; }
.docs-card:hover .docs-card-action b { transform: translate(2px, -2px); }
.docs-empty { padding: 80px 20px; border: 1px dashed var(--si-line-strong); border-radius: 11px; text-align: center; }
.docs-empty strong { color: var(--si-ink); font-size: 18px; }
.docs-empty p { margin: 6px 0 0; color: var(--si-muted); font-size: 13px; }

/* Documentation detail */
.detail-breadcrumb { padding: 35px 0; border-bottom: 1px solid var(--si-line); }
.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 180px; gap: 55px; padding: 54px 0 115px; }
.docs-sidebar, .doc-toc { position: sticky; top: 113px; max-height: calc(100vh - 135px); align-self: start; overflow-y: auto; scrollbar-width: thin; }
.all-docs-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 29px; color: var(--si-brand-strong); font-size: 12px; font-weight: 700; text-decoration: none; }
.sidebar-group { margin-bottom: 25px; }
.sidebar-group p { margin: 0 0 8px; color: var(--si-faint); font-family: var(--si-mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.sidebar-group a { display: flex; align-items: center; gap: 9px; margin: 3px 0; padding: 7px 9px; border-left: 2px solid transparent; color: var(--si-muted); font-size: 11px; text-decoration: none; }
.sidebar-group a span { color: var(--si-faint); font-family: var(--si-mono); font-size: 7px; }
.sidebar-group a:hover { color: var(--si-ink); }
.sidebar-group a.active { border-left-color: var(--si-brand); background: var(--si-brand-soft); color: var(--si-brand-strong); font-weight: 700; }
.doc-article { min-width: 0; }
.doc-header { padding-bottom: 42px; border-bottom: 1px solid var(--si-line); }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--si-faint); font-family: var(--si-mono); font-size: 8px; letter-spacing: .08em; }
.doc-meta span:first-child { color: var(--si-brand-strong); }
.doc-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--si-line-strong); }
.doc-header h1 { margin: 22px 0 18px; color: var(--si-ink); font-size: clamp(39px, 5vw, 59px); font-weight: 680; letter-spacing: -.055em; line-height: 1.12; }
.doc-header > p { max-width: 760px; margin: 0; color: var(--si-muted); font-size: 16px; }
.doc-body > section { position: relative; padding: 54px 0 8px; scroll-margin-top: 80px; }
.doc-body .section-number { position: absolute; top: 62px; left: -38px; color: var(--si-brand); font-family: var(--si-mono); font-size: 8px; }
.doc-body h2 { margin: 0 0 22px; color: var(--si-ink); font-size: 27px; font-weight: 680; letter-spacing: -.035em; }
.doc-body p { margin: 0 0 16px; color: var(--si-text); font-size: 14px; line-height: 1.9; }
.doc-body ul { display: grid; gap: 11px; margin: 18px 0 0; padding: 0; list-style: none; }
.doc-body li { position: relative; padding-left: 21px; color: var(--si-text); font-size: 14px; line-height: 1.8; }
.doc-body li::before { position: absolute; top: .75em; left: 0; width: 6px; height: 6px; border: 1px solid var(--si-brand); background: var(--si-brand-soft); content: ""; transform: rotate(45deg); }
.code-block { overflow: hidden; margin-top: 25px; border: 1px solid #203640; border-radius: 9px; background: var(--si-code); color: var(--si-code-text); }
.code-head { display: flex; height: 41px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #1e333d; color: #63828b; font-family: var(--si-mono); font-size: 7px; letter-spacing: .1em; }
.code-head button { border: 0; background: none; color: #74959d; font-family: var(--si-font); font-size: 10px; cursor: pointer; }
.code-head button:hover { color: #69d5c4; }
.code-block pre { margin: 0; padding: 21px; overflow-x: auto; white-space: pre; }
.code-block code { color: inherit; font-family: var(--si-mono); font-size: 11px; line-height: 1.8; }
.doc-note { display: grid; grid-template-columns: 54px 1fr; gap: 15px; margin-top: 25px; padding: 19px; border: 1px solid color-mix(in srgb, var(--si-brand) 38%, var(--si-line)); border-left: 3px solid var(--si-brand); border-radius: 5px; background: var(--si-brand-soft); }
.doc-note span { color: var(--si-brand-strong); font-family: var(--si-mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.doc-note p { margin: 0; color: var(--si-text); font-size: 12px; }
.doc-toc a { display: block; margin-bottom: 2px; padding: 6px 0 6px 12px; border-left: 1px solid var(--si-line); color: var(--si-muted); font-size: 10px; text-decoration: none; }
.doc-toc a:hover, .doc-toc a.active { border-left-color: var(--si-brand); color: var(--si-brand-strong); }
.doc-toc .back-top { margin-top: 20px; border-left-color: transparent; color: var(--si-faint); }
.mobile-doc-toc { display: none; }
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--si-line); }
.doc-pagination a { display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid var(--si-line); border-radius: 8px; background: var(--si-surface); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.doc-pagination a:hover { transform: translateY(-2px); border-color: var(--si-brand); }
.doc-pagination .next { text-align: right; }
.doc-pagination small { color: var(--si-faint); font-size: 9px; }
.doc-pagination strong { overflow: hidden; margin-top: 5px; color: var(--si-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1199.98px) {
  .hero-section h1 { font-size: 66px; }
  .commerce-shell { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 45px; }
  .doc-toc { display: none; }
  .doc-body .section-number { position: static; display: block; margin-bottom: 9px; }
}

@media (max-width: 991.98px) {
  .theme-menu { margin-left: 0; }
  .site-header .navbar { min-height: 60px; padding: 6px 0; }
  .site-header .navbar-collapse { position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 12px max(24px, calc((100vw - 720px) / 2)); border-bottom: 1px solid var(--si-line); background: var(--si-surface-raised); box-shadow: var(--si-shadow-sm); }
  .site-header .navbar-nav { align-items: stretch !important; }
  .site-header .nav-link { padding: 11px 9px !important; }
  .site-header .nav-link.active::after { display: none; }
  .nav-console { margin: 8px 0 4px; }
  .console-link { width: 100%; }
  .hero-section h1 { font-size: clamp(48px, 9vw, 72px); }
  .inference-console { max-width: 660px; }
  .trust-grid { min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 10px; padding-bottom: 10px; }
  .trust-item { min-height: 58px; }
  .trust-item:nth-child(4)::before { display: none; }
  .trust-item:nth-child(n+4)::after { position: absolute; top: 0; right: 14px; left: 14px; height: 1px; background: var(--si-line); content: ""; }
  .content-section { padding: 90px 0; }
  .section-intro .col-lg-5 > p { margin-left: 0; }
  .arch-layer { grid-template-columns: 230px 1fr; }
  .layer-items { grid-template-columns: repeat(3, 1fr); }
  .workload-card { min-height: auto; }
  .workload-card > p { min-height: auto; }
  .commerce-shell { grid-template-columns: 1fr; }
  .sticky-copy { padding: 0 0 25px; }
  .docs-banner { grid-template-columns: 1fr; }
  .docs-preview-list { border-top: 1px solid #263c46; border-left: 0; }
  .closing-grid { grid-template-columns: 1fr; gap: 38px; }
  .docs-index-layout { grid-template-columns: 1fr; gap: 40px; }
  .docs-index-aside { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 20px; }
  .docs-index-aside > p { width: 100%; }
  .docs-index-aside > a { gap: 12px; }
  .aside-status { width: 100%; margin-top: 10px; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-sidebar { display: none; }
  .mobile-doc-toc { display: block; margin: 25px 0 5px; border: 1px solid var(--si-line); border-radius: 7px; background: var(--si-surface); }
  .mobile-doc-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; color: var(--si-ink); font-size: 12px; cursor: pointer; list-style: none; }
  .mobile-doc-toc summary::-webkit-details-marker { display: none; }
  .mobile-doc-toc nav { display: grid; padding: 0 15px 13px; }
  .mobile-doc-toc a { padding: 6px 0; color: var(--si-muted); font-size: 11px; text-decoration: none; }
}

@media (max-width: 767.98px) {
  .site-container { width: calc(100% - 28px); padding-right: 0; padding-left: 0; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-type strong { font-size: 15px; }
  .not-found-section { padding: 24px 0 32px; }
  .not-found-layout { grid-template-columns: 1fr; gap: 20px; }
  .not-found-visual { width: min(58vw, 220px); margin: 0 auto; }
  .not-found-copy { text-align: center; }
  .not-found-copy .section-kicker, .not-found-actions { justify-content: center; }
  .not-found-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .not-found-copy > p { margin-top: 20px; font-size: 14px; }
  .not-found-actions { display: grid; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .not-found-actions .btn { gap: 10px; padding-right: 10px; padding-left: 10px; }
  .not-found-status { margin-top: 30px; }
  .hero-section { min-height: auto; }
  .hero-layout { min-height: auto; padding: 64px 0; }
  .hero-section h1 { font-size: clamp(37px, 10.2vw, 48px); }
  .hero-lead { margin-top: 23px; font-size: 16px; }
  .hero-principles { display: grid; gap: 12px; }
  .rail-items { grid-template-columns: repeat(2, 1fr); }
  .workload-router { min-height: 206px; padding: 14px; }
  .router-row { min-height: 42px; grid-template-columns: 66px minmax(30px, 1fr) 48px; padding: 0 9px; }
  .runtime-block { align-items: flex-start; flex-direction: column; }
  .runtime-tags { justify-content: flex-start; }
  .result-strip { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(odd)::before { display: none; }
  .trust-item:nth-child(4)::before { display: block; }
  .trust-item:nth-child(n+3)::after { position: absolute; top: 0; right: 10px; left: 10px; height: 1px; background: var(--si-line); content: ""; }
  .content-section { padding: 76px 0; }
  .content-section h2, .closing-section h2 { font-size: 40px; }
  .section-intro { margin-bottom: 38px; }
  .arch-layer { grid-template-columns: 1fr; }
  .layer-label { padding: 20px; border-right: 0; border-bottom: 1px solid var(--si-line); }
  .layer-items { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .layer-items span { min-height: 50px; }
  .arch-connector { min-height: 64px; gap: 9px; padding: 9px 12px; text-align: center; }
  .arch-connector span { width: 24px; }
  .arch-connector b { padding: 7px 10px; }
  .foundation-line { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .foundation-line span { min-height: 48px; padding: 7px 9px; }
  .foundation-line span:nth-child(odd) { border-left: 0; }
  .foundation-line span:nth-child(n+3) { border-top: 1px solid var(--si-line-strong); }
  .section-heading.centered { margin-bottom: 40px; text-align: left; }
  .section-heading.centered .section-kicker { justify-content: flex-start !important; }
  .section-heading.centered .section-kicker span:last-child { display: none; }
  .section-heading.centered p { font-size: 15px; }
  .workload-card { padding: 22px; }
  .commerce-section { padding: 12px 0 76px; }
  .commerce-shell { gap: 38px; padding: 37px 24px; }
  .commerce-flow { grid-template-columns: 1fr; gap: 6px; }
  .commerce-flow > i { transform: rotate(90deg); }
  .commerce-node { min-height: 112px; padding: 17px 18px; }
  .commerce-units { grid-template-columns: 1fr; }
  .commerce-truth { grid-template-columns: 1fr; }
  .principle-list article { grid-template-columns: 38px 1fr; }
  .section-intro.compact { align-items: flex-start; flex-direction: column; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card, .scenario-card:nth-child(even) { min-height: auto; padding: 27px 5px; border-right: 0; }
  .scenario-card { grid-template-columns: 35px 1fr 28px; gap: 10px; }
  .docs-preview-section { padding-top: 20px; }
  .docs-banner-copy { padding: 38px 27px; }
  .docs-banner h2 { font-size: 39px; }
  .docs-preview-list { padding: 22px 27px; }
  .closing-section { padding: 84px 0; }
  .site-footer__inner, .site-footer__identity, .site-footer__links { justify-content: center; text-align: center; }
  .site-footer__identity { column-gap: 8px; }
  .site-footer__inner { min-height: 0; flex-direction: column; }
  .docs-hero { padding: 14px 0; }
  .docs-directory { padding: 30px 0 80px; }
  .docs-card-grid { grid-template-columns: 1fr; }
  .docs-card { min-height: 220px; }
  .detail-breadcrumb { padding: 25px 0; }
  .docs-layout { padding: 38px 0 80px; }
  .doc-header h1 { font-size: 41px; }
  .doc-header > p { font-size: 14px; }
  .doc-body > section { padding-top: 44px; }
  .doc-body h2 { font-size: 24px; }
  .doc-note { grid-template-columns: 1fr; gap: 6px; }
  .doc-pagination { grid-template-columns: 1fr; }
  .doc-pagination .next { text-align: left; }
}

@media (max-width: 420px) {
  .brand-type strong { font-size: 14px; }
  .brand-lockup { gap: 8px; margin-right: 5px; }
  .hero-actions .btn { width: 100%; }
  .inference-console .console-body { padding: 14px; }
  .console-head { padding: 0 12px; }
  .console-head > span { display: none; }
  .layer-items { grid-template-columns: 1fr; }
  .docs-card { padding: 21px; }
}
