/* Bateersoft — base layout + light theme tokens.
   Every color is a CSS variable. assets/css/legacy.css overrides the tokens and adds
   the original neon decorations; toggling that stylesheet switches the whole site. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter_v20_UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-tint: #f2f6ff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #8892a4;
  --line: #e5e9f0;
  --line-strong: #d5dce8;
  --brand: #1b4dd8;
  --brand-dark: #143bad;
  --brand-soft: #edf3ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --surface: #ffffff;
  --field-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, .88);
  --on-brand: #ffffff;
  --selection-bg: #cfe0ff;
  --placeholder: #aab2c0;
  --focus-ring: rgba(27, 77, 216, .1);
  --hover-shadow: 0 8px 28px rgba(16, 24, 40, .06);
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: var(--selection-bg); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
@media (min-width: 1024px) { .wrap { width: min(1180px, calc(100% - 80px)); } }
.section { padding: 104px 0; position: relative; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 56px; }
.section-head > p { max-width: 420px; margin: 0; color: var(--ink-2); font-size: 14px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.22; }
h3 { font-size: 19px; line-height: 1.4; }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.accent { color: var(--brand); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--primary[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; color: var(--on-brand); font-weight: 700; font-size: 16px;
  font-family: var(--mono); letter-spacing: -.04em;
}
.brand__name { font-size: 15px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.brand__sub { font-size: 10px; color: var(--ink-3); line-height: 1.4; letter-spacing: .06em; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 13.5px; color: var(--ink-2); }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--brand); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav__toggle svg { width: 18px; height: 18px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
}
.theme-switch button {
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; line-height: 1.4;
  transition: background .2s ease, color .2s ease;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 900px) { .theme-switch button { padding: 5px 8px; font-size: 10.5px; } }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav__links.is-open a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding: 96px 0 88px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; color: var(--ink-2);
}
.hero__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  margin-top: 28px; max-width: 900px;
  font-size: clamp(38px, 6.2vw, 72px); line-height: 1.13; letter-spacing: -.04em;
}
.hero__lead { margin-top: 26px; max-width: 640px; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__note { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }

.stats { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { padding: 28px 30px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.stats__value { margin-top: 10px; font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
.stats__desc { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- sectors strip ---------- */
.sectors { padding: 26px 0; background: var(--bg-soft); border-block: 1px solid var(--line); }
.sectors__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.sectors__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sectors__viewport { flex: 1; min-width: 0; }
.sectors__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sectors__list span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; color: var(--ink-2); }
.sectors__list .sectors__dup { display: none; }

/* ---------- generic cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card--pad { padding: 28px; }
a.card:hover, .card--hover:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--hover-shadow); }
.card__index { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 19px; height: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .process { grid-template-columns: 1fr; gap: 36px; } }
.process__example { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.example__block { padding: 22px 24px; }
.example__block + .example__block { border-top: 1px solid var(--line); background: var(--bg-soft); }
.example__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.example__text { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__no { font-family: var(--mono); font-size: 11px; color: var(--brand); letter-spacing: .08em; }
.step__time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.step__out { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.promise { margin-top: 18px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.promise__title { font-size: 14px; font-weight: 600; }
.promise__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- cases ---------- */
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case__cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 3px 8px; }
.case h3 { margin-top: 22px; }
.case p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.case__metrics { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case__metrics dt { font-size: 11.5px; color: var(--ink-3); }
.case__metrics dd { margin: 4px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--brand); }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stack > div { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack > div:nth-child(4n) { border-right: 0; }
.stack > div:nth-last-child(-n+4) { border-bottom: 0; }
.stack h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--brand); font-weight: 600; }
.stack ul { list-style: none; margin: 16px 0 0; padding: 0; }
.stack li { font-size: 13px; color: var(--ink-2); padding: 5px 0; }
@media (max-width: 900px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stack > div:nth-child(2n) { border-right: 0; } .stack > div:nth-child(4n) { border-right: 0; } .stack > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); } .stack > div:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } .stack > div { border-right: 0; border-bottom: 1px solid var(--line); } .stack > div:last-child { border-bottom: 0; } }

/* ---------- why / quote ---------- */
.why__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.why__head .eyebrow { justify-content: center; }
.point__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.point__label { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: .04em; }
.quote { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 780px) { .quote { grid-template-columns: 1fr; } }
.quote__main { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.quote__text { margin-top: 18px; font-size: clamp(17px, 2vw, 21px); line-height: 1.75; color: var(--ink); letter-spacing: -.01em; }
.quote__by { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--line); }
.quote__who { font-size: 13px; }
.quote__meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.quote__side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.quote__side .card { padding: 24px; }
.quote__big { font-size: 36px; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; border: 1px solid var(--line); border-radius: 20px; padding: 48px; background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; gap: 40px; padding: 28px; } }
.contact__info { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .contact__info { grid-template-columns: 1fr; } }
.info-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.info-box__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }
.info-box__value { margin-top: 8px; font-size: 14px; font-weight: 550; line-height: 1.6; }
.info-box__value a:hover { color: var(--brand); }
.pills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-family: var(--mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* ---------- form ---------- */
.form { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field > label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--field-bg); color: var(--ink); font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #d92d20; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.checks input { accent-color: var(--brand); margin: 0; width: 13px; height: 13px; }
.captcha { display: flex; align-items: stretch; gap: 10px; }
.captcha input { flex: 1; min-width: 0; height: 48px; text-transform: uppercase; letter-spacing: .16em; font-family: var(--mono); }
.captcha__img {
  width: 150px; height: 48px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-soft); cursor: pointer;
}
.captcha__refresh {
  width: 48px; height: 48px; flex: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.captcha__refresh:hover { color: var(--brand); border-color: var(--brand); }
.captcha__refresh svg { width: 17px; height: 17px; }
@media (max-width: 520px) {
  .captcha { flex-wrap: wrap; }
  .captcha input { flex: 1 1 100%; }
}
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__status { margin-top: 14px; font-size: 13px; line-height: 1.6; min-height: 20px; }
.form__status.is-ok { color: #067647; }
.form__status.is-err { color: #b42318; }
.form__fineprint { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 40px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.footer__list { list-style: none; margin: 16px 0 0; padding: 0; }
.footer__list li { font-size: 13px; color: var(--ink-2); padding: 5px 0; }
.footer__list a:hover { color: var(--brand); }
.footer__about { margin-top: 20px; font-size: 13px; color: var(--ink-3); line-height: 1.8; max-width: 380px; }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); }
.footer__bottom a:hover { color: var(--brand); }
.footer__links { display: flex; gap: 18px; font-family: var(--mono); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
