/* ============================================================
   恒行智能 · 企业官网样式表
   科技感深色主题 / 青蓝渐变 / 响应式
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg:        #070b14;
  --bg-soft:   #0b1120;
  --surface:   #0f1828;
  --surface-2: #142034;
  --line:      rgba(148, 180, 220, 0.14);
  --line-strong: rgba(0, 212, 255, 0.35);

  --primary:   #00d4ff;
  --primary-2: #4f7cff;
  --accent:    #7c5cff;
  --grad:      linear-gradient(120deg, #00d4ff 0%, #4f7cff 55%, #7c5cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,212,255,.16), rgba(79,124,255,.16));

  --text:      #eaf2ff;
  --text-mute: #93a5c0;
  --text-dim:  #64748b;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --glow:      0 0 30px rgba(0, 212, 255, .18);
  --maxw:      1200px;
  --nav-h:     76px;

  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

/* ---------- 2. 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%,  rgba(0,212,255,.10), transparent 70%),
    radial-gradient(ellipse 60% 45% at 95% 10%,  rgba(124,92,255,.10), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(79,124,255,.06), transparent 70%);
  pointer-events: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(0,212,255,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. 布局工具 ---------- */
.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--primary); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-desc { color: var(--text-mute); margin-top: 16px; font-size: 16px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04121c; box-shadow: 0 8px 30px rgba(0,212,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(0,212,255,.4); }
.btn-ghost { background: rgba(255,255,255,.035); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(0,212,255,.07); }
.btn svg { width: 17px; height: 17px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(7,11,20,.95); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(0,212,255,.3); color: #05121c;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.brand-name small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .22em; color: var(--text-mute); margin-top: 3px; }
.brand-logo { height: 42px; width: auto; border-radius: 6px; transition: opacity .2s ease; }
.brand:hover .brand-logo { opacity: .85; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--text-mute);
  padding: 8px 0; transition: color .2s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(7,11,20,.82) 45%, rgba(7,11,20,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image:
    linear-gradient(rgba(0,212,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(0,212,255,.07); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 .typed { color: var(--primary); }
.hero-lede { margin-top: 24px; max-width: 560px; color: var(--text-mute); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 44px; color: var(--text-dim); font-size: 13px; }
.hero-trust .line { width: 34px; height: 1px; background: var(--line); }
.hero-visual { position: relative; }
.hero-card {
  position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow), var(--glow);
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,20,.7), transparent 60%); }
.hero-float {
  position: absolute; right: -18px; bottom: -26px; z-index: 2;
  background: rgba(15,24,40,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 22px;
  box-shadow: var(--shadow); min-width: 190px;
}
.hero-float .label { font-size: 12px; color: var(--text-mute); }
.hero-float .value { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-float .bars { display: flex; gap: 4px; align-items: flex-end; height: 26px; margin-top: 8px; }
.hero-float .bars i { flex: 1; background: var(--grad); border-radius: 2px 2px 0 0; opacity: .8; }

/* ---------- 7. 数据条 ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num .unit { font-size: 18px; margin-left: 3px; }
.stat-label { color: var(--text-mute); font-size: 14px; margin-top: 6px; }

/* ---------- 8. 通用卡片 ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--primary); margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--text-mute); font-size: 14.5px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; font-weight: 600; margin-top: 20px; }
.card-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- 9. 产品 / 案例卡片 ---------- */
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.work-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow), var(--glow); }
.work-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,11,20,.55), transparent 55%); }
.work-tag {
  position: absolute; z-index: 2; left: 14px; top: 14px;
  padding: 5px 11px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(7,11,20,.75); border: 1px solid var(--line-strong); color: var(--primary);
  backdrop-filter: blur(6px);
}
.work-body { padding: 24px; }
.work-body h3 { font-size: 18px; margin-bottom: 8px; }
.work-body p { color: var(--text-mute); font-size: 14px; }
.work-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--text-dim); font-size: 12px; }
.work-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* ---------- 10. CTA 横幅 ---------- */
.cta {
  position: relative; border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 64px 56px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,.10), rgba(124,92,255,.10)), var(--surface);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(0,212,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3.5vw, 38px); }
.cta p { color: var(--text-mute); margin: 14px auto 28px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 11. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand p { color: var(--text-mute); font-size: 14px; margin-top: 20px; max-width: 300px; }
.footer-col h4 { font-size: 14px; margin-bottom: 20px; letter-spacing: .05em; }
.footer-col a { display: block; color: var(--text-mute); font-size: 14px; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { display: flex; gap: 10px; color: var(--text-mute); font-size: 14px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13px;
}

/* ---------- 12. 内页 Hero ---------- */
.page-hero {
  position: relative; padding: 76px 0 64px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(0,212,255,.1), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: linear-gradient(rgba(0,212,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,.1) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(0deg, transparent, #000);
  -webkit-mask-image: linear-gradient(0deg, transparent, #000);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); margin-top: 8px; }
.page-hero p { color: var(--text-mute); max-width: 640px; margin-top: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 13. 筛选器 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text-mute); font-size: 14px; font-weight: 500;
  transition: all .25s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.active { background: var(--grad); color: #04121c; border-color: transparent; font-weight: 700; box-shadow: 0 6px 22px rgba(0,212,255,.22); }
.filter-empty { display: none; text-align: center; color: var(--text-mute); padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 14. 关于页 ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; height: 440px; object-fit: cover; }
.about-visual .accent-box {
  position: absolute; left: -20px; bottom: -20px; z-index: -1;
  width: 70%; height: 70%; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--grad-soft);
}
.feature-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-mute); font-size: 15px; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--primary), transparent); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -31px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 0 12px var(--primary);
}
.timeline-year { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .08em; }
.timeline-item h3 { font-size: 18px; margin: 6px 0 8px; }
.timeline-item p { color: var(--text-mute); font-size: 14px; }

/* ---------- 15. 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; margin-bottom: 20px;
}
.contact-info-card h3 { font-size: 17px; margin-bottom: 18px; }
.contact-info-card ul li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-mute); padding: 10px 0; font-size: 14.5px; }
.contact-info-card ul li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; color: var(--text); }
.form-group label .req { color: var(--primary); margin-left: 3px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 15px; font-size: 14.5px; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,212,255,.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-error { color: #ff6b81; font-size: 12px; margin-top: 6px; display: none; }
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select { border-color: #ff6b81; }
.form-group.invalid .form-error { display: block; }
.form-status {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(0,212,255,.09); border: 1px solid var(--line-strong); color: var(--primary); font-size: 14px;
}
.form-status.show { display: block; }
.form-status.error {
  background: rgba(255,107,129,.09);
  border-color: rgba(255,107,129,.45);
  color: #ff8a9b;
}
.map-box {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 260px;
  background: var(--surface); position: relative; display: grid; place-items: center; text-align: center; padding: 24px;
  background-image: linear-gradient(rgba(0,212,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-box .pin { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--line-strong); display: grid; place-items: center; margin: 0 auto 14px; color: var(--primary); }
.map-box .pin svg { width: 24px; height: 24px; }
.map-box h4 { font-size: 17px; }
.map-box p { color: var(--text-mute); font-size: 14px; margin-top: 6px; }

/* ---------- 16. 动画与滚动显现 ---------- */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--primary);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-layout { gap: 40px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px;
    background: rgba(7,11,20,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); opacity: 0; visibility: hidden; transition: all .3s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-menu a.active::after { display: none; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-split, .contact-layout { grid-template-columns: 1fr; }
  .cta { padding: 48px 28px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 34px; }
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 15.5px; }
  .hero-float { right: 8px; bottom: -18px; padding: 14px 16px; min-width: 155px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 12px; }
  .stat-num { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
