:root {
  color-scheme: light;
  --ink: #0b1218;
  --ink-soft: #111c24;
  --panel: #18252d;
  --paper: #f1f3ef;
  --white: #ffffff;
  --line-dark: #2c3a43;
  --line-light: #cfd7d5;
  --text: #172127;
  --muted: #56666d;
  --muted-dark: #a7b5bb;
  --cyan: #51cad7;
  --cyan-dark: #127d8a;
  --green: #6fd496;
  --amber: #f2bd52;
  --red: #ef7c78;
  --violet: #b99aeb;
  --blue: #79aef2;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

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

button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  color: #eef4f5;
  background: rgba(11, 18, 24, 0.96);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f8fbfb;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #b6c2c7;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }

.site-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px var(--cyan);
}

.site-nav .nav-store {
  padding: 8px 13px;
  color: #071316;
  background: var(--cyan);
  border-radius: 6px;
}

.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  color: #f4f8f9;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 390px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--cyan-dark); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: 66px;
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: 780;
}

h3 { font-size: 20px; }

.hero-lede {
  max-width: 760px;
  margin-bottom: 30px;
  color: #b9c5ca;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions, .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { color: #071316; background: var(--cyan); }
.button-primary:hover, .button-primary:focus-visible { background: #75dbe4; }
.button-secondary { color: #edf3f4; background: transparent; border-color: #53636c; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: #a6b7bd; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  color: #84969e;
  list-style: none;
  font-size: 13px;
}

.hero-proof li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--green); border-radius: 50%; vertical-align: 1px; }

.hero-visual {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -470px;
  width: min(1320px, 94vw);
  transform: translateX(-50%);
  border: 1px solid #34434b;
  border-bottom: 0;
  background: #20272b;
  box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.38);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 90px 90px rgba(11, 18, 24, 0.16);
  pointer-events: none;
}

.signal-band { color: #d8e2e5; background: var(--ink-soft); border-bottom: 1px solid var(--line-dark); }

.section-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.signal-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.signal-list::-webkit-scrollbar { display: none; }

.signal-list span { flex: 0 0 auto; color: #9eb0b7; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.section { padding: 104px 0; }
.section-light { background: var(--paper); }
.section-ink { color: #f1f5f6; background: var(--ink); }
.section-paper { background: #e5e9e4; }
.section-white { background: var(--white); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 { max-width: 700px; margin-bottom: 0; }
.section-heading > p { margin: 0; color: var(--muted); }
.section-heading.inverse > p { color: var(--muted-dark); }

.gallery { border-top: 1px solid #bbc6c3; }

.gallery-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 0;
  overflow-x: auto;
}

.gallery-tabs button {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #4f6067;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.gallery-tabs button:hover { color: var(--ink); }
.gallery-tabs button[aria-selected="true"] { color: #071316; background: var(--cyan); }

.gallery-panel { outline: none; }
.gallery-panel:focus-visible { box-shadow: 0 0 0 3px var(--cyan-dark); }
.gallery-panel figure { margin: 0; border: 1px solid #bfc9c7; background: #20272b; }
.gallery-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-panel figcaption { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 20px; color: #dce5e7; background: #182229; }
.gallery-panel figcaption strong { color: var(--cyan); }
.gallery-panel figcaption span { color: #aebcc1; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.capability-grid article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.capability-grid h3 { margin: 24px 0 12px; }
.capability-grid p { margin: 0; color: var(--muted-dark); font-size: 14px; }

.protocol-mark { display: inline-flex; padding: 4px 7px; border: 1px solid currentColor; border-radius: 4px; font-size: 11px; font-weight: 850; }
.mark-blue { color: var(--blue); }
.mark-green { color: var(--green); }
.mark-amber { color: var(--amber); }
.mark-red { color: var(--red); }
.mark-violet { color: var(--violet); }
.mark-cyan { color: var(--cyan); }

.workflow-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 92px; align-items: start; }
.workflow-intro { position: sticky; top: 104px; }
.workflow-intro > p:not(.eyebrow) { color: var(--muted); }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: #0a6f7a; font-weight: 800; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bcc6c2; }
.workflow-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid #bcc6c2; }
.workflow-steps > li > span { color: var(--cyan-dark); font-size: 13px; font-weight: 850; }
.workflow-steps h3 { margin-bottom: 8px; }
.workflow-steps p { margin: 0; color: var(--muted); }

.boundary-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.boundary-copy > p { color: var(--muted); font-size: 18px; }
.boundary-copy .scope-note { padding: 18px 0 18px 18px; border-left: 3px solid var(--amber); color: #48575d; font-size: 15px; }

.final-cta { padding: 78px 0; color: #f5f8f9; background: #17242b; border-top: 1px solid var(--line-dark); }
.final-cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.final-cta h2 { max-width: 700px; margin: 0; }

.site-footer { padding: 28px 0; color: #aebbc0; background: var(--ink); border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 7px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #eef3f4; font-size: 13px; }
.footer-brand span { font-size: 12px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { font-size: 13px; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--white); }

.doc-main { min-height: calc(100vh - 140px); padding: 70px 0 100px; background: var(--paper); }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 70px; align-items: start; }
.doc-nav { position: sticky; top: 96px; }
.doc-nav strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; }
.doc-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.doc-nav a:hover, .doc-nav a:focus-visible { color: var(--cyan-dark); }
.doc-content h1 { margin-bottom: 18px; color: var(--ink); font-size: 48px; }
.doc-content h2 { margin-top: 62px; padding-top: 14px; border-top: 1px solid var(--line-light); font-size: 30px; }
.doc-content h3 { margin-top: 34px; }
.doc-content p, .doc-content li { color: #46575e; }
.doc-content code { padding: 2px 5px; color: #126b76; background: #dbe5e2; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.doc-content pre { padding: 18px; overflow-x: auto; color: #dce7e9; background: var(--ink-soft); border-radius: 6px; }
.doc-content pre code { padding: 0; color: inherit; background: transparent; }
.doc-callout { margin: 24px 0; padding: 18px 20px; background: #dce8e5; border-left: 3px solid var(--cyan-dark); }
.doc-callout strong { display: block; margin-bottom: 6px; }

.tutorial-layout { grid-template-columns: 230px minmax(0, 900px); }
.tutorial-content { min-width: 0; }
.tutorial-lede { max-width: 780px; font-size: 19px; }
.tutorial-route { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 10px; }
.tutorial-route span { padding: 7px 10px; color: #0b5962; background: #d6e7e4; border: 1px solid #b5cfca; border-radius: 4px; font-size: 12px; font-weight: 800; }
.tutorial-figure { margin: 30px 0; overflow: hidden; background: #1c2429; border: 1px solid #9eaeaa; }
.tutorial-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tutorial-figure figcaption { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 15px 17px; color: #b9c6ca; background: #182229; }
.tutorial-figure figcaption strong { color: var(--cyan); }
.guide-table-wrap { max-width: 100%; margin: 26px 0; overflow-x: auto; border: 1px solid #b9c6c2; }
.guide-table { width: 100%; border-collapse: collapse; background: #f7f9f7; font-size: 14px; }
.guide-table th, .guide-table td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid #c8d2cf; }
.guide-table th { color: #18343b; background: #dbe7e4; font-size: 12px; text-transform: uppercase; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { width: 180px; color: #263d43; }
.guide-table code { overflow-wrap: anywhere; }
.protocol-guide { min-width: 720px; }
.protocol-guide td:first-child { width: 145px; }
.tutorial-gallery { margin-top: 36px; }
.completion-checklist { margin-top: 34px; border-left-color: var(--green); }
.warning-callout { background: #f5ead2; border-left-color: #b87812; }
.success-callout { background: #dcebe1; border-left-color: #2a8a53; }
.investigation-steps li { margin-bottom: 10px; }
.case-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 16px;
  border-top: 1px solid #aebbb8;
  border-bottom: 1px solid #aebbb8;
}
.case-summary div { padding: 20px 22px; }
.case-summary div + div { border-left: 1px solid #aebbb8; }
.case-summary strong, .case-summary span { display: block; }
.case-summary strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.case-summary span { color: var(--muted); font-size: 14px; }
.playbook-section { scroll-margin-top: 90px; }
.playbook-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 76px;
  padding-top: 24px;
  border-top: 2px solid #9fadaa;
}
.doc-content .playbook-heading h2 { margin: 3px 0 0; padding: 0; border: 0; }
.playbook-heading p { margin: 0; color: var(--cyan-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.playbook-number { color: var(--cyan-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 850; }
.tutorial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tutorial-secondary { color: var(--ink); background: transparent; border-color: #80908c; }
.tutorial-secondary:hover, .tutorial-secondary:focus-visible { border-color: var(--cyan-dark); }

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  color: #eef4f5;
  background: var(--ink);
}

.not-found > div { width: min(680px, 100%); }
.not-found img { margin-bottom: 30px; border-radius: 8px; }
.not-found h1 { margin-bottom: 18px; font-size: 52px; }
.not-found p:not(.eyebrow) { max-width: 580px; margin-bottom: 28px; color: var(--muted-dark); font-size: 18px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .site-nav .nav-store { padding-inline: 10px; }
}

@media (max-width: 900px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .site-header { padding-inline: 20px; }
  .nav-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; color: white; background: transparent; border: 1px solid #3d4b53; border-radius: 6px; }
  .nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: currentColor; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; max-height: calc(100vh - 68px); padding: 18px 22px 24px; overflow-y: auto; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .site-nav.open { display: grid; gap: 6px; }
  .site-nav a { padding: 11px 8px; font-size: 15px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--cyan); }
  .site-nav .nav-store { margin-top: 8px; text-align: center; }
  .hero { min-height: 760px; }
  .hero-copy { padding-top: 58px; padding-bottom: 350px; }
  .hero-visual { bottom: -360px; width: 1060px; max-width: none; }
  .section { padding: 80px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-layout, .boundary-layout { grid-template-columns: 1fr; gap: 46px; }
  .workflow-intro { position: static; }
  .doc-layout { grid-template-columns: 1fr; gap: 36px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
  .doc-nav strong { width: 100%; margin: 0; }
  .tutorial-figure figcaption { grid-template-columns: 1fr; gap: 5px; }
  .case-summary { grid-template-columns: 1fr; }
  .case-summary div + div { border-top: 1px solid #aebbb8; border-left: 0; }
  .doc-nav a { padding: 0; }
}

@media (max-width: 620px) {
  .section-inner, .hero-copy { width: min(100% - 32px, var(--max)); }
  .brand span { max-width: 180px; line-height: 1.2; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero { min-height: 720px; }
  .hero-copy { padding-top: 44px; padding-bottom: 290px; }
  .hero-lede { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 8px 16px; }
  .hero-visual { bottom: -250px; width: 760px; left: 42%; }
  .signal-list { min-height: 58px; }
  .section { padding: 64px 0; }
  .gallery-panel figcaption { grid-template-columns: 1fr; gap: 6px; padding: 14px; font-size: 13px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; padding: 24px; }
  .boundary-copy > p { font-size: 16px; }
  .final-cta-inner, .footer-inner { align-items: stretch; flex-direction: column; }
  .final-actions .button { width: 100%; }
  .site-footer nav { flex-wrap: wrap; }
  .doc-main { padding-top: 46px; }
  .doc-content h1 { font-size: 38px; }
  .doc-content h2 { font-size: 27px; }
  .playbook-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .tutorial-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
