/* ==========================================================================
   花漾传媒 MCP 官网 — css/site.css
   ==========================================================================
   设计体系对齐 v3.0（Apple 风格）：色值 / 圆角 / 阴影 / 缓动取自
   v3.0/css/style.css 的 CSS 变量，字体用系统栈（零外部字体）。
   响应式、深色 Hero 渐变 + 浅色内容区。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS 变量
   -------------------------------------------------------------------------- */
:root {
  /* Typography（系统字体栈，国内可直连，无外部字体） */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;   /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-md: 1.0625rem;   /* 17px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */

  /* Colors（取自 v3.0 style.css） */
  --bg: #ffffff;
  --bg-inset: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --accent-bg: rgba(0, 113, 227, 0.08);
  --success: #30b158;
  --warning: #ff9f0a;
  --border: #e5e5ea;
  --border-light: #ededf0;

  /* Code block（深色） */
  --code-bg: #16161a;
  --code-border: #26262e;
  --code-text: #f2f2f4;
  --code-dim: #9a9aa3;
  --ph-key-bg: rgba(255, 214, 10, 0.16);
  --ph-key-text: #ffd60a;

  /* Shadow（多层柔影，Apple 风） */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px -2px rgba(0, 0, 0, 0.06), 0 4px 16px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px -4px rgba(0, 0, 0, 0.08), 0 8px 32px -4px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Layout */
  --nav-h: 60px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  min-height: 100vh;
}

::selection {
  background: rgba(0, 113, 227, 0.22);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--primary-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  color: inherit;
}

img, svg { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }

/* 进场动画（仅在 JS 激活 class 后生效，无 JS 时内容照常可见） */
.reveal-init .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-init .reveal.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init .reveal { transition: none; transform: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   3. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn--soft { background: var(--accent-bg); color: var(--primary); }
.btn--soft:hover { background: rgba(0, 113, 227, 0.16); color: var(--primary-hover); }

.btn--lg { padding: 14px 30px; font-size: 17px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* --------------------------------------------------------------------------
   4. 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark { border-radius: 8px; flex-shrink: 0; }
.brand__name { display: inline-flex; align-items: center; gap: 8px; }
.brand__tag {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
  padding: 2px 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { background: var(--accent-bg); color: var(--primary); }
.site-nav a.is-active { color: var(--primary); }

.site-header__cta { margin-left: 8px; }

/* --------------------------------------------------------------------------
   5. Hero（深色渐变）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(0, 113, 227, 0.38), transparent 60%),
    radial-gradient(1000px 560px at 88% 4%, rgba(94, 92, 230, 0.30), transparent 62%),
    linear-gradient(160deg, #08080c 0%, #0e1018 42%, #101a33 78%, #0b1020 100%);
  padding: 104px 0 88px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--a {
  width: 380px; height: 380px;
  left: -120px; top: -80px;
  background: rgba(10, 132, 255, 0.35);
}
.hero__glow--b {
  width: 420px; height: 420px;
  right: -140px; bottom: -160px;
  background: rgba(94, 92, 230, 0.30);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 22px;
}

.hero__sub {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero__hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 34px;
}
.hero__hint a {
  color: #64b5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__hint a:hover { color: #8ecbff; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__chips li {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

/* --------------------------------------------------------------------------
   6. 通用 Section
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section--what    { background: var(--bg); }
.section--features{ background: var(--bg-inset); }
.section--install { background: var(--bg); }
.section--usage   { background: var(--bg-inset); }
.section--security{ background: var(--bg); }
.section--faq     { background: var(--bg-inset); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(30px, 4.2vw, 42px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   7. 它是什么（三步）
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step { padding: 30px 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-bg);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 16px;
}
.step__title { font-size: 20px; margin-bottom: 10px; }
.step__desc { font-size: 15px; line-height: 1.75; color: var(--text-2); }

/* --------------------------------------------------------------------------
   8. 能做什么（工具分组）
   -------------------------------------------------------------------------- */
.features-section { display: flex; flex-direction: column; gap: 24px; }

.group-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 30px 30px 24px;
  margin-bottom: 24px;
}
.group-card:last-child { margin-bottom: 0; }

.group-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.group-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: var(--bg-inset);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.group-card__meta { flex: 1; min-width: 180px; }
.group-card__meta h3 { font-size: 20px; margin-bottom: 2px; }
.group-card__meta p { font-size: 14px; color: var(--text-2); }

.badge {
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  white-space: nowrap;
}
.badge--read { color: var(--success); background: rgba(48, 177, 88, 0.1); }
.badge--write { color: #c4740a; background: rgba(255, 159, 10, 0.12); }
.group-card--write .group-card__icon { background: rgba(255, 159, 10, 0.12); }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f7f7f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tool:hover { background: #f2f2f4; border-color: var(--border); }
.tool__name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.tool__desc { font-size: 13.5px; color: var(--text-2); }

.features__footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   9. 安装区（状态条 / tabs / 代码块）
   -------------------------------------------------------------------------- */
.status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff8e6;
  border: 1px solid #f2d28c;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 28px;
}
.status-bar__icon { font-size: 20px; flex-shrink: 0; }
.status-bar__text {
  flex: 1;
  min-width: 240px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #6b4e0a;
}
.status-bar__text b { color: #4a3600; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #ececf0;
  border-radius: var(--radius-full);
  padding: 5px;
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1;
  min-width: 96px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 500;
  color: #424245;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.tab-panel[hidden] { display: none; }

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.code-head__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.copy-btn {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: background 0.25s var(--ease), transform 0.15s var(--ease);
}
.copy-btn:hover { background: var(--primary-hover); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-copied { background: var(--success); }

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  overflow-x: auto;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  cursor: default;
}
.code-block::-webkit-scrollbar { height: 8px; }
.code-block::-webkit-scrollbar-thumb { background: #3a3a44; border-radius: 4px; }
.code-block code { font-family: inherit; font-size: inherit; }

/* Key 占位符高亮 */
.ph-key {
  background: var(--ph-key-bg);
  color: var(--ph-key-text);
  border-radius: 4px;
  padding: 1px 4px;
  font-style: normal;
}

.tab-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}
.tab-note b { color: var(--text); font-weight: 600; }
.tab-note code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-all;
}

.install__tip {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-3);
}

.noscript-tip {
  margin-top: 18px;
  font-size: 14px;
  color: #b25000;
  background: #fff4e5;
  border: 1px solid #f2d28c;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

/* 兼容性速查 */
.compat {
  margin-top: 36px;
  background: var(--bg-inset);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
}
.compat__title { font-size: 17px; margin-bottom: 14px; }
.compat__list { display: flex; flex-direction: column; gap: 10px; }
.compat__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.compat__list code {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.compat__list b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. 使用说明
   -------------------------------------------------------------------------- */
.usage-card { padding: 30px 30px 26px; }
.usage-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 15px;
  color: var(--text);
}

.usage-steps { display: flex; flex-direction: column; gap: 0; }
.usage-step {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 30px;
}
.usage-step:last-child { padding-bottom: 0; }
.usage-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.usage-step:last-child::before { display: none; }

.usage-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #5e5ce6);
  border-radius: var(--radius-full);
}
.usage-step h3 { font-size: 18px; margin: 2px 0 6px; }
.usage-step p { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.usage-step b { color: var(--text); font-weight: 600; }
.usage-step code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--primary);
  background: var(--accent-bg);
  border-radius: 6px;
  padding: 1px 6px;
}

/* 剪贴板兜底 textarea（不上 style 属性，兼容严格 CSP） */
.clip-fallback {
  position: fixed;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   11. 安全与合规
   -------------------------------------------------------------------------- */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sec-card { padding: 26px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.sec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sec-card__icon { font-size: 26px; margin-bottom: 14px; }
.sec-card h3 { font-size: 17px; margin-bottom: 8px; }
.sec-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-2); }

/* --------------------------------------------------------------------------
   12. 常见问题
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--primary); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-inset);
  border-top: 1px solid var(--border-light);
  padding: 44px 0 30px;
}
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.site-footer__desc { margin-top: 10px; font-size: 13.5px; color: var(--text-3); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.site-footer__nav a:hover { color: var(--primary); }
.site-footer__legal {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   14. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }

  /* 导航：折叠为两行，链接可横向滚动 */
  .site-header { height: auto; }
  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 6px;
    gap: 8px 16px;
  }
  .site-header__cta { margin-left: auto; }
  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 6px 11px; }

  .tabs { border-radius: var(--radius-lg); }
  .tab-btn { min-width: 33%; flex: 1 1 30%; }
  .code-block { font-size: 12px; padding: 16px; }
  .compat__list li { flex-direction: column; gap: 4px; }
  .status-bar { align-items: flex-start; }
  .status-bar__text { min-width: 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand__name { font-size: 15.5px; }
}
