:root {
  color-scheme: light;
  --bg: #fffdfa;
  --surface: #ffffff;
  --surface-muted: #f7f4ff;
  --line: #e3dfef;
  --line-strong: #cbc4df;
  --text: #11131a;
  --text-secondary: #4f5665;
  --text-muted: #747b89;
  --brand: #6558f5;
  --brand-strong: #5143e6;
  --brand-soft: #eeeafd;
  --brand-warm: #f2a977;
  --success: #117a54;
  --success-soft: #e7f7f0;
  --warning: #9a5b00;
  --warning-soft: #fff3db;
  --shadow: 0 18px 52px rgba(82, 72, 140, 0.1);
  --topbar: 64px;
  --sidebar: 264px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; border-radius: 8px; background: var(--brand); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: calc(var(--topbar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 28px 0;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(203, 196, 223, 0.72);
  background: rgba(255, 253, 250, 0.82);
  backdrop-filter: blur(24px) saturate(145%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 1px; color: var(--text-muted); font-size: 11px; }
.search-button { min-height: 40px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); color: var(--text-muted); padding: 0 12px; cursor: pointer; }
.search-button span:nth-child(2) { flex: 1; text-align: left; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); padding: 1px 6px; font-size: 11px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.primary-link { border-radius: 9px; background: var(--brand); color: #fff; padding: 9px 14px; }
.mobile-nav-button { display: none; }

.docs-shell { padding-top: calc(var(--topbar) + env(safe-area-inset-top)); }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: calc(var(--topbar) + env(safe-area-inset-top)) auto 0 0;
  width: var(--sidebar);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, .88);
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
}
.sidebar nav { display: grid; gap: 4px; }
.nav-label { margin: 22px 10px 7px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.sidebar nav a { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 9px; padding: 0 10px; color: var(--text-secondary); font-size: 14px; }
.sidebar nav a:hover { background: var(--surface-muted); color: var(--text); }
.sidebar nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.sidebar nav small { min-width: 24px; border-radius: 12px; background: rgba(100, 120, 145, .11); padding: 2px 6px; text-align: center; }
.sidebar-note { margin-top: 30px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 14px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { margin: 7px 0 10px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.sidebar-note a { color: var(--brand); font-size: 12px; font-weight: 700; }

.content { margin-left: var(--sidebar); min-height: calc(100vh - var(--topbar)); padding: 48px clamp(28px, 5vw, 84px) 0; outline: none; }
.page { width: min(1180px, 100%); margin: 0 auto; animation: page-in .24s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--text-muted); font-size: 12px; }
.breadcrumbs span + span::before { content: "/"; margin-right: 7px; color: var(--line-strong); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.02em; }
h1 { margin-bottom: 16px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.14; }
h2 { font-size: clamp(22px, 2.5vw, 30px); }
h3 { font-size: 16px; }
.lead { max-width: 760px; margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.8; }
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.78); padding: clamp(30px, 6vw, 68px); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(140%); }
.hero::after { content: ""; position: absolute; width: 8px; height: 42%; right: 0; top: 29%; border-radius: 8px 0 0 8px; background: var(--brand-warm); pointer-events: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button:hover { transform: translateY(-1px); }

.section { margin-top: 56px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading p { margin: 0; color: var(--text-muted); font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; box-shadow: 0 5px 20px rgba(31, 55, 82, .04); }
.card:hover { border-color: #c6bfea; box-shadow: 0 14px 36px rgba(82, 72, 140, .1); }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 17px; font-weight: 800; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.card .arrow { display: inline-block; margin-top: 15px; color: var(--brand); font-size: 13px; font-weight: 700; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.metric { border-left: 3px solid var(--brand); padding: 4px 0 4px 13px; }
.metric strong { display: block; font-size: 24px; }
.metric span { color: var(--text-muted); font-size: 12px; }

/* Public documentation overview */
.home-page { width: min(1240px, 100%); }
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); align-items: center; gap: clamp(38px,6vw,86px); overflow: hidden; border: 1px solid rgba(203,196,223,.76); border-radius: 34px; background: linear-gradient(135deg,rgba(255,255,255,.96),rgba(247,244,255,.9) 54%,rgba(255,247,239,.93)); box-shadow: 0 34px 90px rgba(82,72,140,.12); padding: clamp(42px,6vw,76px); }
.hero-grid { position: absolute; z-index: -3; inset: 0; opacity: .36; background-image: linear-gradient(rgba(101,88,245,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(101,88,245,.06) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(110deg,#000,transparent 74%); }
.aurora { position: absolute; z-index: -2; width: 440px; height: 440px; border-radius: 50%; filter: blur(74px); opacity: .32; pointer-events: none; }
.aurora-one { right: 16%; top: -240px; background: #8d7dff; }
.aurora-two { right: -220px; bottom: -250px; background: #ffbd8d; }
.hero-noise { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 72% 18%,rgba(255,255,255,.88),transparent 32%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 19px; border: 1px solid rgba(101,88,245,.13); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--brand-strong); padding: 7px 11px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(101,88,245,.1); }
.home-hero h1 { max-width: 710px; margin-bottom: 19px; font-size: clamp(44px,5.2vw,74px); font-weight: 880; letter-spacing: -.065em; line-height: .99; }
.home-hero h1 em { display: block; color: var(--brand-strong); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.button.glow { box-shadow: 0 14px 32px rgba(101,88,245,.25); }
.button.glass { background: rgba(255,255,255,.7); backdrop-filter: blur(16px); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 23px; color: var(--text-secondary); font-size: 11px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--success); font-style: normal; font-weight: 900; }
.hero-console { --rotate-x: 0deg; --rotate-y: 0deg; position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.92); border-radius: 25px; background: rgba(255,255,255,.72); box-shadow: 0 28px 70px rgba(70,61,125,.16); transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)); transition: transform .22s ease,box-shadow .28s ease; backdrop-filter: blur(24px) saturate(145%); }
.hero-console:hover { box-shadow: 0 36px 86px rgba(70,61,125,.2); }
.console-glow { position: absolute; width: 220px; height: 220px; right: -92px; top: -110px; border-radius: 50%; background: rgba(101,88,245,.2); filter: blur(48px); pointer-events: none; }
.console-bar { position: relative; min-height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 17px; color: var(--text-secondary); font-size: 10px; font-weight: 750; }
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ded8f4; }
.console-dots i:nth-child(2) { background: #d9d0ff; }
.console-dots i:nth-child(3) { background: #f4d6c3; }
.console-live { justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.console-live i { width: 6px; height: 6px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.11); }
.console-body { min-height: 310px; display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 20px; padding: 28px; }
.console-orbit { position: relative; width: 176px; height: 176px; display: grid; place-items: center; border: 1px solid rgba(101,88,245,.16); border-radius: 50%; color: var(--brand); }
.console-orbit::before,.console-orbit::after { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(101,88,245,.2); border-radius: inherit; }
.console-orbit::after { inset: 48px; border-style: solid; }
.console-orbit b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg,var(--brand),#8f80ff); color: #fff; box-shadow: 0 14px 30px rgba(101,88,245,.24); }
.console-orbit > span { position: absolute; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--brand-warm); box-shadow: 0 4px 10px rgba(82,72,140,.16); }
.console-orbit > span:nth-child(1) { top: 9px; left: 80px; }
.console-orbit > span:nth-child(2) { right: 11px; top: 80px; }
.console-orbit > span:nth-child(3) { bottom: 12px; left: 80px; }
.console-orbit > span:nth-child(4) { left: 10px; top: 80px; }
.console-preview { min-width: 0; }
.console-preview > span,.console-preview strong,.console-preview p { display: block; }
.preview-category { color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.console-preview strong { margin-top: 9px; font-size: clamp(20px,2.2vw,30px); letter-spacing: -.03em; }
.console-preview p { margin: 9px 0 19px; color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.console-preview a { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-strong); font-size: 11px; font-weight: 800; }
.console-strip { display: flex; gap: 8px; overflow: hidden; border-top: 1px solid var(--line); padding: 11px 14px; }
.console-strip span { flex: none; border-radius: 999px; background: var(--surface-muted); color: var(--text-muted); padding: 5px 8px; font-size: 9px; }
.home-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 8px 0 0; padding-top: 31px; border-top: 1px solid rgba(203,196,223,.68); }
.home-metrics .metric { border-left-color: var(--brand-warm); }
.home-metrics .metric strong { font-size: 30px; }
.reveal-section { opacity: 0; transform: translateY(22px); transition: opacity .65s ease,transform .75s cubic-bezier(.22,1,.36,1); }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.text-action { border: 0; background: transparent; color: var(--brand-strong); padding: 0; font-size: 12px; font-weight: 800; cursor: pointer; }
.feature-navigation .spotlight-card { position: relative; min-height: 250px; overflow: hidden; padding: 25px; }
.spotlight-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -72px; bottom: -80px; border-radius: 50%; background: rgba(101,88,245,.1); }
.spotlight-card.accent-purple::after { background: rgba(143,128,255,.13); }
.spotlight-card.accent-cyan::after { background: rgba(255,169,119,.16); }
.card-number { color: var(--text-muted); font-size: 10px; font-weight: 800; }
.feature-symbol { width: 48px; height: 48px; display: grid; place-items: center; margin: 20px 0; border-radius: 15px; background: var(--brand-soft); color: var(--brand-strong); font-size: 15px; font-weight: 900; }
.category-lab { border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg,#fff,#faf8ff); padding: clamp(26px,4vw,44px); box-shadow: 0 20px 55px rgba(82,72,140,.07); }
.category-lab-grid { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); gap: 18px; }
.category-switcher { display: grid; gap: 7px; align-content: start; }
.category-switcher button { min-height: 54px; display: grid; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text-secondary); padding: 7px 10px; text-align: left; cursor: pointer; }
.category-switcher button:hover { background: var(--surface-muted); }
.category-switcher button[aria-selected="true"] { border-color: rgba(101,88,245,.18); background: var(--brand-soft); color: var(--brand-strong); }
.category-switcher button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-size: 11px; font-weight: 900; }
.category-switcher strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.category-switcher small { justify-self: end; color: var(--text-muted); font-size: 10px; }
.category-stage { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; align-content: start; }
.mini-product { min-height: 88px; display: grid; grid-template-columns: 38px minmax(0,1fr) 18px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.82); padding: 11px; animation: mini-in .36s calc(var(--delay) * 55ms) ease both; }
.mini-product:hover { border-color: rgba(101,88,245,.3); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(82,72,140,.09); }
.mini-product > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-muted); color: var(--brand); font-size: 11px; font-weight: 900; }
.mini-product strong,.mini-product small { display: block; }
.mini-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mini-product small { margin-top: 5px; overflow: hidden; color: var(--text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mini-product b { justify-self: end; color: var(--brand); }
@keyframes mini-in { from { opacity: 0; transform: translateY(7px); } }
.system-map { border-radius: 26px; background: #211d38; color: #fff; padding: clamp(28px,4vw,48px); box-shadow: 0 26px 68px rgba(31,27,55,.2); }
.system-map .section-heading p { color: #aaa4c4; }
.system-map .eyebrow,.system-map .text-action { color: #c9c1ff; }
.flow-track { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.flow-beam { position: absolute; z-index: 0; top: 50%; right: 8%; left: 8%; height: 1px; background: linear-gradient(90deg,transparent,#8f80ff,#ffb98a,transparent); }
.flow-track article { position: relative; z-index: 1; min-height: 150px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); padding: 19px; }
.flow-track article > span { color: #9d91ff; font-size: 10px; font-weight: 850; }
.flow-track strong { margin-top: 12px; font-size: 14px; }
.flow-track small { margin-top: 8px; color: #aaa4c4; font-size: 10px; line-height: 1.55; }
.component-marquee { width: calc(100% + 40px); margin: 58px -20px 0; overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.6); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 10px; padding: 14px 0; animation: docs-marquee 42s linear infinite; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--surface-muted); padding: 7px 10px; font-size: 10px; font-weight: 750; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.marquee-track small { color: var(--text-muted); font-size: 9px; font-weight: 500; }
@keyframes docs-marquee { to { transform: translateX(-50%); } }
.final-cta { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 82% 14%,rgba(101,88,245,.18),transparent 34%),linear-gradient(135deg,#fff,#fff6ef); padding: clamp(30px,5vw,64px); box-shadow: var(--shadow); }
.final-cta > div:first-child { max-width: 690px; }
.final-cta h2 { margin-bottom: 13px; font-size: clamp(30px,3.8vw,50px); letter-spacing: -.05em; }
.final-cta p { margin: 0; color: var(--text-secondary); line-height: 1.75; }

.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: clamp(30px, 3.5vw, 42px); }
.toolbar { position: sticky; z-index: 10; top: calc(var(--topbar) + env(safe-area-inset-top)); display: flex; flex-wrap: wrap; gap: 10px; margin: 0 -4px 24px; padding: 12px 4px; background: linear-gradient(var(--bg) 80%, transparent); }
.filter-input { min-height: 42px; flex: 1 1 260px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); padding: 0 13px; outline: none; }
.filter-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chip-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.chip { min-height: 38px; flex: none; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 0 13px; color: var(--text-secondary); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: #bcb4f5; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.product-groups { display: grid; gap: 34px; }
.product-group h2 { margin-bottom: 14px; font-size: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.product-card { display: flex; flex-direction: column; min-height: 184px; cursor: pointer; }
.product-card .product-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.tag { flex: none; border-radius: 13px; background: var(--surface-muted); color: var(--text-muted); padding: 4px 8px; font-size: 11px; font-weight: 700; }
.tag.ready { background: var(--success-soft); color: var(--success); }
.tag.regional { background: var(--warning-soft); color: var(--warning); }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.feature-list span { border-radius: 6px; background: var(--surface-muted); padding: 4px 7px; color: var(--text-secondary); font-size: 11px; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface); padding: 50px 20px; color: var(--text-muted); text-align: center; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 42px; }
.detail-body h2 { margin-top: 42px; padding-top: 8px; font-size: 24px; }
.detail-body p, .detail-body li { color: var(--text-secondary); line-height: 1.8; }
.detail-body ul, .detail-body ol { padding-left: 22px; }
.detail-aside { position: sticky; top: calc(var(--topbar) + 32px); align-self: start; border-left: 1px solid var(--line); padding-left: 20px; }
.detail-aside strong { font-size: 12px; }
.detail-aside a { display: block; margin-top: 10px; color: var(--text-muted); font-size: 12px; }
.callout { margin: 24px 0; border-left: 4px solid var(--brand); border-radius: 0 11px 11px 0; background: var(--brand-soft); padding: 16px 18px; }
.callout.warning { border-left-color: #d98a0a; background: var(--warning-soft); }
.callout strong { display: block; margin-bottom: 5px; }
.callout p { margin: 0; font-size: 13px; }
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 20px; }
.step { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px 18px 18px 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 17px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-muted); color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td p { margin: 4px 0 0; color: var(--text-muted); line-height: 1.5; }
.component-name { font-weight: 700; white-space: nowrap; }
.architecture { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.architecture .node { position: relative; display: grid; place-items: center; min-height: 98px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 15px; text-align: center; }
.architecture .node:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 36px; z-index: 2; color: var(--brand); font-weight: 800; }
.node strong { display: block; font-size: 13px; }
.node small { display: block; margin-top: 6px; color: var(--text-muted); line-height: 1.5; }
code { border-radius: 5px; background: #f1eff8; padding: 2px 5px; color: #5143e6; font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }
pre { overflow-x: auto; border-radius: 13px; background: #1d1a2e; color: #eeeafd; padding: 18px; font-size: 12px; line-height: 1.7; }
pre code { background: transparent; color: inherit; padding: 0; }

.footer { width: min(1180px, 100%); margin: 72px auto 0; min-height: 80px; display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 12px; padding-bottom: env(safe-area-inset-bottom); }
.search-dialog[hidden] { display: none; }
.search-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: max(9vh, 70px) 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(12, 24, 39, .48); backdrop-filter: blur(5px); }
.search-panel { position: relative; width: min(680px, 100%); max-height: min(680px, 80vh); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 28px 90px rgba(13, 32, 56, .28); }
.search-field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.search-field input { min-height: 40px; flex: 1; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.search-field button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.search-results { max-height: 570px; overflow-y: auto; padding: 10px; }
.search-result { display: block; border-radius: 10px; padding: 12px; }
.search-result:hover { background: var(--surface-muted); }
.search-result strong { display: block; font-size: 14px; }
.search-result span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }

@media (max-width: 1020px) {
  .topbar { grid-template-columns: var(--sidebar) minmax(220px, 1fr) auto; }
  .top-actions a:first-child { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-console { width: min(680px,100%); }
  .home-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .grid.four, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture { grid-template-columns: repeat(2, 1fr); }
  .architecture .node::after { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .mobile-nav-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 11px; }
  .search-button { justify-self: end; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
  .search-button span:nth-child(2), .search-button kbd, .top-actions { display: none; }
  .sidebar { transform: translateX(-105%); width: min(86vw, 310px); box-shadow: var(--shadow); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .content { margin-left: 0; padding: 30px 16px 0; }
  .hero { border-radius: 18px; padding: 30px 22px; }
  .home-hero { gap: 34px; border-radius: 24px; padding: 34px 22px; }
  .home-hero h1 { font-size: clamp(42px,12vw,62px); }
  .console-body { min-height: 0; grid-template-columns: 1fr; justify-items: center; padding: 24px 18px; }
  .console-preview { width: 100%; text-align: center; }
  .console-preview a { justify-content: center; }
  .home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .hero-trust { display: grid; grid-template-columns: 1fr; }
  .feature-navigation { grid-template-columns: 1fr; }
  .category-lab { border-radius: 20px; padding: 24px 16px; }
  .category-lab-grid { grid-template-columns: 1fr; }
  .category-switcher { grid-auto-flow: column; grid-auto-columns: minmax(175px,68vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .category-switcher button { scroll-snap-align: start; }
  .category-stage { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr 1fr; }
  .flow-beam { display: none; }
  .component-marquee { width: calc(100% + 32px); margin-inline: -16px; }
  .final-cta { min-height: 0; align-items: flex-start; flex-direction: column; border-radius: 22px; padding: 32px 22px; }
  .grid.three, .grid.four, .product-grid, .metric-row { grid-template-columns: 1fr; }
  .home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { margin-top: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .toolbar { top: calc(var(--topbar) + env(safe-area-inset-top)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { display: none; }
  .architecture { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; align-content: center; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
}

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