:root {
  --bg: #f4f1e8;
  --bg-ink: #eee7d9;
  --surface: #fffaf1;
  --surface-2: #f7eddc;
  --surface-3: #ffffff;
  --text: #151b17;
  --muted: #667064;
  --muted-2: #909889;
  --border: #dfd4bf;
  --accent: #087a55;
  --on-accent: #ffffff;
  --accent-2: #1e63d6;
  --accent-3: #f97316;
  --accent-soft: #dff7eb;
  --success-soft: #e8fff3;
  --warning-soft: #fff4d6;
  --warning: #8a5a00;
  --code-bg: #111713;
  --code-text: #e8f5ec;
  --shadow: 0 22px 70px rgba(52, 42, 24, 0.11);
  --shadow-strong: 0 30px 100px rgba(21, 27, 23, 0.16);
  color-scheme: light;
}

:root.dark {
  --bg: #0d120f;
  --bg-ink: #141b16;
  --surface: #151b17;
  --surface-2: #1d261f;
  --surface-3: #101612;
  --text: #edf5ec;
  --muted: #b7c2b4;
  --muted-2: #82917f;
  --border: #2c382f;
  --accent: #53e0a8;
  --on-accent: #062016;
  --accent-2: #82aaff;
  --accent-3: #ffb86c;
  --accent-soft: #19372a;
  --success-soft: #10291e;
  --warning-soft: #33280f;
  --warning: #ffd166;
  --code-bg: #070b08;
  --code-text: #effaf2;
  --shadow: 0 24px 78px rgba(0, 0, 0, 0.36);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent-3) 16%, transparent), transparent 24rem),
    linear-gradient(135deg, var(--bg), var(--bg-ink));
  color: var(--text);
  font-family: "Avenir Next", "Trebuchet MS", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 35%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0 1.25rem;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 15px;
  color: white;
  background: conic-gradient(from 160deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  letter-spacing: -0.08em;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 620px;
  margin: 0 auto;
}

.search-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 2.65rem 0 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 84%, transparent);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 50%, transparent);
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-icon,
.shortcut {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.search-icon { left: 0.95rem; }
.shortcut {
  right: 0.85rem;
  min-width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  line-height: 20px;
  font-size: 0.8rem;
}

.theme-toggle,
.icon-button,
.console-button,
button[data-copy],
.copy-chip,
.mini-copy {
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.console-button {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 16%, transparent);
}
.console-button:hover { transform: translateY(-1px); text-decoration: none; }
.mobile-only { display: none; }

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1120px);
  gap: 1.5rem;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.35rem;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.sidebar-section + .sidebar-section { margin-top: 1rem; }
.sidebar-title {
  margin: 0.65rem 0 0.4rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar-link {
  display: block;
  padding: 0.42rem 0.7rem;
  border-radius: 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.sidebar-link:hover,
.sidebar-link.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.sidebar-link.hidden { display: none; }

.sidebar-footer {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
}
.sidebar-footer code { display: block; margin-top: 0.55rem; color: var(--text); word-break: break-all; }
.mini-copy { min-height: 32px; margin: 0.55rem 0 0; padding: 0 0.7rem; font-size: 0.78rem; }
.content { min-width: 0; }

.hero,
.doc-section,
.feature-card,
.bottom-cta {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: 540px;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 34px;
  overflow: hidden;
}

.hero-text { position: relative; z-index: 1; }
.hero-visual { position: relative; margin: 0; transform: rotate(1deg); }
.hero-visual::before {
  position: absolute;
  inset: 10% -4% -5% 12%;
  z-index: -1;
  content: "";
  border-radius: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  filter: blur(30px);
  opacity: 0.28;
}
.hero-visual img { border-radius: 30px; box-shadow: var(--shadow-strong); }

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, h4 { line-height: 1.12; }
h1 {
  max-width: 760px;
  margin: 0.7rem 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  letter-spacing: -0.065em;
}
h2 { margin: 0.35rem 0 0.9rem; font-size: clamp(1.75rem, 3vw, 2.45rem); letter-spacing: -0.035em; }
h3 { margin-top: 1.55rem; font-size: 1.22rem; }
h4 { margin: 0.8rem 0 0.5rem; font-size: 1rem; }
.hero-copy { max-width: 700px; color: var(--muted); font-size: 1.16rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}
.primary-button { background: var(--accent); color: var(--on-accent); box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 24%, transparent); }
.secondary-button { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); text-decoration: none; }

.hero-facts { display: grid; gap: 0.6rem; margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; }
.hero-facts span {
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.feature-card {
  position: relative;
  min-height: 150px;
  padding: 1rem;
  border-radius: 24px;
  color: var(--text);
  overflow: hidden;
  text-decoration: none;
}
.feature-card::after {
  position: absolute;
  right: -30px;
  bottom: -36px;
  width: 92px;
  height: 92px;
  content: "";
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.feature-card:hover { transform: translateY(-3px); text-decoration: none; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}
.feature-card strong { display: block; font-size: 1.05rem; }
.feature-card p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.9rem; }

.doc-section {
  margin-top: 1rem;
  padding: clamp(1.3rem, 3vw, 2.25rem);
  border-radius: 28px;
  scroll-margin-top: 90px;
}

.route-board,
.url-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin: 1rem 0; }
.route-card,
.url-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-3);
}
.primary-route,
.dark-card { color: #fff; background: linear-gradient(135deg, #111713, #0f9f72); border-color: transparent; }
.primary-route code,
.dark-card code { background: rgba(255, 255, 255, 0.14); color: #fff; }
.route-card span,
.url-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-route span,
.dark-card span { color: rgba(255,255,255,0.66); }
.route-card strong,
.url-card strong { display: block; margin-top: 0.45rem; font-size: clamp(1rem, 1.5vw, 1.25rem); word-break: break-word; }
.route-card p,
.url-card p { margin-bottom: 0; color: var(--muted); }
.primary-route p,
.dark-card p { color: rgba(255,255,255,0.78); }
.route-card button,
.url-card button { margin-top: 1rem; min-height: 34px; font-size: 0.82rem; }

.wide-figure,
.media-visual,
.hero-visual { margin: 0; }
.wide-figure { margin: 1rem 0 1.4rem; }
.wide-figure img,
.media-visual img { border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }

.steps { padding-left: 1.35rem; }
.steps li { margin: 0.42rem 0; }
.compact-steps li { margin: 0.28rem 0; }

.callout { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 18px; }
.callout.info { background: var(--accent-soft); }
.callout.success { background: var(--success-soft); }
.callout.warning { background: var(--warning-soft); color: var(--warning); }
.callout.logo-note {
  border-style: dashed;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-3) 74%, transparent), color-mix(in srgb, var(--accent-soft) 55%, transparent));
  color: var(--muted);
}
.callout.logo-note strong { color: var(--text); }

.snippet-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0; }
.copy-chip { min-height: 40px; background: var(--surface-2); font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; font-size: 0.9rem; }

code {
  padding: 0.12rem 0.38rem;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: 0.92em;
}

pre {
  position: relative;
  overflow: auto;
  margin: 1rem 0;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, white 9%, transparent);
  border-radius: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
pre code { padding: 0; background: transparent; color: inherit; white-space: pre; }
.copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  min-height: 30px;
  padding: 0 0.65rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--code-text);
  cursor: pointer;
  font-weight: 800;
}

.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.media-section { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: center; }
.media-copy,
.media-visual { min-width: 0; }

.settings-list { display: grid; gap: 0.75rem; margin: 1rem 0; }
.settings-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-3);
}
.settings-list span { color: var(--muted); font-size: 0.9rem; }
.settings-list strong { word-break: break-word; }
.compact-settings div { grid-template-columns: 150px minmax(0, 1fr); }

.client-cluster { margin-top: 1.4rem; }
.client-cluster h3 { margin: 1.2rem 0 0.75rem; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.8rem 0 1.15rem;
}
.client-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.65rem;
  min-height: 228px;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 88%, white 12%);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-3) 96%, white), var(--surface-3)),
    var(--surface-3);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--text) 7%, transparent);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.client-card::before,
.client-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.client-card::before {
  inset: 0;
  background: radial-gradient(circle at 18% 14%, color-mix(in srgb, white 72%, transparent), transparent 8rem);
  opacity: 0.7;
}
.client-card::after {
  inset: auto -42px -54px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.client-card.featured {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 9rem),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 28%, var(--surface-3)), var(--surface-3));
}
.client-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 20px 46px color-mix(in srgb, var(--text) 11%, transparent);
  text-decoration: none;
}
.client-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 0.65rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 21px;
  background: #fff;
  box-shadow:
    0 16px 28px color-mix(in srgb, var(--text) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.06) contrast(1.03);
}
.client-logo.logo-mark img { width: 86%; height: 86%; }
.client-logo.logo-full img { width: 100%; height: 100%; }
.client-logo.logo-wide { width: 92px; padding: 0.56rem 0.72rem; }
.client-logo.logo-round img { border-radius: 50%; }
.client-logo.logo-anthropic { background: #f8f0e4; }
.client-logo.logo-openai { background: #ffffff; }
.client-logo.logo-chatbox { background: linear-gradient(135deg, #172033, #1d4ed8); }
.client-meta {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.client-card strong { display: block; font-size: 1.12rem; }
.client-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.kind-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.kind-list span {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.52rem;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--surface-3));
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.tutorial-step {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
  margin: 1.15rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
}
.step-copy,
.step-note {
  min-width: 0;
}
.step-copy > span {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
}
.step-copy h3 { margin: 0.7rem 0 0.55rem; }
.step-copy p { color: var(--muted); }
.step-media,
.screenshot-card {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step-media img,
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.step-media figcaption,
.screenshot-card figcaption {
  margin: 0;
  padding: 0.8rem 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.step-note {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
}
.step-note strong { color: var(--text); }
.screenshot-frame {
  display: block;
  overflow: auto;
  background: var(--surface-2);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.compare-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-3);
}
.compare-card span {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
}
.compare-card strong { display: block; margin-top: 0.7rem; word-break: break-all; }
.compare-card p { margin-bottom: 0; color: var(--muted); }
.compare-card.wrong { border-color: color-mix(in srgb, #ef4444 35%, var(--border)); }
.compare-card.wrong span { background: color-mix(in srgb, #ef4444 16%, transparent); color: #b91c1c; }
.compare-card.right { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.code-details { margin: 1rem 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.code-details summary { padding: 1rem 1.15rem; cursor: pointer; font-weight: 900; }
.code-details pre { margin: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
.full-width { grid-column: 1 / -1; }

.faq-list { display: grid; gap: 0.75rem; }
.faq-list details { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-3); }
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { margin-bottom: 0; color: var(--muted); }

.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 18rem),
    color-mix(in srgb, var(--surface) 93%, transparent);
}
.bottom-cta h2 { margin-bottom: 0; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: var(--text);
  color: var(--surface);
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .hero,
  .media-section,
  .tutorial-step { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { transform: none; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
  .brand-text { display: none; }
  .console-button { display: none; }
  .search-wrap { max-width: none; }
  .theme-toggle { padding: 0 0.65rem; }
  .app-shell { display: block; padding: 1rem; }
  .sidebar {
    position: fixed;
    top: 76px;
    left: 1rem;
    right: 1rem;
    z-index: 40;
    display: none;
    max-height: calc(100vh - 92px);
  }
  .sidebar.open { display: block; }
  .hero { padding: 1.5rem; border-radius: 26px; }
  .doc-section { padding: 1.2rem; border-radius: 22px; }
  .feature-grid,
  .route-board,
  .url-matrix,
  .code-grid,
  .client-grid,
  .compare-grid { grid-template-columns: 1fr; }
  .settings-list div,
  .compact-settings div { grid-template-columns: 1fr; }
  .bottom-cta { display: block; }
}
