/* ---------- Tokens ---------- */
:root {
  --bg: #0d1e30;
  --bg-2: #112740;
  --surface: #15304c;
  --surface-2: #1b3a5a;
  --line: rgba(166, 196, 222, 0.16);
  --line-strong: rgba(166, 196, 222, 0.34);
  --text: #e9f1f7;
  --muted: #a7bacb;
  --faint: #7d93a8;
  --accent: #f4b740;
  --accent-text: #f6c45f;
  --cta-bg: #f4b740;
  --cta-ink: #1c1606;
  --ok: #5fd39a;
  --bad: #ff7a7a;
  --warn: #f4b740;
  --ramp: linear-gradient(90deg, #2c3e9e, #2f7fd0 18%, #35b9c9 36%, #8cd27a 52%, #f2d04b 68%, #f2913d 84%, #d9425a);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  --grid: rgba(166, 196, 222, 0.045);
  --glow: rgba(244, 183, 64, 0.22);
  --radius-s: 6px;
  --radius-m: 12px;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #edf2f5;
  --bg-2: #e2eaf0;
  --surface: #f8fbfc;
  --surface-2: #ffffff;
  --line: rgba(15, 40, 65, 0.13);
  --line-strong: rgba(15, 40, 65, 0.28);
  --text: #0f2236;
  --muted: #45596d;
  --faint: #66798b;
  --accent: #b8650a;
  --accent-text: #9a5300;
  --cta-bg: #0f2236;
  --cta-ink: #f3f7fa;
  --ok: #157a4a;
  --bad: #c0303a;
  --warn: #9a5300;
  --shadow: 0 24px 50px -32px rgba(15, 34, 54, 0.45);
  --grid: rgba(15, 40, 65, 0.05);
  --glow: rgba(184, 101, 10, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #edf2f5;
    --bg-2: #e2eaf0;
    --surface: #f8fbfc;
    --surface-2: #ffffff;
    --line: rgba(15, 40, 65, 0.13);
    --line-strong: rgba(15, 40, 65, 0.28);
    --text: #0f2236;
    --muted: #45596d;
    --faint: #66798b;
    --accent: #b8650a;
    --accent-text: #9a5300;
    --cta-bg: #0f2236;
    --cta-ink: #f3f7fa;
    --ok: #157a4a;
    --bad: #c0303a;
    --warn: #9a5300;
    --shadow: 0 24px 50px -32px rgba(15, 34, 54, 0.45);
    --grid: rgba(15, 40, 65, 0.05);
    --glow: rgba(184, 101, 10, 0.18);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cta-bg); color: var(--cta-ink); padding: 8px 14px; border-radius: var(--radius-s); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.22; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 1.7vw, 23px); font-weight: 700; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); max-width: 38em; }

/* ---------- Scroll legend (top progress) ---------- */
.legend-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.legend-bar span { display: block; height: 100%; width: 100%; background: var(--ramp); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.head-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; min-width: 0; }
.brand svg { flex: none; }
.brand b { overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--line); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-s); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-strong); }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#isobars { z-index: -2; opacity: .9; }
#wind { z-index: -1; }
.hero::after { /* readability scrim on the text side */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 45%, transparent 70%);
}
.hero-inner { position: relative; padding-top: 120px; padding-bottom: clamp(40px, 9vh, 96px); width: 100%; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero-tag { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.hero-tag i { width: 28px; height: 2px; background: var(--ramp); display: inline-block; }
.hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.08; letter-spacing: 0.005em; max-width: 11.5em; }
.hero h1 .line { display: block; }
.hero h1 .line2 { color: var(--bg); -webkit-text-stroke: 2.2px var(--text); paint-order: stroke fill; }
@supports not (-webkit-text-stroke: 1px black) { .hero h1 .line2 { color: var(--text); } }
.hero .lede { margin-top: 26px; max-width: 34em; color: var(--text); opacity: .86; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; width: 26px; height: 40px; border: 1.5px solid var(--line-strong); border-radius: 13px; opacity: .8; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

.readout {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 9vh, 96px); z-index: 2;
  width: 240px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 10px; }
.readout dt { color: var(--faint); }
.readout dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.readout .ramp { height: 6px; border-radius: 3px; background: var(--ramp); }
.readout .ramp-scale { display: flex; justify-content: space-between; font-size: 11px; margin-top: 3px; color: var(--faint); font-variant-numeric: tabular-nums; }
.readout p { margin-top: 8px; font-size: 12px; color: var(--faint); }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lede { justify-self: start; }
.alt {
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-position: center top;
}
.alt::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14c40-14 80-14 120 0s80 14 120 0 80-14 120 0 40 10 40 10' fill='none' stroke='%23a6c4de' stroke-opacity='.35' stroke-width='1'/%3E%3Cpath d='M0 22c40-10 80-10 120 0s80 10 120 0 80-10 120 0 40 6 40 6' fill='none' stroke='%23a6c4de' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E") repeat-x;
  background-size: 400px 28px;
}
/* 节标题上方的温度色带：全站统一的识别元素 */
.sec-head h2::before, .split > div:first-child > h2::before, .caps-aside h2::before, .contact-aside h2::before {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--ramp); margin-bottom: 18px;
}

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--ramp); opacity: .8; }
.pipeline li { position: relative; padding: 0 20px 0 0; counter-increment: step; }
.pipeline .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); font-family: var(--serif); font-weight: 900; font-size: 18px; position: relative; }
.pipeline li:nth-child(1) .dot { border-color: #2f7fd0; }
.pipeline li:nth-child(2) .dot { border-color: #35b9c9; }
.pipeline li:nth-child(3) .dot { border-color: #8cd27a; }
.pipeline li:nth-child(4) .dot { border-color: #f2d04b; }
.pipeline li:nth-child(5) .dot { border-color: #f2913d; }
.pipeline h3 { margin-top: 20px; font-size: 20px; }
.pipeline p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Capability index */
.caps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; }
.caps-aside { position: sticky; top: 96px; align-self: start; }
.caps-aside .lede { margin-top: 18px; }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 26px 24px; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  background-image: radial-gradient(60% 50% at 0% 0%, var(--glow), transparent 70%);
  transition: border-color .25s, transform .25s;
}
.cap:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cap svg { width: 46px; height: 46px; color: var(--accent); margin-bottom: 18px; }
.cap h3 { font-size: 21px; }
.cap p { color: var(--muted); margin-top: 10px; max-width: 40em; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; padding: 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }

/* Template wall */
.tpl-stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 8px; }
.stat b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(54px, 7vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat b .n { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b small { font-size: .38em; font-weight: 700; margin-left: 6px; color: var(--text); }
.stat > span { color: var(--muted); display: block; margin-top: 10px; font-size: 15px; }
.wall { position: relative; margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 16px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall-row { display: flex; gap: 16px; width: max-content; animation: drift 80s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 95s; }
.wall:hover .wall-row, .wall:focus-within .wall-row { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } .wall { overflow-x: auto; } }
.tile { flex: none; margin: 0; }
.tile .frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b1826; box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); transition: transform .3s, box-shadow .3s; }
.tile canvas { border-radius: 0; border: 0; background: #0b1826; }
.tile .dur { position: absolute; top: 8px; right: 8px; font-size: 11px; line-height: 1; padding: 4px 6px; border-radius: 4px; background: rgba(5, 14, 26, .72); color: #e9f1f7; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.tile .bar i { display: block; height: 100%; width: 38%; background: var(--ramp); }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: rgba(5, 14, 26, .28); }
.tile .play i { width: 44px; height: 44px; border-radius: 50%; background: rgba(233, 241, 247, .92); display: grid; place-items: center; }
.tile .play i::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #0d1e30; margin-left: 3px; }
.tile:hover .frame, .tile:focus-within .frame { transform: translateY(-4px); box-shadow: 0 26px 48px -22px rgba(0,0,0,.85), 0 0 0 1px var(--line-strong); }
.tile:hover .play, .tile:focus-within .play { opacity: 1; }
.tile figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; }
.tile figcaption em { font-style: normal; color: var(--faint); font-size: 12px; }
.wall-note, .note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.tpl-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 32px; }
.tpl-kinds p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* Data-to-video + gate */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.flow-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 14px; background: var(--surface); }
.file svg { width: 18px; height: 18px; color: var(--accent); }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.flow-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.flow-steps li span { font-family: var(--serif); font-weight: 900; color: var(--accent-text); }
.flow-steps li em { font-style: normal; color: var(--muted); display: block; font-size: 15px; }
.sources { margin-top: 28px; }
.sources h3 { font-size: 18px; }

.gate { border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.gate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gate-top strong { font-size: 15px; }
.gate-top small { color: var(--faint); font-size: 12px; display: block; font-weight: 400; }
.gate-table-wrap { overflow-x: auto; }
.gate table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.gate th, .gate td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gate th { color: var(--faint); font-weight: 500; font-size: 13px; }
.gate td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.gate td.res { min-width: 170px; white-space: normal; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.verdict.pass { color: var(--ok); } .verdict.pass::before { background: var(--ok); }
.verdict.block { color: var(--bad); } .verdict.block::before { background: var(--bad); }
tr.is-blocked td.num { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.gate-foot { padding: 14px 18px; font-size: 14px; color: var(--muted); min-height: 52px; }
.gate-foot.done { color: var(--text); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.rules div { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.rules b { display: block; font-size: 15px; }
.rules span { font-size: 13px; color: var(--muted); }

/* Industry tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tab { flex: none; padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 16px; margin-bottom: -7px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); border-image: var(--ramp) 1; border-image-width: 0 0 2px 0; }
.tab:hover { color: var(--text); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; padding-top: 40px; }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; }
.panel .lede { margin-top: 14px; }
.panel .tag { display: inline-block; margin-top: 18px; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-text); }
.scenes { list-style: none; margin: 0; padding: 0; }
.scenes li { padding: 18px 0; border-top: 1px solid var(--line); }
.scenes li:last-child { border-bottom: 1px solid var(--line); }
.scenes b { display: block; font-size: 17px; }
.scenes span { color: var(--muted); font-size: 15px; }

/* Plans table */
.plans-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.plans { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.plans th, .plans td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plans thead th { font-family: var(--serif); font-weight: 900; font-size: 19px; border-bottom: 1px solid var(--line-strong); }
.plans thead th small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.plans tbody th { color: var(--muted); font-weight: 500; width: 15%; position: sticky; left: 0; background: var(--surface); }
.plans td { color: var(--text); }
.plans .na { color: var(--faint); }
.plans tfoot td, .plans tfoot th { border-bottom: 0; }
.plans tfoot th { position: sticky; left: 0; background: var(--surface); }
.plans col.hl { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.plans thead th.hl { box-shadow: inset 0 3px 0 var(--accent); }
.plans .badge { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-ink); }
.arrow-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.arrow-row i { display: inline-block; width: 26px; height: 1px; background: var(--line-strong); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 22px 22px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps .n { font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--accent-text); }
.steps h3 { font-size: 20px; margin-top: 4px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Lead form */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; }
.contact-aside .lede { margin-top: 18px; }
.contact-aside dl { margin: 32px 0 0; display: grid; gap: 14px; }
.contact-aside dt { color: var(--faint); font-size: 14px; }
.wx-qr { margin: 28px 0 0; display: flex; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; max-width: 380px; }
.wx-qr img { flex: none; width: 132px; height: 132px; border-radius: 8px; background: #fff; padding: 6px; }
.wx-qr figcaption { display: grid; gap: 6px; font-size: 14px; color: var(--faint); line-height: 1.6; }
.wx-qr figcaption b { color: inherit; font-size: 16px; color: var(--text); }
.contact-aside dd { margin: 2px 0 0; font-weight: 500; word-break: break-all; }
.contact.is-offline .contact-aside dl, .contact.is-offline .wx-qr { display: none; }
.lead-offline { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lead-offline[hidden], form.lead[hidden] { display: none; }
.lo-card, .lo-tips { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); }
.lo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.lo-card h3, .lo-tips h3 { margin: 0; font-size: 20px; }
.lo-tag { font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.lo-mail { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; word-break: break-all; color: var(--text); }
.lo-qr { align-items: center; text-align: center; }
.lo-qr img { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 12px; }
.lo-qr p, .lo-note { margin: 0; color: var(--faint); font-size: 14px; line-height: 1.6; }
.lo-tips { grid-column: 1 / -1; }
.lo-tips ul { margin: 14px 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); line-height: 1.6; }
.lo-tips b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .lead-offline { grid-template-columns: minmax(0, 1fr); } .lo-card { align-items: center; text-align: center; } }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 16px;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.demand { display: flex; flex-wrap: wrap; gap: 8px; }
.demand label { position: relative; }
.demand input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demand span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; font-weight: 400; }
.demand input:checked + span { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); font-weight: 700; }
.demand input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .privacy { font-size: 13px; color: var(--muted); flex: 1 1 240px; display: grid; gap: 4px; }
.consent { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.privacy .hint { color: var(--faint); }
.form-foot .privacy a { color: var(--accent-text); }
.status { grid-column: 1 / -1; border-radius: var(--radius-s); padding: 12px 14px; font-size: 15px; border: 1px solid var(--line-strong); }
.status:empty { display: none; }
.status.ok { border-color: var(--ok); color: var(--ok); }
.status.fail { border-color: var(--bad); }
.status.fail strong { color: var(--bad); }
.status.info { border-color: var(--accent); }
.status a { color: var(--accent-text); font-weight: 700; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot-row a { color: var(--muted); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-ramp { height: 4px; border-radius: 2px; background: var(--ramp); margin-bottom: 28px; opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-actions { margin-left: auto; }
  .nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 12px 8px; font-size: 17px; color: var(--text); }
  .readout { display: none; }
}
@media (max-width: 900px) {
  .sec-head, .caps, .split, .panel, .contact { grid-template-columns: minmax(0, 1fr); }
  .caps-aside { position: static; }
  .cap-list { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pipeline::before { left: 23px; right: auto; top: 24px; bottom: 80px; width: 2px; height: auto; background: linear-gradient(180deg, #2f7fd0, #35b9c9, #8cd27a, #f2d04b, #f2913d); }
  .pipeline li { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; padding: 0 0 26px; }
  .pipeline .dot { grid-row: span 2; }
  .pipeline h3 { margin-top: 10px; }
  .pipeline p { margin-top: 2px; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); padding-left: 0; }
  .steps li { padding: 0 0 26px 24px; }
  .steps li::before { left: -5px; top: 8px; }
  .tpl-kinds { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .head-row { gap: 10px; }
  .head-actions .btn-sm { display: none; }
  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(30px, calc((100vw - 32px) / 9.3), 48px); }
  .hero h1 .line2 { -webkit-text-stroke-width: 1.6px; }
  .hero-cta .btn { flex: 1 1 100%; }
  form.lead { grid-template-columns: minmax(0, 1fr); }
  .cap { padding: 22px 18px; }
  .cap svg { width: 38px; height: 38px; margin-bottom: 12px; }
  .scroll-cue { display: none; }
  .form-foot .btn { width: 100%; }
  .gate table { min-width: 0; font-size: 13px; }
  .gate th, .gate td { padding: 9px 8px; }
  .gate th:nth-child(2), .gate td:nth-child(2) { display: none; }
  .gate td.res { min-width: 112px; }
}
