/* Главная ассистента — эскиз. Палитра кокпита: --brand-blue #1535ED, --brand-sky #3988FF,
   --brand-navy #173B7A, фон кабинета #F4F7FB. Шрифт сайта — Inter. */

:root {
  --bg: #F4F7FB;
  --bg-hi: #FFFFFF;
  --bg-lo: #E6EEFA;
  --ink: #0B1324;
  --ink-2: #4A5A70;
  --ink-3: #8B97A6;
  --blue: #1535ED;
  --sky: #3988FF;
  --navy: #173B7A;
  --glass: rgba(255, 255, 255, 0.93);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --glass-line: rgba(21, 53, 237, 0.10);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --card: #FFFFFF;
  --shadow: 0 40px 90px -40px rgba(23, 59, 122, 0.35), 0 2px 6px rgba(23, 59, 122, 0.05);
  --halo: rgba(57, 136, 255, 0.34);
  --floor: rgba(21, 53, 237, 0.22);
  --pill-bg: rgba(255, 255, 255, 0.7);
  --cta-ink: #FFFFFF;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

body[data-theme="dark"] {
  --bg: #050B1E;
  --bg-hi: #10265F;
  --bg-lo: #030712;
  --ink: #F2F6FF;
  --ink-2: #A9B8D6;
  --ink-3: #6E7FA3;
  --glass: rgba(13, 28, 68, 0.9);
  --glass-strong: rgba(15, 32, 78, 0.95);
  --glass-line: rgba(140, 180, 255, 0.16);
  --glass-hi: rgba(170, 200, 255, 0.18);
  --card: #0E1D4A;
  --shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7);
  --halo: rgba(57, 136, 255, 0.5);
  --floor: rgba(57, 136, 255, 0.45);
  --pill-bg: rgba(20, 40, 92, 0.55);
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  font-family: Inter, "Inter Variable", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-lo);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* ── шапка ─────────────────────────────────────────── */
.nav {
  position: absolute; z-index: 5; inset: 28px 56px auto 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; font-size: 15px; color: var(--blue); }
body[data-theme="dark"] .brand { color: #DCE8FF; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(21, 53, 237, 0.45); }
.links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); }
.links a { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.links a.on { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--pill-bg); border: 1px solid var(--glass-line); color: var(--ink); }

/* ── кнопки ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.btn .knob { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #3D6BFF 0%, #1535ED 100%); box-shadow: 0 18px 40px -16px rgba(21, 53, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary .knob { background: rgba(255, 255, 255, 0.18); }
.btn-ghost { color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); padding: 0 24px; }
.btn-small { height: 44px; font-size: 14px; padding: 0 6px 0 18px; }
.btn-small .knob { width: 32px; height: 32px; }
.btn-white { background: #fff; color: #0B1324; padding: 0 20px; height: 44px; font-size: 14px; box-shadow: 0 10px 30px -14px rgba(23, 59, 122, 0.5); }

/* ── стекло ────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  border-radius: 28px;
}

.eyebrow {
  display: inline-flex; justify-self: start; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  background: var(--pill-bg); border: 1px solid var(--glass-line);
}
body[data-theme="dark"] .eyebrow { color: #9CC2FF; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #19A463; box-shadow: 0 0 0 4px rgba(25, 164, 99, 0.16); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }

h1, h2 { font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: 64px; line-height: 1.02; }
h2 { font-size: 52px; line-height: 1.02; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 470px; }
.accent { background: linear-gradient(100deg, #1535ED 10%, #3988FF 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-theme="dark"] .accent { background: linear-gradient(100deg, #6FA8FF 0%, #BFD9FF 100%); -webkit-background-clip: text; background-clip: text; }

/* ── сфера ─────────────────────────────────────────── */
#orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* Подсветка фона, ореол и тень под сферой: постоянный размер, место и масштаб —
   только transform (его считает видеокарта). Мягкость — из градиента, без filter: blur. */
.backdrop, .halo, .floor { position: absolute; z-index: 0; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.backdrop { width: 550px; height: 380px; transform: translate3d(68vw, 42vh, 0) translate(-50%, -50%) scale(4);
  background: radial-gradient(closest-side, var(--bg-hi) 0%, var(--bg) 52%, var(--bg-lo) 100%); }
.halo { width: 400px; height: 400px; border-radius: 50%; transform: translate3d(-999px, -999px, 0); }
.halo { background: radial-gradient(closest-side, var(--halo) 0%, color-mix(in srgb, var(--halo) 45%, transparent) 38%, transparent 74%); }
.floor { width: 400px; height: 68px; border-radius: 50%; transform: translate3d(-999px, -999px, 0);
  background: radial-gradient(closest-side, var(--floor) 0%, color-mix(in srgb, var(--floor) 40%, transparent) 45%, transparent 78%); }
body[data-orb="dim"] #orb, body[data-orb="dim"] .halo, body[data-orb="dim"] .floor { opacity: 0.32; }
body[data-orb="off"] #orb, body[data-orb="off"] .halo, body[data-orb="off"] .floor, body[data-orb="off"] .chips { display: none; }

.chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* плашки на орбите: за сферой — слой под холстом, перед ней — над; page.js переносит их по глубине */
.chips-back { z-index: 0; }
.gather-layer { z-index: 4; } /* слова, слетающиеся в шар, — над секциями и холстом, под шапкой */
.chip {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 14px 34px -18px rgba(23, 59, 122, 0.55);
  will-change: transform, opacity;
}
.chip i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #3D6BFF, #1535ED); color: #fff; }
.chip i svg { width: 12px; height: 12px; }

/* ── сцены ─────────────────────────────────────────── */
.scene { position: absolute; inset: 0; z-index: 3; display: none; padding: 0 56px; }
body[data-scene="hero"] .scene[data-scene="hero"],
body[data-scene="how"] .scene[data-scene="how"],
body[data-scene="manifesto"] .scene[data-scene="manifesto"],
body[data-scene="about"] .scene[data-scene="about"],
body[data-scene="features"] .scene[data-scene="features"],
body[data-scene="cta"] .scene[data-scene="cta"] { display: block; }

/* hero */
.hero-copy { position: absolute; left: 56px; top: 156px; display: grid; gap: 24px; max-width: 700px; }
.hero-actions { display: flex; gap: 12px; margin-top: 6px; }
.proof { position: absolute; right: 56px; top: 150px; width: 240px; padding: 18px 20px; display: grid; gap: 6px; }
.proof b { font-size: 36px; letter-spacing: -0.04em; line-height: 1; }
.proof span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.proof .dots { display: flex; margin-bottom: 6px; }
.proof .dots em { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--glass-strong); margin-right: -8px;
  background: radial-gradient(circle at 35% 30%, #CFE2FF, #3988FF 55%, #1535ED); }
.peek { position: absolute; left: 56px; right: 56px; bottom: -64px; height: 170px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.peek h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.peek p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* how */
.how-head { position: absolute; left: 56px; top: 132px; display: grid; gap: 18px; max-width: 520px; }
.quote { position: absolute; right: 56px; top: 140px; width: 420px; padding: 24px 26px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.quote small { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.steps { position: absolute; left: 56px; right: 56px; bottom: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px 26px 28px; display: grid; gap: 14px; min-height: 196px; }
.step .num { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--blue); }
body[data-theme="dark"] .step .num { color: #8FB8FF; }
.step h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* manifesto */
.manifesto { position: absolute; left: 56px; right: 160px; top: 170px; font-size: 54px; line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; }
.manifesto span { opacity: 1; }
.manifesto .fade { opacity: 0.22; }
.stats { position: absolute; left: 56px; right: 56px; bottom: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { position: relative; padding: 26px 28px; display: grid; gap: 8px; }
.stat::before, .stat::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--ink-3); opacity: 0.6; }
.stat::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.stat::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.stat b { display: block; height: 66px; font-size: 64px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 260px; }

/* about */
.about { position: absolute; right: 56px; top: 128px; width: 600px; padding: 40px 40px 36px; display: grid; gap: 20px; }
.about p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.facts { display: grid; gap: 12px; margin-top: 4px; }
.fact { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.fact i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 53, 237, 0.1); color: var(--blue); }
body[data-theme="dark"] .fact i { background: rgba(57, 136, 255, 0.18); color: #9CC2FF; }
.fact i svg { width: 14px; height: 14px; }

/* features */
.feat-head { position: absolute; left: 56px; top: 130px; display: grid; gap: 14px; max-width: 560px; }
.feat-grid { position: absolute; left: 56px; right: 56px; top: 372px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 14px 0 12px; border-radius: 20px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; width: 100%; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 20px 50px -34px rgba(23, 59, 122, 0.45);
  color: var(--ink);
}
.feat .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(21, 53, 237, 0.08); color: var(--blue); flex: none; }
body[data-theme="dark"] .feat .ic { background: rgba(57, 136, 255, 0.16); color: #9CC2FF; }
.feat .ic svg { width: 22px; height: 22px; }
.feat .chev { margin-left: auto; color: var(--ink-3); }
.feat.on { background: var(--glass-strong); box-shadow: 0 0 0 2px rgba(21, 53, 237, 0.55), 0 30px 60px -30px rgba(21, 53, 237, 0.55); }
.feat.on .ic { background: linear-gradient(180deg, #3D6BFF, #1535ED); color: #fff; }
.detail { position: absolute; left: 56px; right: 56px; bottom: 44px; padding: 30px 34px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.detail-main { display: grid; gap: 12px; }
.detail-main h4 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.detail-main p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.detail-list { display: grid; gap: 14px; }
.tag { justify-self: start; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; color: var(--blue); background: rgba(21, 53, 237, 0.08); }
body[data-theme="dark"] .tag { color: #9CC2FF; background: rgba(57, 136, 255, 0.16); }

/* cta */
.cta { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; justify-items: center; gap: 18px; text-align: center; width: 760px; }
.cta .lead { max-width: 520px; }
.cta .hero-actions { justify-content: center; }

/* ── телефон ───────────────────────────────────────── */
@media (max-width: 700px) {
  .nav { inset: 16px 16px auto 16px; }
  .links { display: none; }
  .burger { display: grid; place-items: center; }
  .brand span { display: none; }
  .scene { padding: 0 16px; }
  h1 { font-size: 35px; letter-spacing: -0.04em; }
  h2 { font-size: 32px; }
  .lead { font-size: 16px; }
  .hero-copy { left: 16px; right: 16px; top: auto; bottom: 28px; gap: 14px; }
  .detail { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: space-between; }
  .hero-actions .btn-ghost { justify-content: center; }
  .proof, .peek, .quote { display: none; }
  .how-head { left: 16px; right: 16px; top: 84px; gap: 10px; }
  .steps { left: 16px; right: 16px; bottom: 20px; grid-template-columns: 1fr; gap: 10px; }
  .step { min-height: 0; padding: 18px 20px; gap: 8px; border-radius: 22px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 14px; }
  .feat-head { left: 16px; right: 16px; top: 84px; gap: 10px; }
  .feat-grid { left: 16px; right: 16px; top: 250px; grid-template-columns: 1fr; gap: 8px; }
  .feat { height: 60px; font-size: 15px; border-radius: 18px; }
  .feat .ic { width: 38px; height: 38px; border-radius: 12px; }
  .feat-open { height: auto; flex-wrap: wrap; padding: 12px 16px 16px 12px; }
  .feat-open .body { flex-basis: 100%; display: grid; gap: 10px; padding: 4px 4px 0 52px; }
  .feat-open .body p { font-size: 14px; line-height: 1.55; color: var(--ink-2); font-weight: 400; }
}


/* стенд шара без страницы */
.bare .scene, .bare .nav, .bare .chips { display: none !important; }

/* ── живая страница: прокрутка ─────────────────────── */
.nav { position: fixed; }
body.scroll { overflow-x: hidden; overflow-y: auto; }
body.scroll #orb, body.scroll .backdrop, body.scroll .halo, body.scroll .floor, body.scroll .chips { position: fixed; }
body.scroll .scene { display: block; position: relative; height: 100vh; min-height: 760px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.manifesto .w { transition: opacity 0.5s var(--ease); }

.feat:hover { transform: translateY(-2px); background: var(--glass-strong); }
.feat:active { transform: scale(0.985); }
.feat .body { display: none; }
.feat:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.detail-asks { display: grid; gap: 14px; justify-items: start; }
.asks { display: flex; flex-wrap: wrap; gap: 10px; }
.ask { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 10px 26px -18px rgba(23, 59, 122, 0.5); }
.ask svg { color: var(--blue); flex: none; }
body[data-theme="dark"] .ask svg { color: #9CC2FF; }
.tag-all { color: #067A46; background: rgba(25, 164, 99, 0.1); }
body[data-theme="dark"] .tag-all { color: #6FE0A6; background: rgba(25, 164, 99, 0.18); }

.theme { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: var(--pill-bg); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); }
.theme .moon { display: none; }
body[data-theme="dark"] .theme .sun { display: none; }
body[data-theme="dark"] .theme .moon { display: block; }

@media (max-width: 700px) {
  .feat .body { display: none; }
  .feat-open .body { display: grid; gap: 10px; flex-basis: 100%; padding: 2px 4px 2px 50px; justify-items: start; }
  .feat-open .body .p { font-size: 14px; line-height: 1.55; color: var(--ink-2); font-weight: 400; }
  body.scroll .scene { min-height: 100svh; height: auto; }
  body.scroll .scene[data-scene="hero"] { height: 100svh; min-height: 700px; }
  body.scroll .scene[data-scene="how"] { height: 100svh; min-height: 760px; }
  body.scroll .scene[data-scene="manifesto"] { height: auto; padding: 96px 16px 48px; }
  body.scroll .manifesto, body.scroll .stats { position: static; }
  body.scroll .manifesto { font-size: 30px; }
  body.scroll .stats { grid-template-columns: 1fr; margin-top: 36px; gap: 12px; }
  body.scroll .stat b { font-size: 48px; height: 50px; }
  body.scroll .scene[data-scene="about"] { height: auto; padding: 300px 16px 48px; }
  body.scroll .about { position: static; width: auto; padding: 26px 22px; }
  body.scroll .scene[data-scene="features"] { height: auto; padding: 88px 16px 40px; }
  body.scroll .feat-head, body.scroll .feat-grid { position: static; }
  body.scroll .feat-grid { margin-top: 20px; }
  body.scroll .scene[data-scene="cta"] { height: 100svh; min-height: 640px; }
  .cta { width: auto; left: 16px; right: 16px; transform: none; }
  .theme { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── средние экраны ─────────────────────────────────── */
@media (min-width: 701px) and (max-width: 1280px) {
  h1 { font-size: 52px; }
  h2 { font-size: 44px; }
  .lead { font-size: 17px; max-width: 430px; }
  .hero-copy { max-width: 560px; top: 140px; }
  .proof { width: 220px; top: 140px; padding: 16px 18px; }
  .proof b { font-size: 32px; }
  .quote { width: 360px; font-size: 16px; }
  .about { width: 520px; padding: 32px; }
  .manifesto { font-size: 44px; right: 56px; }
  .stat b { font-size: 52px; height: 54px; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); top: 340px; }
  .feat-head { top: 112px; }
  .links a { padding: 9px 12px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .proof { display: none; }
  .peek { grid-template-columns: 1fr; gap: 10px; }
}

/* «Что умеет» на живой странице — обычный поток: кнопок может стать больше */
body.scroll .scene[data-scene="features"] { height: auto; min-height: 100vh; padding: 128px 56px 80px; }
body.scroll .scene[data-scene="features"] .feat-head,
body.scroll .scene[data-scene="features"] .feat-grid,
body.scroll .scene[data-scene="features"] .detail { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
body.scroll .scene[data-scene="features"] .feat-grid { margin-top: 36px; }
body.scroll .scene[data-scene="features"] .detail { margin-top: 20px; }
@media (max-width: 700px) {
  body.scroll .scene[data-scene="features"] { padding: 88px 16px 40px; }
}

/* первый экран проявляется сразу при загрузке — без ожидания 3D */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
body.scroll .hero-copy > *, body.scroll .proof, body.scroll .peek { animation: rise 0.9s var(--ease) both; }
body.scroll .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
body.scroll .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
body.scroll .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
body.scroll .proof { animation-delay: 0.32s; }
body.scroll .peek { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { body.scroll .hero-copy > *, body.scroll .proof, body.scroll .peek { animation: none; } }
