:root {
  color-scheme: dark;
  --ink: #f2f5f7;
  --muted: #98a4b2;
  --quiet: #66717e;
  --paper: #0a0d12;
  --panel: #11161d;
  --panel-2: #171d25;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #58c7eb;
  --cyan-dim: rgba(88, 199, 235, 0.16);
  --orange: #ff7a3d;
  --acid: #d7f36a;
  --radius: 26px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 5%, rgba(88, 199, 235, 0.08), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: #071014;
  background: var(--cyan);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1540px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
.brand-mark {
  width: 34px;
  height: 34px;
  padding: 8px;
  display: flex;
  gap: 3px;
  align-items: end;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.brand-mark i { display: block; width: 4px; border-radius: 9px; background: var(--cyan); }
.brand-mark i:nth-child(1) { height: 50%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-link {
  color: var(--muted);
  font-size: .76rem;
  text-decoration: none;
  transition: color 180ms ease;
}
.header-link:hover { color: var(--cyan); }
.platform-chip {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quiet-button, .nav-button, .primary-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.quiet-button {
  padding: 10px 15px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.quiet-button:hover { background: #202833; transform: translateY(-1px); }

.hero {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(60px, 10vw, 190px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.055em;
}
.hero-deck {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.primary-button {
  padding: 15px 22px;
  color: #061116;
  background: var(--cyan);
  border-radius: 999px;
  font-weight: 700;
}
.primary-button:hover { transform: translateY(-2px); background: #7ed8f4; }
.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.text-link:hover { color: var(--cyan); }

.hero-index { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.hero-index-label { color: var(--quiet); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-index ol { padding: 0; margin: 20px 0 0; list-style: none; }
.hero-index li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.hero-index b { color: var(--cyan); font-size: 0.75rem; }

.video-overview {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 100px;
}
.video-overview .eyebrow { margin-bottom: 20px; }
.video-overview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090b0f;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.guide {
  padding: 100px max(24px, calc((100vw - 1540px) / 2));
  background: #0d1117;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 5.5rem); }
.section-heading > p {
  max-width: 460px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.tour-shell {
  min-height: 760px;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.3);
}
.chapter-rail { position: relative; padding: 30px 18px 30px 30px; border-right: 1px solid var(--line); }
.rail-progress { position: absolute; top: 30px; bottom: 30px; left: 16px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; width: 100%; height: 7.1%; background: var(--cyan); transition: height 380ms ease; }
.rail-list { display: flex; flex-direction: column; gap: 4px; }
.chapter-button {
  width: 100%;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--quiet);
  text-align: left;
  cursor: pointer;
}
.chapter-button span:first-child { font-size: 0.65rem; font-weight: 700; }
.chapter-button span:last-child { font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-button:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.chapter-button.active { color: var(--ink); background: var(--cyan-dim); }
.chapter-button.active span:first-child { color: var(--cyan); }

.tour-main { min-width: 0; padding: 34px; }
.tour-meta { min-height: 92px; display: flex; justify-content: space-between; align-items: start; gap: 40px; }
.step-kicker { color: var(--cyan); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tour-meta h3 { margin: 5px 0 0; font-family: var(--display); font-size: clamp(2rem, 3.1vw, 3.65rem); font-weight: 500; letter-spacing: -0.045em; }
.tour-meta p { max-width: 420px; margin: 4px 0 0; color: var(--muted); line-height: 1.55; }

.stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: stretch; }
.screen-stage {
  position: relative;
  min-width: 0;
  margin: 0;
  align-self: start;
  overflow: hidden;
  border-radius: 20px;
  background: #050609;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.screen-stage img { display: block; width: 100%; height: auto; }
.screen-stage figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  background: rgba(5,8,12,.72);
  backdrop-filter: blur(14px);
  font-size: 0.65rem;
  letter-spacing: .04em;
}
.hotspot-layer { position: absolute; inset: 0; z-index: 2; }
.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: white;
  background: rgba(7,13,19,.82);
  box-shadow: 0 3px 14px rgba(0,0,0,.55);
  font-size: .69rem;
  font-weight: 800;
  cursor: pointer;
  transition: width 160ms ease, height 160ms ease, background 160ms ease, transform 160ms ease;
}
.hotspot::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 18px;
  top: 25px;
  left: 11px;
  border-left: 2px solid rgba(255,255,255,.72);
  transform: rotate(18deg);
  transform-origin: top;
}
.hotspot::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,.82);
  border-bottom: 2px solid rgba(255,255,255,.82);
  transform: rotate(63deg);
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.1); }
.hotspot.active {
  width: 38px;
  height: 38px;
  color: #071014;
  background: var(--cyan);
  border-color: white;
  box-shadow: 0 0 0 7px rgba(88,199,235,.18), 0 6px 20px rgba(0,0,0,.6);
}
.hotspot.active::before { top: 31px; left: 14px; border-color: var(--cyan); }
.hotspot.active::after { top: 46px; left: 18px; border-color: var(--cyan); }

.inspector {
  min-height: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: #0c1117;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.inspector-topline { display: flex; justify-content: space-between; align-items: center; color: var(--cyan); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.control-symbol { font-size: 1.2rem; color: var(--ink); }
.inspector h4 { margin: 26px 0 12px; font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.inspector > p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .92rem; }
.control-tip {
  margin-top: 22px !important;
  padding: 16px 0;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.control-tip strong { color: var(--acid); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.control-tip span { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.control-list { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 7px; }
.control-chip {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: .66rem;
  cursor: pointer;
}
.control-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.control-chip.active { color: #071014; background: var(--cyan); border-color: var(--cyan); font-weight: 800; }

.tour-navigation { min-height: 60px; padding-top: 24px; display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; gap: 20px; }
.nav-button { padding: 10px 0; color: var(--muted); background: transparent; }
.nav-button:first-child { text-align: left; }
.nav-button.next { color: var(--ink); text-align: right; }
.nav-button:hover { color: var(--cyan); }
.nav-button:disabled { opacity: .3; cursor: default; }
.step-dots { display: flex; justify-content: center; gap: 7px; }
.step-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--quiet); cursor: pointer; transition: width 180ms ease, background 180ms ease; }
.step-dot.active { width: 25px; background: var(--cyan); }

.screen-stage.is-changing img { animation: screen-in 420ms cubic-bezier(.22,.8,.2,1); }
.inspector.is-changing > * { animation: copy-in 340ms ease both; }
@keyframes screen-in { from { opacity: .25; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.model-guide {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 20px;
}
.model-heading h2 { font-size: clamp(3rem, 5.8vw, 6.5rem); line-height: .92; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.model-card {
  min-height: 360px;
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.model-card.recommended { box-shadow: inset 0 3px 0 var(--cyan); }
.model-card-top { display: flex; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.model-card-top b { color: var(--acid); font-weight: 700; }
.model-card h3 { margin: 34px 0 14px; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.3rem); font-weight: 500; letter-spacing: -.045em; }
.model-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.model-card ul { margin: 26px 0 0; padding: 20px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); list-style: none; }
.model-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.model-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.model-advice { padding: 64px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(50px, 10vw, 160px); border-bottom: 1px solid var(--line-strong); }
.model-advice h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; }
.model-advice > div > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.model-use-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-use-cases article { min-height: 230px; padding: 34px 30px 34px 0; border-bottom: 1px solid var(--line); }
.model-use-cases article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.model-use-cases span { color: var(--cyan); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.model-use-cases h3 { margin: 24px 0 12px; font-size: 1.18rem; letter-spacing: -.02em; }
.model-use-cases p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }

.gateway-guide {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 40px;
}
.gateway-heading h2 { font-family: var(--display); font-size: clamp(3rem, 5.8vw, 6.5rem); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.gateway-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.gateway-tab {
  min-height: 92px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.gateway-tab:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.gateway-tab.active { color: var(--ink); background: var(--panel-2); border-color: rgba(88,199,235,.45); }
.gateway-tab-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #071014; font-size: 1.35rem; font-weight: 800; }
.codex-icon { background: var(--cyan); }
.pcc-icon { background: var(--acid); }
.gateway-tab span:last-child { display: grid; gap: 4px; }
.gateway-tab strong { font-size: .94rem; }
.gateway-tab small { color: var(--quiet); font-size: .72rem; }

.gateway-panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 28px 85px rgba(0,0,0,.26);
}
.gateway-panel[hidden] { display: none; }
.gateway-panel.active { animation: gateway-in 360ms ease both; }
@keyframes gateway-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.gateway-intro { padding: clamp(28px, 4vw, 58px); display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(40px, 8vw, 130px); align-items: end; }
.route-number { color: var(--cyan); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.gateway-intro h3 { margin: 9px 0 16px; font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4.8rem); font-weight: 500; letter-spacing: -.05em; }
.gateway-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.gateway-intro code, .path-note code, .settings-grid code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.requirements { padding: 20px 0 0; border-top: 1px solid var(--line-strong); }
.requirements > span { color: var(--quiet); font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.requirements ul { margin: 14px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.requirements li { position: relative; padding-left: 17px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.requirements li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }

.route-diagram { padding: 24px clamp(22px, 4vw, 58px); display: grid; grid-template-columns: repeat(7, auto); gap: 14px; align-items: center; background: #0b1016; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.route-diagram > i { color: var(--quiet); font-style: normal; }
.route-node { min-height: 94px; padding: 16px; display: grid; grid-template-columns: 27px 1fr; align-content: center; column-gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.route-node > span { grid-row: 1 / span 2; width: 27px; height: 27px; display: grid; place-items: center; align-self: center; color: var(--cyan); background: var(--cyan-dim); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.route-node strong { font-size: .78rem; white-space: nowrap; }
.route-node small { margin-top: 3px; color: var(--quiet); font-size: .64rem; white-space: nowrap; }
.route-node.accent-codex { border-color: rgba(88,199,235,.5); box-shadow: inset 0 0 30px rgba(88,199,235,.08); }
.route-node.accent-pcc { border-color: rgba(215,243,106,.45); box-shadow: inset 0 0 30px rgba(215,243,106,.06); }

.setup-steps { margin: 0; padding: 0 clamp(28px, 4vw, 58px); list-style: none; counter-reset: setup; }
.setup-steps > li { padding: 36px 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 20px; border-bottom: 1px solid var(--line); }
.setup-steps > li:last-child { border-bottom: 0; }
.step-number { padding-top: 4px; color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.setup-steps h4 { margin: 0 0 9px; font-size: 1.18rem; letter-spacing: -.02em; }
.setup-steps p { max-width: 900px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.script-download {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #071014;
  background: var(--cyan);
  border-radius: 13px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}
.script-download:hover { transform: translateY(-2px); background: #7ed8f4; }
.script-download > span:first-child { font-size: 1.15rem; font-weight: 800; }
.script-download > span:last-child { display: grid; gap: 2px; }
.script-download strong { font-size: .78rem; }
.script-download small { color: rgba(7,16,20,.68); font-size: .63rem; }
.script-download.pcc-download { background: var(--acid); }
.script-download.pcc-download:hover { background: #e4f88d; }
.run-label { margin-top: 18px !important; color: var(--quiet) !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.command-row { max-width: 760px; margin-top: 18px; padding: 7px 8px 7px 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #080c11; border: 1px solid var(--line); border-radius: 13px; }
.run-label + .command-row { margin-top: 8px; }
.command-row code { overflow-x: auto; color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; white-space: nowrap; }
.copy-command { padding: 8px 12px; flex: 0 0 auto; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; font-size: .7rem; cursor: pointer; }
.copy-command:hover { border-color: var(--cyan); }
.path-note { margin-top: 12px !important; font-size: .76rem !important; }
.settings-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.settings-grid > div { min-height: 128px; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.settings-grid > div:last-child { border-right: 0; }
.settings-grid span { color: var(--quiet); font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-grid strong { margin-top: 12px; font-size: .92rem; }
.settings-grid small { margin-top: 7px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.gateway-notes { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.gateway-notes > div { min-height: 130px; padding: 22px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.gateway-notes > div:last-child { border-right: 0; }
.gateway-notes strong { color: var(--acid); font-size: .75rem; }
.gateway-notes span { color: var(--muted); font-size: .72rem; line-height: 1.5; }

.onboarding-note {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

footer {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  border-top: 1px solid var(--line);
  font-size: .74rem;
}

@media (max-width: 1220px) {
  .tour-shell { grid-template-columns: 172px minmax(0, 1fr); }
  .chapter-rail { padding-right: 10px; padding-left: 26px; }
  .stage-wrap { grid-template-columns: 1fr; }
  .inspector { min-height: auto; }
  .control-list { margin-top: 8px; }
  .route-diagram { grid-template-columns: 1fr; }
  .route-diagram > i { transform: rotate(90deg); justify-self: center; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid > div:nth-child(2) { border-right: 0; }
  .settings-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .site-header { width: min(100% - 30px, 1540px); }
  .platform-chip { display: none; }
  .header-link { display: none; }
  .hero { width: min(100% - 30px, 1540px); min-height: auto; padding: 70px 0; grid-template-columns: 1fr; gap: 70px; }
  .video-overview { width: min(100% - 30px, 1540px); padding-bottom: 76px; }
  .guide { padding: 76px 15px; }
  .section-heading { align-items: start; flex-direction: column; }
  .tour-shell { display: block; border-radius: 24px; }
  .chapter-rail { padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .rail-progress { display: none; }
  .rail-list { flex-direction: row; width: max-content; }
  .chapter-button { width: 122px; grid-template-columns: 22px 1fr; padding: 8px; }
  .tour-main { padding: 22px 14px; }
  .tour-meta { min-height: auto; margin-bottom: 20px; flex-direction: column; gap: 10px; }
  .tour-meta p { font-size: .86rem; }
  .screen-stage { border-radius: 12px; }
  .screen-stage figcaption { display: none; }
  .hotspot { width: 25px; height: 25px; font-size: .58rem; }
  .hotspot::before, .hotspot::after { display: none; }
  .hotspot.active { width: 31px; height: 31px; }
  .inspector { padding: 22px; }
  .inspector h4 { font-size: 1.7rem; }
  .tour-navigation { grid-template-columns: 90px 1fr 90px; }
  .step-dots { gap: 4px; }
  .step-dot { width: 4px; height: 4px; }
  .step-dot.active { width: 16px; }
  .model-guide { width: min(100% - 30px, 1540px); padding-top: 86px; }
  .model-grid, .model-advice, .model-use-cases { grid-template-columns: 1fr; }
  .model-card { min-height: auto; }
  .model-advice { gap: 48px; }
  .model-use-cases article, .model-use-cases article + article { min-height: auto; padding: 30px 0; border-left: 0; }
  .gateway-guide { width: min(100% - 30px, 1540px); padding-top: 86px; }
  .gateway-heading { margin-bottom: 30px; }
  .gateway-switcher { grid-template-columns: 1fr; }
  .gateway-tab { min-height: 78px; }
  .gateway-panel { border-radius: 23px; }
  .gateway-intro { grid-template-columns: 1fr; gap: 36px; }
  .setup-steps { padding: 0 22px; }
  .setup-steps > li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .command-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .script-download { width: 100%; }
  .copy-command { align-self: flex-end; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-grid > div:nth-child(2) { border-right: 0; }
  .settings-grid > div:last-child { border-bottom: 0; }
  .gateway-notes { grid-template-columns: 1fr; }
  .gateway-notes > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .gateway-notes > div:last-child { border-bottom: 0; }
  footer { flex-direction: column; gap: 8px; }
}

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