/* AgentSwitch 官网 — 深色锌灰 + 品牌橙，token 对齐 internal/desktop/uikit/theme.go */

:root {
  --bg: #1b1b1f;
  --bg-deep: #151518;
  --surface: #2c2c31;
  --surface-2: #232327;
  --surface-3: #333338;
  --border: #3f3f46;
  --border-soft: #333338;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --muted-2: #8b8b94;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-pressed: #ea620a;
  --accent-ink: #18181b;
  --accent-soft: #33221a;
  --success: #22c55e;
  --success-soft: #12261a;
  --warning: #fbbf24;
  --warning-soft: #2e2410;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1120px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

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

::selection { background: #4a3423; color: #fff; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 27, 31, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(63, 63, 70, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 16px;
}
.brand img { border-radius: 7px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.star-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: #5a5a63; background: var(--surface-2); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn-ghost:hover { background: var(--surface-2); border-color: #5a5a63; }

.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 92px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle at center, rgba(249, 115, 22, .18), rgba(249, 115, 22, .05) 42%, transparent 68%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 63, 70, .26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 63, 70, .26) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(44, 44, 49, .55);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 750;
}
.hero h1 .accent { color: var(--accent); }

.lede {
  margin-top: 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
}
.cta-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.cta-note a:hover { text-decoration-color: var(--accent); }

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
}
.metrics li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--border-soft);
}
.metrics li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.metrics strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.metrics span { color: var(--muted); font-size: 13px; }

/* ---------- Hero visual: app window + terminal ---------- */

.hero-visual {
  position: relative;
  padding-bottom: 128px;
}

.app-window {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: #26262b;
}
.tl {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4a52;
}
.tl:nth-child(1) { background: #5b3b37; }
.tl:nth-child(2) { background: #5b4d2f; }
.tl:nth-child(3) { background: #33503c; }
.app-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}
.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  color: var(--success);
}
.app-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.app-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 330px;
}

.app-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 10px 14px;
  border-right: 1px solid var(--border-soft);
  background: #212125;
}
.side-items { display: grid; gap: 3px; }
.side-item {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
}
.side-item.active {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}
.side-gate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #26262b;
}
.side-gate i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.side-gate strong { display: block; font-size: 10.5px; font-weight: 600; }
.side-gate small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }

.app-main { padding: 16px; }

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app-head h4 { font-size: 13px; font-weight: 650; }
.app-btn {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 650;
}

.model-row {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #29292e;
}
.model-row + .model-row { margin-top: 8px; }

.model-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.model-name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}
.pill {
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.pill.ok { color: var(--success); background: var(--success-soft); }
.pill.warn { color: var(--warning); background: var(--warning-soft); }

.chain {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chain span {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #232327;
  color: var(--muted);
  font-size: 10.5px;
}
.chain b { color: #5a5a63; font-weight: 400; font-size: 10px; }

.model-meta {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.terminal {
  position: absolute;
  left: -26px;
  bottom: 0;
  z-index: 2;
  width: min(360px, 92%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #141417;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid #2a2a2f;
}
.terminal-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a40;
}
.terminal-bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}
.terminal pre {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 11.5px;
  line-height: 1.85;
  overflow-x: auto;
}
.terminal code { color: var(--text); }
.c-key { color: var(--accent-hover); }
.c-muted { color: #6b6b73; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 720;
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Compare ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.compare-card.compare-accent {
  border-color: rgba(249, 115, 22, .45);
  background: linear-gradient(160deg, rgba(249, 115, 22, .08), rgba(249, 115, 22, .015) 55%), var(--surface-2);
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.tag-accent {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.compare-card h3 {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: -.015em;
}
.compare-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.compare-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.compare-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.compare-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a5a63;
}
.compare-accent .compare-list li::before { background: var(--accent); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature:hover {
  border-color: #4a4a52;
  background: #26262b;
  transform: translateY(-2px);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-top: 16px;
  font-size: 15.5px;
  letter-spacing: -.01em;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.feature code, .compare-card code, .faq code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text);
  font-size: .92em;
}

/* ---------- Architecture ---------- */

.arch {
  display: grid;
  grid-template-columns: 1fr 40px 1.25fr 40px 1fr;
  align-items: center;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.arch-col { display: grid; gap: 8px; }
.arch-label {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.arch-node {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #232327;
  font-size: 13.5px;
  text-align: center;
}
.arch-node-more { color: var(--muted-2); font-size: 12.5px; }
.arch-arrow {
  color: #5a5a63;
  font-size: 20px;
  text-align: center;
}
.arch-gateway-card {
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, .45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(249, 115, 22, .1), rgba(249, 115, 22, .02)), #29292e;
}
.arch-gateway-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.arch-gateway-card > code {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.arch-chips span {
  padding: 3px 8px;
  border-radius: 5px;
  background: #232327;
  color: var(--muted);
  font-size: 11px;
}
.arch-note {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

/* ---------- Steps ---------- */

.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
}
.step-body h3 { font-size: 18px; letter-spacing: -.01em; }
.step-body > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}
.code-block {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #141417;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid #2a2a2f;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
}
.copy-btn {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.copy-btn:hover { color: var(--text); border-color: #5a5a63; }
.copy-btn.copied { color: var(--success); border-color: var(--success); }
.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- Platforms ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.platform-name { font-size: 13.5px; font-weight: 550; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted-2);
  font-size: 18px;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Final CTA ---------- */

.final-cta { padding: 96px 0; }
.final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border: 1px solid rgba(249, 115, 22, .35);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(249, 115, 22, .12), rgba(249, 115, 22, .02) 55%), var(--surface-2);
}
.final-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.final-inner p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.final-inner .cta-row { margin-top: 0; flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
}
.footer-brand img { border-radius: 6px; }
.footer-brand small { color: var(--muted-2); font-weight: 400; font-size: 12.5px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  .terminal { left: 0; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    background: #1b1b1f;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; font-size: 15px; width: 100%; }
  .nav-toggle { display: block; }

  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .lede { max-width: none; }

  .arch {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .arch-arrow { transform: rotate(90deg); line-height: 1; }
  .compare-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .header-actions .btn-ghost { display: none; }
  .metrics { gap: 16px 0; }
  .metrics li { width: 50%; margin-right: 0; padding-right: 0; border-right: 0; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-num { padding-top: 0; }
  .terminal { position: relative; left: auto; bottom: auto; margin-top: 14px; width: 100%; }
  .hero-visual { padding-bottom: 0; }
  .final-inner { padding: 32px 24px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .app-body { grid-template-columns: 108px minmax(0, 1fr); }
  .app-side { padding: 12px 8px; }
  .side-item { font-size: 11.5px; padding: 6px 8px; }
  .side-gate { padding: 7px; }
  .side-gate strong { font-size: 9.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .footer-links { margin-left: 0; gap: 14px; }
  .metrics strong { font-size: 20px; }
}
