/* ============================================================================
   corvu.tech — «Снаружи день, внутри ночь»
   ----------------------------------------------------------------------------
   Лендинг белый, продукт ночной. Страница стоит на светлых токенах продукта
   (`.light` в web/styles/tokens.css), а каждый экран продукта — настоящий
   скриншот — подан как окно в ночь. Главная сцена героя переходит из лаванды
   в ночное небо по ряду SEQUENTIAL_LIGHT из темы графиков; цвета эффектов —
   категорийный ряд графиков (CATEGORY_LIGHT), то есть ничего своего.

   Эффекты — по одному на смысл, и каждый без JS превращается в спокойную
   статику: окно героя выпрямляется с прокруткой (ночь открывается),
   расшифровка (округлённое слово → точное число с паспортом), луч
   (последовательность шагов), notch (переключение экранов), свечение рамки
   (наведение), табло (пересчёт), орбита (цикл отчёта), плавающие значки
   (источники), сменяющиеся слова (заголовок героя), сетка коробок (контур),
   искры (горизонт и ночь в финале). `prefers-reduced-motion`
   снимает всё движение.
   ========================================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jbm-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jbm-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* день — светлая половина токенов продукта */
  --paper: #ffffff;
  /* Два белых и только: бумага и один оттенок поверх неё. */
  --mist: #f6f7f9;
  --mist-2: #f6f7f9;
  --cloud: #f6f7f9;
  --line: #e5e8ef;
  --line-2: #d7dbe5;
  --ink: #0b0d1e;
  --text: #3d4a68;
  --weak: #606d8c;
  --faint: #9aa3bc;

  /* действие и свет */
  --indigo: #6366f1;
  --indigo-ink: #4f46e5;
  --indigo-deep: #3a399e;
  --cyan: #06b6d4;
  --cyan-ink: #0891b2;

  /* ночь — тёмная половина, только внутри окон */
  --night: #080813;
  --pane: #0c0d1a;
  --glass: #111322;
  --night-line: #2b304d;
  --steel: #a0bddb;

  /* категорийный ряд графиков продукта */
  --c1: #4f46e5;
  --c2: #0891b2;
  --c3: #d97706;
  --c4: #16a34a;
  --c5: #db2777;
  --c6: #7c3aed;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* радиус растёт с формой: чип, контрол, карточка, окно, сцена */
  --r-chip: 6px;
  --r-ctl: 10px;
  --r-card: 16px;
  --r-win: 14px;
  --r-stage: 28px;

  --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.06), 0 1px 0 rgb(255 255 255 / 0.08) inset,
    0 30px 80px -24px rgb(8 8 19 / 0.55), 0 12px 24px -12px rgb(8 8 19 / 0.4);
  --shadow-lift: 0 1px 2px rgb(11 13 30 / 0.06), 0 12px 32px -16px rgb(11 13 30 / 0.18);

  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
}
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-ctl);
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* ─────────────────────────────────────────────────────────────── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(11 13 30 / 0.3);
}
.btn-ink:hover {
  background: #23264a;
}
.btn-line {
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--faint);
  background: var(--mist);
}
.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover {
  background: var(--cloud);
}
.btn-ghost-dark {
  border: 1px solid var(--night-line);
  color: #fff;
}
.btn-ghost-dark:hover {
  background: rgb(255 255 255 / 0.06);
}
.link-quiet {
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.link-quiet:hover {
  color: var(--ink);
}

/* Главная кнопка героя: индиго в кромке индиго→циан. Луч бежит по кромке
   только под курсором и в фокусе — кнопка отвечает, а не мигает сама. */
.btn-magic {
  position: relative;
  display: inline-flex;
  height: 48px;
  padding: 1.5px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px -12px rgb(79 70 229 / 0.7);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-magic:hover,
.btn-magic:focus-visible {
  box-shadow: 0 14px 34px -12px rgb(79 70 229 / 0.85);
}
.btn-magic:active,
.btn:active {
  transform: translateY(1px);
}
.btn-magic-ring {
  position: absolute;
  inset: -1000%;
  z-index: -1;
  background: conic-gradient(from 90deg at 50% 50%, #c7d2fe 0%, #4f46e5 40%, #06b6d4 62%, #c7d2fe 100%);
  animation: spin 2.6s linear infinite paused;
}
.btn-magic:hover .btn-magic-ring,
.btn-magic:focus-visible .btn-magic-ring {
  animation-play-state: running;
}
.btn-magic-body {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--indigo-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-magic:hover .btn-magic-body {
  background: var(--indigo);
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ────────────────────────────────────────────────────────────────── nav ── */
/* Resizable navbar: во всю ширину наверху, пилюля со стеклом при прокрутке. */
.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
.nav-body {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  height: 56px;
  margin: 0 auto;
  padding: 0 8px 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.is-scrolled .nav-body {
  max-width: 880px;
  border-color: rgb(11 13 30 / 0.06);
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.6) inset, 0 16px 40px -18px rgb(11 13 30 / 0.28),
    0 2px 6px -2px rgb(11 13 30 / 0.08);
  transform: translateY(4px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  fill: var(--ink);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
  background: var(--mist-2);
  color: var(--ink);
}
/* Раздел, который сейчас на экране. */
.nav-links a[aria-current='true'] {
  background: var(--cloud);
  color: var(--indigo-deep);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .i-shut,
.nav-toggle[aria-expanded='true'] .i-open {
  display: none;
}
.nav-toggle[aria-expanded='true'] .i-shut {
  display: block;
}
.nav-menu {
  pointer-events: auto;
  max-width: 880px;
  margin: 8px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
}
.nav-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 550;
}
.nav-menu a:hover {
  background: var(--mist);
}
.nav-menu .btn {
  display: flex;
  margin-top: 6px;
  color: #fff;
}

/* ───────────────────────────────────────────────────────────────── hero ── */
.hero {
  position: relative;
  padding: 124px 0 0;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(11 13 30 / 0.04);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.pill svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 0.16);
}
.hero h1 {
  max-width: 1060px;
  margin-top: 28px;
  font-size: clamp(36px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.lead {
  max-width: 640px;
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-cta .btn {
  height: 48px;
  padding: 0 22px;
}
.hero-note {
  margin-top: 16px;
  color: var(--weak);
  font-size: 14px;
}

/* Горизонт: световые линии и искры под кнопками (Sparkles). */
.horizon {
  position: relative;
  width: min(760px, 92vw);
  height: 150px;
  margin: 40px auto -40px;
  pointer-events: none;
}
.hz {
  position: absolute;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
}
.hz-a {
  left: 12%;
  right: 12%;
  height: 2px;
  filter: blur(3px);
}
.hz-b {
  left: 12%;
  right: 12%;
}
.hz-c {
  left: 34%;
  right: 34%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: blur(3px);
}
.hz-d {
  left: 34%;
  right: 34%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.horizon .sparkles {
  -webkit-mask-image: radial-gradient(48% 100% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(48% 100% at 50% 0%, #000 30%, transparent 100%);
}

/* Сцена: окно в ночь. Ровная ночь продукта и один тихий индиго-свет сверху. */
.stage {
  position: relative;
  margin: 0;
  padding: 72px 64px 64px;
  border-radius: var(--r-stage);
  background: radial-gradient(60% 38% at 50% 0%, rgb(99 102 241 / 0.32), transparent 72%), #080813;
  isolation: isolate;
}
.stage-stars {
  z-index: -1;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.window {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-win);
  background: var(--night);
  box-shadow: var(--shadow-window);
}
.window img {
  width: 100%;
}
.window-hero {
  border-radius: 16px;
}
/* Окно в ночь открывается с прокруткой: наклон к читателю уходит, пока сцена
   поднимается. Переменные ставит скрипт; без него окно стоит ровно. */
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  color: var(--faint);
}
.corner svg {
  width: 100%;
  height: 100%;
}
.corner.tl {
  top: -11px;
  left: -11px;
}
.corner.tr {
  top: -11px;
  right: -11px;
}
.corner.br {
  bottom: -11px;
  right: -11px;
}
.stage-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 28px 0 0;
  padding: 0 8px;
  list-style: none;
  color: var(--weak);
  font-size: 14px;
  line-height: 1.55;
}
.stage-notes b {
  color: var(--ink);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────── logos ── */
.logos {
  padding: 88px 0 0;
}
.logos-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.logos p {
  color: var(--weak);
  font-size: 14px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Серый — только знаку: текст рядом остаётся контрастным (AA), иначе
   полупрозрачная подпись падала до 3,8:1. */
.logo-row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
}
.logo-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-row li:hover img {
  filter: none;
  opacity: 1;
}
.logo-row .more a {
  color: var(--indigo-ink);
  text-decoration: underline;
  text-decoration-color: rgb(79 70 229 / 0.3);
  text-underline-offset: 4px;
}

/* ─────────────────────────────────────────────────────────────── shared ── */
.section {
  padding: 144px 0 0;
  /* Якорь ставит заголовок раздела под шапку, а не на 144px ниже неё. */
  scroll-margin-top: -56px;
}
.section-last {
  padding-bottom: 120px;
}
.head {
  max-width: 760px;
}
.head.center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.head p {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 0 0 1px rgb(11 13 30 / 0.08), 0 18px 40px -20px rgb(8 8 19 / 0.5);
}
.shot img {
  width: 100%;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
}
.checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 99px;
  background: var(--cloud);
  color: var(--indigo-ink);
}

/* ─────────────────────────────────────────────────── proof (decode) ── */
/* Расшифровка: строка чата — день, строка Corvu — окно в ночь. Округлённые
   слова подчёркиваются, точные числа «досчитываются» по разрядам, паспорт
   раскрывается под ними. Без JS и с выключенным движением — сразу итог. */
.proof {
  display: grid;
  gap: 12px;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(rgb(11 13 30 / 0.06) 1px, transparent 1px) 0 0 / 22px 22px, var(--mist);
}
.proof-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: 26px 30px;
  border-radius: 16px;
}
.proof-chat {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.proof-corvu {
  background: var(--night);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 1px 0 rgb(255 255 255 / 0.08) inset,
    0 18px 40px -22px rgb(8 8 19 / 0.55);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-top: 4px;
  color: var(--weak);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.who-corvu {
  color: #fff;
}
.who-corvu svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.said {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.proof-corvu .said {
  color: #fff;
}
/* Округлено: волнистая черта амбры рисуется слева направо. */
.vague {
  background: none;
  color: inherit;
  text-decoration: underline wavy var(--c3);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
}
.chip {
  display: inline-block;
  padding: 0 7px;
  border-radius: 7px;
  background: rgb(6 182 212 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(6 182 212 / 0.42);
  color: #67e8f9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: box-shadow 0.5s ease, background 0.5s ease;
}
.chip.is-settled {
  box-shadow: inset 0 0 0 1px rgb(6 182 212 / 0.42), 0 0 0 4px rgb(6 182 212 / 0.14);
}
.passport {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--night-line);
}
.passport > div {
  padding: 16px 16px 2px 0;
}
.passport > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--night-line);
}
.passport dt {
  color: #8590ab;
  font-size: 12px;
  font-weight: 550;
}
.passport dd {
  margin: 4px 0 0;
  color: #e6ebff;
  font-size: 14px;
  line-height: 1.5;
}
.passport code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgb(99 102 241 / 0.22);
  color: #c7cbff;
}
/* Взведено скриптом: ждём, пока блок войдёт в кадр. */
.proof.is-armed .vague {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.5s ease;
}
.proof.is-armed .passport > div {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.proof.is-armed.is-told .vague {
  text-decoration-color: var(--c3);
}
.proof.is-armed .passport > div.is-shown {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────── modes ── */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.mode {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 36px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--mist);
  overflow: visible;
  isolation: isolate;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.mode:hover {
  border-color: var(--line-2);
  background: var(--paper);
}
.mode-copy h3 {
  margin-top: 18px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.mode-copy p {
  margin-top: 12px;
  max-width: 460px;
  font-size: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--indigo-ink);
  font-size: 13px;
  font-weight: 600;
}
.tag svg {
  width: 15px;
  height: 15px;
}
/* cyan-700 на cyan-50 из палитры продукта: #0891b2 на этой подложке не
   дотягивал до AA (3,3:1) для 13px. */
.tag-cyan {
  background: #ecfdff;
  color: #0e7490;
}
.shot-mode {
  aspect-ratio: 1.45;
  margin-top: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 0 1px rgb(11 13 30 / 0.08), 0 -10px 40px -24px rgb(8 8 19 / 0.5);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot-mode img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mode:hover .shot-mode {
  transform: translateY(-6px);
}

/* ────────────────────────────────────────────────────────── tour (notch) ── */
.tour-frame {
  position: relative;
  margin-top: 56px;
}
.window-tour {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}
.tour-panels {
  position: relative;
  width: 100%;
  height: 100%;
}
.tour-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.tour-img.is-on {
  opacity: 1;
  transform: none;
}
.notch {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: -30px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgb(12 13 26 / 0.92);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 18px 40px -16px rgb(8 8 19 / 0.6);
  overflow-x: auto;
  scrollbar-width: none;
}
.notch::-webkit-scrollbar {
  display: none;
}
.notch button {
  position: relative;
  z-index: 1;
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--steel);
  font: 550 14px/1 var(--sans);
  cursor: pointer;
  transition: color 0.25s ease;
}
.notch button:hover {
  color: #fff;
}
.notch button[aria-selected='true'] {
  color: #fff;
}
.notch-glide {
  position: absolute;
  top: 5px;
  left: 0;
  height: 40px;
  width: 0;
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 6px 18px -6px rgb(99 102 241 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.2);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.notch-glide {
  display: none;
}
.js .notch-glide {
  display: block;
}
.notch button[aria-selected='true'] {
  background: var(--indigo);
}
.js .notch button[aria-selected='true'] {
  background: transparent;
}
.tour-cap {
  max-width: 560px;
  min-height: 52px;
  margin: 20px auto 0;
  color: var(--weak);
  font-size: 15px;
  text-align: center;
}

/* ─────────────────────────────────────────────── features (glowing bento) ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.cell {
  position: relative;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  --angle: 0;
  --active: 0;
}
.c-7 {
  grid-column: span 7;
}
.c-5 {
  grid-column: span 5;
}
.c-4 {
  grid-column: span 4;
}
.cell-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 26px;
  border-radius: 17px;
  background: var(--mist);
  overflow: hidden;
}
.cell h3 {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.cell p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.cell-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(11 13 30 / 0.05);
}
.cell-ico svg {
  width: 19px;
  height: 19px;
}
.i-indigo {
  color: var(--c1);
}
.i-cyan {
  color: var(--c2);
}
.i-amber {
  color: var(--c3);
}
.i-green {
  color: var(--c4);
}
.i-pink {
  color: var(--c5);
}
.i-violet {
  color: var(--c6);
}
.shot-cell {
  margin-top: 24px;
}
.c-7 .shot-cell {
  margin-top: auto;
  padding-top: 0;
}
.c-7 .cell-body > p {
  margin-bottom: 24px;
}
/* ⌘K — кадр по верхней части: панель поиска и первые находки. */
.shot-crop {
  aspect-ratio: 1.62;
}
.shot-crop img {
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.c-5 .cell-body > .shot-cell {
  margin-bottom: -26px;
  border-radius: 12px 12px 0 0;
}
/* Glowing effect: дуга многоцветной кромки идёт за курсором. */
.glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--active);
  transition: opacity 0.35s ease;
  -webkit-mask-image: conic-gradient(
    from calc((var(--angle) - 55) * 1deg),
    transparent 0deg,
    #000 30deg,
    #000 80deg,
    transparent 110deg
  );
  mask-image: conic-gradient(
    from calc((var(--angle) - 55) * 1deg),
    transparent 0deg,
    #000 30deg,
    #000 80deg,
    transparent 110deg
  );
}
.glow span {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: repeating-conic-gradient(
    from 236.84deg at 50% 50%,
    var(--c5) 0%,
    var(--c3) 10%,
    var(--c4) 20%,
    var(--c2) 30%,
    var(--c1) 40%,
    var(--c5) 50%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -4px;
  padding-bottom: 20px;
}
.channels span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
}
/* Терминал прижат к низу карточки, как кадр у соседней; строки не
   переносятся (перенос рвал «--claude» на «--» и «claude»). */
.term {
  margin: auto 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--night);
  color: #e6ebff;
  font: 13px/1.7 var(--mono);
  white-space: pre;
  overflow-x: auto;
  box-shadow: 0 0 0 1px rgb(11 13 30 / 0.08), 0 18px 40px -22px rgb(8 8 19 / 0.6);
}
.t-dim {
  color: #8590ab;
}
.t-str {
  color: #67e8f9;
}
.t-id {
  color: #a5acfc;
}

/* ─────────────────────────────────────────────────── how (tracing beam) ── */
.beam-wrap {
  position: relative;
  margin-top: 64px;
  padding-left: 56px;
}
.beam {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 100%;
  overflow: visible;
}
.beam path {
  fill: none;
  stroke-width: 2;
}
.beam-track {
  stroke: var(--line);
}
/* Пройденная часть остаётся индиго — видно, сколько шагов уже позади. */
.beam-done {
  stroke: rgb(99 102 241 / 0.35);
}
.beam-light {
  stroke-width: 2.5;
}
.steps {
  display: grid;
  gap: 96px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.step-dot {
  position: absolute;
  left: -53px;
  top: 4px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(11 13 30 / 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-dot::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 99px;
  background: var(--line-2);
  transition: background 0.3s ease;
}
.step.is-on .step-dot {
  border-color: rgb(99 102 241 / 0.5);
  box-shadow: 0 0 0 5px rgb(99 102 241 / 0.12);
}
.step.is-on .step-dot::after {
  background: var(--indigo);
}
.step-n {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.step h3 {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.step-copy p {
  margin-top: 12px;
  font-size: 16px;
}
/* Подпись шага едет рядом со своим кадром, пока кадр высокий: пустота под
   текстом становится полем, по которому он скользит. */
.step-copy {
  position: relative;
}
@media (min-width: 1081px) {
  .step-copy {
    position: sticky;
    top: 112px;
  }
}
.shot-narrow {
  max-width: 420px;
}

/* ───────────────────────────────────────────────────────── board (TV) ── */
.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
/* В половине ширины заголовок кеглем раздела рвётся на три строки. */
.board-grid .head h2 {
  font-size: clamp(32px, 3.4vw, 44px);
}
.tv {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #14162a, #080813);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 40px 90px -36px rgb(8 8 19 / 0.7),
    0 0 0 8px var(--mist-2);
}
.tv-head,
.tv-foot {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px 14px;
  color: var(--steel);
  font-size: 13px;
}
.tv-foot {
  padding: 14px 8px 4px;
  color: #8590ab;
}
.tv-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 550;
}
.live {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgb(6 182 212 / 0.05);
  }
}
.board {
  display: grid;
  gap: 6px;
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: #05050d;
  box-shadow: inset 0 0 0 1px #15182b;
}
.board-fallback {
  color: #fff;
  font: 600 18px/1.4 var(--sans);
  text-align: center;
}
.tv-label {
  color: #a0bddb;
  font: 500 14px/1.4 var(--sans);
}
.tv-label.swap {
  animation: tv-label 0.4s ease-out both;
}
@keyframes tv-label {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tv-value {
  display: flex;
  min-height: 1.15em;
  color: #fff;
  font: 650 clamp(30px, 4.4vw, 52px) / 1.15 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.dg {
  display: inline-grid;
}
.dg i {
  grid-area: 1 / 1;
  font-style: normal;
  white-space: pre;
}
.dg i.in {
  animation: dg-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.dg i.out {
  animation: dg-out 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes dg-in {
  from {
    opacity: 0;
    transform: translateY(0.55em);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes dg-out {
  to {
    opacity: 0;
    transform: translateY(-0.55em);
    filter: blur(6px);
  }
}

/* Полный перечень — таблицей из трёх строк, а не абзацем: глаз ищет «есть ли
   моя база», и ему нужна колонка, а не сплошной текст. */
.source-list {
  max-width: 920px;
  margin: 64px auto 0;
  border-top: 1px solid var(--line);
}
.source-list > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.source-list dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.source-list dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

/* ───────────────────────────────────────── security (background boxes) ── */
.perimeter {
  position: relative;
  padding: 88px 56px 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-stage);
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.boxes {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.boxes-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  transform: translate(-50%, -50%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0);
  transform-origin: 50% 50%;
}
.box-col {
  width: 64px;
  border-left: 1px solid var(--line-2);
}
.box {
  position: relative;
  width: 64px;
  height: 32px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: background 1.2s ease;
}
.box:hover {
  background: var(--hue);
  transition: background 0s;
}
.box svg {
  position: absolute;
  left: -11px;
  top: -14px;
  width: 22px;
  height: 22px;
  color: var(--line-2);
  pointer-events: none;
}
.perimeter-fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(55% 60% at 50% 42%, rgb(255 255 255 / 0.97) 30%, rgb(255 255 255 / 0.4) 75%, transparent);
}
.perimeter-copy {
  pointer-events: none;
}
.perimeter-copy a {
  pointer-events: auto;
}
/* Две колонки, знак слева: в четырёх узких карточках заголовки рвались на
   две строки, а текст — на пять. */
.secure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 940px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}
.secure li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.9);
}
.secure svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: var(--cloud);
  color: var(--indigo-ink);
}
.secure h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.secure p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────── call (the night) ── */
.night {
  position: relative;
  padding: 112px 40px 104px;
  border-radius: var(--r-stage);
  background: radial-gradient(60% 60% at 50% 115%, rgb(79 70 229 / 0.45), transparent 70%),
    linear-gradient(180deg, #12133a 0%, #080813 55%);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.night .sparkles {
  z-index: -1;
}
.night-glow {
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: -1;
  width: min(720px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px 2px rgb(6 182 212 / 0.5);
}
.night-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.night-mark {
  width: 56px;
  height: 56px;
  fill: #fff;
}

.night h2 {
  margin-top: 28px;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.night p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--steel);
  font-size: 18px;
}
.night-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.night-cta .btn {
  height: 48px;
  padding: 0 24px;
}
.night-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--steel);
  font-size: 14px;
}
.night-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.night-facts svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

/* ───────────────────────────────────────────────────────────── footer ── */
.foot {
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 88px;
}
.foot .brand {
  font-size: 15px;
}
.foot .brand-mark {
  width: 20px;
  height: 20px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
  font-size: 14px;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-copy {
  color: var(--weak);
  font-size: 14px;
}

/* ───────────────────────────────────────────────────────── responsive ── */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .stage {
    padding: 48px 32px 40px;
  }
  .c-7,
  .c-5 {
    grid-column: span 6;
  }
  .c-4 {
    grid-column: span 4;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .board-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .passport {
    grid-template-columns: 1fr 1fr;
  }
  .passport > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .nav {
    inset: 8px 0 auto;
    padding: 0 8px;
  }
  .nav-body {
    height: 52px;
  }
  .nav .link-quiet,
  .nav-actions > .btn {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav.is-scrolled .nav-body {
    transform: none;
  }
  .hero {
    padding-top: 112px;
  }
  .hero h1 {
    margin-top: 22px;
  }
  .horizon {
    height: 110px;
    margin: 28px auto -30px;
  }
  .stage {
    padding: 28px 12px 16px;
    border-radius: 20px;
  }
  .window-hero {
    aspect-ratio: 4 / 3.4;
    border-radius: 10px;
  }
  .window-hero img {
    height: 100%;
    object-fit: cover;
    object-position: 21% 0;
  }
  .corner {
    display: none;
  }
  .stage-notes {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section {
    padding-top: 96px;
    scroll-margin-top: -16px;
  }
  .head p {
    font-size: 16px;
  }
  .proof {
    margin-top: 36px;
    padding: 8px;
    border-radius: 20px;
  }
  .proof-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 20px 18px;
  }
  .who {
    margin-top: 0;
    height: auto;
  }
  .passport {
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }
  .passport > div,
  .passport > div + div {
    padding: 12px 0 0;
    border-left: 0;
  }
  .passport > div:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--night-line);
  }
  .modes {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .mode {
    padding: 26px 22px 0;
  }
  .window-tour {
    aspect-ratio: 4 / 3.2;
    border-radius: 12px;
  }
  .tour-img {
    object-position: 20% 0;
  }
  .notch {
    width: 100%;
    margin-top: 14px;
    max-width: 100%;
  }
  .notch button {
    flex: 1 1 auto;
    height: 36px;
    padding: 0 8px;
    font-size: 12.5px;
  }
  .notch-glide {
    height: 36px;
  }
  .bento {
    gap: 12px;
    margin-top: 36px;
  }
  .c-7,
  .c-5,
  .c-4 {
    grid-column: 1 / -1;
  }
  .cell-body {
    padding: 22px;
  }
  .c-5 .cell-body > .shot-cell {
    margin-bottom: -22px;
  }
  .beam-wrap {
    padding-left: 40px;
    margin-top: 40px;
  }
  .beam {
    left: 4px;
  }
  .step-dot {
    left: -44px;
    width: 22px;
    height: 22px;
  }
  .step-dot::after {
    inset: 7px;
  }
  .steps {
    gap: 64px;
  }
  .step h3 {
    font-size: 22px;
  }
  .flow {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .flow-out {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .source-list {
    margin-top: 32px;
  }
  .source-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .term {
    padding: 14px;
    font-size: 12px;
  }
  .perimeter {
    padding: 56px 18px 24px;
    border-radius: 20px;
  }
  .secure {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 12px;
  }
  .secure li {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }
  .secure svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
  }
  .night {
    padding: 72px 20px 56px;
    border-radius: 20px;
  }
  .night-facts {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
    text-align: left;
  }
  .night-facts li {
    align-items: flex-start;
  }
  .night-facts svg {
    margin-top: 3px;
  }
  .foot-inner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px var(--gutter);
  }
  .foot-links {
    margin-left: 0;
    width: 100%;
  }
}

/* Движение — только для тех, кто его не выключил. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .fl {
    stroke-dashoffset: 0;
  }
}


/* ─────────────────────────────────────────── hero title (rotating words) ── */
/* Вторая строка заголовка — сменяющиеся слова (образец 21st.dev «Animated
   Hero»): слово въезжает снизу пружиной, прежнее уходит вверх. Без скрипта
   стоит первое слово. */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Первая строка обязана помещаться целиком: два слова на строку и третье
   отдельно читалось бы как опечатка. */
.hero .hero-title {
  max-width: 1100px;
  font-size: clamp(32px, 5.6vw, 70px);
}
.ht-lead {
  display: block;
}
.ht-rot {
  position: relative;
  display: block;
  width: 100%;
  height: 1.18em;
  margin-top: -0.02em;
  overflow: hidden;
}
.ht-w {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  padding-bottom: 0.08em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--indigo-deep) 0%, var(--indigo-ink) 45%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.55s ease;
}
.ht-w.is-on {
  opacity: 1;
  transform: none;
}
.ht-w.is-past {
  transform: translateY(-105%);
}
@media (max-width: 760px) {
  .ht-w {
    white-space: normal;
  }
  .ht-rot {
    height: 1.2em;
  }
}

/* ───────────────────────────────────────────── cycle (radial orbit) ── */
/* Радиальная схема (образец 21st.dev «Radial Orbital Timeline»): восемь узлов
   по кругу, медленное вращение, нажатие раскрывает карточку и ставит узел
   наверх. Сцена ночная — «окно в ночь», как и скриншоты продукта. */
.orbit {
  position: relative;
  isolation: isolate;
  height: 720px;
  margin-top: 56px;
  border-radius: var(--r-stage);
  background: radial-gradient(70% 60% at 50% 45%, #12142b 0%, var(--night) 70%);
  box-shadow: 0 0 0 1px rgb(11 13 30 / 0.1), 0 40px 80px -40px rgb(8 8 19 / 0.7);
  overflow: hidden;
}
.orbit-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
/* Без скрипта — список карточек. */
.orbit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 28px;
  list-style: none;
}
.orbit-list li {
  padding: 16px 18px;
  border: 1px solid var(--night-line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  color: var(--steel);
  font-size: 14px;
  line-height: 1.55;
}
.orbit-list h3 {
  color: #fff;
  font-size: 16px;
}
.orbit-list p {
  margin-top: 6px;
}
.orbit-list b {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.orbit-list code {
  color: #fff;
}
.orbit-on {
  height: 720px;
}
.orbit-on .orbit-list {
  display: none;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring.r2 {
  border-style: dashed;
  border-color: rgb(255 255 255 / 0.06);
}
/* Центр: просто знак, без плитки и рамки. */
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  fill: #fff;
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.orbit-node:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.orbit-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: #0c0d1a;
  color: #fff;
  box-shadow: 0 0 0 6px rgb(129 140 248 / 0.0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.35s ease;
}
.orbit-dot svg {
  width: 18px;
  height: 18px;
}
.orbit-node:hover .orbit-dot,
.orbit-node:focus-visible .orbit-dot {
  border-color: #fff;
  transform: scale(1.12);
}
.orbit-node.is-open .orbit-dot {
  transform: scale(1.4);
  border-color: #fff;
  background: #fff;
  color: var(--night);
  box-shadow: 0 0 0 8px rgb(129 140 248 / 0.2), 0 0 30px rgb(165 180 252 / 0.4);
}
.orbit-node.is-related .orbit-dot {
  border-color: #fff;
  background: rgb(255 255 255 / 0.5);
  color: var(--night);
  animation: orbit-pulse 1.6s ease-in-out infinite;
}
@keyframes orbit-pulse {
  50% {
    box-shadow: 0 0 0 9px rgb(129 140 248 / 0.28);
  }
}
.orbit-label {
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.3s ease;
}
.orbit-node.is-open .orbit-label {
  color: #fff;
  transform: translateX(-50%) scale(1.12);
}
/* Карточка раскрытого узла — в центре орбиты, поверх знака. */
.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 300;
  width: min(262px, calc(100vw - 56px));
  padding: 16px 16px 14px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 16px;
  background: rgb(8 8 19 / 0.94);
  color: var(--steel);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  cursor: default;
  transform: translate(-50%, -50%);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(129 140 248 / 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: orbit-card-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes orbit-card-in {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
}
.orbit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.orbit-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.orbit-step {
  color: rgb(255 255 255 / 0.5);
  font-family: var(--mono);
  font-size: 11px;
}
.orbit-card h3 {
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.orbit-card p {
  margin-top: 6px;
}
.orbit-card code {
  color: #fff;
}
.orbit-fact {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.orbit-rel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.orbit-rel span {
  width: 100%;
  color: rgb(255 255 255 / 0.55);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.orbit-rel button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.orbit-rel button:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
@media (max-width: 760px) {
  .orbit,
  .orbit-on {
    height: 600px;
    margin-top: 40px;
    border-radius: 20px;
  }
  .orbit-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .orbit-core {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }
  .orbit-label {
    display: none;
  }
  .orbit-node.is-open .orbit-label {
    display: block;
  }
}

/* ───────────────────────────────────── sources (floating icons stage) ── */
/* Образец 21st.dev «Floating Icons Hero»: значки источников висят вокруг
   заголовка и мягко уходят от курсора. Значки — настоящие логотипы из
   продукта; полный перечень стоит ниже текстом. */
.floaters {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  margin-top: 24px;
}
.floaters-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fi {
  position: absolute;
  display: block;
  will-change: transform;
}
.fi i {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-lift);
  animation: fi-float var(--dur, 7s) ease-in-out var(--del, 0s) infinite;
}
.fi img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
@keyframes fi-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(5px, -8px) rotate(4deg);
  }
  50% {
    transform: translate(0, 0) rotate(0deg);
  }
  75% {
    transform: translate(-5px, 8px) rotate(-4deg);
  }
}
.floaters-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 16px;
  text-align: center;
}
.floaters-copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.floaters-copy p {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
.floaters-copy .hero-cta {
  margin-top: 28px;
}
.out-head {
  margin-top: 40px;
  text-align: center;
}
.out-head h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.out-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.out-row li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(11 13 30 / 0.04);
}
.out-row svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--indigo-ink);
}
.out-row b {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}
.out-row span {
  color: var(--weak);
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 960px) {
  .out-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .floaters {
    min-height: 560px;
  }
  .fi i {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 17px;
  }
  .fi img {
    width: 26px;
    height: 26px;
  }
  .fi:nth-child(n + 11) {
    display: none;
  }
  .out-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fi i,
  .orbit-node.is-related .orbit-dot {
    animation: none;
  }
  .ht-w {
    transition: none;
  }
}

/* ───────────────────────────────────────────── hero: тихий чертёж ── */
.hero-geo {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-geo > svg {
  width: 100%;
  height: 100%;
}

/* Одно доказательство под кнопкой: конкретное число, которое можно проверить. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--weak);
  font-size: 13px;
  animation: hp-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}
.hp-num {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
}
.hp-tag svg {
  width: 12px;
  height: 12px;
}
@keyframes hp-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 760px) {
  .hero-geo {
    opacity: 0.6;
  }
  .hero-proof {
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-proof {
    animation: none;
  }
}
.orbit-core {
  transition: opacity 0.3s ease;
}
.orbit.has-open .orbit-core {
  opacity: 0;
}
.orbit-x {
  width: 24px;
  height: 24px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgb(255 255 255 / 0.6);
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
}
.orbit-x:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

main {
  overflow-x: clip;
}
