/* ═══════════════════════════════════════════════════════════════════════════
   挺对 CMS · default 模板（企业建站服务主题 · 深色版）

   分两层：
     · 本文件                  设计令牌 / 基础版式 / 全站骨架（头部·页脚）/ 首页板块组件
     · default-overrides.css   内页专属组件（文章详情、列表、联系、页面构建器）

   工程约定：
     1. 所有视觉态由 CSS 负责，JS 只切 data-* 与状态类（见 default.js）。
     2. 正文内容一律不依赖 JS 渲染 —— AI 爬虫与搜索引擎拿到的是完整 SSR HTML。
     3. 颜色只在令牌里定义一次，内页样式一律引用 var()。
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 设计令牌 ────────────────────────────────────────────────────────────── */
:root {
    --bg: #070b15;
    --bg-elevated: #0a1120;
    --panel: #0d1526;
    --panel-hi: #121d34;

    --line: rgba(148, 163, 184, .14);
    --line-soft: rgba(148, 163, 184, .08);
    --line-strong: rgba(148, 163, 184, .26);

    --ink: #eef2fb;
    --ink-2: #cbd5e8;
    --muted: #8b9ab5;
    --dim: #64738f;

    --brand: #4f5df5;
    --brand-2: #3b82f6;
    --brand-ink: #ffffff;
    --brand-soft: rgba(79, 93, 245, .16);
    --brand-line: rgba(99, 132, 255, .38);
    --glow: rgba(59, 130, 246, .28);

    --ok: #34d399;
    --danger: #f87171;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shell: 1200px;
    --shadow: 0 24px 60px rgba(2, 6, 18, .55);
    --transition: .24s cubic-bezier(.32, .72, 0, 1);

    --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── 基础版式 ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

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

/* 首屏之外的深色渐层，避免纯黑导致长时间阅读疲劳；纯 CSS，零请求 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 50% -160px, rgba(59, 130, 246, .18), transparent 70%),
        radial-gradient(760px 480px at 88% 8%, rgba(99, 102, 241, .10), transparent 70%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
/* balance 让中文标题在两行之间均分字数，避免出现「只掉一个字到第二行」的孤字（窄列尤其明显） */
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.01em; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 800; }
em { font-style: normal; }

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 700;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* 通用容器 */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* 小标签（eyebrow）：让板块主题对机器可读，是 GEO 内容分块的锚点 */
.kicker {
    display: inline-block; margin: 0 0 16px;
    color: var(--brand-2); font-size: 13px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
}
.kicker a { color: inherit; }
.kicker-plain { color: var(--muted); letter-spacing: .1em; }

/* 板块骨架 */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(44px, 5vw, 72px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(10, 17, 32, .72) 18%, rgba(10, 17, 32, .72) 82%, transparent); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 4vw, 60px); text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 17px; line-height: 1.85; }
.section-lead a { color: var(--brand-2); border-bottom: 1px solid var(--brand-line); }
.section-lead a:hover { color: #93c5fd; }

/* 标题内的高亮词：视觉强调，不割裂 h2 的可读文本 */
.hl {
    background: linear-gradient(120deg, #6ea8ff, #8b8bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── 按钮与文本链接 ──────────────────────────────────────────────────────── */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 28px; border: 1px solid transparent; border-radius: 999px;
    font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.button-primary {
    background: linear-gradient(135deg, #5563f7, #3b82f6);
    color: var(--brand-ink);
    box-shadow: 0 12px 30px rgba(59, 82, 246, .32);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(59, 82, 246, .42); }
.button-ghost { background: rgba(148, 163, 184, .08); border-color: var(--line-strong); color: var(--ink); }
.button-ghost:hover { background: rgba(148, 163, 184, .16); border-color: var(--brand-line); }
.button-light { background: var(--ink); color: #0b1220; }
.button-light:hover { transform: translateY(-2px); }
.button-outline { border-color: rgba(255, 255, 255, .28); color: var(--ink); }
.button-outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.button-sm { padding: 11px 20px; font-size: 14px; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }

.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-2); font-size: 15px; font-weight: 700;
    border-bottom: 1px solid var(--brand-line); padding-bottom: 4px;
    transition: color var(--transition), border-color var(--transition);
}
.text-link:hover { color: #93c5fd; border-color: #93c5fd; }

/* ── 头部导航 ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(7, 11, 21, .72);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transition: background var(--transition), border-color var(--transition);
}
.site-header[data-scrolled="true"] { background: rgba(7, 11, 21, .94); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; flex-shrink: 0; }
.brand-mark {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, #5563f7, #22b8f0);
    color: #fff; font-size: 15px; font-weight: 800; line-height: 1;
    box-shadow: 0 6px 16px rgba(59, 82, 246, .38);
}
.brand-name { white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav > a, .primary-nav .nav-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 14px; border-radius: 999px;
    color: var(--ink-2); font-size: 15px; font-weight: 600;
    transition: color var(--transition), background var(--transition);
}
.primary-nav > a:hover, .primary-nav .nav-item:hover .nav-trigger, .primary-nav .nav-item:focus-within .nav-trigger {
    color: var(--ink); background: rgba(148, 163, 184, .1);
}

.nav-item { position: relative; }
.nav-caret { font-size: 9px; opacity: .7; transition: transform var(--transition); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-sub {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
    min-width: 210px; padding: 10px; border-radius: var(--radius);
    background: rgba(13, 21, 38, .98); border: 1px solid var(--line);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.nav-sub a:hover { background: rgba(148, 163, 184, .12); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login { color: var(--ink-2); font-size: 15px; font-weight: 600; padding: 9px 6px; }
.header-login:hover { color: var(--ink); }
.header-hotline { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-hotline:hover { color: var(--brand-2); }

.nav-toggle {
    display: none; width: 42px; height: 42px; padding: 0; margin-left: auto;
    background: rgba(148, 163, 184, .1); border: 1px solid var(--line); border-radius: 12px;
    cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { position: relative; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: background var(--transition); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header[data-nav="open"] .nav-toggle span { background: transparent; }
.site-header[data-nav="open"] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-nav="open"] .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── 首页 Hero ───────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 6vw, 96px);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(760px 460px at 50% 22%, #000 5%, transparent 72%);
    -webkit-mask-image: radial-gradient(760px 460px at 50% 22%, #000 5%, transparent 72%);
}
.hero::after {
    content: ""; position: absolute; left: 50%; top: -180px; width: 880px; height: 560px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 0 0 30px; padding: 8px 18px; border-radius: 999px;
    background: var(--brand-soft); border: 1px solid var(--brand-line);
    color: #a9c2ff; font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.hero h1 { margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero-lead { max-width: 720px; margin: 0 auto 36px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-trust { margin: 26px 0 0; color: var(--dim); font-size: 13.5px; letter-spacing: .02em; }
.hero-trust span + span::before { content: "·"; margin: 0 10px; opacity: .55; }

/* ── 四步流程 ────────────────────────────────────────────────────────────── */
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow-card {
    position: relative; padding: 30px 26px 28px; border-radius: var(--radius-lg);
    background: var(--panel); border: 1px solid var(--line);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.flow-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.flow-card.is-featured { background: linear-gradient(160deg, rgba(79, 93, 245, .22), rgba(59, 130, 246, .06)); border-color: var(--brand-line); }
.flow-no { display: block; margin-bottom: 20px; font-size: 26px; font-weight: 800; color: var(--brand-2); letter-spacing: -.02em; }
.flow-card h3 { margin-bottom: 10px; }
.flow-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ── 服务能力（大卡） ────────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
    padding: 38px 34px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--panel-hi), var(--panel));
    border: 1px solid var(--line);
    transition: transform var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--brand-line); }
.service-icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px;
    border-radius: 13px; background: var(--brand-soft); color: #93b4ff; font-size: 21px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; line-height: 1.85; }

/* ── 能力矩阵（小卡 2×3） ────────────────────────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap-card {
    display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
    padding: 26px 24px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--line);
    transition: transform var(--transition), border-color var(--transition);
}
.cap-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.cap-icon {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 11px; background: rgba(148, 163, 184, .1); color: #93b4ff; font-size: 18px;
}
.cap-card h3 { margin-bottom: 8px; font-size: 17px; }
.cap-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ── 数据带与客户证言 ────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.stat-card { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.stat-card strong em { font-size: .55em; margin-left: 2px; color: var(--brand-2); }
.stat-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote-card {
    display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
    padding: 32px 30px; border-radius: var(--radius-lg);
    background: var(--panel); border: 1px solid var(--line);
}
.quote-card blockquote { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.quote-who { display: flex; align-items: center; gap: 13px; }
.quote-avatar {
    display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 50%; background: linear-gradient(135deg, #5563f7, #22b8f0);
    color: #fff; font-size: 15px; font-weight: 800;
}
/* 用 .quote-meta 限定作用域：直接写 .quote-who span 会连头像一起命中，把圆形头像压成块级文本 */
.quote-meta strong { display: block; font-size: 14.5px; }
.quote-meta span { display: block; color: var(--dim); font-size: 13px; }

/* ── 常见问题（GEO 关键：答案以静态 HTML 呈现，detail/summary 只是渐进增强） ── */
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
    overflow: hidden; transition: border-color var(--transition), background var(--transition);
}
.faq-item[open] { border-color: var(--brand-line); background: var(--panel-hi); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 26px; cursor: pointer; list-style: none;
    font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex-shrink: 0; width: 13px; height: 13px;
    background: currentColor; opacity: .5;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer { padding: 0 26px 24px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.faq-answer > * + * { margin-top: 12px; }
.faq-answer a { color: var(--brand-2); border-bottom: 1px solid var(--brand-line); }

/* ── GEO 答案框：AI 生成式引擎可直接引用的品牌自述 ───────────────────────── */
.answer-band { padding: 0 0 clamp(48px, 5vw, 72px); }
.answer-box {
    position: relative; max-width: 940px; margin: 0 auto;
    padding: 34px 38px 34px 40px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(79, 93, 245, .14), rgba(13, 21, 38, .9));
    border: 1px solid var(--brand-line);
}
.answer-box::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #6ea8ff, #8b8bff); }
.answer-box .kicker { margin-bottom: 12px; }
.answer-box p { color: var(--ink-2); font-size: 16px; line-height: 1.95; }

/* ── CTA 转化带 ──────────────────────────────────────────────────────────── */
.cta-section { padding: clamp(56px, 6vw, 88px) 0; }
.cta-band {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(52px, 6vw, 84px) clamp(28px, 4vw, 64px); border-radius: 28px;
    background: linear-gradient(150deg, #17275a, #0f1b3c 55%, #101c38);
    border: 1px solid var(--brand-line);
    box-shadow: var(--shadow);
}
.cta-band::before {
    content: ""; position: absolute; left: 50%; top: -140px; width: 720px; height: 420px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(99, 132, 255, .34), transparent 72%);
}
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 32px; color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── 内页通用页头 ────────────────────────────────────────────────────────── */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(56px, 7vw, 100px) 0 clamp(32px, 4vw, 52px);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero::before {
    content: ""; position: absolute; left: 50%; top: -220px; width: 820px; height: 480px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(59, 130, 246, .2), transparent 72%);
}
.page-hero-inner { position: relative; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero-lead { max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.page-hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }

/* ── 页脚 ────────────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(56px, 7vw, 104px); padding: clamp(56px, 6vw, 80px) 0 34px; border-top: 1px solid var(--line); background: var(--bg-elevated); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand strong { display: block; margin-bottom: 14px; font-size: 17px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 300px; }
.footer-col h4 { margin-bottom: 16px; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-2); }
.footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-purpose { margin-top: 18px; color: var(--dim); font-size: 13px; line-height: 1.8; }

.friend-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.friend-links > span { color: var(--dim); }
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--brand-2); }

.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft);
    color: var(--dim); font-size: 13px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-2); }
.footer-bottom span[aria-hidden] { margin: 0 8px; opacity: .5; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── 空状态 ──────────────────────────────────────────────────────────────── */
.empty-state { padding: 40px; border-radius: var(--radius); background: var(--panel); border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); }
.empty-copy { color: var(--muted); }
.empty-copy a { color: var(--brand-2); }

/* ── 响应式 ──────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid, .cap-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .page-hero-split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .header-inner { gap: 16px; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        display: none; flex-direction: column; align-items: stretch; gap: 2px;
        margin: 0; padding: 14px 20px 22px;
        background: rgba(7, 11, 21, .98); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-header[data-nav="open"] .primary-nav { display: flex; }
    .primary-nav > a, .primary-nav .nav-trigger { padding: 13px 12px; border-radius: var(--radius-sm); font-size: 16px; }
    .nav-sub {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; padding: 0 0 6px 14px; background: none; border: 0; box-shadow: none;
    }
    .nav-caret { display: none; }
    .header-actions .header-login { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .shell, .page-hero-inner { padding: 0 18px; }
    .flow-grid, .service-grid, .cap-grid, .quote-grid, .stat-grid { grid-template-columns: 1fr; }
    .hero-actions .button, .cta-actions .button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .answer-box { padding: 26px 24px 26px 28px; }
    .faq-item summary { padding: 18px 20px; font-size: 15.5px; }
    .faq-answer { padding: 0 20px 20px; }
    .quote-card, .service-card { padding: 28px 24px; }
    .footer-bottom { justify-content: flex-start; }
}

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