:root {
  --ink: #182039;
  --ink-muted: #5d6882;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f4fb;
  --line: #e2e8f2;
  --brand: #4b5cff;
  --brand-deep: #2739c8;
  --cyan: #2ec9d3;
  --violet: #8464ff;
  --navy: #10142d;
  --shadow: 0 18px 48px rgba(30, 43, 81, .09);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.7 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 20; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--brand), var(--violet)); transition: width .1s linear; }
.site-header { position: sticky; top: 0; z-index: 10; min-height: 72px; border-bottom: 1px solid rgba(226,232,242,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1440px); min-height: 72px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 42px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { flex: none; width: 36px; height: 36px; object-fit: contain; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; }
.brand strong, .brand small { display: block; overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.brand strong { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.brand small { margin-top: 3px; color: #0891b2; font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-box { display: flex; align-items: center; gap: 7px; width: min(260px, 28vw); height: 36px; padding: 0 9px; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 11px; }
.icon-button { width: 35px; height: 35px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-muted); background: var(--surface); cursor: pointer; }
.icon-button:hover, .github-link:hover { color: var(--brand); border-color: #c7d0ff; }
.github-link { color: var(--ink-muted); font-size: 13px; }
.official-link { color: var(--brand); font-size: 13px; font-weight: 700; }
.official-link:hover { color: var(--brand-deep); }
.page-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.sidebar { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); padding: 42px 18px 30px clamp(20px, 3vw, 42px); overflow: auto; }
.sidebar-heading { margin-bottom: 16px; color: #99a4ba; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
#toc { display: grid; gap: 3px; }
#toc a { position: relative; padding: 8px 11px; border-radius: 8px; color: var(--ink-muted); font-size: 12px; transition: .2s ease; }
#toc a:hover { color: var(--brand); background: #edf0ff; }
#toc a.active { color: var(--brand-deep); font-weight: 700; background: #e9edff; }
#toc a.active::before { position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--brand); content: ""; }
.sidebar-note { display: flex; gap: 8px; margin-top: 52px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); }
.sidebar-note small, .sidebar-note strong { display: block; line-height: 1.35; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note small { margin-top: 3px; color: var(--ink-muted); font-size: 10px; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #3ac18b; box-shadow: 0 0 0 4px #def7ec; }
.content { min-width: 0; padding: 0 clamp(22px, 5vw, 86px) 70px 22px; }
.hero { position: relative; padding: clamp(66px, 9vw, 118px) 0 76px; overflow: hidden; }
.hero::after { position: absolute; z-index: -1; top: 18%; right: -15%; width: 470px; height: 470px; border-radius: 50%; background: radial-gradient(circle, rgba(97,118,255,.16), rgba(97,118,255,0) 67%); content: ""; }
.eyebrow, .section-kicker { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { max-width: 780px; margin: 17px 0 20px; font-size: clamp(36px, 5.4vw, 74px); letter-spacing: -.055em; line-height: 1.1; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 675px; margin: 0; color: var(--ink-muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.button-link { gap: 8px; }
.button-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 19px; height: 19px; }
.button-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-icon-logo img { width: 19px; height: 19px; object-fit: contain; }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 9px 20px rgba(75,92,255,.23); }
.button-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.button-quiet { border: 1px solid var(--line); color: var(--ink-muted); background: var(--surface); }
.button-quiet:hover { border-color: #c7d0ff; color: var(--brand); }
.notice { display: flex; gap: 11px; margin: 12px 0 70px; padding: 14px 17px; border: 1px solid; border-radius: 12px; }
.notice p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.notice-icon { display: grid; flex: 0 0 auto; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.notice-blue { border-color: #ced7ff; background: #f0f3ff; }
.notice-blue .notice-icon { background: var(--brand); }
.notice-amber { margin: 24px 0 0; border-color: #f0dfbd; background: #fffaf0; }
.notice-amber .notice-icon { background: #df9e30; }
.manual-section { scroll-margin-top: 90px; margin-bottom: 105px; }
.manual-section h2 { max-width: 780px; margin: 9px 0 13px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.045em; line-height: 1.2; }
.section-lead { max-width: 770px; margin: 0 0 30px; color: var(--ink-muted); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step-card { min-height: 126px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: .2s ease; }
.step-card:hover { border-color: #c2cbff; box-shadow: var(--shadow); transform: translateY(-2px); }
.step-card span, .menu-index { display: block; color: var(--brand); font: 800 11px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.step-card strong { display: block; margin-top: 15px; font-size: 14px; }
.step-card small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 11px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.menu-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.menu-card strong { display: block; margin-top: 13px; font-size: 13px; }
.menu-card p { margin: 3px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.45; }
.media-block-wide { max-width: 960px; }
.screenshot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.screenshot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.screenshot figcaption { padding: 8px 11px; color: var(--ink-muted); font-size: 10px; }
.screenshot-hero figcaption { padding: 11px 14px; font-size: 11px; }
.two-column { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 35px; margin-top: 26px; }
.align-start { align-items: start; }
.media-stack, .thumb-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.numbered-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.numbered-list li { position: relative; padding-left: 29px; color: var(--ink-muted); counter-increment: guide; }
.numbered-list li::before { position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--brand-deep); background: #e9edff; content: counter(guide); font-size: 10px; font-weight: 800; }
.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.tip { padding: 16px; border-radius: 12px; background: #edf8fa; }
.tip:nth-child(2) { background: #f4efff; }
.tip strong { font-size: 13px; }
.tip p { margin: 6px 0 0; color: var(--ink-muted); font-size: 12px; }
.resource-list { display: grid; gap: 12px; }
.resource-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); gap: 28px; align-items: center; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.resource-copy { display: flex; gap: 15px; }
.resource-number { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--brand-deep); background: #e9edff; font-size: 12px; font-weight: 800; }
.resource-row h3 { margin: 1px 0 7px; font-size: 16px; }
.resource-row p { margin: 0; color: var(--ink-muted); font-size: 12px; }
.compact-list { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 17px; color: var(--ink-muted); font-size: 11px; }
.resource-row .screenshot { max-width: 100%; }
.rule-flow { display: flex; align-items: stretch; gap: 9px; margin: 30px 0 40px; }
.rule-flow-step { flex: 1; padding: 14px; border: 1px solid #dfe5fa; border-radius: 12px; background: #f8f9ff; }
.rule-flow-step span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 800; }
.rule-flow-step strong { display: block; margin-top: 12px; font-size: 12px; }
.rule-flow-step small { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 10px; line-height: 1.45; }
.rule-flow > i { display: grid; place-items: center; color: #99a4ba; font-style: normal; }
.rule-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 27px; align-items: start; }
.manual-section h3 { margin: 0 0 17px; font-size: 18px; }
.designer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.designer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.designer-card strong, .designer-card p { display: block; margin-left: 13px; margin-right: 13px; }
.designer-card strong { margin-top: 13px; font-size: 13px; }
.designer-card p { min-height: 37px; margin-top: 4px; margin-bottom: 11px; color: var(--ink-muted); font-size: 10px; line-height: 1.45; }
.designer-card img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.trace-gallery { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.trace-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 15px; }
.trace-gallery-heading h3 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.03em; }
.trace-gallery-heading p { max-width: 280px; margin: 0 0 2px; color: var(--ink-muted); font-size: 11px; line-height: 1.55; text-align: right; }
.trace-gallery-kicker { color: var(--brand); font: 800 9px/1.2 ui-monospace, monospace; letter-spacing: .14em; }
.trace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trace-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.trace-card:hover { border-color: #bdc7ff; box-shadow: 0 12px 30px rgba(34,49,114,.1); transform: translateY(-2px); }
.trace-card-label { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px 8px; }
.trace-card-label strong { font-size: 12px; }.trace-card-label span { color: var(--brand); font: 800 9px/1 ui-monospace, monospace; }
.trace-card img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); object-fit: contain; cursor: zoom-in; }
.trace-card figcaption { padding: 7px 11px 9px; color: var(--ink-muted); font-size: 10px; }
.side-callout { position: sticky; top: 104px; padding: 19px; border-radius: 15px; color: #eaf0ff; background: var(--navy); box-shadow: 0 16px 35px rgba(16,20,45,.18); }
.side-callout h3 { margin-bottom: 19px; color: #fff; }
.callout-item { display: flex; gap: 9px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.callout-item span { color: var(--cyan); font: 800 10px/1.5 ui-monospace, monospace; }
.callout-item p { margin: 0; color: #b8c3e0; font-size: 11px; line-height: 1.55; }
.callout-item strong { color: #fff; }
.subsection-block { margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.subsection-heading { display: flex; align-items: baseline; gap: 11px; }
.subsection-heading span { color: var(--brand); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.subsection-heading h3 { margin-bottom: 10px; }
.release-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }
.operations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.operation-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.operation-card > :not(img) { margin-left: 15px; margin-right: 15px; }
.operation-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 15px; border-radius: 9px; color: var(--brand-deep); background: #e9edff; font-size: 17px; }
.operation-card h3 { margin-top: 13px; margin-bottom: 5px; font-size: 14px; }
.operation-card p { min-height: 75px; margin-top: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }
.operation-card img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.theme-panel { display: grid; grid-template-columns: 1fr minmax(260px, 40%); gap: 28px; align-items: center; margin-top: 24px; padding: 22px; border-radius: 15px; background: var(--navy); }
.theme-panel h3 { margin-top: 9px; color: #fff; }
.theme-panel p { margin: 0; color: #b8c3e0; font-size: 12px; }
.theme-panel .section-kicker { color: var(--cyan); }
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.integration-card { display: block; min-height: 154px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: .2s ease; }
.integration-card:hover { border-color: #c2cbff; box-shadow: var(--shadow); transform: translateY(-2px); }
.integration-card span { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.integration-card strong { display: block; margin-top: 18px; font-size: 14px; }
.integration-card p { margin: 5px 0 0; color: var(--ink-muted); font-size: 11px; }
.checklist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checklist-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.checklist-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.checklist-card h3 span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; background: var(--brand); font-size: 10px; }
.checklist-card label { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; color: var(--ink-muted); font-size: 11px; line-height: 1.5; cursor: pointer; }
.checklist-card input { accent-color: var(--brand); margin-top: 4px; }
.boundary-box { margin-top: 19px; padding: 19px 22px; border: 1px dashed #cbd3e1; border-radius: 13px; background: #fbfcff; }
.boundary-box h3 { margin-bottom: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--brand); }
.back-to-top { position: fixed; right: 25px; bottom: 24px; z-index: 5; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: rgba(255,255,255,.92); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.image-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 35px; background: rgba(9,13,33,.84); backdrop-filter: blur(8px); }
.image-modal[hidden] { display: none; }
.image-modal img { max-width: min(1200px, 94vw); max-height: 90vh; border-radius: 10px; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.modal-close { position: absolute; top: 18px; right: 24px; width: 39px; height: 39px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.15); font-size: 27px; line-height: 1; cursor: pointer; }
.back-to-top { width: auto; height: auto; padding: 8px 6px; border: 0; color: var(--brand); background: transparent; box-shadow: none; }
.back-to-top-arrows { display: flex; flex-direction: column; align-items: center; height: 25px; overflow: hidden; font-size: 17px; font-weight: 800; line-height: .62; }
.back-to-top-arrows i { display: block; height: 12px; font-style: normal; animation: back-to-top-bounce 1.15s ease-in-out infinite; }
.back-to-top-arrows i:nth-child(2) { animation-delay: .22s; opacity: .62; }
@keyframes back-to-top-bounce { 0%, 100% { transform: translateY(2px); opacity: .45; } 50% { transform: translateY(-3px); opacity: 1; } }
body.dark { --ink: #ecf1ff; --ink-muted: #a9b3ce; --paper: #0f1327; --surface: #171c34; --surface-soft: #1c2340; --line: #2a3455; --brand: #8090ff; --brand-deep: #a9b4ff; --shadow: 0 18px 48px rgba(0,0,0,.18); color-scheme: dark; }
body.dark .site-header { background: rgba(15,19,39,.9); }
body.dark .button-quiet, body.dark .icon-button, body.dark .sidebar-note, body.dark .screenshot, body.dark .step-card, body.dark .menu-card, body.dark .resource-row, body.dark .designer-card, body.dark .operation-card, body.dark .integration-card, body.dark .checklist-card { background: var(--surface); }
body.dark .notice-blue { background: #182242; border-color: #2a3c82; }
body.dark .notice-amber { background: #30281b; border-color: #5b4825; }
body.dark .boundary-box { background: #151a31; border-color: #3c4769; }
@media (max-width: 1120px) { .page-shell { grid-template-columns: 190px minmax(0, 1fr); } .content { padding-right: 34px; } .menu-grid { grid-template-columns: repeat(3, 1fr); } .operations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .site-header { min-height: 62px; } .site-header-inner { min-height: 62px; padding: 0 18px; } .header-actions { gap: 8px; } .github-link { display: none; } .search-box { width: min(210px, 38vw); } .page-shell { display: block; } .sidebar { position: sticky; top: 62px; z-index: 8; height: auto; padding: 9px 18px; border-bottom: 1px solid var(--line); background: rgba(247,249,252,.95); backdrop-filter: blur(16px); } body.dark .sidebar { background: rgba(15,19,39,.95); } .sidebar-heading, .sidebar-note { display: none; } #toc { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; } #toc::-webkit-scrollbar { display: none; } #toc a { flex: 0 0 auto; padding: 6px 9px; font-size: 11px; white-space: nowrap; } #toc a.active::before { top: auto; right: 9px; bottom: 2px; left: 9px; width: auto; height: 2px; } .content { padding: 0 18px 50px; } .hero { padding-top: 65px; } .hero h1 { font-size: clamp(36px, 10vw, 57px); } .hero-copy { font-size: 14px; } .manual-section { margin-bottom: 72px; } .step-grid, .menu-grid, .designer-grid, .checklist-grid { grid-template-columns: repeat(2, 1fr); } .two-column, .resource-row, .rule-layout, .theme-panel { grid-template-columns: 1fr; } .media-stack { max-width: 600px; } .side-callout { position: static; } .integration-grid { grid-template-columns: 1fr; } .site-footer { display: block; } .site-footer > span { display: block; margin-top: 9px; } }
@media (max-width: 540px) { .brand small { display: none; } .search-box { width: 40px; padding: 0 9px; } .search-box input, .search-box kbd { display: none; } .step-grid, .menu-grid, .designer-grid, .operations-grid, .release-strip, .tip-grid, .thumb-pair { grid-template-columns: 1fr; } .resource-row { padding: 15px; } .rule-flow { display: grid; grid-template-columns: 1fr; } .rule-flow > i { transform: rotate(90deg); min-height: 14px; } .media-stack { grid-template-columns: 1fr; } .notice { margin-bottom: 45px; } }

/* Scrollytelling layer: the visual state follows the chapter currently in view. */
.hero { isolation: isolate; }
.hero::before { position: absolute; z-index: -2; top: 8%; right: -10%; width: min(58vw, 760px); height: min(58vw, 760px); border: 1px solid rgba(87,104,255,.16); border-radius: 50%; box-shadow: 0 0 0 48px rgba(87,104,255,.025), 0 0 0 96px rgba(87,104,255,.02); content: ""; transform: translate3d(0, calc(var(--scroll-shift, 0) * -1px), 0); }
.hero-telemetry { position: absolute; z-index: -1; top: 28%; right: 0; width: min(35vw, 365px); padding: 15px 16px 13px; overflow: hidden; border: 1px solid rgba(121,139,255,.26); border-radius: 16px; color: #dfe7ff; background: linear-gradient(145deg, rgba(26,33,85,.97), rgba(11,18,49,.93)); box-shadow: 0 22px 60px rgba(44,54,156,.22), inset 0 1px 0 rgba(255,255,255,.1); transform: translate3d(0, calc(var(--scroll-shift, 0) * -.25px), 0) rotate(4deg); }
.hero-telemetry::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,166,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,166,255,.06) 1px, transparent 1px); background-size: 24px 24px; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.telemetry-top, .telemetry-bottom { position: relative; display: flex; justify-content: space-between; color: #96a4d6; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.telemetry-top i, .console-signal i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #46e4d4; box-shadow: 0 0 0 4px rgba(70,228,212,.13), 0 0 15px #46e4d4; }
.telemetry-graph { position: relative; height: 104px; margin: 12px 0 8px; }
.telemetry-line { position: absolute; display: block; height: 1px; background: linear-gradient(90deg, transparent, rgba(70,228,212,.92), rgba(116,132,255,.2)); transform-origin: left center; }
.telemetry-line-a { top: 57%; left: 14%; width: 39%; transform: rotate(-19deg); }
.telemetry-line-b { top: 40%; left: 50%; width: 37%; transform: rotate(20deg); }
.telemetry-node { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(126,145,255,.7); border-radius: 50%; color: #fff; background: rgba(42,53,135,.8); box-shadow: 0 0 0 7px rgba(80,98,221,.12), 0 0 25px rgba(85,111,255,.3); font: 800 9px/1 ui-monospace, monospace; }
.telemetry-node-a { top: 52%; left: 5%; }
.telemetry-node-b { top: 25%; left: 44%; border-color: rgba(70,228,212,.8); background: rgba(24,113,128,.85); animation: telemetry-breathe 2.8s ease-in-out infinite; }
.telemetry-node-c { top: 43%; right: 4%; }
.telemetry-bottom { padding-top: 10px; border-top: 1px solid rgba(153,171,255,.17); }
.telemetry-bottom b { margin-left: 4px; color: #fff; font-size: 10px; }
@keyframes telemetry-breathe { 0%, 100% { box-shadow: 0 0 0 7px rgba(70,228,212,.11), 0 0 18px rgba(70,228,212,.22); } 50% { box-shadow: 0 0 0 12px rgba(70,228,212,.02), 0 0 30px rgba(70,228,212,.42); } }

.scrolly-story { position: relative; display: grid; grid-template-columns: minmax(340px, .96fr) minmax(500px, 1.04fr); gap: clamp(32px, 4vw, 68px); min-height: 168vh; margin: 10px 0 96px; scroll-margin-top: 100px; }
.story-copy { padding-top: 7vh; }
.story-intro { min-height: 45vh; padding: 18px 0 4vh; }
.story-intro h2 { max-width: 560px; margin: 11px 0 15px; font-size: clamp(29px, 4vw, 50px); letter-spacing: -.055em; line-height: 1.12; }
.story-intro h2 em { color: var(--brand); font-style: normal; }
.story-intro p { max-width: 450px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.story-scroll-hint { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--ink-muted); font-size: 11px; }
.scroll-wheel { position: relative; display: inline-block; width: 18px; height: 29px; border: 1px solid #a7b2c7; border-radius: 12px; }
.scroll-wheel::after { position: absolute; top: 6px; left: 7px; width: 3px; height: 6px; border-radius: 4px; background: var(--brand); content: ""; animation: scroll-wheel 1.8s ease-in-out infinite; }
@keyframes scroll-wheel { 0%, 100% { opacity: .25; transform: translateY(0); } 45% { opacity: 1; transform: translateY(7px); } }
.story-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; min-height: 41vh; padding: 6vh 0 8vh; opacity: .28; transform: translate3d(-15px, 0, 0); transition: opacity .65s ease, transform .65s ease; }
.story-step::before { position: absolute; top: 0; bottom: 0; left: 17px; width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 13%, var(--line) 87%, transparent); content: ""; }
.story-step.is-active { opacity: 1; transform: translate3d(0, 0, 0); }
.story-step-index { position: relative; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-muted); background: var(--paper); font: 800 10px/1 ui-monospace, monospace; transition: .45s ease; }
.story-step.is-active .story-step-index { border-color: var(--brand); color: #fff; background: var(--brand); box-shadow: 0 0 0 7px rgba(75,92,255,.11), 0 8px 20px rgba(75,92,255,.2); }
.story-step h3 { margin: 0 0 9px; font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -.035em; }
.story-step p { max-width: 420px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.story-chip { display: inline-flex; margin-top: 19px; padding: 5px 8px; border: 1px solid #cbd4ff; border-radius: 5px; color: var(--brand); background: #eef1ff; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.story-stage-wrap { position: sticky; top: 106px; align-self: start; display: flex; align-items: center; height: 78vh; min-height: 550px; }
.story-stage { --stage-accent: #46e4d4; --stage-accent-2: #7285ff; position: relative; width: 100%; height: min(690px, 78vh); min-height: 510px; overflow: hidden; border: 1px solid rgba(114,138,255,.26); border-radius: 24px; color: #eaf0ff; background: radial-gradient(circle at 50% 45%, rgba(54,76,178,.46), transparent 37%), radial-gradient(circle at 78% 20%, rgba(46,201,211,.16), transparent 28%), #090f2a; box-shadow: 0 30px 80px rgba(31,47,125,.2), inset 0 1px 0 rgba(255,255,255,.1); transition: --stage-accent .5s ease; }
.story-stage[data-story-state="1"] { --stage-accent: #a381ff; --stage-accent-2: #5470ff; background: radial-gradient(circle at 50% 45%, rgba(80,58,173,.52), transparent 38%), radial-gradient(circle at 80% 23%, rgba(132,100,255,.18), transparent 28%), #0d0d2c; }
.story-stage[data-story-state="2"] { --stage-accent: #70ebbc; --stage-accent-2: #4fc9dd; background: radial-gradient(circle at 50% 45%, rgba(27,120,135,.5), transparent 38%), radial-gradient(circle at 79% 20%, rgba(72,230,183,.17), transparent 28%), #081c2c; }
.story-stage::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(130,151,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(130,151,255,.055) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000 15%, transparent 92%); content: ""; }
.stage-stars { position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(circle at 13% 22%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 78% 13%, #b3c6ff 0 1px, transparent 1.5px), radial-gradient(circle at 87% 69%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 27% 81%, #abcaff 0 1px, transparent 1.5px), radial-gradient(circle at 61% 7%, #fff 0 1px, transparent 1.5px); background-size: 123px 117px, 169px 137px, 197px 187px, 151px 161px, 119px 143px; animation: stage-drift 18s linear infinite; }
@keyframes stage-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, 16px, 0); } }
.stage-orbit { position: absolute; border: 1px solid rgba(143,163,255,.22); border-radius: 50%; transform: translate(-50%, -50%) rotate(-22deg); }
.stage-orbit-a { top: 47%; left: 52%; width: 83%; height: 47%; border-style: dashed; animation: orbit-spin 25s linear infinite; }
.stage-orbit-b { top: 47%; left: 52%; width: 61%; height: 79%; border-color: rgba(89,231,218,.15); transform: translate(-50%, -50%) rotate(43deg); animation: orbit-spin-reverse 32s linear infinite; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(338deg); } }
@keyframes orbit-spin-reverse { to { transform: translate(-50%, -50%) rotate(-317deg); } }
.stage-glow { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--stage-accent); filter: blur(55px); opacity: .19; transition: background .6s ease, transform .8s ease; }
.stage-glow-a { top: 17%; left: 11%; }
.stage-glow-b { right: 8%; bottom: 13%; width: 210px; height: 210px; opacity: .1; transform: translate3d(calc(var(--scroll-shift, 0) * .13px), 0, 0); }
.story-console { position: absolute; top: 52%; left: 50%; width: min(76%, 530px); min-height: 334px; overflow: hidden; border: 1px solid rgba(157,177,255,.26); border-radius: 14px; background: rgba(8,15,42,.86); box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08); transform: translate(-50%, -50%); }
.console-bar, .console-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 0 13px; border-bottom: 1px solid rgba(160,180,255,.13); color: #8090c3; font: 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-footer { border-top: 1px solid rgba(160,180,255,.13); border-bottom: 0; color: #7f90c4; }
.console-lights { display: flex; gap: 5px; }
.console-lights i { width: 6px; height: 6px; border-radius: 50%; background: #6f7ea9; }
.console-lights i:first-child { background: #f08b9a; }.console-lights i:nth-child(2) { background: #efca68; }.console-lights i:nth-child(3) { background: #6de0ad; }
.console-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-signal { color: var(--stage-accent); transition: color .5s ease; }.console-signal i { background: var(--stage-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-accent) 15%, transparent), 0 0 15px var(--stage-accent); transition: background .5s ease, box-shadow .5s ease; }
.console-body { padding: 25px 26px 21px; }
.console-kicker { color: var(--stage-accent); font: 800 9px/1.2 ui-monospace, monospace; letter-spacing: .14em; transition: color .5s ease; }
.console-body h3 { margin: 11px 0 6px; color: #f2f5ff; font-size: 25px; letter-spacing: -.04em; }
.console-body > p { margin: 0; color: #95a5d4; font-size: 11px; }
.console-code { display: grid; gap: 7px; margin-top: 24px; padding: 14px; border: 1px solid rgba(148,169,255,.12); border-radius: 8px; background: rgba(16,27,68,.58); color: #b9c7f7; font: 10px/1.45 ui-monospace, monospace; }
.console-code i { color: #a8b4df; font-style: normal; }.code-key { color: #6ee6d1; font-weight: 500; }.console-code strong { color: #f1d778; font-weight: 500; }.code-comment { color: #6d7cae; }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.console-metrics div { padding: 9px; border: 1px solid rgba(148,169,255,.12); border-radius: 7px; background: rgba(17,28,68,.44); }.console-metrics span, .console-metrics b { display: block; }.console-metrics span { color: #6d7cac; font: 8px/1.2 ui-monospace, monospace; letter-spacing: .06em; }.console-metrics b { margin-top: 5px; color: #e6ecff; font: 800 12px/1 ui-monospace, monospace; }
.console-pulse { display: flex; gap: 3px; }.console-pulse i { width: 3px; height: 3px; border-radius: 50%; background: var(--stage-accent); animation: console-pulse 1.2s ease-in-out infinite; }.console-pulse i:nth-child(2) { animation-delay: .18s; }.console-pulse i:nth-child(3) { animation-delay: .36s; }
@keyframes console-pulse { 0%, 100% { opacity: .25; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-3px); } }
.stage-caption { position: absolute; right: 21px; bottom: 17px; left: 21px; display: flex; align-items: center; gap: 8px; color: #7e8cbe; font: 9px/1 ui-monospace, monospace; letter-spacing: .08em; }.stage-caption b { margin-left: auto; color: #bdc8f1; font-weight: 500; }.stage-caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stage-accent); box-shadow: 0 0 12px var(--stage-accent); transition: background .5s ease, box-shadow .5s ease; }
.manual-section { position: relative; }
.manual-section::before { position: absolute; top: -52px; left: -24px; width: 3px; height: 34px; border-radius: 3px; background: var(--line); content: ""; transition: background .4s ease, box-shadow .4s ease; }.manual-section.is-inview::before { background: linear-gradient(to bottom, var(--cyan), var(--brand)); box-shadow: 0 0 15px rgba(75,92,255,.35); }
body.dark .story-chip { border-color: #3c4ca1; background: #1b2456; }.story-stage .story-console, body.dark .story-stage .story-console { color: #eaf0ff; }

@media (max-width: 1120px) {
  .hero-telemetry { right: 2%; width: 310px; opacity: .86; }
  .scrolly-story { grid-template-columns: minmax(270px, .72fr) minmax(420px, 1.28fr); gap: 34px; }
  .story-console { width: 82%; }
  .trace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-telemetry { position: relative; top: auto; right: auto; z-index: 0; width: min(100%, 390px); margin: 48px 0 0; transform: none; }
  .hero::before { top: 36%; right: -40%; width: 650px; height: 650px; }
  .scrolly-story { display: block; min-height: auto; margin-top: 15px; }
  .story-copy { padding-top: 0; }
  .story-intro { min-height: auto; padding-bottom: 44px; }
  .story-step { min-height: 0; padding: 45px 0 57px; }
  .story-step:first-of-type { padding-top: 25px; }
  .story-stage-wrap { position: sticky; top: 80px; z-index: 3; height: 73vh; min-height: 490px; margin: 6px 0 30px; }
  .story-stage { height: min(620px, 73vh); min-height: 490px; }
  .story-console { width: min(85%, 520px); }
  .trace-gallery-heading { display: block; }.trace-gallery-heading p { max-width: 500px; margin-top: 8px; text-align: left; }.trace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-section::before { left: -13px; }
}
@media (max-width: 540px) {
  .hero-telemetry { padding: 13px; }.telemetry-graph { height: 89px; }
  .scrolly-story { margin-bottom: 72px; }.story-stage-wrap { top: 71px; height: 67vh; min-height: 430px; margin-right: -1px; margin-left: -1px; }.story-stage { height: min(540px, 67vh); min-height: 430px; border-radius: 18px; }.story-console { width: 89%; min-height: 300px; }.console-body { padding: 20px 17px 17px; }.console-body h3 { font-size: 21px; }.console-code { margin-top: 18px; font-size: 9px; }.console-metrics { gap: 5px; }.console-metrics div { padding: 7px 5px; }.console-metrics span { font-size: 7px; }.console-metrics b { font-size: 10px; }.stage-caption { right: 14px; bottom: 13px; left: 14px; font-size: 8px; }.network-node { width: 32px; height: 32px; }.network-node-input { left: 5%; }.network-node-trace { right: 5%; }.trace-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Full-width shell, header navigation and official company footer. */
:root { --content-gutter: clamp(20px, 4vw, 78px); }
html, body { overflow-x: hidden; }
.site-header-inner { width: 100%; max-width: none; min-height: 72px; padding: 0 var(--content-gutter); gap: clamp(16px, 2vw, 34px); }
.header-menu, #toc.header-menu { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.header-menu::-webkit-scrollbar { display: none; }
#toc.header-menu a { position: relative; flex: 0 0 auto; padding: 8px 9px; border-radius: 8px; color: var(--ink-muted); font-size: 11px; white-space: nowrap; transition: .2s ease; }
#toc.header-menu a:hover { color: var(--brand); background: #edf0ff; }
#toc.header-menu a.active { color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--violet)); box-shadow: 0 6px 16px rgba(75,92,255,.22); }
#toc.header-menu a.active::before { display: none; }
.page-shell { display: block; width: 100%; max-width: none; margin: 0; }
.sidebar { display: none; }
.content { width: 100%; max-width: none; padding: 0 var(--content-gutter) 72px; }
.manual-section, .notice { width: 100%; }
.manual-section { scroll-margin-top: 104px; }

/* One centered visual stage; the narrative copy lives inside the console. */
.scrolly-story { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 166vh; margin: 10px 0 96px; }
.story-copy.story-triggers { grid-area: 1 / 1; z-index: 0; width: 100%; height: 166vh; padding: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.story-triggers .story-step { width: 1px; height: 53vh; min-height: 0; padding: 0; margin: 0; opacity: 0; transform: none; }
.story-triggers .story-step::before { display: none; }
.story-stage-wrap { grid-area: 1 / 1; z-index: 1; align-self: start; width: calc(100% + (var(--content-gutter) * 2)); height: calc(100vh - 104px); min-height: 620px; margin: 0 calc(var(--content-gutter) * -1); }
.story-stage { width: 100%; height: 100%; min-height: 0; border-radius: 0; }
.story-console { width: min(76%, 600px); }

.site-footer { width: calc(100% + (var(--content-gutter) * 2)); margin: 28px calc(var(--content-gutter) * -1) -72px; padding: 0; border: 0; color: #b4a8d1; background: linear-gradient(115deg, #32104e 0%, #1d073b 48%, #160d43 100%); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; padding: 27px clamp(28px, 10vw, 150px); }
.footer-meta, .footer-contact { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.footer-meta strong, .footer-contact strong { color: #f1e9ff; font-size: 12px; letter-spacing: .02em; }
.footer-meta span, .footer-meta a, .footer-contact span, .footer-contact a { color: #aa9bc8; font-size: 11px; line-height: 1.45; }
.footer-meta a, .footer-contact a { color: #d39aff; text-decoration: underline; text-underline-offset: 2px; }
.footer-contact { flex: 0 0 auto; }
.footer-contact strong { margin-bottom: 2px; }
.footer-social { display: flex; flex: 0 0 auto; gap: 16px; }
.footer-qr { display: flex; align-items: center; flex-direction: column; gap: 3px; }
.footer-qr img { display: block; width: 58px; height: 58px; border: 0; border-radius: 0; background: transparent; object-fit: contain; filter: drop-shadow(0 0 9px rgba(165,110,255,.28)); }
.footer-qr--official img { min-width: 74px; min-height: 74px; background: white; image-rendering: pixelated; }
.footer-qr span { color: #d39aff; font-size: 10px; }

@media (max-width: 1120px) {
  .site-header-inner { gap: 14px; }
  .header-menu { order: 3; flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: 6px; }
  .site-header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header { min-height: 104px; }
  .story-stage-wrap { width: calc(100% + (var(--content-gutter) * 2)); }
  .site-footer-inner { padding-inline: 7vw; }
}
@media (max-width: 820px) {
  :root { --content-gutter: 18px; }
  .site-header { min-height: 106px; }
  .site-header-inner { min-height: 106px; gap: 8px; padding: 10px 18px; }
  .header-actions { margin-left: auto; }
  .header-menu { gap: 1px; }
  #toc.header-menu a { padding: 6px 8px; font-size: 10px; }
  .content { padding-inline: 18px; }
  .scrolly-story { min-height: 146vh; margin-bottom: 72px; }
  .story-copy.story-triggers { height: 146vh; }
  .story-triggers .story-step { height: 47vh; }
  .story-stage-wrap { top: 122px; width: calc(100% + (var(--content-gutter) * 2)); height: calc(100vh - 150px); min-height: 450px; margin-left: calc(var(--content-gutter) * -1); }
  .story-console { width: min(84%, 560px); }
  .site-footer-inner { align-items: flex-start; flex-wrap: wrap; padding: 27px 18px; }
  .footer-meta { flex: 1 1 100%; }
  .footer-contact { flex: 1 1 auto; }
}
@media (max-width: 540px) {
  .brand-logo { width: 32px; height: 32px; }
  .brand strong { font-size: 13px; }
  .brand small { display: block; font-size: 9px; }
  .official-link { display: none; }
  .search-box { width: 38px; }
  .scrolly-story { min-height: 132vh; }
  .story-copy.story-triggers { height: 132vh; }
  .story-triggers .story-step { height: 43vh; }
  .story-stage-wrap { top: 118px; width: calc(100% + (var(--content-gutter) * 2)); height: calc(100vh - 140px); min-height: 410px; margin-left: calc(var(--content-gutter) * -1); }
  .story-console { width: 89%; }
  .site-footer-inner { gap: 20px; }
  .footer-social { margin-left: auto; }
  .footer-qr img { width: 48px; height: 48px; }
}

/* Five-stage scroll narrative from navigation to runtime governance. */
.workflow-scrolly { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 205vh; margin: 22px 0 105px; scroll-margin-top: 104px; }
.workflow-triggers { grid-area: 1 / 1; height: 205vh; opacity: 0; pointer-events: none; overflow: hidden; }
.workflow-step { width: 1px; height: 40vh; min-height: 0; margin: 0; opacity: 0; }
.workflow-stage-wrap { position: sticky; top: 104px; z-index: 2; grid-area: 1 / 1; align-self: start; width: calc(100% + (var(--content-gutter) * 2)); height: calc(100vh - 104px); min-height: 620px; margin-left: calc(var(--content-gutter) * -1); }
.workflow-stage { --workflow-accent: #46e4d4; position: relative; width: 100%; height: 100%; overflow: hidden; color: #edf2ff; background: radial-gradient(circle at 50% 42%, rgba(54,76,178,.44), transparent 35%), radial-gradient(circle at 76% 18%, rgba(46,201,211,.15), transparent 28%), #080e28; box-shadow: 0 30px 80px rgba(31,47,125,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.workflow-stage[data-workflow-state="1"] { --workflow-accent: #7285ff; background: radial-gradient(circle at 50% 42%, rgba(57,69,170,.48), transparent 35%), radial-gradient(circle at 78% 20%, rgba(132,100,255,.15), transparent 28%), #0b102b; }
.workflow-stage[data-workflow-state="2"] { --workflow-accent: #42d8e1; background: radial-gradient(circle at 50% 42%, rgba(28,105,139,.45), transparent 35%), radial-gradient(circle at 79% 20%, rgba(46,201,211,.17), transparent 28%), #071a2c; }
.workflow-stage[data-workflow-state="3"] { --workflow-accent: #b28cff; background: radial-gradient(circle at 50% 42%, rgba(83,56,176,.48), transparent 35%), radial-gradient(circle at 78% 20%, rgba(132,100,255,.18), transparent 28%), #100d2c; }
.workflow-stage[data-workflow-state="4"] { --workflow-accent: #70ebbc; background: radial-gradient(circle at 50% 42%, rgba(25,121,133,.5), transparent 35%), radial-gradient(circle at 79% 20%, rgba(72,230,183,.18), transparent 28%), #061c2c; }
.workflow-stage-grid { position: absolute; inset: 0; opacity: .8; background-image: linear-gradient(rgba(130,151,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(130,151,255,.055) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.workflow-stage-grid::after { position: absolute; inset: 0; opacity: .75; background-image: radial-gradient(circle at 13% 28%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 85% 24%, #b3c6ff 0 1px, transparent 1.5px), radial-gradient(circle at 74% 80%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 28% 82%, #abcaff 0 1px, transparent 1.5px); background-size: 150px 160px, 191px 173px, 209px 191px, 173px 181px; content: ""; }
.workflow-stage-glow { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: var(--workflow-accent); filter: blur(70px); opacity: .15; transition: background .6s ease; }
.workflow-stage-glow-a { top: 18%; left: 8%; }.workflow-stage-glow-b { right: 9%; bottom: 11%; opacity: .09; }
.workflow-stage-header { position: absolute; top: 26px; right: clamp(24px, 6vw, 100px); left: clamp(24px, 6vw, 100px); display: flex; align-items: center; justify-content: space-between; color: #8c9ad0; font: 800 10px/1 ui-monospace, monospace; letter-spacing: .1em; }.workflow-stage-header i, .workflow-sync i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--workflow-accent); box-shadow: 0 0 12px var(--workflow-accent); }.workflow-stage-header b { color: #d0d9ff; font-weight: 500; }
.workflow-rail { position: absolute; top: 22%; right: clamp(30px, 10vw, 180px); left: clamp(30px, 10vw, 180px); display: flex; align-items: center; justify-content: center; }
.workflow-node { display: flex; flex: 0 0 126px; align-items: center; flex-direction: column; gap: 7px; color: #7888bd; opacity: .42; transition: opacity .5s ease, color .5s ease, transform .5s ease; }.workflow-node span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(140,159,255,.47); border-radius: 50%; color: #a8b5e4; background: rgba(20,31,82,.75); font: 800 10px/1 ui-monospace, monospace; transition: .5s ease; }.workflow-node strong { font-size: 12px; }.workflow-node small { color: #6173aa; font: 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.workflow-node.is-complete { color: #d7e4ff; opacity: .82; }.workflow-node.is-complete span { border-color: rgba(70,228,212,.6); color: #70ebbc; background: rgba(27,93,109,.52); }.workflow-node.is-active { color: #fff; opacity: 1; transform: translateY(-6px); }.workflow-node.is-active span { border-color: var(--workflow-accent); color: #fff; background: color-mix(in srgb, var(--workflow-accent) 24%, #14205c); box-shadow: 0 0 0 10px color-mix(in srgb, var(--workflow-accent) 10%, transparent), 0 0 28px color-mix(in srgb, var(--workflow-accent) 42%, transparent); transform: scale(1.12); }.workflow-node.is-active small { color: var(--workflow-accent); }
.workflow-rail-line { flex: 1; height: 1px; min-width: 24px; background: linear-gradient(90deg, rgba(108,132,255,.1), rgba(108,132,255,.48), rgba(108,132,255,.1)); opacity: .45; transition: background .5s ease, opacity .5s ease; }.workflow-rail-line.is-complete { opacity: 1; background: linear-gradient(90deg, #70ebbc, var(--workflow-accent)); box-shadow: 0 0 12px rgba(70,228,212,.35); }
.workflow-console { position: absolute; top: 56%; left: 50%; width: min(70%, 790px); min-height: 330px; overflow: hidden; border: 1px solid rgba(157,177,255,.28); border-radius: 16px; background: rgba(8,15,42,.86); box-shadow: 0 24px 75px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08); transform: translate(-50%, -50%); }.workflow-console-bar, .workflow-console-footer { display: flex; align-items: center; justify-content: space-between; min-height: 37px; padding: 0 15px; border-bottom: 1px solid rgba(160,180,255,.13); color: #8190c2; font: 9px/1 ui-monospace, monospace; }.workflow-console-footer { border-top: 1px solid rgba(160,180,255,.13); border-bottom: 0; }.workflow-sync { color: var(--workflow-accent); }.workflow-sync i { background: var(--workflow-accent); }
.workflow-console-body { padding: 30px 34px 26px; }.workflow-kicker { color: var(--workflow-accent); font: 800 10px/1.2 ui-monospace, monospace; letter-spacing: .14em; transition: color .5s ease; }.workflow-console-body h2 { margin: 13px 0 8px; color: #f4f7ff; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.05em; line-height: 1.1; }.workflow-console-body p { max-width: 610px; margin: 0; color: #a9b8e3; font-size: 13px; }.workflow-console-meta { display: flex; align-items: center; gap: 10px; margin-top: 25px; }.workflow-console-meta strong { color: #f0f4ff; font: 800 14px/1 ui-monospace, monospace; }.workflow-console-meta span { padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--workflow-accent) 35%, transparent); border-radius: 5px; color: var(--workflow-accent); font: 800 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
.workflow-pulse { display: flex; gap: 3px; }.workflow-pulse i { width: 3px; height: 3px; border-radius: 50%; background: var(--workflow-accent); animation: console-pulse 1.2s ease-in-out infinite; }.workflow-pulse i:nth-child(2) { animation-delay: .18s; }.workflow-pulse i:nth-child(3) { animation-delay: .36s; }
.workflow-stage-caption { position: absolute; right: clamp(24px, 6vw, 100px); bottom: 22px; left: clamp(24px, 6vw, 100px); display: flex; align-items: center; gap: 8px; color: #7e8cbe; font: 9px/1 ui-monospace, monospace; letter-spacing: .08em; }.workflow-stage-caption .stage-caption-dot { background: var(--workflow-accent); box-shadow: 0 0 12px var(--workflow-accent); }.workflow-stage-caption span:last-child { color: #bdc8f1; }
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 175vh; margin-bottom: 72px; }.workflow-triggers { height: 175vh; }.workflow-step { height: 34vh; }
  .workflow-stage-wrap { top: 122px; height: calc(100vh - 150px); min-height: 470px; }
  .workflow-rail { top: 18%; right: 15px; left: 15px; }.workflow-node { flex-basis: 56px; gap: 4px; }.workflow-node span { width: 32px; height: 32px; font-size: 9px; }.workflow-node strong { font-size: 9px; text-align: center; }.workflow-node small { display: none; }.workflow-rail-line { min-width: 7px; }
  .workflow-console { top: 56%; width: 88%; min-height: 300px; }.workflow-console-body { padding: 23px 19px 21px; }.workflow-console-body h2 { font-size: 25px; }.workflow-console-body p { font-size: 11px; }.workflow-console-meta { margin-top: 19px; }.workflow-console-meta strong { font-size: 11px; }
  .workflow-stage-caption { right: 15px; bottom: 15px; left: 15px; font-size: 8px; }
}
@media (max-width: 540px) {
  .workflow-stage-wrap { top: 118px; height: calc(100vh - 140px); min-height: 430px; }.workflow-stage { border-radius: 0; }.workflow-stage-header { top: 17px; right: 15px; left: 15px; font-size: 8px; }.workflow-rail { top: 17%; }.workflow-console { width: 91%; min-height: 280px; }.workflow-console-bar, .workflow-console-footer { padding: 0 10px; }.workflow-console-body { padding: 20px 15px 18px; }.workflow-console-body h2 { font-size: 22px; }.workflow-console-body p { font-size: 10px; }.workflow-console-meta strong { font-size: 10px; }
}

/* Keep the desktop reading column, header and footer aligned at 70% of the viewport. */
@media (min-width: 1121px) {
  .site-header-inner, .page-shell { width: 70vw; max-width: none; }
  .page-shell { margin-right: auto; margin-left: auto; }
  .site-footer { width: 100vw; margin-right: calc(-1 * ((100vw - 70vw) / 2 + var(--content-gutter))); margin-left: calc(-1 * ((100vw - 70vw) / 2 + var(--content-gutter))); }
  .site-footer-inner { padding-right: 42px; padding-left: 42px; }
  .workflow-stage-wrap { width: 86%; margin-right: auto; margin-left: auto; }
  .header-actions { flex: 0 0 auto; gap: 10px; }
  .official-link, .github-link { white-space: nowrap; }
  .search-box { width: min(180px, 18vw); }
  .hero h1 { max-width: 620px; font-size: clamp(38px, 4vw, 62px); }
  .hero-copy { max-width: 580px; }
  .hero-telemetry { width: min(28vw, 270px); }
}
@media (max-width: 1120px) {
  .site-header-inner, .page-shell { width: calc(100% - 36px); }
  .site-footer { width: 100vw; margin-right: calc(-1 * (18px + var(--content-gutter))); margin-left: calc(-1 * (18px + var(--content-gutter))); }
}
@media (max-width: 820px) {
  .site-header-inner, .page-shell { width: 100%; }
  .site-footer { width: 100vw; margin-right: 0; margin-left: -18px; }
}

/* Keep the workflow stage aligned with the Quick Start cards instead of filling the viewport. */
.manual-section::before { top: 0; left: -12px; height: 60px; }
@media (min-width: 1121px) {
  .workflow-scrolly { min-height: 180vh; }
  .workflow-triggers { height: 180vh; }
  .workflow-step { height: 36vh; }
  .workflow-stage-wrap { width: 100%; height: 620px; min-height: 0; margin-right: auto; margin-left: auto; }
}
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 160vh; }
  .workflow-triggers { height: 160vh; }
  .workflow-step { height: 32vh; }
  .workflow-stage-wrap { width: 100%; height: 560px; min-height: 0; margin-right: auto; margin-left: auto; }
}
@media (max-width: 820px) {
  .manual-section::before { left: -12px; }
  .workflow-stage-wrap { height: 540px; min-height: 0; }
}

/* Compact the workflow track so the next content follows the stage immediately. */
.workflow-scrolly { min-height: 620px; margin-bottom: 24px; }
.workflow-triggers { height: 620px; }
.workflow-step { height: 124px; }
.workflow-stage { --workflow-inset: clamp(24px, 5vw, 90px); }
.workflow-console { top: 59%; }
@media (min-width: 1121px) {
  .workflow-scrolly { min-height: 620px; }
  .workflow-triggers { height: 620px; }
  .workflow-step { height: 124px; }
}
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 560px; }
  .workflow-triggers { height: 560px; }
  .workflow-step { height: 112px; }
  .workflow-stage-wrap { height: 560px; }
}
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 540px; }
  .workflow-triggers { height: 540px; }
  .workflow-step { height: 108px; }
  .workflow-stage-wrap { height: 540px; }
  .workflow-stage { --workflow-inset: 15px; }
  .workflow-console { top: 58%; }
}

/* Keep the workflow stage fixed while its invisible steps drive progressive states. */
.workflow-scrolly { min-height: 180vh; margin-bottom: 24px; }
.workflow-triggers { height: 180vh; }
.workflow-step { height: 36vh; }
.workflow-stage-wrap { position: sticky; top: 104px; align-self: start; height: 620px; min-height: 0; }
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 160vh; }
  .workflow-triggers { height: 160vh; }
  .workflow-step { height: 32vh; }
  .workflow-stage-wrap { top: 122px; height: 560px; }
}

/* Homepage replaces the legacy telemetry card with the workflow stage. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.hero { min-height: 180vh; overflow: visible; align-items: start; }
.hero-main { grid-column: 1; align-self: center; }
.hero-workflow { grid-column: 2; grid-row: 1; width: 100%; min-height: 180vh; height: 180vh; margin: 0; }
.hero-workflow .workflow-triggers { height: 180vh; }
.hero-workflow .workflow-stage-wrap { position: sticky; top: 104px; width: 100%; height: 620px; min-height: 0; margin: 0; }
.hero-workflow .workflow-stage { height: 620px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; min-height: 150vh; }
  .hero-main, .hero-workflow { grid-column: 1; grid-row: auto; }
  .hero-workflow { height: 150vh; min-height: 150vh; }
  .hero-workflow .workflow-triggers { height: 150vh; }
  .hero-workflow .workflow-stage-wrap, .hero-workflow .workflow-stage { height: 540px; }
  #toc.header-menu { max-width: 100%; overflow-x: auto; }
}

/* Final homepage composition: one viewport-sized hero with a compact sticky stage. */
.hero { min-height: 760px; overflow: visible; grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); gap: 24px; }
.hero-workflow { height: 760px; min-height: 760px; }
.hero-workflow .workflow-triggers { height: 760px; }
.hero-workflow .workflow-stage-wrap { height: 620px; min-height: 0; }
.hero-actions .button-primary { color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.hero-actions .button-primary:hover { color: var(--brand); background: var(--surface); border-color: #c7d0ff; transform: translateY(-1px); }
.notice-blue { margin-bottom: 24px; }
@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-workflow { height: 620px; min-height: 620px; }
  .hero-workflow .workflow-triggers { height: 620px; }
  .hero-workflow .workflow-stage-wrap, .hero-workflow .workflow-stage { height: 540px; }
  .notice-blue { margin-bottom: 24px; }
}
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 150vh; }
  .workflow-triggers { height: 150vh; }
  .workflow-step { height: 30vh; }
  .workflow-stage-wrap { top: 118px; height: 540px; }
}

/* Hero workflow uses a compact right column without letting the console overflow. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr); gap: 32px; }
.hero-main { align-self: start; padding-top: 32px; }
.hero-workflow .workflow-stage { --workflow-inset: 24px; }
.hero-workflow .workflow-rail { right: 24px; left: 24px; }
.hero-workflow .workflow-console { top: 59%; right: 24px; left: 24px; width: auto; }
.hero-workflow .workflow-node { flex: 1 1 0; min-width: 0; }
.hero-workflow .workflow-node strong { font-size: 9px; white-space: nowrap; }
.hero-workflow .workflow-node small { display: none; }
.hero-workflow .workflow-rail-line { min-width: 6px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-main { padding-top: 0; }
  .hero-workflow .workflow-stage { --workflow-inset: 15px; }
  .hero-workflow .workflow-rail { right: 15px; left: 15px; }
  .hero-workflow .workflow-console { right: 15px; left: 15px; }
}

/* Full-width footer background with content aligned to the header shell. */
@media (min-width: 1121px) {
  .site-footer-inner { width: 70vw; margin-right: auto; margin-left: auto; padding-right: var(--content-gutter); padding-left: var(--content-gutter); }
}
@media (max-width: 1120px) {
  .site-footer-inner { width: calc(100% - 36px); margin-right: auto; margin-left: auto; padding-right: var(--content-gutter); padding-left: var(--content-gutter); }
}
@media (max-width: 820px) {
  .site-footer-inner { width: 100%; padding-right: 18px; padding-left: 18px; }
}

/* Editorial cards and image frames use square corners; controls keep their interaction shape. */
.screenshot,
.step-card,
.menu-card,
.resource-row,
.designer-card,
.trace-card,
.operation-card,
.integration-card,
.checklist-card,
.boundary-box,
.theme-panel,
.side-callout,
.workflow-stage,
.workflow-console { border-radius: 0; }
.screenshot img,
.designer-card img,
.trace-card img,
.operation-card img { border-radius: 0; }

/* Match the section marker to the full eyebrow + heading block. */
.manual-section::before { top: 0; height: 78px; }
@media (max-width: 820px) {
  .manual-section::before { height: 88px; }
}
@media (max-width: 540px) {
  .manual-section::before { height: 102px; }
}

/* Final sticky workflow track: the stage stays visible while each trigger changes its state. */
.workflow-scrolly { min-height: 180vh; margin-bottom: 24px; }
.workflow-triggers { height: 180vh; }
.workflow-step { height: 36vh; }
.workflow-stage-wrap { position: sticky; top: 104px; align-self: start; height: 620px; min-height: 0; }
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 160vh; }
  .workflow-triggers { height: 160vh; }
  .workflow-step { height: 32vh; }
  .workflow-stage-wrap { top: 122px; height: 560px; }
}
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 150vh; }
  .workflow-triggers { height: 150vh; }
  .workflow-step { height: 30vh; }
  .workflow-stage-wrap { top: 118px; height: 540px; }
}

/* Align the workflow track with its visual stage. */
.manual-section::before { background: linear-gradient(180deg, var(--cyan), var(--brand), var(--violet)); box-shadow: 0 0 14px rgba(75,92,255,.3); }
.workflow-scrolly { min-height: 620px; margin-bottom: 24px; }
.workflow-triggers { height: 620px; }
.workflow-step { height: 124px; }
.workflow-stage { --workflow-inset: clamp(30px, 10vw, 180px); }
.workflow-console { right: var(--workflow-inset); left: var(--workflow-inset); width: auto; transform: translateY(-50%); }
.workflow-rail { right: var(--workflow-inset); left: var(--workflow-inset); }
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 560px; }
  .workflow-triggers { height: 560px; }
  .workflow-step { height: 112px; }
  .workflow-stage { --workflow-inset: 24px; }
}
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 540px; }
  .workflow-triggers { height: 540px; }
  .workflow-step { height: 108px; }
  .workflow-stage { --workflow-inset: 15px; }
  .workflow-console { width: auto; }
  .workflow-rail { right: 15px; left: 15px; }
}

/* Put the homepage message and visual in one compact layout. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 36%); align-items: center; justify-content: stretch; gap: clamp(26px, 4vw, 56px); padding: 76px 0 52px; }
.hero-main { min-width: 0; }
.hero-telemetry { position: relative; z-index: 0; top: auto; right: auto; width: 100%; margin: 0; opacity: 1; justify-self: end; transform: rotate(3deg); }
.hero-actions { margin-top: 28px; }
.hero-actions .button { padding: 12px 18px; font-size: 14px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 56px; }
  .hero-telemetry { width: min(100%, 390px); margin: 0; transform: none; }
}

/* Match the hero row height to the carousel so the next section follows immediately. */
@media (min-width: 821px) {
  .hero { height: 696px; min-height: 696px; padding-top: 76px; padding-bottom: 0; }
  .hero-main { height: 620px; min-height: 0; }
}
@media (max-width: 820px) {
  .hero { height: auto; min-height: 0; padding-bottom: 0; }
  .hero-main { height: auto; min-height: 0; }
}

/* Final sticky workflow override. */
.workflow-scrolly { min-height: 180vh; margin-bottom: 24px; }
.workflow-triggers { height: 180vh; }
.workflow-step { height: 36vh; }
.workflow-stage-wrap { position: sticky; top: 104px; align-self: start; height: 620px; min-height: 0; }
@media (max-width: 1120px) {
  .workflow-scrolly { min-height: 160vh; }
  .workflow-triggers { height: 160vh; }
  .workflow-step { height: 32vh; }
  .workflow-stage-wrap { top: 122px; height: 560px; }
}
@media (max-width: 820px) {
  .workflow-scrolly { min-height: 150vh; }
  .workflow-triggers { height: 150vh; }
  .workflow-step { height: 30vh; }
  .workflow-stage-wrap { top: 118px; height: 540px; }
}

/* Final homepage composition override. */
.hero { min-height: 760px; overflow: visible; grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); gap: 24px; }
.hero-workflow { height: 760px; min-height: 760px; }
.hero-workflow .workflow-triggers { height: 760px; }
.hero-workflow .workflow-stage-wrap { height: 620px; min-height: 0; }
.hero-actions .button-primary { color: var(--ink-muted); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.hero-actions .button-primary:hover { color: var(--brand); background: var(--surface); border-color: #c7d0ff; transform: translateY(-1px); }
@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-workflow { height: 620px; min-height: 620px; }
  .hero-workflow .workflow-triggers { height: 620px; }
  .hero-workflow .workflow-stage-wrap, .hero-workflow .workflow-stage { height: 540px; }
}

/* Hero carousel: fixed stage, clickable 01-05 nodes, no scroll-track whitespace. */
.hero { height: 620px; min-height: 620px; align-items: stretch; overflow: visible; }
.hero-main { display: flex; min-height: 620px; flex-direction: column; align-self: stretch; padding-top: 32px; }
.hero-actions { margin-top: auto; padding-bottom: 28px; }
.hero-workflow { height: 620px; min-height: 620px; }
.hero-workflow .workflow-triggers { display: none; }
.hero-workflow .workflow-stage-wrap { position: relative; top: auto; width: 100%; height: 620px; min-height: 0; margin: 0; }
.hero-workflow .workflow-stage { height: 620px; }
.hero-workflow .workflow-node { cursor: pointer; }
.hero-workflow .workflow-node:focus-visible { outline: 2px solid var(--workflow-accent); outline-offset: 5px; }
@media (max-width: 820px) {
  .hero { height: auto; min-height: 0; }
  .hero-main { min-height: 0; padding-top: 0; }
  .hero-actions { margin-top: 28px; padding-bottom: 0; }
  .hero-workflow { height: 540px; min-height: 540px; margin-top: 24px; }
  .hero-workflow .workflow-stage-wrap, .hero-workflow .workflow-stage { height: 540px; }
}

/* Final hero row alignment. */
@media (min-width: 821px) {
  .hero { height: 696px; min-height: 696px; padding-top: 76px; padding-bottom: 0; }
  .hero-main { height: 620px; min-height: 0; }
}
@media (max-width: 820px) {
  .hero { height: auto; min-height: 0; padding-bottom: 0; }
  .hero-main { height: auto; min-height: 0; }
}

/* Keep the hero copy grouped and give the workflow rail enough breathing room. */
@media (min-width: 821px) {
  .hero-main { height: auto; min-height: 0; padding-top: 32px; }
  .hero-actions { margin-top: 28px; padding-bottom: 0; }
  .hero-workflow .workflow-rail { top: 16%; }
  .hero-workflow .workflow-console { top: 65%; }
}

/* Leave tail room on the last section without pushing the footer below the viewport. */
.home-page .content { padding-bottom: 72px; }
.home-page #checklist { margin-bottom: 138px; }
@media (max-width: 820px) {
  .home-page .content { padding-bottom: 50px; }
  .home-page #checklist { margin-bottom: 138px; }
}

/* Use one clear floating control instead of the barely visible animated arrows. */
.back-to-top {
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(75, 92, 255, .24);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--violet));
  box-shadow: 0 12px 28px rgba(75, 92, 255, .3), 0 2px 5px rgba(29, 39, 102, .14);
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.back-to-top.visible { transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 16px 34px rgba(75, 92, 255, .38), 0 3px 7px rgba(29, 39, 102, .18); transform: translateY(-3px); }
.back-to-top:active { transform: translateY(0); }
.back-to-top:focus-visible { outline: 3px solid rgba(46, 201, 211, .55); outline-offset: 4px; }
.back-to-top-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

body.dark .back-to-top { border-color: rgba(128, 144, 255, .42); box-shadow: 0 12px 28px rgba(0, 0, 0, .38); }
body.dark .back-to-top:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .48); }

@media (max-width: 540px) {
  .back-to-top { right: 17px; bottom: 18px; width: 44px; height: 44px; border-radius: 13px; }
  .back-to-top-icon { width: 20px; height: 20px; }
}

/* Keep the deployment and integration destinations visible immediately below the hero. */
.home-entry-strip {
  margin: 0 0 86px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(241, 244, 255, .78));
  box-shadow: var(--shadow);
}

.home-entry-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.home-entry-heading h2 { margin: 7px 0 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.045em; line-height: 1.2; }
.home-entry-heading p { max-width: 330px; margin: 0 0 2px; color: var(--ink-muted); font-size: 12px; }
.home-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home-entry-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 94px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); transition: .2s ease; }
.home-entry-card:hover { border-color: #bdc7ff; box-shadow: var(--shadow); transform: translateY(-2px); }
.home-entry-card strong { display: block; font-size: 14px; }
.home-entry-card p { margin: 4px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.45; }
.home-entry-card > b { color: var(--brand); font-size: 18px; }
.home-entry-index { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet)); font: 800 10px/1 ui-monospace, monospace; }
body.dark .home-entry-strip { background: linear-gradient(135deg, rgba(23, 28, 52, .96), rgba(28, 35, 64, .88)); }

@media (max-width: 820px) {
  .home-entry-heading { display: block; }
  .home-entry-heading p { margin-top: 10px; }
  .home-entry-grid { grid-template-columns: 1fr; }
}

/* Compact the homepage hero while keeping the title, copy and actions evenly grouped. */
@media (min-width: 821px) {
  .home-page .hero {
    height: 600px;
    min-height: 600px;
    padding-top: 48px;
    padding-bottom: 40px;
    align-items: center;
  }

  .home-page .hero-main {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    padding-top: 0;
  }

  .home-page .hero h1 { margin: 16px 0 20px; }
  .home-page .hero-copy { margin: 0 0 24px; }
  .home-page .hero-actions { gap: 12px; margin: 0; padding: 0; }
  .home-page .hero-workflow { height: 540px; min-height: 540px; }
  .home-page .hero-workflow .workflow-triggers { height: 540px; }
  .home-page .hero-workflow .workflow-stage-wrap,
  .home-page .hero-workflow .workflow-stage { height: 540px; }
}

@media (max-width: 820px) {
  .home-page .hero {
    height: auto;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .home-page .hero-main { height: auto; min-height: 0; padding-top: 0; }
  .home-page .hero h1 { margin: 16px 0 18px; }
  .home-page .hero-copy { margin-bottom: 22px; }
  .home-page .hero-actions { margin: 0; padding: 0; }
  .home-page .hero-workflow { height: 500px; min-height: 500px; margin-top: 20px; }
  .home-page .hero-workflow .workflow-triggers { height: 500px; }
  .home-page .hero-workflow .workflow-stage-wrap,
  .home-page .hero-workflow .workflow-stage { height: 500px; }
}

@media (max-width: 540px) {
  .home-page .hero-workflow { height: 440px; min-height: 440px; }
  .home-page .hero-workflow .workflow-triggers { height: 440px; }
  .home-page .hero-workflow .workflow-stage-wrap,
  .home-page .hero-workflow .workflow-stage { height: 440px; }
}

/* Keep the site chrome visible while letting short documents still fill the viewport. */
:root { --site-header-height: 72px; }
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; padding-top: var(--site-header-height); }
.site-header { position: fixed; inset: 0 0 auto; height: var(--site-header-height); min-height: var(--site-header-height); }
.page-shell { flex: 1 0 auto; min-height: calc(100vh - var(--site-header-height)); }
.content { display: flex; min-height: calc(100vh - var(--site-header-height)); flex-direction: column; padding-bottom: 0; }
.home-page .content { padding-bottom: 0; }
.content > .site-footer { margin-top: auto; margin-bottom: 0; }
.manual-section { scroll-margin-top: calc(var(--site-header-height) + 32px); }

@media (max-width: 820px) {
  :root { --site-header-height: 106px; }
  .site-header { height: var(--site-header-height); min-height: var(--site-header-height); }
  .page-shell { min-height: calc(100vh - var(--site-header-height)); }
  .content { min-height: calc(100vh - var(--site-header-height)); }
}
