/* ZQ跨境助手 — Design system (ui-ux-pro-max: Trust & Authority + Conversion)
   Navy primary, trust-blue accent for CTA only, light surfaces, data-dense but scannable.
   Chinese system font stack (no external font requests: Google Fonts is unreliable in mainland China). */

:root {
  /* color tokens */
  --primary: #0f172a;
  --primary-2: #1e293b;
  --primary-3: #334155;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eef3ff;
  --accent-line: #c7d6fe;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted-bg: #f1f5f9;
  --fg: #0f172a;
  --fg-2: #334155;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #047857;
  --success-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --on-dark: #f1f5f9;
  --on-dark-2: #cbd5e1;

  /* type */
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px; --fs-48: 48px;

  /* shape & depth */
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-16); line-height: 1.75; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--fg); }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* focus & skip link */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.brand .logo { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: var(--fs-18); letter-spacing: .01em; }
.brand-sub { font-size: var(--fs-12); color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: 16px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; color: var(--fg-2); font-size: var(--fs-16); border-radius: var(--r-sm); transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover { color: var(--fg); background: var(--muted-bg); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-cta { display: flex; gap: 10px; margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-size: var(--fs-16); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-14); }
.btn-primary, .btn-lime, .btn-deep { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .25); }
.btn-primary:hover, .btn-lime:hover, .btn-deep:hover { background: var(--accent-hover); }
.btn-outline, .btn-line { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-outline:hover, .btn-line:hover { border-color: var(--fg-2); background: var(--muted-bg); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(203, 213, 225, .45); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- shared blocks ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-14); font-weight: 600; border: 1px solid var(--accent-line); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kicker { display: inline-block; font-size: var(--fs-14); font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.on-deep .kicker { color: #93b4ff; }
.h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 8px; letter-spacing: -.01em; }
.lede { font-size: var(--fs-18); color: var(--fg-2); max-width: 720px; margin-top: 14px; }
.on-deep .lede { color: var(--on-dark-2); }
.sect { padding: 96px 0; }
.sect-sm { padding: 64px 0; }
.sect-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sect-hd { max-width: 760px; margin-bottom: 48px; }
.sect-hd.center { margin-left: auto; margin-right: auto; text-align: center; }
.sect-hd.center .lede { margin-left: auto; margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--muted-bg); color: var(--fg-2); font-size: var(--fs-12); border: 1px solid var(--border); white-space: nowrap; }
.chip.api { font-family: var(--mono); background: var(--surface); }
.tag { font-family: var(--mono); font-size: var(--fs-12); padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--fg-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.note { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r); padding: 16px 18px; font-size: var(--fs-14); color: var(--fg-2); }
.note b { color: var(--fg); }
.cap { font-size: var(--fs-12); color: var(--muted); margin-top: 10px; text-align: center; }

/* reveal animation (respects reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .5s var(--ease) forwards; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; } .reveal.d4 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.22; letter-spacing: -.02em; margin-top: 20px; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { font-size: var(--fs-18); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: var(--fs-16); }
.checks .icon { color: var(--success); }

/* product mock */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; font-size: var(--fs-14); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--muted-bg); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-title { margin-left: 8px; font-size: var(--fs-12); color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; background: #fbfcfe; }
.mock-side span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--fg-2); font-size: var(--fs-12); }
.mock-side span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; }
.kpi .k { font-size: 11px; color: var(--muted); }
.kpi .v { font-size: var(--fs-20); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.kpi.warn .v { color: var(--warn); }
.mock-table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.mock-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); background: #fbfcfe; }
.mock-table td { padding: 8px; border-bottom: 1px solid var(--border); color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--success); }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.trust-item .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.trust-item h3 { font-size: var(--fs-16); }
.trust-item p { font-size: var(--fs-14); color: var(--muted); margin-top: 2px; }

/* ---------- bento modules ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.mod:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.mod.wide { grid-column: span 2; }
.mod .ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.mod .no { position: absolute; top: 22px; right: 24px; font-size: var(--fs-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.mod h3 { font-size: var(--fs-20); }
.mod p { color: var(--fg-2); font-size: var(--fs-16); }
.mod .roles-lbl { font-size: var(--fs-12); color: var(--muted); margin-top: auto; padding-top: 6px; }
.mod .link-arrow { font-size: var(--fs-14); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step .n { position: relative; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-18); }
.step p { color: var(--fg-2); margin-top: 8px; font-size: var(--fs-16); }

/* ---------- boundary & spec ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.panel-dark { background: var(--primary); color: var(--on-dark); border-radius: var(--r-lg); padding: 32px; }
.panel-dark h3 { color: #fff; font-size: var(--fs-20); }
.panel-dark p { color: var(--on-dark-2); }
.nolist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.nolist li { display: flex; gap: 12px; align-items: flex-start; }
.nolist .x { width: 28px; height: 28px; border-radius: 50%; background: rgba(248, 113, 113, .16); color: #fca5a5; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.nolist b { color: #fff; display: block; }
.nolist span { color: var(--on-dark-2); font-size: var(--fs-14); }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; font-size: var(--fs-16); }
.spec th, .spec td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; color: var(--muted); font-weight: 500; background: #fbfcfe; font-size: var(--fs-14); }
.spec td { color: var(--fg-2); }
.spec td b { color: var(--fg); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.tier.pick { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tier .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: var(--fs-12); font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tier h3 { font-size: var(--fs-20); }
.tier .fit { color: var(--muted); font-size: var(--fs-14); margin-top: 6px; min-height: 48px; }
.amt { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.amt .c { font-size: var(--fs-20); font-weight: 700; }
.amt .v { font-size: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.amt .u { color: var(--muted); }
.seat { font-size: var(--fs-14); color: var(--fg-2); margin-top: 6px; }
.has { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; flex: 1; }
.has li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); font-size: var(--fs-16); }
.has .icon { color: var(--success); margin-top: 4px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table.grid { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-16); }
table.grid th, table.grid td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.grid thead th { background: var(--primary); color: #fff; font-weight: 600; font-size: var(--fs-14); position: sticky; top: 0; }
table.grid tbody tr:hover { background: #fbfcfe; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td.y { color: var(--success); font-weight: 600; }
table.grid td.n { color: var(--muted); }

/* ---------- FAQ ---------- */
.qa { max-width: 860px; border-top: 1px solid var(--border); }
.qa.center { margin: 0 auto; }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 600; font-size: var(--fs-18); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { color: var(--muted); transition: transform .2s var(--ease); }
.qa details[open] summary .icon { transform: rotate(180deg); }
.qa .ans { padding: 0 0 20px; color: var(--fg-2); }
.qa .ans a { color: var(--accent); font-weight: 600; }

/* ---------- feature rows (features page) ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--border); }
.frow:last-child { border-bottom: 0; }
.frow.rev .ftext { order: 2; }
.ftext .no { font-size: var(--fs-14); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.ftext h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 6px; }
.ftext > p { color: var(--fg-2); margin-top: 12px; }
.facts { display: grid; gap: 14px; margin-top: 20px; }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: var(--fs-16); }
.fact dt { color: var(--muted); font-size: var(--fs-14); padding-top: 2px; }
.fact dd { margin: 0; color: var(--fg-2); }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; font-size: var(--fs-14); }
.mini-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: var(--fs-12); color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.mini-row:last-child { border-bottom: 0; }
.bar { height: 8px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; flex: 1; max-width: 160px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar i.low { background: var(--warn); }
.range { display: inline-flex; gap: 6px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl li { position: relative; padding: 0 0 16px 28px; color: var(--fg-2); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.tl li.done::before { background: var(--accent); }
.tl b { color: var(--fg); }

/* ---------- page head ---------- */
.pagehead { background: var(--primary); color: var(--on-dark); position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.pagehead .wrap { position: relative; padding-top: 64px; padding-bottom: 56px; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); margin-top: 10px; letter-spacing: -.01em; }
.pagehead .lede { color: var(--on-dark-2); }
.pagehead .kicker { color: #93b4ff; }
.crumb { font-size: var(--fs-14); color: var(--on-dark-2); }
.crumb a { color: var(--on-dark-2); text-decoration: none; }
.crumb a:hover { color: #fff; }

/* ---------- help ---------- */
.sla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sla-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; }
.sla-card .k { color: var(--muted); font-size: var(--fs-14); }
.sla-card .v { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; }
.sla-card .n { color: var(--fg-2); font-size: var(--fs-14); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.card .k { display: inline-block; font-size: var(--fs-12); font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.card h3 { font-size: var(--fs-18); margin-top: 10px; }
.card p { color: var(--fg-2); margin-top: 8px; font-size: var(--fs-16); }
.card a { color: var(--accent); font-weight: 600; }

/* ---------- contact ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.reach { display: grid; gap: 12px; }
.reach-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.reach-item .ic { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.reach-item .k { font-size: var(--fs-14); color: var(--muted); }
.reach-item .v { font-weight: 600; font-size: var(--fs-18); word-break: break-all; }
.reach-item .v a { text-decoration: none; color: var(--fg); }
.reach-item .v a:hover { color: var(--accent); }
.reach-item .n { font-size: var(--fs-14); color: var(--muted); }

/* ---------- forms ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form h2 { font-size: var(--fs-24); }
.form .sub { color: var(--muted); font-size: var(--fs-14); margin-top: 6px; }
.form .sub a { color: var(--accent); font-weight: 600; }
.f { margin-top: 18px; }
.f label { display: block; font-size: var(--fs-14); font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.req { color: var(--danger); margin-left: 2px; }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: var(--fs-16); color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .18); }
.f textarea { min-height: 130px; resize: vertical; }
.f .hint { font-size: var(--fs-12); color: var(--muted); margin-top: 6px; }
.f .err { font-size: var(--fs-12); color: var(--danger); margin-top: 6px; min-height: 0; }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); color: var(--fg-2); margin-top: 18px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); font-weight: 600; }
.status { margin-top: 14px; min-height: 22px; font-size: var(--fs-14); text-align: center; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

/* ---------- auth (login/register) ---------- */
.auth { min-height: calc(100dvh - var(--header-h) - 80px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--primary); color: var(--on-dark); padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side h1 { color: #fff; font-size: var(--fs-32); margin-top: 14px; }
.auth-side p { color: var(--on-dark-2); margin-top: 12px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-side li { padding-left: 26px; position: relative; color: var(--on-dark-2); }
.auth-side li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid #86efac; border-bottom: 2px solid #86efac; transform: rotate(-45deg); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-main .form { width: 100%; max-width: 440px; }
.auth-main .alt { text-align: center; font-size: var(--fs-14); margin-top: 18px; color: var(--muted); }
.auth-main .alt a { color: var(--accent); font-weight: 600; }

/* ---------- OAuth callback ---------- */
.cb { max-width: 640px; margin: 64px auto; padding: 0 24px; }
.cb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px 36px; text-align: center; box-shadow: var(--shadow); }
.cb-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.cb-card h1 { font-size: var(--fs-24); }
.cb-card p { color: var(--fg-2); margin-top: 12px; }
.cb-card .acts, .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cb-card ol { text-align: left; color: var(--fg-2); margin: 20px 0 0; padding-left: 22px; }
.cb-card ol li { margin-top: 6px; }
.cb-meta { font-family: var(--mono); font-size: var(--fs-12); color: var(--muted); margin-top: 18px; word-break: break-all; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border-left: 2px solid var(--border); padding-left: 16px; }
.toc .t { font-size: var(--fs-12); font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; text-decoration: none; font-size: var(--fs-14); color: var(--fg-2); padding: 6px 0; }
.toc a:hover { color: var(--accent); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 44px 48px; max-width: 860px; }
.doc h2 { font-size: var(--fs-20); margin: 36px 0 12px; }
.doc h2:first-of-type { margin-top: 4px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin-top: 6px; }
.doc a { color: var(--accent); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: var(--fs-14); }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--muted-bg); color: var(--fg); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--on-dark); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { color: var(--on-dark-2); margin-top: 8px; max-width: 620px; }
.cta-band .acts { margin-top: 0; justify-content: flex-start; }

/* ---------- footer ---------- */
.site-footer { background: #0b1222; color: var(--on-dark-2); font-size: var(--fs-14); }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: var(--on-dark-2); }
.site-footer .fh { color: #fff; font-size: var(--fs-14); font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .about { margin-top: 14px; max-width: 360px; }
.site-footer .fine { border-top: 1px solid rgba(203, 213, 225, .15); padding-top: 18px; padding-bottom: 28px; display: grid; gap: 6px; font-size: var(--fs-12); color: #94a3b8; }

/* ---------- responsive (breakpoints 375 / 768 / 1024 / 1440) ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .split, .frow { grid-template-columns: 1fr; gap: 40px; }
  .frow.rev .ftext { order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .mod.wide { grid-column: span 2; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav-wrap { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.open .nav { display: flex; flex-direction: column; width: 100%; margin: 0; order: 3; }
  .site-header.open .nav a[aria-current="page"]::after { display: none; }
  .site-header.open .nav-cta { display: flex; width: 100%; order: 4; margin: 0; }
  .site-header.open .nav-cta .btn { flex: 1; }
  .tiers, .steps, .sla, .cards, .two, .auth { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .auth-side { padding: 40px 24px; }
  .sect { padding: 64px 0; }
  .doc { padding: 28px 22px; }
  .form { padding: 24px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 600px) {
  .bento, .trust { grid-template-columns: 1fr; }
  .mod.wide { grid-column: auto; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .spec th { width: 38%; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .cta-band .acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
