:root {
  color-scheme: light;
  --ink: #07111f;
  --ink-2: #0d1b2a;
  --ink-3: #14263a;
  --paper: #f4f7f8;
  --white: #ffffff;
  --muted: #637083;
  --line: #d9e1e5;
  --teal: #35e2be;
  --teal-dark: #0a9f87;
  --blue: #2f6dff;
  --amber: #ffbd59;
  --red: #ff5c57;
  --header-height: 72px;
  --shell: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.16);
  --home-screen-height: 100dvh;
  --home-browser-color: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.home-scroll {
  scroll-snap-type: y proximity;
  scroll-padding-block: 0;
  color-scheme: light;
  background: var(--home-browser-color);
}

body[data-page="home"] {
  overflow-x: hidden;
  background: var(--home-browser-color);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 32px), 1220px);
  min-height: var(--header-height);
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(6, 14, 25, 0.88);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.site-header-solid {
  background: rgba(7, 17, 31, 0.96);
}

.home-header {
  grid-template-columns: auto 1fr;
}

.home-header .header-actions {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: translateY(1px);
}

.brand span {
  display: flex;
  align-items: center;
  min-height: 34px;
  transform: translateY(-0.5px);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

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

.site-nav a.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--teal);
  content: "";
}

.header-actions,
.hero-actions,
.action-row,
.expert-actions,
.completion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-auth-secondary][hidden] {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.button-large {
  min-height: 52px;
  padding-inline: 22px;
}

.button-primary {
  color: #031611;
  background: var(--teal);
  box-shadow: 0 14px 36px rgba(53, 226, 190, 0.18);
}

.button-primary:hover {
  background: #65f1d5;
  box-shadow: 0 18px 42px rgba(53, 226, 190, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(7, 17, 31, 0.66);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(14, 31, 49, 0.9);
}

.button-ghost {
  color: rgba(255, 255, 255, 0.76);
}

.button-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: transparent;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-outline-dark {
  border-color: #aeb9c1;
  color: var(--ink);
  background: transparent;
}

.button:disabled {
  opacity: 0.42;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #06101c;
}

.hero-grid-canvas,
.gateway-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid-canvas {
  z-index: 0;
}

.closing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 16, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-layout {
  position: absolute;
  z-index: 2;
  top: calc(14px + var(--header-height) + 18px);
  right: 0;
  bottom: calc(clamp(18px, 3svh, 30px) + 86px + 18px);
  left: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 34px;
  height: auto;
  min-height: 0;
  padding: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: 620px;
  overflow: hidden;
}

.hero-content > * {
  max-width: 570px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: currentColor;
}

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

.hero h1 {
  margin: 0;
  font-size: 76px;
  line-height: 0.96;
}

.hero-lead {
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--teal);
  content: "";
}

.hero-statusbar {
  position: absolute;
  z-index: 3;
  bottom: clamp(18px, 3svh, 30px);
  left: 50%;
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 1.3fr auto;
  align-items: center;
  min-height: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  transform: translateX(-50%);
}

.hero-statusbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-statusbar > div:not(.hero-status) {
  display: grid;
  gap: 5px;
  padding-left: 24px;
}

.hero-status > div {
  display: grid;
  gap: 5px;
}

.hero-statusbar strong,
.hero-statusbar small {
  display: block;
}

.hero-statusbar strong {
  color: var(--white);
  font-size: 12px;
  line-height: 1.25;
}

.hero-statusbar small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.55;
}

.status-light {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(53, 226, 190, 0.8);
}

.hero-statusbar > a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.hero-statusbar > a:hover {
  color: var(--teal);
}

.hero-statusbar svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.home-main > section,
.compact-footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.full-screen-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
}

.audience-section {
  display: flex;
  align-items: center;
  padding: 42px 0 32px;
  background: var(--paper);
}

.audience-shell {
  width: min(calc(100% - 48px), var(--shell));
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading h2,
.lab-copy h2,
.guide-copy h2,
.closing-cta h2 {
  max-width: 800px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.section-heading > p:last-child,
.lab-copy > p:last-child,
.guide-copy > p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.audience-panel {
  position: relative;
  min-height: 425px;
  padding: 28px 34px;
  overflow: hidden;
}

.audience-panel:first-child {
  padding: 28px 34px;
}

.audience-panel:last-child {
  padding: 28px 34px;
}

.audience-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 22px;
}

.audience-heading .eyebrow {
  margin-bottom: 14px;
}

.audience-heading h2 {
  font-size: 44px;
}

.audience-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.audience-beginner {
  color: var(--ink);
  background: #e6f5f1;
}

.audience-expert {
  color: var(--white);
  background: var(--ink-2);
}

.panel-index {
  position: absolute;
  top: 22px;
  right: 28px;
  color: rgba(7, 17, 31, 0.08);
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
}

.audience-expert .panel-index {
  color: rgba(255, 255, 255, 0.06);
}

.panel-label {
  position: relative;
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.audience-expert .panel-label {
  color: var(--amber);
}

.audience-panel h3 {
  position: relative;
  margin: 0;
  max-width: 420px;
  font-size: 38px;
  line-height: 1.08;
}

.audience-panel > p:not(.panel-label, .panel-note) {
  position: relative;
  max-width: 540px;
  margin: 16px 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.65;
}

.audience-expert > p:not(.panel-label, .panel-note) {
  color: rgba(255, 255, 255, 0.64);
}

.plain-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.plain-list li::before {
  width: 8px;
  height: 8px;
  background: var(--teal-dark);
  content: "";
}

.path-steps {
  display: grid;
  margin: 14px 0 17px;
  padding: 0;
  border-top: 1px solid rgba(7, 17, 31, 0.14);
  list-style: none;
}

.path-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid rgba(7, 17, 31, 0.14);
}

.path-steps li > span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
}

.path-steps li div {
  display: grid;
  gap: 4px;
}

.path-steps strong {
  font-size: 13px;
}

.path-steps small {
  color: #65737e;
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.expert-actions {
  margin-top: 24px;
}

.expert-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.expert-facts div {
  display: grid;
  gap: 8px;
  padding: 17px 0;
}

.expert-facts div + div {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.expert-facts span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 850;
}

.expert-facts strong {
  font-size: 13px;
}

.panel-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.65;
}

.ownership-section {
  padding: 120px 0;
  background: var(--white);
}

.ownership-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  align-items: start;
  gap: 100px;
}

.ownership-copy h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
}

.ownership-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #176d5e;
  font-size: 13px;
  line-height: 1.6;
}

.trust-line > span {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(53, 226, 190, 0.52);
}

.responsibility-list {
  border-top: 1px solid var(--line);
}

.responsibility-list article {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.responsibility-list article > span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
}

.responsibility-list .responsibility-official > span {
  color: var(--blue);
}

.responsibility-list h3 {
  margin: 12px 0 24px;
  font-size: 24px;
  line-height: 1.2;
}

.responsibility-list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.responsibility-list li {
  padding-left: 13px;
  border-left: 2px solid #b8d9d2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.responsibility-official li {
  border-left-color: #b9caff;
}

.value-section {
  display: flex;
  align-items: center;
  padding: 82px 0;
  background: var(--white);
}

.value-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 100px;
}

.value-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
}

.value-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.value-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.value-list {
  border-top: 1px solid var(--line);
}

.value-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.value-list article > span {
  display: flex;
  align-self: stretch;
  align-items: center;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.value-list h3 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.25;
}

.value-list p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.band-dark {
  color: var(--white);
  background: var(--ink);
}

.gateway-lab {
  display: flex;
  align-items: center;
  padding: 42px 0 32px;
}

.lab-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 80px;
}

.lab-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

.lab-copy > p:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.lab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lab-stats div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
}

.lab-stats div + div {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.lab-stats strong {
  color: var(--teal);
  font-size: 24px;
}

.lab-stats span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.tool-switcher {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #0a1827;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.24);
}

.segmented-control {
  display: inline-flex;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-switcher > .segmented-control {
  margin: 12px;
}

.segmented-control button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.54);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--ink);
  background: var(--teal);
}

.segmented-light {
  border-color: var(--line);
  background: #e9eef0;
}

.segmented-light button {
  color: #647180;
}

.segmented-light button.is-active {
  color: var(--white);
  background: var(--ink);
}

.routing-stage {
  display: grid;
  grid-template-columns: 1fr minmax(70px, 1fr) 100px minmax(70px, 1fr) 1fr;
  align-items: center;
  min-height: 180px;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.route-column {
  display: grid;
  gap: 8px;
}

.route-column strong {
  font-size: 22px;
}

.route-column small {
  color: rgba(255, 255, 255, 0.45);
}

.route-kicker {
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.route-models {
  text-align: right;
}

.route-track {
  position: relative;
  height: 2px;
  margin-inline: 20px;
  background: rgba(53, 226, 190, 0.24);
}

.route-track-out {
  background: rgba(47, 109, 255, 0.3);
}

.route-packet {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 20px var(--teal);
  animation: packet-flow 2.4s linear infinite;
}

.packet-two {
  animation-delay: -1.2s;
}

.packet-three,
.packet-four {
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

.packet-four {
  animation-delay: -1.2s;
}

@keyframes packet-flow {
  from { left: 0; }
  to { left: calc(100% - 8px); }
}

.gateway-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(53, 226, 190, 0.42);
  background: #0d2230;
  box-shadow: 0 0 80px rgba(53, 226, 190, 0.12);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
}

.gateway-core img {
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
}

.gateway-core > span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.gateway-core small {
  margin-top: 4px;
  color: var(--teal);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
}

.endpoint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
}

.endpoint-bar > div {
  display: grid;
  gap: 6px;
}

.endpoint-bar span,
.config-field span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 850;
}

.endpoint-bar code {
  color: var(--white);
  font-size: 14px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.copy-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.copy-button span {
  color: inherit;
  font-size: 12px;
}

.guide-preview {
  display: flex;
  align-items: center;
  padding: 42px 0 32px;
  background: var(--white);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(480px, 1.2fr);
  align-items: end;
  gap: 60px;
}

.step-list {
  display: grid;
  margin: 16px 0;
  border-top: 1px solid var(--line);
}

.step-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #7b8791;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.step-button span {
  color: #9aa5ad;
  font-size: 11px;
  font-weight: 900;
}

.step-button strong {
  font-size: 14px;
}

.step-button.is-active {
  color: var(--ink);
}

.step-button.is-active span {
  color: var(--teal-dark);
}

.privacy-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: -2px 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-note > span {
  display: flex;
  align-self: stretch;
  align-items: center;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 900;
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.privacy-note strong {
  color: var(--ink);
}

.guide-download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-download-actions .button {
  white-space: nowrap;
}

.app-mock {
  overflow: hidden;
  min-height: clamp(450px, 52svh, 480px);
  border: 1px solid #cdd6dc;
  border-radius: var(--radius);
  background: #edf2f3;
  box-shadow: var(--shadow);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  color: var(--white);
  background: var(--ink);
}

.mock-brand {
  font-weight: 850;
}

.mock-system {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.mock-body {
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: calc(clamp(450px, 52svh, 480px) - 52px);
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
  border-right: 1px solid #d8e0e4;
  background: #e4eaed;
}

.mock-sidebar span {
  padding: 12px;
  border-radius: 4px;
  color: #6c7780;
  font-size: 12px;
  font-weight: 750;
}

.mock-sidebar span.is-active {
  color: var(--ink);
  background: var(--white);
}

.mock-sidebar .mock-settings {
  margin-top: auto;
}

.mock-content {
  padding: 38px 36px;
}

.mock-step-label {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.mock-content h3 {
  margin: 14px 0 10px;
  font-size: 26px;
}

.mock-content > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mock-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mock-form label,
.mock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d6dee2;
  border-radius: 5px;
  background: var(--white);
}

.mock-form label span {
  color: #8a959d;
  font-size: 10px;
  font-weight: 850;
}

.mock-form label strong,
.mock-form label code {
  font-size: 12px;
}

.mock-status {
  justify-content: flex-start;
  gap: 10px;
  color: #59656d;
  font-size: 12px;
}

.mock-status span {
  width: 9px;
  height: 9px;
  background: var(--amber);
}

.band-soft {
  background: #e9eff1;
}

.model-preview {
  padding: 110px 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.model-table-wrap {
  overflow: hidden;
  border: 1px solid #cbd5da;
  border-radius: var(--radius);
  background: var(--white);
}

.model-table {
  width: 100%;
  border-collapse: collapse;
}

.model-table th,
.model-table td {
  padding: 20px 22px;
  border-bottom: 1px solid #e1e7ea;
  text-align: left;
}

.model-table th {
  color: #7b8790;
  background: #f5f7f8;
  font-size: 11px;
  font-weight: 850;
}

.model-table td {
  color: #586571;
  font-size: 13px;
}

.model-table td:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.model-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.mark-claude { background: #f0a779; }
.mark-gpt { background: var(--teal); }
.mark-anti { background: var(--amber); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #08735f;
  background: #ddf5ee;
  font-size: 11px;
  font-weight: 850;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  background: var(--teal-dark);
  content: "";
}

.status-muted {
  color: #7b642c;
  background: #f7edcf;
}

.status-muted::before {
  background: var(--amber);
}

.table-note {
  margin: 0;
  padding: 16px 22px;
  color: #7a858e;
  background: #f7f9fa;
  font-size: 11px;
}

.closing-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.closing-cta .page-shell {
  position: relative;
  z-index: 2;
}

.closing-cta h2 {
  font-size: 56px;
}

.closing-cta p:not(.eyebrow) {
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
}

.site-footer {
  padding: 58px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #030910;
}

.compact-footer {
  padding: 24px 0 20px;
}

.compact-footer-inner {
  display: grid;
  gap: 13px;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand-line > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.footer-compliance {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  line-height: 1.7;
}

.compact-footer .copyright {
  grid-column: auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.brand-footer {
  color: var(--white);
}

.footer-grid > div:first-child > p {
  max-width: 420px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--teal);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--teal);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.988);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.is-resetting {
  transition: none;
}

/* Home light theme */
body[data-page="home"] .home-header {
  border-color: rgba(7, 17, 31, 0.1);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 48px rgba(29, 52, 68, 0.1);
}

body[data-page="home"] .home-header .button-ghost {
  color: #536273;
}

body[data-page="home"] .home-header .button-ghost:hover {
  color: var(--ink);
  background: #eef3f5;
}

body[data-page="home"] .hero {
  color: var(--ink);
  background: #ffffff;
}

body[data-page="home"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 43%, rgba(255, 255, 255, 0.08) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(241, 247, 247, 0.28));
}

body[data-page="home"] .hero-lead {
  color: #5d6b7c;
}

body[data-page="home"] .hero-meta {
  color: #788594;
}

body[data-page="home"] .hero-meta span::before {
  box-shadow: 0 0 0 3px rgba(10, 159, 135, 0.1);
}

body[data-page="home"] .hero .button-secondary {
  border-color: #cbd6dc;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(29, 52, 68, 0.06);
}

body[data-page="home"] .hero .button-secondary:hover {
  border-color: #9fb0ba;
  background: #ffffff;
}

body[data-page="home"] .hero-statusbar {
  border-top-color: #dce4e8;
  color: #667586;
}

body[data-page="home"] .hero-statusbar > div {
  border-right-color: #e1e8eb;
}

body[data-page="home"] .hero-status {
  gap: 15px;
}

body[data-page="home"] .hero-statusbar > div:not(.hero-status) {
  align-content: center;
  align-items: start;
}

body[data-page="home"] .hero-statusbar strong {
  color: var(--ink);
}

body[data-page="home"] .hero-statusbar small {
  color: #7d8996;
}

body[data-page="home"] .hero-statusbar > a {
  color: #435465;
}

body[data-page="home"] .value-section {
  border-top: 1px solid #edf1f3;
  background: #ffffff;
}

body[data-page="home"] .band-dark.gateway-lab {
  color: var(--ink);
  border-top: 1px solid #edf1f3;
  background: #ffffff;
}

body[data-page="home"] .gateway-lab .lab-copy > p:last-child {
  color: #637083;
}

body[data-page="home"] .gateway-lab .lab-stats {
  border-color: #cedddd;
}

body[data-page="home"] .gateway-lab .lab-stats div + div {
  border-color: #cedddd;
}

body[data-page="home"] .gateway-lab .lab-stats strong {
  color: #078c77;
}

body[data-page="home"] .gateway-lab .lab-stats span {
  color: #667586;
}

body[data-page="home"] .tool-switcher {
  border-color: #ccdadd;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 72px rgba(29, 71, 69, 0.1);
}

body[data-page="home"] .tool-switcher > .segmented-control {
  border-color: #d4dfe2;
  background: #eef3f4;
}

body[data-page="home"] .tool-switcher .segmented-control button {
  color: #657483;
}

body[data-page="home"] .tool-switcher .segmented-control button.is-active {
  color: #053a31;
  background: #63e7ce;
  box-shadow: 0 5px 14px rgba(10, 159, 135, 0.15);
}

body[data-page="home"] .routing-stage {
  border-color: #dce5e7;
}

body[data-page="home"] .route-column small {
  color: #7a8794;
}

body[data-page="home"] .route-kicker {
  color: #078c77;
}

body[data-page="home"] .route-track {
  background: rgba(10, 159, 135, 0.28);
}

body[data-page="home"] .route-track-out {
  background: rgba(47, 109, 255, 0.22);
}

body[data-page="home"] .gateway-core {
  border-color: rgba(10, 159, 135, 0.42);
  background: #e5f6f2;
  box-shadow: 0 14px 44px rgba(10, 159, 135, 0.12);
}

body[data-page="home"] .gateway-core small {
  color: #078c77;
}

body[data-page="home"] .endpoint-bar span {
  color: #7a8794;
}

body[data-page="home"] .endpoint-bar code {
  color: var(--ink);
}

body[data-page="home"] .copy-button {
  border-color: #ccd8dd;
  color: var(--ink);
  background: #f5f8f9;
}

body[data-page="home"] .copy-button:hover {
  border-color: #9eafb7;
  background: #ffffff;
}

body[data-page="home"] .guide-preview {
  border-top: 1px solid #edf1f3;
  background: #ffffff;
}

body[data-page="home"] .site-footer {
  color: #637083;
  background: #ffffff;
}

body[data-page="home"] .compact-footer {
  padding: 14px 0;
}

body[data-page="home"] .compact-footer-inner {
  width: min(calc(100% - 32px), 1220px);
  gap: 12px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(29, 52, 68, 0.1);
}

body[data-page="home"] .brand-footer {
  color: var(--ink);
}

body[data-page="home"] .footer-brand-line > p {
  color: #657483;
}

body[data-page="home"] .footer-compliance {
  border-top-color: #d7e0e4;
  color: #7b8793;
}

body[data-page="home"] .compact-footer .copyright {
  color: #8a959f;
}

@media (min-width: 761px) {
  body[data-page="home"] .gateway-lab .lab-stats div:first-child {
    padding-left: 28px;
  }

  .gateway-lab > .page-shell {
    transform: translateY(-18px);
  }

  .guide-preview > .page-shell {
    transform: translateY(-24px);
  }
}

.inner-main {
  min-height: 100vh;
  padding-top: 132px;
}

.page-intro {
  padding: 70px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: 62px;
  line-height: 1.04;
}

.page-intro > p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.setup-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  padding-top: 54px;
  padding-bottom: 110px;
}

.setup-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.setup-progress {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.setup-progress strong {
  color: var(--ink);
}

.progress-track {
  height: 4px;
  margin: 12px 0 24px;
  overflow: hidden;
  background: #e6ebee;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--teal-dark);
  transition: width 240ms ease;
}

.setup-nav-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #e7ecef;
  color: #7a858e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.setup-nav-item > span {
  font-size: 10px;
  font-weight: 900;
}

.setup-nav-item div {
  display: grid;
  gap: 4px;
}

.setup-nav-item strong {
  font-size: 13px;
}

.setup-nav-item small {
  font-size: 10px;
}

.setup-nav-item.is-active {
  color: var(--ink);
}

.setup-nav-item.is-active > span {
  color: var(--teal-dark);
}

.setup-content {
  min-width: 0;
}

.guide-panel {
  display: none;
  min-height: 610px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.guide-panel.is-active {
  display: block;
  animation: panel-enter 280ms ease;
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-step-kicker {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.guide-panel h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.guide-panel > p:not(.guide-step-kicker, .source-note) {
  max-width: 690px;
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eff4f5;
}

.visual-column {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.visual-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.visual-column strong {
  font-size: 13px;
}

.visual-column small {
  color: var(--muted);
  font-size: 10px;
}

.visual-arrow {
  color: #8f9aa2;
}

.guide-tip {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  background: #fff8e8;
}

.guide-tip strong {
  font-size: 13px;
}

.guide-tip p {
  margin: 6px 0 0;
  color: #6e6552;
  font-size: 12px;
  line-height: 1.6;
}

.download-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf3f4;
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.download-panel span,
.source-note {
  color: var(--muted);
  font-size: 11px;
}

.download-panel h3 {
  margin: 4px 0;
  font-size: 19px;
}

.download-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.source-note {
  margin: 16px 0 0;
}

.config-fields {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.config-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f3f6f7;
}

.config-field > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.config-field span {
  color: var(--muted);
}

.config-field code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.copy-button-light {
  flex: 0 0 auto;
  border-color: #c8d1d6;
  color: var(--ink);
  background: var(--white);
}

.config-field-secret {
  border-color: #eed89c;
  background: #fff8e8;
}

.local-only {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 4px;
  color: #725c24 !important;
  background: #f5e4b3;
}

.terminal-window {
  overflow: hidden;
  margin-top: 34px;
  border-radius: var(--radius);
  color: #e8f0f4;
  background: #08111c;
  box-shadow: var(--shadow);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-titlebar span:nth-child(2) { background: var(--amber); }
.terminal-titlebar span:nth-child(3) { background: var(--teal); }

.terminal-titlebar strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.terminal-window pre {
  min-height: 250px;
  margin: 0;
  padding: 42px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 2;
}

.terminal-muted { color: #637083; }
.terminal-info { color: var(--blue); }
.terminal-success { color: var(--teal); }

.completion-actions {
  justify-content: space-between;
  margin-top: 28px;
}

.guide-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.directory-section {
  padding-top: 54px;
  padding-bottom: 110px;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.model-directory {
  border-top: 1px solid #cfd8dd;
}

.directory-row {
  display: grid;
  grid-template-columns: 52px minmax(260px, 1.4fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 138px;
  padding: 24px 10px;
  border-bottom: 1px solid #cfd8dd;
}

.directory-row[hidden] {
  display: none;
}

.directory-row h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.directory-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.directory-meta {
  display: grid;
  gap: 7px;
}

.directory-meta span {
  color: var(--muted);
  font-size: 11px;
}

.directory-meta strong {
  font-size: 13px;
}

.pricing-note {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-top: 44px;
  padding: 28px;
  border-left: 3px solid var(--blue);
  background: var(--white);
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  padding-top: 54px;
  padding-bottom: 110px;
}

.faq-aside {
  position: sticky;
  top: 118px;
  display: grid;
  align-self: start;
  gap: 14px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}

.faq-aside strong {
  margin-bottom: 6px;
  font-size: 13px;
}

.faq-aside a {
  color: var(--muted);
  font-size: 13px;
}

.faq-aside a:hover {
  color: var(--blue);
}

.faq-list {
  border-top: 1px solid #cfd8dd;
}

.faq-item {
  border-bottom: 1px solid #cfd8dd;
}

.faq-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  padding-right: 20px;
  font-size: 18px;
  font-weight: 760;
}

.faq-item button svg {
  flex: 0 0 auto;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.faq-item.is-open button svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 28px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .home-header {
    grid-template-columns: auto 1fr;
  }

  .home-header .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: #07111f;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
  }

  .site-nav a.is-active::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 0;
    width: 2px;
    height: auto;
  }

  .header-actions {
    display: none;
  }

  .hero h1 {
    font-size: 68px;
  }

  .gateway-canvas {
    opacity: 0.74;
  }

  .hero-layout {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
  }

  .hero-visual {
    height: 100%;
    max-height: 540px;
  }

  .hero-content > * {
    max-width: 520px;
  }

  .audience-heading {
    grid-template-columns: 1fr minmax(280px, 0.7fr);
    gap: 36px;
  }

  .audience-panel:first-child,
  .audience-panel:last-child {
    padding-inline: 30px;
  }

  .lab-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lab-copy .eyebrow {
    grid-column: auto;
    margin-bottom: 8px;
  }

  .routing-stage {
    grid-template-columns: 1fr 50px 110px 50px 1fr;
    padding: 24px 20px;
  }

  .gateway-core {
    width: 110px;
    height: 110px;
  }

  .guide-layout {
    grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 1.12fr);
    gap: 32px;
  }

  .ownership-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .value-layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(400px, 1.18fr);
    gap: 50px;
  }

  .guide-copy {
    max-width: 660px;
  }

  .setup-workspace {
    grid-template-columns: 1fr;
  }

  .setup-sidebar {
    position: static;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-aside {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  html.home-scroll {
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: none;
  }

  .home-main > section,
  .compact-footer {
    scroll-margin-block: 0;
    scroll-snap-stop: always;
  }

  .page-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 62px;
    padding-inline: 12px;
  }

  .home-header {
    grid-template-columns: auto 1fr;
  }

  .home-header .header-actions {
    display: flex;
    justify-self: end;
  }

  .home-header .button-ghost {
    display: none;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .hero {
    height: var(--home-screen-height);
    min-height: var(--home-screen-height);
    max-height: var(--home-screen-height);
  }

  .hero-layout {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    padding-top: 82px;
    padding-bottom: 112px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
  }

  .gateway-canvas {
    opacity: 0.26;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .expert-actions,
  .action-row,
  .completion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .expert-actions .button,
  .action-row .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 10px;
  }

  .hero-statusbar {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    bottom: 24px;
  }

  .full-screen-section {
    height: var(--home-screen-height);
    min-height: var(--home-screen-height);
    max-height: var(--home-screen-height);
    overflow: hidden;
  }

  .hero-statusbar > div:not(.hero-status) {
    display: none;
  }

  .hero-statusbar > div {
    padding-right: 14px;
  }

  .hero-statusbar > a {
    padding-left: 14px;
  }

  .section-heading h2,
  .lab-copy h2,
  .guide-copy h2,
  .closing-cta h2,
  .ownership-copy h2,
  .value-copy h2 {
    font-size: 36px;
  }

  .audience-section {
    padding: 82px 0 38px;
  }

  .audience-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .audience-heading h2 {
    font-size: 36px;
  }

  .audience-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    border-radius: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .audience-grid::-webkit-scrollbar {
    display: none;
  }

  .audience-panel {
    flex: 0 0 92%;
    min-height: 465px;
    padding: 28px 24px;
    border-radius: var(--radius);
    scroll-snap-align: start;
  }

  .audience-panel:first-child,
  .audience-panel:last-child {
    padding-inline: 24px;
  }

  .audience-panel h3 {
    font-size: 32px;
  }

  .path-steps li {
    min-height: 45px;
  }

  .value-section {
    padding: 76px 0 58px;
  }

  .value-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .value-copy h2 {
    font-size: 38px;
  }

  .value-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .value-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
  }

  .value-list article {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .value-list h3 {
    font-size: 17px;
  }

  .value-list p {
    font-size: 11px;
  }

  .gateway-lab {
    padding: 68px 0 52px;
  }

  .routing-stage {
    grid-template-columns: 1fr 86px 1fr;
    gap: 10px;
    min-height: 158px;
    padding: 20px 14px;
    text-align: center;
  }

  .route-track {
    display: none;
  }

  .route-models {
    text-align: center;
  }

  .route-column strong {
    font-size: 14px;
  }

  .route-column small {
    font-size: 9px;
  }

  .gateway-core {
    width: 86px;
    height: 86px;
  }

  .gateway-core img {
    width: 28px;
    height: 28px;
  }

  .gateway-core > span {
    font-size: 11px;
  }

  .endpoint-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .endpoint-bar code {
    overflow-wrap: anywhere;
  }

  .endpoint-bar .copy-button {
    justify-content: center;
  }

  .ownership-section {
    padding: 88px 0;
  }

  .responsibility-list ul {
    grid-template-columns: 1fr;
  }

  .lab-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .lab-stats div + div {
    padding-left: 12px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lab-stats div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .lab-stats strong {
    font-size: 17px;
  }

  .lab-stats span {
    font-size: 9px;
    line-height: 1.45;
  }

  .guide-preview {
    padding: 76px 0 58px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-copy {
    max-width: none;
  }

  .guide-copy > p {
    font-size: 14px;
  }

  .app-mock {
    display: none;
  }

  .privacy-note {
    margin-bottom: 18px;
  }

  .guide-download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-download-actions .button {
    width: 100%;
    white-space: normal;
  }

  .footer-brand-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-brand-line > p {
    text-align: left;
  }

  body[data-page="home"] .compact-footer-inner {
    width: calc(100% - 16px);
    padding: 16px 14px 14px;
  }

  .mock-form label {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-table {
    min-width: 720px;
  }

  .model-table-wrap {
    overflow-x: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
  }

  .inner-main {
    padding-top: 96px;
  }

  .page-intro {
    padding: 50px 0;
  }

  .page-intro h1 {
    font-size: 42px;
  }

  .setup-workspace {
    gap: 22px;
    padding-top: 28px;
  }

  .setup-sidebar {
    padding: 18px;
  }

  .setup-nav-item {
    grid-template-columns: 34px 1fr;
  }

  .guide-panel {
    min-height: auto;
    padding: 28px 20px;
  }

  .guide-panel h2 {
    font-size: 31px;
  }

  .guide-visual {
    grid-template-columns: 1fr;
  }

  .visual-arrow {
    transform: rotate(90deg);
  }

  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-panel .button {
    grid-column: 1 / -1;
  }

  .config-field {
    align-items: stretch;
    flex-direction: column;
  }

  .config-field .copy-button {
    justify-content: center;
  }

  .terminal-window pre {
    padding: 26px 20px;
    font-size: 12px;
  }

  .directory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-toolbar .segmented-control {
    overflow-x: auto;
  }

  .directory-row {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .directory-meta,
  .directory-row > .status-badge {
    grid-column: 2;
  }

  .pricing-note {
    grid-template-columns: 1fr;
  }

  .faq-aside {
    grid-template-columns: 1fr;
  }

  .faq-item button span {
    font-size: 16px;
  }
}

/* Phone homepage composition: each screen has its own compact rhythm. */
@media (max-width: 760px) {
  html.home-scroll {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
    overscroll-behavior-y: contain;
  }

  body[data-page="home"] .home-main > section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body[data-page="home"] .compact-footer {
    scroll-snap-align: end;
    scroll-snap-stop: normal;
  }

  body[data-page="home"] .site-header {
    top: 8px;
    min-height: 56px;
    padding-inline: 10px;
  }

  body[data-page="home"] .site-header .button-small {
    min-height: 38px;
    padding-inline: 14px;
  }

  body[data-page="home"] .hero-layout {
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding-top: 102px;
    padding-bottom: 92px;
  }

  body[data-page="home"] .hero-content {
    width: 100%;
    padding-top: 0;
  }

  body[data-page="home"] .hero .eyebrow {
    margin-bottom: 12px;
  }

  body[data-page="home"] .hero h1 {
    font-size: 46px;
    line-height: 1;
  }

  body[data-page="home"] .hero-lead {
    margin: 16px 0 18px;
    font-size: 14px;
    line-height: 1.62;
  }

  body[data-page="home"] .hero-actions {
    gap: 8px;
  }

  body[data-page="home"] .hero-actions .button {
    min-height: 46px;
  }

  body[data-page="home"] .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 16px;
    font-size: 10px;
  }

  body[data-page="home"] .hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .hero-statusbar {
    right: 15px;
    bottom: 12px;
    left: 15px;
    width: auto;
    min-height: 58px;
  }

  body[data-page="home"] .hero-statusbar > div {
    min-height: 36px;
  }

  body[data-page="home"] .value-section {
    display: block;
    padding: 84px 0 16px;
  }

  body[data-page="home"] .value-layout {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    height: 100%;
  }

  body[data-page="home"] .value-copy .eyebrow,
  body[data-page="home"] .gateway-lab .eyebrow,
  body[data-page="home"] .guide-preview .eyebrow {
    margin-bottom: 10px;
  }

  body[data-page="home"] .value-copy h2 {
    max-width: 330px;
    font-size: 31px;
    line-height: 1.08;
  }

  body[data-page="home"] .value-copy > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  body[data-page="home"] .value-actions {
    margin-top: 12px;
  }

  body[data-page="home"] .value-actions .button {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 12px;
  }

  body[data-page="home"] .value-list article {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  body[data-page="home"] .value-list h3 {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
  }

  body[data-page="home"] .value-list p {
    font-size: 10px;
    line-height: 1.45;
  }

  body[data-page="home"] .gateway-lab {
    display: block;
    padding: 78px 0 16px;
  }

  body[data-page="home"] .gateway-lab > .page-shell {
    height: 100%;
  }

  body[data-page="home"] .gateway-lab .lab-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="home"] .gateway-lab .lab-copy .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  body[data-page="home"] .gateway-lab .lab-copy h2 {
    max-width: 330px;
    font-size: 30px;
    line-height: 1.08;
  }

  body[data-page="home"] .gateway-lab .lab-copy > p:last-child {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  body[data-page="home"] .gateway-lab .lab-stats {
    margin-top: 10px;
  }

  body[data-page="home"] .gateway-lab .lab-stats div {
    align-items: center;
    padding: 7px 0;
  }

  body[data-page="home"] .gateway-lab .lab-stats strong {
    font-size: 15px;
  }

  body[data-page="home"] .gateway-lab .lab-stats span {
    font-size: 8px;
    line-height: 1.35;
  }

  body[data-page="home"] .tool-switcher {
    margin-top: 10px;
  }

  body[data-page="home"] .tool-switcher > .segmented-control {
    margin: 7px;
  }

  body[data-page="home"] .tool-switcher .segmented-control button {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 11px;
  }

  body[data-page="home"] .routing-stage {
    grid-template-columns: 1fr 70px 1fr;
    min-height: 126px;
    padding: 10px;
  }

  body[data-page="home"] .gateway-core {
    width: 70px;
    height: 70px;
  }

  body[data-page="home"] .gateway-core img {
    width: 24px;
    height: 24px;
  }

  body[data-page="home"] .route-column strong {
    font-size: 12px;
  }

  body[data-page="home"] .route-column small {
    font-size: 8px;
  }

  body[data-page="home"] .endpoint-bar {
    flex-direction: row;
    gap: 8px;
    padding: 8px 10px;
  }

  body[data-page="home"] .endpoint-bar code {
    font-size: 12px;
  }

  body[data-page="home"] .endpoint-bar .copy-button {
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  body[data-page="home"] .endpoint-bar .copy-button span {
    display: none;
  }

  body[data-page="home"] .guide-preview {
    display: block;
    padding: 78px 0 14px;
  }

  body[data-page="home"] .guide-layout {
    display: block;
    height: 100%;
  }

  body[data-page="home"] .guide-copy h2 {
    max-width: 330px;
    font-size: 30px;
    line-height: 1.08;
  }

  body[data-page="home"] .guide-copy > p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  body[data-page="home"] .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
    border-left: 1px solid var(--line);
  }

  body[data-page="home"] .step-button {
    grid-template-columns: 24px 1fr;
    min-height: 44px;
    padding: 0 7px;
    border-right: 1px solid var(--line);
  }

  body[data-page="home"] .step-button strong {
    font-size: 11px;
    line-height: 1.25;
  }

  body[data-page="home"] .privacy-note {
    gap: 9px;
    margin: 0 0 10px;
    padding: 7px 0;
  }

  body[data-page="home"] .privacy-note p {
    font-size: 9px;
    line-height: 1.45;
  }

  body[data-page="home"] .guide-download-actions {
    gap: 7px;
  }

  body[data-page="home"] .guide-download-actions .button {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.25;
  }

  body[data-page="home"] .compact-footer {
    padding: 8px 0;
  }

  body[data-page="home"] .compact-footer-inner {
    gap: 8px;
    padding: 13px 12px 12px;
  }

  body[data-page="home"] .footer-brand-line {
    gap: 6px;
  }

  body[data-page="home"] .footer-brand-line > p,
  body[data-page="home"] .footer-compliance,
  body[data-page="home"] .compact-footer .copyright {
    font-size: 9px;
    line-height: 1.5;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  body[data-page="home"] .hero-layout {
    padding-top: 74px;
    padding-bottom: 76px;
  }

  body[data-page="home"] .hero h1 {
    font-size: 42px;
  }

  body[data-page="home"] .hero-lead {
    margin: 12px 0 14px;
    font-size: 13px;
  }

  body[data-page="home"] .hero-actions .button {
    min-height: 42px;
  }

  body[data-page="home"] .hero-meta {
    margin-top: 12px;
  }

  body[data-page="home"] .value-section,
  body[data-page="home"] .gateway-lab,
  body[data-page="home"] .guide-preview {
    padding-top: 62px;
    padding-bottom: 10px;
  }

  body[data-page="home"] .value-copy h2,
  body[data-page="home"] .gateway-lab .lab-copy h2,
  body[data-page="home"] .guide-copy h2 {
    font-size: 28px;
  }

  body[data-page="home"] .value-copy > p:not(.eyebrow),
  body[data-page="home"] .gateway-lab .lab-copy > p:last-child,
  body[data-page="home"] .guide-copy > p {
    font-size: 11px;
  }

  body[data-page="home"] .value-list article {
    padding: 8px 0;
  }

  body[data-page="home"] .routing-stage {
    min-height: 112px;
  }

  body[data-page="home"] .step-button {
    min-height: 40px;
  }
}

/* Mobile homepage: use the whole screen without centering every section. */
@media (max-width: 760px) {
  html.home-scroll {
    scrollbar-width: none;
  }

  html.home-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  body[data-page="home"] .hero-layout {
    display: block;
    padding-top: 76px;
    padding-bottom: 82px;
  }

  body[data-page="home"] .hero-content {
    position: relative;
    z-index: 3;
  }

  body[data-page="home"] .hero .eyebrow {
    margin-bottom: 9px;
  }

  body[data-page="home"] .hero h1 {
    font-size: 42px;
  }

  body[data-page="home"] .hero-lead {
    max-width: 350px;
    margin: 11px 0 13px;
    font-size: 13px;
    line-height: 1.5;
  }

  body[data-page="home"] .hero-actions .button {
    min-height: 42px;
  }

  body[data-page="home"] .hero-meta {
    position: relative;
    z-index: 3;
    gap: 6px 12px;
    margin-top: 11px;
    font-size: 9px;
  }

  body[data-page="home"] .hero-visual {
    top: 350px;
    right: 0;
    bottom: 78px;
    left: 0;
    height: auto;
  }

  body[data-page="home"] .gateway-canvas {
    opacity: 0.68;
  }

  body[data-page="home"] .hero-statusbar {
    right: 15px;
    bottom: 8px;
    left: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    min-height: 64px;
    transform: none;
  }

  body[data-page="home"] .hero-statusbar > div,
  body[data-page="home"] .hero-statusbar > div:not(.hero-status) {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-right: 1px solid #e1e8eb;
  }

  body[data-page="home"] .hero-statusbar > div:first-child {
    grid-template-columns: auto 1fr;
    gap: 7px;
    padding-left: 0;
  }

  body[data-page="home"] .hero-statusbar > div:last-of-type {
    padding-right: 0;
    border-right: 0;
  }

  body[data-page="home"] .hero-statusbar strong {
    font-size: 10px;
  }

  body[data-page="home"] .hero-statusbar small {
    font-size: 8px;
    line-height: 1.3;
  }

  body[data-page="home"] .hero-statusbar > div:not(.hero-status) small,
  body[data-page="home"] .hero-statusbar > a {
    display: none;
  }

  body[data-page="home"] .value-section {
    padding: 70px 0 14px;
  }

  body[data-page="home"] .value-layout {
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    align-content: stretch;
    gap: 13px;
  }

  body[data-page="home"] .value-copy h2 {
    font-size: 29px;
  }

  body[data-page="home"] .value-copy > p:not(.eyebrow) {
    margin-top: 8px;
    line-height: 1.45;
  }

  body[data-page="home"] .value-actions {
    margin-top: 10px;
  }

  body[data-page="home"] .value-list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    min-height: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-page="home"] .value-list article {
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 7px;
    min-height: 0;
    padding: 7px 0;
  }

  body[data-page="home"] .value-list article > span {
    justify-content: center;
    border-right: 1px solid var(--line);
    font-size: 10px;
  }

  body[data-page="home"] .value-list h3 {
    font-size: 14px;
  }

  body[data-page="home"] .gateway-lab {
    padding: 68px 0 14px;
  }

  body[data-page="home"] .gateway-lab > .page-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
  }

  body[data-page="home"] .gateway-lab .lab-copy {
    gap: 5px;
  }

  body[data-page="home"] .gateway-lab .lab-copy h2 {
    font-size: 28px;
  }

  body[data-page="home"] .gateway-lab .lab-copy > p:last-child {
    margin-top: 2px;
    line-height: 1.42;
  }

  body[data-page="home"] .gateway-lab .lab-stats {
    min-height: 50px;
    margin-top: 8px;
  }

  body[data-page="home"] .tool-switcher {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    margin-top: 9px;
  }

  body[data-page="home"] .routing-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(18px, 1fr) 82px minmax(18px, 1fr) auto;
    gap: 5px;
    min-height: 0;
    height: 100%;
    padding: 12px 10px;
  }

  body[data-page="home"] .route-column {
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  body[data-page="home"] .route-models {
    text-align: center;
  }

  body[data-page="home"] .route-track {
    display: block;
    width: 2px;
    height: 100%;
    min-height: 18px;
    margin: 0 auto;
  }

  body[data-page="home"] .route-packet {
    top: 0;
    left: -3px;
    animation-name: packet-flow-mobile;
  }

  body[data-page="home"] .gateway-core {
    justify-self: center;
    width: 82px;
    height: 82px;
  }

  body[data-page="home"] .gateway-core img {
    width: 28px;
    height: 28px;
  }

  body[data-page="home"] .endpoint-bar {
    min-height: 54px;
  }

  body[data-page="home"] .guide-preview {
    padding: 68px 0 12px;
  }

  body[data-page="home"] .guide-layout {
    display: grid;
    grid-template-rows: auto minmax(150px, 1fr);
    gap: 10px;
    min-height: 0;
  }

  body[data-page="home"] .guide-copy h2 {
    font-size: 28px;
  }

  body[data-page="home"] .guide-copy > p {
    margin-top: 6px;
    line-height: 1.42;
  }

  body[data-page="home"] .step-list {
    margin: 8px 0;
  }

  body[data-page="home"] .step-button {
    min-height: 40px;
  }

  body[data-page="home"] .privacy-note {
    margin-bottom: 8px;
    padding: 6px 0;
  }

  body[data-page="home"] .guide-download-actions .button {
    min-height: 38px;
  }

  body[data-page="home"] .app-mock {
    display: block;
    min-height: 0;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(29, 52, 68, 0.09);
  }

  body[data-page="home"] .mock-titlebar {
    min-height: 32px;
    padding: 0 12px;
    font-size: 10px;
  }

  body[data-page="home"] .mock-system {
    font-size: 8px;
  }

  body[data-page="home"] .mock-body {
    grid-template-columns: 58px 1fr;
    min-height: 0;
    height: calc(100% - 32px);
  }

  body[data-page="home"] .mock-sidebar {
    gap: 3px;
    padding: 8px 5px;
  }

  body[data-page="home"] .mock-sidebar span {
    padding: 7px 4px;
    font-size: 8px;
  }

  body[data-page="home"] .mock-content {
    min-width: 0;
    padding: 10px 12px;
  }

  body[data-page="home"] .mock-step-label {
    font-size: 8px;
  }

  body[data-page="home"] .mock-content h3 {
    margin: 4px 0 5px;
    font-size: 14px;
  }

  body[data-page="home"] .mock-content > p {
    display: none;
  }

  body[data-page="home"] .mock-form {
    gap: 5px;
    margin-top: 5px;
  }

  body[data-page="home"] .mock-form label,
  body[data-page="home"] .mock-status {
    min-height: 28px;
    padding: 4px 8px;
  }

  body[data-page="home"] .mock-form label {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  body[data-page="home"] .mock-form label span,
  body[data-page="home"] .mock-form label strong,
  body[data-page="home"] .mock-form label code,
  body[data-page="home"] .mock-status {
    font-size: 8px;
  }
}

@keyframes packet-flow-mobile {
  from { top: 0; }
  to { top: calc(100% - 8px); }
}

@media (max-width: 760px) and (max-height: 720px) {
  body[data-page="home"] .hero-layout {
    padding-top: 72px;
  }

  body[data-page="home"] .hero-visual {
    top: 334px;
  }

  body[data-page="home"] .value-section,
  body[data-page="home"] .gateway-lab,
  body[data-page="home"] .guide-preview {
    padding-top: 58px;
  }

  body[data-page="home"] .value-copy h2,
  body[data-page="home"] .gateway-lab .lab-copy h2,
  body[data-page="home"] .guide-copy h2 {
    font-size: 27px;
  }

  body[data-page="home"] .guide-layout {
    grid-template-rows: auto minmax(130px, 1fr);
    gap: 7px;
  }

  body[data-page="home"] .step-button {
    min-height: 38px;
  }

  body[data-page="home"] .guide-download-actions .button {
    min-height: 36px;
  }
}

.mobile-hero-composition {
  display: none;
}

/* Mobile homepage: a dedicated poster-like first screen. */
@media (max-width: 760px) {
  html.home-scroll,
  body[data-page="home"] {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    scroll-snap-type: none;
    background: #ffffff;
  }

  body[data-page="home"] .home-main,
  body[data-page="home"] .hero {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body[data-page="home"] .value-section,
  body[data-page="home"] .gateway-lab,
  body[data-page="home"] .guide-preview,
  body[data-page="home"] > .site-footer {
    display: none;
  }

  body[data-page="home"] .site-header {
    top: 8px;
    grid-template-columns: auto 1fr;
    width: calc(100% - 16px);
    min-height: 64px;
    padding-inline: 11px;
    border-color: rgba(7, 140, 119, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(29, 71, 69, 0.12);
  }

  body[data-page="home"] .site-header .brand {
    gap: 8px;
  }

  body[data-page="home"] .site-header .brand img {
    width: 44px;
    height: 44px;
  }

  body[data-page="home"] .site-header .brand span {
    display: flex;
    min-height: 44px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
  }

  body[data-page="home"] .home-header .header-actions {
    display: flex;
    justify-self: end;
    gap: 7px;
  }

  body[data-page="home"] .home-header .button-ghost {
    display: inline-flex;
    border: 1px solid #cbd6dc;
    color: #536273;
    background: #ffffff;
  }

  body[data-page="home"] .site-header .button-small {
    min-height: 43px;
    padding-inline: 16px;
    font-size: 14px;
  }

  body[data-page="home"] .hero-shade {
    background: rgba(235, 247, 246, 0.34);
  }

  body[data-page="home"] .hero-layout,
  body[data-page="home"] .hero-statusbar {
    display: none;
  }

  body[data-page="home"] .mobile-hero-composition {
    position: absolute;
    z-index: 4;
    top: 86px;
    right: 12px;
    bottom: 8px;
    left: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: center;
  }

  body[data-page="home"] .mobile-poster-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 100%;
    flex-direction: column;
    gap: clamp(13px, 2dvh, 18px);
    width: 100%;
    min-height: 0;
    padding: clamp(20px, 3.5dvh, 28px) 0 12px;
  }

  body[data-page="home"] .mobile-hero-badges {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: 100%;
  }

  body[data-page="home"] .mobile-hero-badges span {
    width: fit-content;
    max-width: 100%;
    padding: 11px 20px;
    border: 1px solid rgba(7, 140, 119, 0.13);
    border-radius: 8px;
    color: #536273;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.94),
      0 12px 28px rgba(7, 140, 119, 0.08);
    font-size: clamp(12.5px, 3.35vw, 14px);
    font-weight: 800;
    line-height: 1;
    will-change: transform, box-shadow;
    animation: mobile-pill-breathe 4.8s ease-in-out infinite;
  }

  body[data-page="home"] .mobile-hero-badges span:first-child {
    color: #078c77;
  }

  body[data-page="home"] .mobile-hero-badges span:nth-child(2) {
    animation-delay: 0.75s;
  }

  body[data-page="home"] .mobile-hero-heading {
    width: 100%;
    animation: mobile-poster-rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body[data-page="home"] .mobile-hero-heading > span {
    display: block;
    color: #078c77;
    font-family: "Bodoni MT", Didot, Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 15vw, 63px);
    font-weight: 500;
    line-height: 0.94;
    text-shadow: 0 10px 26px rgba(7, 140, 119, 0.1);
  }

  body[data-page="home"] .mobile-hero-heading h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(37px, 10.2vw, 43px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
  }

  body[data-page="home"] .mobile-message-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-height: clamp(168px, 25dvh, 202px);
    padding: 14px 0;
    animation: mobile-poster-rise 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body[data-page="home"] .mobile-message-lead {
    max-width: 356px;
    margin: 0;
    color: #637083;
    font-size: clamp(14.5px, 4.05vw, 16.5px);
    font-weight: 600;
    line-height: 1.85;
  }

  body[data-page="home"] .mobile-message-lead > strong {
    display: block;
    color: #078c77;
    font-size: 1.02em;
    font-weight: 850;
    line-height: 1.6;
  }

  body[data-page="home"] .mobile-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 17px 0 16px;
    border-top: 1px solid rgba(83, 112, 122, 0.18);
    border-bottom: 1px solid rgba(83, 112, 122, 0.18);
  }

  body[data-page="home"] .mobile-feature-item {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    text-align: center;
  }

  body[data-page="home"] .mobile-feature-item + .mobile-feature-item {
    border-left: 1px solid rgba(83, 112, 122, 0.18);
  }

  body[data-page="home"] .mobile-feature-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ink);
    font-size: clamp(11.5px, 3.2vw, 13px);
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
  }

  body[data-page="home"] .mobile-feature-item strong i {
    display: block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(53, 226, 190, 0.12);
  }

  body[data-page="home"] .mobile-feature-item small {
    color: #7a8794;
    font-size: clamp(8.5px, 2.55vw, 10px);
    font-weight: 650;
    line-height: 1.4;
  }

  body[data-page="home"] .mobile-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    border-radius: 8px;
    color: #031611;
    background: #32ddba;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.48),
      0 18px 42px rgba(18, 181, 149, 0.24);
    font-size: 18px;
    font-weight: 850;
    animation: mobile-poster-rise 0.95s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  body[data-page="home"] .site-header {
    min-height: 56px;
  }

  body[data-page="home"] .site-header .brand img {
    width: 36px;
    height: 36px;
  }

  body[data-page="home"] .site-header .brand span {
    min-height: 36px;
    font-size: 13.5px;
  }

  body[data-page="home"] .site-header .button-small {
    min-height: 35px;
    padding-inline: 13px;
  }

  body[data-page="home"] .mobile-hero-composition {
    top: 74px;
  }

  body[data-page="home"] .mobile-poster-main {
    gap: 8px;
    padding: 12px 0 5px;
  }

  body[data-page="home"] .mobile-hero-badges {
    gap: 4px;
  }

  body[data-page="home"] .mobile-hero-badges span {
    padding: 6px 14px;
    font-size: 10.5px;
  }

  body[data-page="home"] .mobile-hero-heading > span {
    font-size: 43px;
  }

  body[data-page="home"] .mobile-hero-heading h2 {
    margin-top: 4px;
    font-size: 30px;
  }

  body[data-page="home"] .mobile-message-copy {
    gap: 10px;
    min-height: 152px;
    padding: 8px 0;
  }

  body[data-page="home"] .mobile-message-lead {
    font-size: 12px;
    line-height: 1.65;
  }

  body[data-page="home"] .mobile-feature-strip {
    padding-block: 10px;
  }

  body[data-page="home"] .mobile-feature-item {
    gap: 4px;
    min-height: 38px;
    padding-inline: 4px;
  }

  body[data-page="home"] .mobile-feature-item strong {
    gap: 4px;
    font-size: 10px;
  }

  body[data-page="home"] .mobile-feature-item strong i {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 3px rgba(53, 226, 190, 0.12);
  }

  body[data-page="home"] .mobile-feature-item small {
    font-size: 7.5px;
  }

  body[data-page="home"] .mobile-primary-action {
    min-height: 54px;
    font-size: 15.5px;
  }
}

@media (max-width: 350px) {
  body[data-page="home"] .site-header .brand {
    gap: 6px;
  }

  body[data-page="home"] .site-header .brand span {
    font-size: 12.5px;
  }

  body[data-page="home"] .site-header .button-small {
    padding-inline: 10px;
  }

  body[data-page="home"] .mobile-hero-heading h2 {
    font-size: 29px;
  }

  body[data-page="home"] .mobile-message-copy {
    padding-inline: 12px;
  }
}

@media (min-width: 761px) {
  body[data-page="home"] .mobile-hero-composition {
    display: none;
  }
}

@keyframes mobile-pill-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.94),
      0 12px 28px rgba(7, 140, 119, 0.08);
  }

  50% {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 20px 42px rgba(7, 140, 119, 0.16);
  }
}

@keyframes mobile-poster-rise {
  from {
    opacity: 0.46;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
