/* Antevo — лендинг. Тёмная data-эстетика: уверенная точность без хайпа.
   Фирменные шрифты IBM Plex (токены бренда) самохостятся из /assets/fonts —
   ни одного внешнего запроса (RGPD). Анимации живут в слое поверх контента:
   без JS и при prefers-reduced-motion страница полностью читаема. */

/* --- шрифты: IBM Plex, self-hosted ------------------------------------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
/* latin-ext: ã, õ, ç и прочая португальская диакритика */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #090b10;
  --bg-2: #0d1017;
  --panel: #12161f;
  --panel-2: #171c28;
  --line: #222938;
  --line-soft: #1a2028;
  --fg: #f0f4fa;
  --fg-dim: #c6ced9;
  --muted: #8d98a9;
  --faint: #616c7d;
  --accent: #5b8cff;
  --accent-bright: #8fb0ff;
  --amber: #f2b537;
  --green: #43cf8e;
  --glow: rgba(91, 140, 255, 0.17);
  --radius: 14px;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Атмосфера: два световых пятна медленно дрейфуют за контентом */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 74% 6%, var(--glow), transparent 62%),
    radial-gradient(48rem 34rem at 12% 14%, rgba(67, 207, 142, 0.07), transparent 60%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 2%, 0) scale(1.06); }
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #b3c8ff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0;
}

/* --- шапка --------------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 20;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-soft);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; }
.header-in img { height: 25px; display: block; }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.lang { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--faint); white-space: nowrap; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--fg); }
.lang strong { color: var(--fg); font-weight: 600; }
.nav-signin { color: var(--fg-dim); }
.nav-signin:hover { color: var(--fg); }
@media (max-width: 560px) {
  .header-nav { gap: 12px; }
  .nav-signin { display: none; }
}

/* --- кнопки --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 11px 20px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #08101f;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 26px -8px rgba(91,140,255,0.7);
}
.btn-primary:hover { color: #08101f; box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 34px -8px rgba(91,140,255,0.9); }
/* сияние, пробегающее по главной кнопке */
.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 44%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  animation: sheen 4.2s ease-in-out infinite;
}
@keyframes sheen {
  0%, 64% { left: -60%; }
  82%, 100% { left: 130%; }
}
.btn-ghost { border: 1px solid var(--line); color: var(--fg-dim); background: rgba(255,255,255,0.015); }
.btn-ghost:hover { border-color: #35415c; color: var(--fg); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* --- герой --------------------------------------------------------------- */
.hero { padding: 76px 0 44px; position: relative; }
/* «инструментальная» сетка: едва заметная миллиметровка, тающая книзу */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 160, 205, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 160, 205, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
/* grid-детям запрещено распирать колонку: без min-width:0 nowrap-полосы
   радара делали страницу шире вьюпорта на мобильных */
.hero-grid > * { min-width: 0; }

.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 22px;
  text-wrap: balance;
}
/* градиент с медленным шиммером */
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-bright) 20%, #9fe0c0 40%, var(--accent-bright) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  from { background-position: 0% 0; }
  to   { background-position: -220% 0; }
}
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 42ch; margin: 0 0 30px; line-height: 1.55; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.02em; }
.trust { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.trust span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.trust b { color: var(--fg-dim); font-weight: 500; }
.trust .dot { color: var(--line); }

/* --- карточка радара (сигнатурный визуал) --------------------------------- */
.radar-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rc-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rc-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: 0.08em; }
.rc-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67,207,142,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(67,207,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,207,142,0); }
}
.rc-svg { width: 100%; height: auto; display: block; margin: 10px 0 2px; }
/* пунктир «fim» рисуется, окно мягко проявляется */
.rc-svg .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.2s 0.7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rc-svg .win-rect { opacity: 0; animation: fadein 0.9s 1s ease forwards; }
@keyframes fadein { to { opacity: 1; } }

.rc-rows { display: grid; gap: 9px; margin-top: 14px; }
.rc-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rc-bar {
  height: 30px; border-radius: 7px;
  display: flex; align-items: center; padding: 0 11px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
  transform-origin: left center;
}
/* полосы «вырастают» слева направо с каскадом */
html.js .rc-bar { transform: scaleX(0); animation: grow 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
html.js .rc-row:nth-child(1) .rc-bar { animation-delay: 0.45s; }
html.js .rc-row:nth-child(2) .rc-bar { animation-delay: 0.65s; }
html.js .rc-row:nth-child(3) .rc-bar { animation-delay: 0.85s; }
@keyframes grow { to { transform: scaleX(1); } }
.rc-bar.past { background: #1b2130; border: 1px solid var(--line); }
.rc-bar.win {
  background: linear-gradient(90deg, rgba(242,181,55,0.18), rgba(242,181,55,0.05));
  border: 1px solid rgba(242,181,55,0.5);
  color: #f6cf7d;
  box-shadow: 0 0 24px -6px rgba(242,181,55,0.35);
}
.rc-bar.win b { color: var(--amber); }
.rc-tag { font-family: var(--mono); font-size: 11px; color: var(--faint); min-width: 52px; }
.rc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; }
.rc-foot div { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rc-foot b { color: var(--fg); font-size: 15px; display: block; letter-spacing: -0.01em; }
.rc-foot .accent { color: var(--accent-bright); }
.rc-foot .grn { color: var(--green); }

/* --- цифры ----------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin: 64px 0 8px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 22px 20px; transition: background 0.25s ease; }
.stat:hover { background: #10141d; }
.stat .n {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em; color: var(--fg);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.stat:hover .n { color: var(--accent-bright); }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* --- секции ----------------------------------------------------------------- */
section { padding: 84px 0; position: relative; }
.section-tag { margin-bottom: 14px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.03em; font-weight: 700; margin: 0 0 14px; text-wrap: balance; line-height: 1.08; }
p.lead { color: var(--muted); max-width: 62ch; margin: 0 0 34px; font-size: 18px; }

/* блок 62% */
.bigstat { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .bigstat { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.bignum {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(96px, 16vw, 200px);
  line-height: 0.86; letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--amber), #b9791c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.bigstat .body p { font-size: 19px; color: var(--fg-dim); max-width: 46ch; margin: 0 0 18px; }
.bigstat .body p strong { color: var(--fg); }
.bigstat .body .sub2 { color: var(--muted); font-size: 16px; }

/* --- фичи со spotlight-подсветкой ------------------------------------------ */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
/* фонарик, следящий за курсором (координаты ставит reveal.js) */
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(91,140,255,0.13), transparent 65%);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-3px); border-color: #2c3a58; }
.feature:hover::before { opacity: 1; }
.feature .ficon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.22);
  margin-bottom: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature:hover .ficon { transform: scale(1.08) rotate(-3deg); background: rgba(91,140,255,0.18); }
.feature .ficon svg { width: 18px; height: 18px; stroke: var(--accent-bright); fill: none; stroke-width: 1.7; }
.feature h3 { font-size: 17px; margin: 0 0 7px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* --- honesty ----------------------------------------------------------------- */
.honesty-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.honesty-head { padding: 34px 34px 8px; }
.honesty-list { display: grid; grid-template-columns: 1fr; }
@media (min-width: 780px) { .honesty-list { grid-template-columns: repeat(3, 1fr); } }
.hitem { padding: 26px 34px 32px; border-top: 1px solid var(--line-soft); }
@media (min-width: 780px) { .hitem { border-top: none; border-left: 1px solid var(--line-soft); } .hitem:first-child { border-left: none; } }
.hitem .hnum { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--amber); letter-spacing: -0.02em; }
.hitem p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.hitem p strong { color: var(--fg-dim); font-weight: 600; }
.honesty-foot { padding: 22px 34px 30px; color: var(--fg-dim); font-size: 15px; }

/* --- финальный CTA ------------------------------------------------------------ */
.final { text-align: center; padding: 100px 0; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 18px; margin: 0 auto 30px; max-width: 48ch; }
.final .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* --- подвал ----------------------------------------------------------------- */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0 60px; color: var(--muted); font-size: 13.5px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer .legal { max-width: 58ch; line-height: 1.7; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
footer .foot-links { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; line-height: 2; }

/* --- юридические страницы ------------------------------------------------ */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.03em; line-height: 1.08; margin: 8px 0 6px; }
.doc .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.doc .intro { color: var(--fg-dim); font-size: 18px; margin: 18px 0 8px; }
.doc h2 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -0.015em; }
.doc p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.doc .backlink { font-family: var(--mono); font-size: 13px; }

/* --- reveal-анимации ---------------------------------------------------------- */
/* Скрываем только при html.js (ставится синхронно в head): без JS и для
   краулеров контент виден сразу. Появление — подъём + лёгкое сведение блюра. */
.reveal { transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.8s cubic-bezier(0.22,1,0.36,1); }
html.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  body::before, .btn-primary::after, .hero h1 .grad, .rc-live::before { animation: none; }
  html.js .rc-bar { transform: none; animation: none; }
  .rc-svg .draw { stroke-dashoffset: 0; animation: none; }
  .rc-svg .win-rect { opacity: 1; animation: none; }
}
