/* gh-mirror project site — route-console visual system */
:root {
  --bg: #05090c;
  --bg-soft: #071015;
  --panel: #0a141a;
  --panel-2: #0c1820;
  --panel-deep: #050b0f;
  --text: #edf5f8;
  --muted: #93a8b3;
  --dim: #627984;
  --line: rgba(157, 190, 207, 0.13);
  --line-strong: rgba(157, 190, 207, 0.24);
  --green: #34dd9b;
  --green-soft: rgba(52, 221, 155, 0.12);
  --cyan: #38c5f2;
  --amber: #f4c97a;
  --grad: linear-gradient(102deg, #43e6a3 0%, #3cc9f2 82%);
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #263a45 var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(67, 230, 163, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
code { font-size: 0.92em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--green);
  color: #04120c;
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- atmosphere ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 32% at 8% -4%, rgba(52, 221, 155, 0.11), transparent 68%),
    radial-gradient(ellipse 40% 30% at 96% 2%, rgba(56, 197, 242, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(30, 90, 110, 0.12), transparent 72%);
}
.page-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 181, 198, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 181, 198, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 50% 0%, #000 10%, transparent 76%);
  mask-image: radial-gradient(ellipse 88% 62% at 50% 0%, #000 10%, transparent 76%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(5, 9, 12, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark { border-radius: 8px; display: block; }
.brand-name {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand-ver {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.menu-btn {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #04130d;
  box-shadow: 0 8px 30px -12px rgba(61, 210, 166, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 14px 38px -12px rgba(61, 210, 166, 0.7);
}
.btn-outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}
.btn-outline:hover {
  border-color: rgba(157, 190, 207, 0.42);
  background: rgba(255, 255, 255, 0.045);
}
.btn-sm { height: 34px; padding: 0 13px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.arrow-up { transition: transform 0.2s var(--ease); }
.btn:hover .arrow-up { transform: translate(2px, -2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 550;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { border-bottom-color: rgba(52, 221, 155, 0.45); }
.text-link svg { transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 44%;
  width: 620px; height: 480px;
  background: radial-gradient(closest-side, rgba(56, 197, 242, 0.08), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 221, 155, 0.1), 0 0 12px rgba(52, 221, 155, 0.8);
  flex-shrink: 0;
}
.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(2.7rem, 5.1vw, 4.35rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.lede {
  max-width: 540px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #354b56;
  margin-right: 12px;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 221, 155, 0.7);
}
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -6% -12% 4%;
  background: radial-gradient(closest-side, rgba(52, 221, 155, 0.13), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

/* ---------- window / route inspector ---------- */
.window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 25, 32, 0.97), rgba(6, 12, 16, 0.985));
  box-shadow:
    0 40px 100px -38px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset,
    0 1px 0 rgba(255, 255, 255, 0.045) inset;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 16, 0.72);
}
.window-dots { display: flex; gap: 5px; }
.window-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22343e;
}
.window-dots span:first-child { background: #3d5a50; }
.window-dots span:nth-child(2) { background: #2d4854; }
.window-title {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slash { color: #3e5966; }
.window-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}
.window-live > span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 221, 155, 0.9);
}
.window-body { padding: 16px; }
.route-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 9, 12, 0.65);
}
.route-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.route-tab:hover { color: var(--muted); }
.route-tab.is-active {
  background: #111f27;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 4px 12px -8px #000;
}
.svc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-github { background: #e8f3f9; box-shadow: 0 0 8px rgba(232, 243, 249, 0.35); }
.svc-docker { background: #3a9ce0; box-shadow: 0 0 8px rgba(58, 156, 224, 0.4); }
.svc-hf { background: #f3cd55; box-shadow: 0 0 8px rgba(243, 205, 85, 0.35); }
.svc-offline { background: #b49cff; box-shadow: 0 0 8px rgba(180, 156, 255, 0.35); }

.route-panel { padding: 17px 2px 13px; }
.route-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.field-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.route-mode {
  font-family: var(--mono);
  font-size: 9px;
  color: #7d9aa7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.endpoint-box {
  padding: 12px 13px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 11, 0.72);
  overflow: hidden;
}
.endpoint-box code {
  display: block;
  font-size: 11.2px;
  line-height: 1.6;
  color: #d3e8f2;
  overflow-wrap: anywhere;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.copy-btn.is-copied { color: var(--green); border-color: rgba(52, 221, 155, 0.4); }
.code-mini {
  margin: 0 0 13px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 11, 0.72);
  color: #b7cfdb;
  font-size: 10.7px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.route-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 40px;
}
.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  min-height: 22px;
}
.route-tags span {
  font-family: var(--mono);
  font-size: 9px;
  color: #93afbb;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 7px;
}
.window-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 12, 0.55);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.cache-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}
.cache-pill > span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.upstreams-wrap { margin-top: clamp(44px, 6vw, 72px); }
.upstreams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: #718995;
}
.upstreams .up-label {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
}
.upstreams i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #2f4651;
}
.upstreams span:not(.up-label) { white-space: nowrap; }

/* ---------- sections ---------- */
.section {
  padding: clamp(72px, 9vw, 104px) 0;
  scroll-margin-top: 86px;
}
.section-head {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 6px 48px;
  align-items: end;
  margin-bottom: 42px;
}
.section-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}
.section-label span { color: var(--green); }
.section-label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 221, 155, 0.5), transparent);
}
.section h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.section-intro {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 460px;
  justify-self: end;
  padding-bottom: 3px;
}

/* ---------- glow cards ---------- */
.glow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(58, 220, 160, 0.09), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.glow-card:hover::after { opacity: 1; }

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 28, 0.94), rgba(7, 14, 19, 0.96));
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 18%;
  width: 64%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 221, 155, 0.45), rgba(56, 197, 242, 0.35), transparent);
  opacity: 0.7;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 190, 207, 0.26);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.9);
}
.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
}
.icon-github { color: #e8f3f9; }
.icon-docker { color: #57adea; background: rgba(58, 156, 224, 0.08); border-color: rgba(58, 156, 224, 0.2); }
.icon-hf {
  color: #f3cd55;
  background: rgba(243, 205, 85, 0.08);
  border-color: rgba(243, 205, 85, 0.2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.icon-offline { color: #b49cff; background: rgba(180, 156, 255, 0.08); border-color: rgba(180, 156, 255, 0.2); }
.service-index {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #4f6874;
  letter-spacing: 0.08em;
}
.service-card h3,
.offline-card h3 {
  margin: 18px 0 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.service-card p,
.offline-card p {
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--muted);
}
.endpoint-chip {
  margin: 16px 0 12px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 8, 11, 0.65);
  font-family: var(--mono);
  font-size: 10px;
  color: #8ea9b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.endpoint-chip span { color: var(--green); }
.mini-list {
  margin-top: auto;
  display: grid;
  gap: 5px;
}
.mini-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dim);
}
.mini-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 1px;
  background: #36505b;
  flex-shrink: 0;
  transform: translateY(-1px);
}
.offline-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  margin-top: 14px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 50% 120% at 0% 0%, rgba(180, 156, 255, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(11, 21, 28, 0.94), rgba(7, 14, 19, 0.96));
  transition: border-color 0.3s;
}
.offline-card:hover { border-color: rgba(157, 190, 207, 0.26); }
.offline-copy { display: flex; align-items: flex-start; gap: 15px; }
.offline-card h3 { margin-top: 0; }
.offline-card code {
  color: #d7c9ff;
  font-size: 11px;
}
.mini-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
}
.offline-code .code-mini { margin-bottom: 0; font-size: 10px; }
.c-cmd { color: var(--green); }
.c-str { color: #e7c98f; }
.c-comment { color: #58707c; }
.j-key { color: #74cdec; }
.j-str { color: #a8e6bd; }
.good { color: var(--green); }
.dim-note { color: #58707c; }

/* ---------- architecture ---------- */
.flow-panel {
  position: relative;
  padding: clamp(20px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 46%, rgba(52, 221, 155, 0.055), transparent 72%),
    linear-gradient(180deg, rgba(8, 17, 22, 0.95), rgba(5, 11, 15, 0.98));
}
.flow-row { display: grid; gap: 10px; }
.clients { grid-template-columns: repeat(3, 1fr); }
.client-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 20, 26, 0.82);
  color: var(--green);
}
.client-chip div { min-width: 0; }
.client-chip b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.client-chip span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 1px;
}
.flow-arrow {
  height: 38px;
  display: flex;
  justify-content: center;
  position: relative;
}
.flow-arrow span {
  position: relative;
  width: 1px;
  height: 100%;
  border-left: 1px dashed rgba(52, 221, 155, 0.3);
}
.flow-arrow span::before {
  content: "";
  position: absolute;
  top: 0; left: -2.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 221, 155, 0.9);
  animation: flowDrop 2.8s var(--ease) infinite;
}
.flow-arrow span::after {
  content: "";
  position: absolute;
  bottom: 0; left: -3.5px;
  width: 6px; height: 6px;
  border-right: 1px solid rgba(52, 221, 155, 0.55);
  border-bottom: 1px solid rgba(52, 221, 155, 0.55);
  transform: rotate(45deg);
}
@keyframes flowDrop {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(33px); opacity: 0; }
}
.gateway-panel {
  padding: 19px;
  border: 1px solid rgba(52, 221, 155, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(16, 30, 36, 0.92), rgba(7, 14, 18, 0.96));
  box-shadow: 0 0 70px -42px rgba(52, 221, 155, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.gateway-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gateway-id { display: flex; align-items: center; gap: 11px; }
.gateway-id img { border-radius: 8px; }
.gateway-id b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.gateway-id span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  margin-top: 1px;
}
.gateway-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(52, 221, 155, 0.24);
  border-radius: 99px;
  background: rgba(52, 221, 155, 0.06);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.06em;
}
.gateway-status i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 221, 155, 0.9);
}
.gateway-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 16px;
}
.module {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 14, 0.6);
}
.module-no {
  font-family: var(--mono);
  font-size: 8px;
  color: #49636f;
}
.module b {
  display: block;
  margin: 3px 0 1px;
  font-size: 11.5px;
  font-weight: 600;
}
.module p {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  line-height: 1.5;
}
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}
.pipeline span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(3, 8, 11, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  color: #9cb3be;
}
.pipeline i {
  font-style: normal;
  color: #3b5561;
  font-size: 9px;
}
.upstream-row { grid-template-columns: repeat(3, 1fr); }
.upstream-tile {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 3px 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 20, 26, 0.82);
}
.upstream-tile b { font-size: 12px; font-weight: 600; }
.upstream-tile span:not(.svc-dot) {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
}
.diagram-caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ---------- features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 28, 0.94), rgba(7, 14, 19, 0.96));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.feature-card:hover { border-color: rgba(157, 190, 207, 0.26); transform: translateY(-2px); }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px; height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--green);
}
.feature-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #506974;
}
.feature-card h3 {
  margin: 16px 0 7px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 12.8px;
  line-height: 1.78;
  color: var(--muted);
}
.feature-card p code {
  color: #c6dde8;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10.5px;
}
.feature-visual {
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 11, 0.68);
  font-family: var(--mono);
  font-size: 10.3px;
  line-height: 1.85;
  color: #8da7b3;
}
.terminal-lines .prompt { color: var(--green); }
.terminal-lines .out { color: #b1c7d2; }
.http-lines { display: grid; gap: 2px; }
.http-line { display: flex; gap: 7px; color: #7f99a5; }
.http-line b { font-weight: 500; color: #b7ced9; }
.http-line.accent { color: var(--green); }
.http-line.accent b { color: var(--green); }
.http-line.dim { color: #5d7581; margin-top: 3px; font-size: 9.5px; }
.entry-list { display: grid; }
.entry-list > div {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 10px;
  color: #8da7b3;
}
.entry-list > div:last-child { border-bottom: 0; }
.entry-path { color: var(--cyan); }
.entry-lock {
  font-size: 8.5px;
  color: #5d7581;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}
.chip-cloud span {
  font-family: var(--mono);
  font-size: 9px;
  color: #9cb4c0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.025);
}
.acl-lines { display: grid; gap: 1px; }
.acl-key { color: #74cdec; }

/* ---------- MCP ---------- */
.mcp-shell {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 4.6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(52, 221, 155, 0.07), transparent 65%),
    radial-gradient(ellipse 45% 55% at 100% 100%, rgba(56, 197, 242, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(8, 16, 21, 0.97), rgba(5, 11, 15, 0.98));
  scroll-margin-top: 86px;
}
.mcp-copy .section-label { margin-bottom: 16px; }
.mcp-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.mcp-copy .section-intro {
  justify-self: start;
  margin-top: 16px;
  max-width: 470px;
}
.tool-groups {
  display: grid;
  gap: 7px;
  margin: 25px 0 22px;
}
.tool-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 4px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
}
.tool-group > span {
  flex: 0 0 48px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.tool-group code {
  font-size: 9.8px;
  color: #a9c3cf;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 3px;
  padding: 2px 5px;
  margin: 0 4px 4px 0;
  display: inline-block;
}
.mcp-code-col { min-width: 0; }
.mcp-tabs {
  display: flex;
  gap: 3px;
  padding: 9px 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 9, 12, 0.5);
}
.code-tab {
  position: relative;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.code-tab:hover { color: var(--muted); }
.code-tab.is-active { color: var(--text); border-bottom-color: var(--green); }
.mcp-panel { padding: 12px 15px 15px; }
.mcp-panel[hidden] { display: none; }
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 8.8px;
  color: var(--dim);
}
.code-block {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 8, 11, 0.78);
  font-size: 10.6px;
  line-height: 1.85;
  color: #b7cfdb;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.mcp-foot { font-size: 9px; }
.mcp-foot code { color: #9ab4c0; font-size: 9px; }
.mcp-auth { color: var(--dim); }
.mcp-copy > .text-link { margin-top: 4px; }

/* ---------- admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.admin-copy .section-label { margin-bottom: 16px; }
.admin-copy h2 { margin-bottom: 16px; }
.admin-copy .section-intro { justify-self: start; padding: 0; margin-bottom: 22px; }
.check-list { display: grid; gap: 11px; margin-bottom: 22px; }
.check-list li {
  position: relative;
  padding-left: 21px;
  font-size: 12.8px;
  line-height: 1.65;
  color: #a9bec8;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 9px; height: 9px;
  border: 1px solid rgba(52, 221, 155, 0.45);
  border-radius: 2px;
  background: rgba(52, 221, 155, 0.1);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 3px; top: 7px;
  width: 3px; height: 5px;
  border-right: 1.4px solid var(--green);
  border-bottom: 1.4px solid var(--green);
  transform: rotate(38deg);
}
.screenshot-figure { min-width: 0; }
.browser-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  overflow: hidden;
  background: #060d11;
  box-shadow: 0 34px 80px -38px rgba(0, 0, 0, 0.95), 0 0 70px -38px rgba(52, 221, 155, 0.4);
}
.screenshot-figure::before {
  content: "";
  position: absolute;
  inset: auto 6% -9% 6%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(52, 221, 155, 0.09), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}
.screenshot-figure { position: relative; }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 18, 0.95);
}
.browser-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(3, 8, 11, 0.7);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-url span { color: var(--green); font-size: 6px; }
.browser-theme {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  white-space: nowrap;
}
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.94);
}
.screenshot-figure figcaption {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ---------- quickstart ---------- */
.quickstart-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.qs-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 28, 0.94), rgba(7, 14, 19, 0.96));
  overflow: hidden;
}
.code-tabs {
  display: flex;
  gap: 2px;
  padding: 9px 10px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 9, 12, 0.5);
  overflow-x: auto;
}
.code-tab { white-space: nowrap; }
.qs-panel { padding: 15px 18px 18px; }
.qs-panel[hidden] { display: none; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.file-tag {
  font-family: var(--mono);
  font-size: 8.8px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.qs-code {
  font-size: 10.7px;
  line-height: 1.85;
  margin: 0;
  min-height: 150px;
  max-height: 360px;
  overflow: auto;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 18px 18px;
  padding: 11px 13px;
  border: 1px solid rgba(244, 201, 122, 0.22);
  border-radius: 8px;
  background: rgba(244, 201, 122, 0.05);
  color: #b8a37d;
}
.notice svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }
.notice p { font-size: 11.3px; line-height: 1.72; }
.notice b { color: #e7cf9e; font-weight: 600; }
.notice code {
  font-size: 10px;
  color: #ecd9b3;
  background: rgba(244, 201, 122, 0.08);
  border-radius: 3px;
  padding: 1px 4px;
}
.qs-steps {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 28, 0.94), rgba(7, 14, 19, 0.96));
}
.steps { display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.step-no {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--green);
  padding-top: 2px;
}
.steps b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.steps p { font-size: 11.3px; line-height: 1.72; color: var(--dim); }
.steps code {
  font-size: 9.8px;
  color: #a8c0cc;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  padding: 1px 4px;
}
.qs-steps .btn { margin-top: 16px; }

/* ---------- final CTA ---------- */
.final-cta { padding: 26px 0 clamp(64px, 8vw, 96px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 74px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 20, 26, 0.94), rgba(5, 11, 15, 0.97));
}
.cta-glow {
  position: absolute;
  top: -55%; left: 50%;
  transform: translateX(-50%);
  width: 780px; height: 460px;
  background: radial-gradient(closest-side, rgba(52, 221, 155, 0.14), rgba(56, 197, 242, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.cta-panel .eyebrow { justify-content: center; position: relative; }
.cta-panel h2 {
  position: relative;
  margin: 20px auto 14px;
  max-width: 760px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cta-lede {
  position: relative;
  color: var(--muted);
  font-size: 14.5px;
}
.cta-panel .cta-row { justify-content: center; position: relative; margin-top: 26px; }
.cta-coord {
  position: absolute;
  right: 22px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #3f5661;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 25px;
  background: rgba(3, 8, 11, 0.5);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand p {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--dim);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 4px;
}
.footer-links a {
  font-size: 11.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(157, 190, 207, 0.08);
  font-family: var(--mono);
  font-size: 8.8px;
  letter-spacing: 0.02em;
  color: #4f6874;
}
.back-top { transition: color 0.2s; }
.back-top:hover { color: var(--muted); }

/* ---------- reveal ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.has-js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr 0.92fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 3.8rem); }
  .service-card, .feature-card { padding: 20px; }
  .gateway-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .menu-btn { display: block; margin-left: auto; order: 3; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(8, 16, 21, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.9);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 13.5px;
  }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.035); }
  .site-nav a::after { display: none; }
  .header-actions { margin-left: 0; order: 2; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; width: 100%; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-intro { justify-self: start; max-width: 620px; }
  .service-grid { grid-template-columns: 1fr; }
  .offline-card { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-3, .span-2 { grid-column: span 1; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .mcp-shell { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; }
  .flow-panel { padding: 18px; }
  .cta-coord { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .brand-ver { display: none; }
  .header-github-text { display: none; }
  .header-github { width: 34px; padding: 0; }
  .site-nav { top: 62px; left: 16px; right: 16px; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.1rem); }
  .lede { font-size: 14.5px; }
  .route-tabs { grid-template-columns: 1fr 1fr; }
  .window-body { padding: 12px; }
  .route-panel { padding: 14px 0 10px; }
  .route-desc { min-height: 0; }
  .upstreams { gap: 9px 14px; font-size: 9.5px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 30px; }
  .clients { grid-template-columns: 1fr; }
  .upstream-row { grid-template-columns: 1fr; }
  .flow-arrow { height: 26px; }
  .gateway-head { flex-wrap: wrap; }
  .gateway-modules { grid-template-columns: 1fr 1fr; }
  .pipeline { gap: 4px; }
  .pipeline span { font-size: 8px; padding: 3px 5px; }
  .pipeline i { font-size: 8px; }
  .bento { grid-template-columns: 1fr; }
  .service-card { padding: 19px; }
  .offline-card { padding: 19px; }
  .offline-copy { gap: 12px; }
  .tool-group > span { flex-basis: 42px; }
  .mcp-shell { padding: 22px 16px; border-radius: 18px; }
  .mcp-panel { padding: 10px 10px 12px; }
  .code-block { font-size: 9.8px; padding: 12px 10px; }
  .mcp-panel .code-block { white-space: pre-wrap; overflow-wrap: anywhere; }
  .window-foot { font-size: 8.5px; padding: 10px 12px; }
  .mcp-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .qs-panel { padding: 12px 13px 15px; }
  .qs-code { font-size: 9.9px; }
  .notice { margin: 4px 13px 14px; }
  .qs-steps { padding: 17px; }
  .cta-panel { padding: 34px 18px; }
  .cta-panel .cta-row { gap: 9px; }
  .cta-panel .btn { height: 42px; padding: 0 16px; }
  .footer-inner { gap: 20px; }
  .footer-links { gap: 8px 16px; }
  .browser-bar { height: 32px; }
  .browser-url { font-size: 8px; }
}

@media (max-width: 430px) {
  .gateway-modules { grid-template-columns: 1fr; }
  .module { display: grid; grid-template-columns: 22px 1fr; gap: 0 6px; align-items: baseline; }
  .module p { grid-column: 2; }
  .module b { margin: 0; }
  .route-tab { font-size: 9px; }
  .window-title { font-size: 9px; }
  .window-live { font-size: 8px; }
  .hero-meta { gap: 6px 14px; }
  .hero-meta li + li::before { margin-right: 6px; }
  .cta-panel .cta-row { flex-direction: column; align-items: stretch; }
  .cta-panel .btn { width: 100%; }
}

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