/* ── Aiaga · лендинг ────────────────────────────────────────────
   Светлый «отчётный» стиль: бумага, линейки-разделители, бренд-синий.
   Подпись страницы — интро-обложка, раскрывающаяся в живой дашборд. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("assets/inter-cyr.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --paper: #ffffff;
  --cloud: #f8fafc;
  --line: #e2e8f0;
  --brand: #1e40af;
  --brand-deep: #172554;
  --accent: #1d4ed8;
  --teal: #0f766e;
  --r: 18px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px rgb(15 23 42 / .05);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / .05), 0 18px 50px rgb(30 64 175 / .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── интро-обложка ─────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  background: var(--brand-deep);
  transition: opacity .8s ease, visibility .8s;
}
#splash img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.14);
  animation: kenburns 8s ease-out forwards;
}
@keyframes kenburns { to { transform: scale(1.03); } }
.splash-veil {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgb(23 37 84 / .28), rgb(23 37 84 / .78));
}
.splash-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 24px;
}
.splash-brand {
  font-weight: 800; font-size: 20px; letter-spacing: .26em;
  text-transform: uppercase; opacity: 0;
  animation: rise .7s .15s ease-out forwards;
}
.splash-phrase {
  margin-top: 18px; font-size: clamp(34px, 6vw, 68px); line-height: 1.08;
  font-weight: 800; letter-spacing: -0.035em; opacity: 0;
  animation: rise .8s .4s ease-out forwards;
  text-wrap: balance;
}
.splash-sub {
  margin-top: 16px; font-size: 14px; letter-spacing: .14em; opacity: 0;
  animation: rise .8s .75s ease-out forwards; color: rgb(255 255 255 / .82);
}
.splash-skip {
  position: absolute; bottom: 26px; left: 0; right: 0; margin: 0 auto; width: fit-content;
  background: rgb(255 255 255 / .12); color: #fff; border: 1px solid rgb(255 255 255 / .3);
  border-radius: 999px; padding: 9px 20px; font: inherit; font-size: 13px;
  cursor: pointer; opacity: 0;
  animation: rise .7s 1.1s ease-out forwards;
}
.splash-skip:hover { background: rgb(255 255 255 / .22); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
html[data-intro="seen"] #splash { display: none; }

/* ── шапка ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
header.scrolled {
  background: rgb(255 255 255 / .94);
  border-bottom-color: var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
  color: var(--brand); text-decoration: none;
}
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a {
  text-decoration: none; font-size: 14.5px; color: var(--muted);
  transition: color .2s;
}
.bar nav a:hover { color: var(--brand); }

/* ── кнопки ────────────────────────────────────────────────── */
.btn {
  display: inline-block; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 15.5px; padding: 13px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgb(30 64 175 / .28);
}
.btn-primary:hover { background: #1c3a9e; transform: translateY(-1px); box-shadow: 0 10px 26px rgb(30 64 175 / .34); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-ghost {
  color: var(--brand); border: 1px solid var(--line); background: #fff;
}
.btn-ghost:hover { border-color: #93c5fd; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgb(2 6 23 / .3); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px;
}

/* ── первый экран ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; opacity: .55;
}
.aurora i:first-child {
  width: 620px; height: 620px; left: -180px; top: -240px;
  background: radial-gradient(circle, rgb(29 78 216 / .13), rgb(29 78 216 / .05) 45%, transparent 70%);
  animation: drift1 34s ease-in-out infinite;
}
.aurora i:last-child {
  width: 520px; height: 520px; right: -140px; top: 30px;
  background: radial-gradient(circle, rgb(8 145 178 / .11), rgb(8 145 178 / .04) 45%, transparent 70%);
  animation: drift2 46s ease-in-out infinite;
}
@keyframes drift1 { 50% { transform: translate(70px, 40px); } }
@keyframes drift2 { 50% { transform: translate(-60px, 50px); } }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 48px; align-items: center; padding-top: 14px; padding-bottom: 38px;
}
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: #eff6ff; border: 1px solid #dbeafe;
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  margin-top: 18px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06;
  font-weight: 800; letter-spacing: -0.04em; text-wrap: balance;
}
.lede {
  margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; list-style: none; }
.chips li {
  font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.chips li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* живой экран продукта */
.hero-visual { perspective: 1200px; }
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 18px 18px 14px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -8px; } }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; }
.dash-title { font-weight: 700; font-size: 15px; }
.dash-fresh { font-size: 11.5px; color: var(--faint); display: inline-flex; gap: 6px; align-items: center; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(15 118 110 / .35); } 70% { box-shadow: 0 0 0 7px transparent; } }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.kpi {
  position: relative; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px 9px 14px; overflow: hidden; background: #fff;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.k-teal::before { background: #0f766e; } .k-blue::before { background: #1d4ed8; } .k-violet::before { background: #7c3aed; }
.kpi-l { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.kpi-v { display: block; margin-top: 3px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-v b { font-weight: 800; }
.kpi-s { display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.kpi-s.up { color: var(--teal); }
.dash-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 12px; align-items: center; }
.dash-bars { width: 100%; height: auto; }
.dash-side { display: grid; gap: 8px; justify-items: center; }
.donut { width: 118px; height: 118px; }
.donut-t { font-size: 26px; font-weight: 800; fill: var(--ink); }
.donut-s { font-size: 9.5px; fill: var(--faint); }
.legend { list-style: none; display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.dash-note { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* анимация графиков — запускается классом .anim на контейнере */
.bars rect { transform-box: fill-box; transform-origin: bottom center; transform: scaleY(0); }
.anim .bars rect {
  animation: grow .7s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: calc(var(--i) * 60ms + 200ms);
}
@keyframes grow { to { transform: scaleY(1); } }
.trend { stroke-dasharray: 420; stroke-dashoffset: 420; }
.anim .trend { animation: draw 1.4s .8s ease-out forwards; }
.anim .trend.t2 { animation-delay: .35s; }
.anim .trend.t3 { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.seg { stroke-dashoffset: 340; transition: stroke-dashoffset 1s ease .5s; }
.anim .seg.s1 { stroke-dashoffset: 0; }
.anim .seg.s2 { stroke-dashoffset: -147; transition-delay: .75s; }
.anim .seg.s3 { stroke-dashoffset: -238; transition-delay: 1s; }
.pt { opacity: 0; }
.anim .pt { animation: rise .4s 1.6s ease-out forwards; }
.rows g { opacity: 0; transform: translateY(8px); }
.anim .rows g {
  animation: rowIn .55s ease-out forwards;
  animation-delay: calc(var(--i) * 110ms + 150ms);
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
.slider-fill { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.anim .slider-fill { animation: slideFill 1s .3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes slideFill { to { transform: scaleX(1); } }
.slider-knob { transform: translateX(-86px); }
.anim .slider-knob { animation: knob 1s .3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes knob { to { transform: translateX(0); } }

/* бегущая строка модулей */
.ticker {
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: var(--cloud);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--cloud), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--cloud), transparent); }
.ticker-row {
  display: flex; gap: 44px; width: max-content; padding: 13px 0;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row span {
  font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--faint);
  text-transform: uppercase; white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── секции ────────────────────────────────────────────────── */
.section { padding: 92px 0; }
.section-cloud { background: var(--cloud); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { position: relative; border-top: 1px solid var(--line); margin-bottom: 40px; }
.rule span {
  position: absolute; top: -0.72em; left: 0; background: inherit;
  background: var(--paper); padding-right: 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.section-cloud .rule span { background: var(--cloud); }
.h2 {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; max-width: 22em; text-wrap: balance;
}

/* карточки возможностей */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: var(--shadow-lg); }
.scene {
  background: var(--cloud); border: 1px solid #eef2f7; border-radius: 12px;
  padding: 0 10px 6px; margin-bottom: 14px; overflow: hidden;
}
.scene-bar {
  display: flex; align-items: center; gap: 5px; padding: 8px 2px 7px;
  border-bottom: 1px solid #eef2f7; margin-bottom: 4px;
}
.scene-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; }
.scene-bar span {
  margin-left: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--faint);
}
.scene svg { width: 100%; height: 108px; display: block; }
.card h3, .step h3, .pcard h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.card p, .step p, .pcard p { margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* шаги */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px;
  position: relative;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow);
}
.step-n {
  font-size: 15px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  border-bottom: 2px solid #dbeafe; display: inline-block; padding-bottom: 6px; margin-bottom: 16px;
}

/* подход */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.pcard { padding: 4px 8px; }
.picon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 14px; }

/* финальный призыв */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #172554, #1e3a8a 55%, #1d4ed8);
  color: #fff; border-radius: 26px; padding: 74px 28px 66px;
  box-shadow: 0 30px 70px rgb(30 58 138 / .35);
}
.cta-aurora i {
  position: absolute; border-radius: 50%; opacity: .55; pointer-events: none;
}
.cta-aurora i:first-child {
  width: 420px; height: 420px; left: -120px; bottom: -190px;
  background: radial-gradient(circle, rgb(8 145 178 / .4), rgb(8 145 178 / .14) 45%, transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.cta-aurora i:last-child {
  width: 380px; height: 380px; right: -110px; top: -160px;
  background: radial-gradient(circle, rgb(124 58 237 / .3), rgb(124 58 237 / .11) 45%, transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
.cta-panel h2 { position: relative; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.cta-panel p {
  position: relative; margin: 16px auto 30px; max-width: 36em;
  color: rgb(255 255 255 / .85); font-size: 16.5px;
}
.cta-panel .btn { position: relative; font-size: 16.5px; padding: 15px 34px; }
.cta-note { position: relative; margin-top: 16px; font-size: 13px; color: rgb(255 255 255 / .6); }

/* подвал */
footer { border-top: 1px solid var(--line); }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 26px; padding-bottom: 30px; font-size: 13.5px; color: var(--faint);
}
.foot-links { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--brand); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ── адаптив ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-bottom: 52px; }
  .grid2, .steps, .grid3 { grid-template-columns: 1fr; }
  .bar nav { display: none; }
  .section { padding: 66px 0; }
}
@media (max-width: 980px) and (min-width: 0px) {
  .bar { justify-content: space-between; }
}
@media (max-width: 560px) {
  .eyebrow-chip { font-size: 11px; letter-spacing: .04em; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .kpi.k-violet { grid-column: span 2; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: auto auto; align-items: center; }
  .cta-panel { padding: 54px 20px 48px; }
}

/* ── бережно к движению ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #splash img, .splash-brand, .splash-phrase, .splash-sub, .splash-skip { animation: none; opacity: 1; transform: none; }
  .aurora i, .cta-aurora i, .dash-card, .live-dot, .ticker-row { animation: none; }
  .bars rect, .slider-fill, .slider-knob { animation: none !important; transform: none; }
  .trend, .pt, .rows g, .seg { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; transition: none; }
  .seg.s2 { stroke-dashoffset: -147; } .seg.s3 { stroke-dashoffset: -238; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
