/* eChat · главная. Тёмная, «электрическая»: чернильный фон, сияние
   синего и фиолетового, мятный сигнал на успехе. Всё локально.
   Токены — здесь; инлайновых стилей в разметке нет. */

:root {
  --bg: #06070d;
  --bg2: #0b0d18;
  --panel: rgba(255, 255, 255, .035);
  --panel2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #eef1ff;
  --dim: #9aa3c0;
  --faint: #626b8a;
  --a1: #4f7dff;
  --a2: #8b5cff;
  --a3: #2be4c4;
  --grad: linear-gradient(100deg, #6aa0ff 0%, #8b5cff 45%, #e06cff 75%, #2be4c4 100%);
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* clip, а не hidden: hidden на html ломает position: sticky у шагов */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; justify-content: center; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 8s linear infinite; }
@keyframes gradmove { to { background-position: 200% 0; } }

/* ── фон: сияние, сетка, полоса прокрутки ─────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--a1); top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: var(--a2); top: 10vmax; right: -25vmax; animation-duration: 30s; }
.aurora i:nth-child(3) { background: #0fb6a0; bottom: -35vmax; left: 20vmax; opacity: .16; animation-duration: 36s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.gridbg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .5; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ── кнопки ───────────────────────────────────────────────────────── */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 20px;
  border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff; border: 0; cursor: pointer; white-space: nowrap;
  background: linear-gradient(100deg, var(--a1), var(--a2)); box-shadow: 0 10px 30px -10px rgba(91, 110, 255, .8), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(120, 100, 255, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; }
.btn-ghost { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-soon { cursor: default; color: var(--dim); }
.btn-soon:hover { transform: none; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); }

/* ── шапка ────────────────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.top.scrolled { background: rgba(6, 7, 13, .72); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.top.hidden { transform: translateY(-100%); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 6px 20px -6px rgba(139, 92, 255, .9); }
.brand-mark .ic { width: 19px; height: 19px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 14px; border-radius: 999px; color: var(--dim); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.top-nav a:hover, .top-nav a.on { color: var(--text); background: var(--panel2); }
.top-act { display: flex; gap: 10px; }

/* ── герой ────────────────────────────────────────────────────────── */
.hero { position: relative; overflow-x: clip; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2); font: 500 13px/1 var(--mono); color: var(--dim); margin-bottom: 28px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 0 4px rgba(43, 228, 196, .18); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 8px rgba(43, 228, 196, 0); } }
.hero-h { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.hero-h em { font-style: normal; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 8s linear infinite; }
.hero-sub { margin-top: 22px; max-width: 520px; font-size: 17px; color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-os { display: flex; gap: 22px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--faint); font: 500 13px var(--mono); }
.hero-os li { display: flex; align-items: center; gap: 8px; }
.hero-os .ic { width: 18px; height: 18px; }

/* разбивка заголовка на слова — каждое вылетает снизу со сдвигом */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--w) * 80ms + 150ms); }
.is-in .word > span { transform: none; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line2); }
.ring1 { width: 520px; height: 520px; animation: spin 40s linear infinite; border-style: dashed; }
.ring2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(79,125,255,.25), transparent 70%); border-color: rgba(139,92,255,.35); }
@keyframes spin { to { transform: rotate(360deg); } }

.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 14px; background: linear-gradient(160deg, #1a1d2e, #0b0d16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 9px #11131f, 0 0 0 10px rgba(255,255,255,.1), 0 60px 120px -30px rgba(79, 70, 255, .55);
  transform-style: preserve-3d; transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 2; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 46px 10px 12px; border-bottom: 1px solid var(--line); }
.phone-head b { display: block; font-size: 15px; }
.phone-head small { color: var(--a3); font-size: 12px; }
.ph-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, #ff8a5b, #e0569b); }
.phone-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 6px; overflow: hidden; }
.msg { text-align: left; max-width: 82%; padding: 9px 12px 7px; border-radius: 18px; font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(16px) scale(.9);
  animation: pop .55s var(--ease) forwards; }
.msg time { display: block; text-align: right; font: 500 10px var(--mono); color: rgba(255,255,255,.55); margin-top: 3px; }
.msg.in { align-self: flex-start; background: #1d2133; border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, var(--a1), var(--a2)); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.msg.voice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg.voice em { font-style: normal; font: 500 11px var(--mono); }
.msg.voice time { width: 100%; }
.vplay { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--a2); flex: none; }
.vplay .ic { width: 13px; height: 13px; margin-left: 2px; }
.mini-bars { display: flex; align-items: center; gap: 2px; height: 22px; }
.mini-bars i { width: 3px; border-radius: 3px; background: rgba(255,255,255,.85); animation: bar 1.1s ease-in-out infinite; }
.mini-bars i:nth-child(3n) { height: 18px; animation-delay: -.3s; } .mini-bars i:nth-child(3n+1) { height: 9px; animation-delay: -.6s; } .mini-bars i:nth-child(3n+2) { height: 14px; }
@keyframes bar { 50% { transform: scaleY(.45); } }
.m0 { animation-delay: .6s; } .m1 { animation-delay: 1.4s; } .m2 { animation-delay: 2.3s; } .m3 { animation-delay: 3.2s; } .m4 { animation-delay: 4.1s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.phone-input { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 4px; padding: 0 6px 0 16px; height: 44px; border-radius: 22px; background: #151827; color: var(--faint); font-size: 14px; }
.phone-input i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.phone-input .ic { width: 17px; height: 17px; }

.float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 500;
  background: rgba(20, 23, 38, .72); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line2), 0 20px 40px -14px rgba(0,0,0,.7); animation: bob 6s ease-in-out infinite; }
.float .ic { width: 16px; height: 16px; color: var(--a3); }
.float b { font-weight: 700; }
.f1 { top: 18%; left: 2%; font-size: 18px; animation-delay: -1s; }
.f2 { top: 52%; right: -4%; }
.f3 { bottom: 10%; left: 0; animation-delay: -3s; }
.f3 .ic { color: #c6a4ff; }
/* качание — через transform: свойство translate занято параллаксом */
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line2); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── бегущая строка ───────────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; padding: 18px 0; margin: 10px 0 40px; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 500 15px var(--mono); color: var(--dim); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--a2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── манифест: слова загораются по мере прокрутки ─────────────────── */
.manifest { padding: 90px 24px 70px; }
.manifest p { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; max-width: 900px; }
.manifest .mw { color: rgba(238, 241, 255, .13); transition: color .35s; }
.manifest .mw.lit { color: var(--text); }
.manifest b .mw.lit { color: #b9a4ff; }

/* ── секции ───────────────────────────────────────────────────────── */
.sec { padding: 96px 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; }
.kicker { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--a3); margin-bottom: 18px; }
.sec-h { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.sec-sub { margin-top: 16px; color: var(--dim); font-size: 16px; }

/* бенто */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(260px, auto); gap: 18px; }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; padding: 28px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; isolation: isolate; transition: box-shadow .3s, transform .4s var(--ease); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 108, 255, .2), transparent 45%); }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line2); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(124, 108, 255, .14); color: #b9a4ff; margin-bottom: 20px; box-shadow: inset 0 0 0 1px rgba(124,108,255,.3); }
.tile h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 10px; }
.tile p { color: var(--dim); font-size: 15px; max-width: 460px; }
.tile > div[class^="fx-"] { margin-top: auto; padding-top: 26px; }

/* fx: устройства */
.fx-devices { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 22px; height: 150px; }
.dv { border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line2); background: rgba(255,255,255,.02); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.dv span { height: 8px; border-radius: 4px; background: var(--line2); animation: syncline 3s infinite; }
.dv span:nth-child(2) { width: 70%; align-self: flex-end; background: rgba(124,108,255,.6); animation-delay: .4s; }
.dv span:nth-child(3) { width: 55%; animation-delay: .8s; }
.dv-phone { width: 62px; height: 118px; border-radius: 14px; }
.dv-laptop { width: 210px; height: 132px; }
.dv-tab { width: 96px; height: 126px; }
.dv-beam { position: absolute; top: 40%; height: 2px; width: 22px; background: linear-gradient(90deg, transparent, var(--a3), transparent); animation: beam 1.6s linear infinite; }
.dv-beam1 { left: calc(50% - 128px); } .dv-beam2 { left: calc(50% + 106px); animation-delay: .8s; }
@keyframes beam { 0% { opacity: 0; transform: translateX(-10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
@keyframes syncline { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* fx: голос */
.fx-voice { display: flex; flex-direction: column; gap: 14px; }
.vbub { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 20px; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.vbub .vplay { width: 34px; height: 34px; }
.vbars { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.vbars i { flex: 1; border-radius: 3px; background: rgba(255,255,255,.9); animation: bar 1.2s ease-in-out infinite; }
.vbars .b1 { animation-delay: -.2s; } .vbars .b2 { animation-delay: -.5s; } .vbars .b3 { animation-delay: -.8s; } .vbars .b4 { animation-delay: -1s; }
.vbars .h4 { height: 4px; } .vbars .h5 { height: 5px; } .vbars .h6 { height: 6px; } .vbars .h7 { height: 7px; } .vbars .h8 { height: 8px; } .vbars .h9 { height: 9px; }
.vbars .h10 { height: 10px; } .vbars .h11 { height: 11px; } .vbars .h12 { height: 12px; } .vbars .h13 { height: 13px; } .vbars .h14 { height: 14px; } .vbars .h15 { height: 15px; }
.vbars .h16 { height: 16px; } .vbars .h18 { height: 18px; } .vbars .h19 { height: 19px; } .vbars .h20 { height: 20px; } .vbars .h22 { height: 22px; }
.vtime { font: 500 12px var(--mono); }
.vspeed { display: flex; gap: 8px; }
.vspeed b { padding: 6px 12px; border-radius: 999px; font: 600 12px var(--mono); background: var(--panel2); color: var(--dim); }
.vspeed b.on { background: rgba(43,228,196,.15); color: var(--a3); box-shadow: inset 0 0 0 1px rgba(43,228,196,.4); }
.vround { position: relative; width: 150px; height: 150px; margin: 10px auto 0; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 200deg, #ff8a5b, #e0569b, #8b5cff, #4f7dff, #2be4c4, #ff8a5b); padding: 4px; }
.vround span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3f5c, #11131f 70%); animation: breathe 4s ease-in-out infinite; }
.vround em { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 600 11px var(--mono); font-style: normal; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); }
@keyframes breathe { 50% { transform: scale(.94); } }

/* fx: счётчик, разделы, кнопки бота */
.fx-counter b { display: block; font: 700 36px/1 var(--mono); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-counter span { color: var(--faint); font: 500 13px var(--mono); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips span { padding: 8px 13px; border-radius: 12px; font: 500 13px var(--mono); background: var(--panel2); color: var(--dim); box-shadow: inset 0 0 0 1px var(--line); }
.fx-chips span.on { color: var(--text); background: rgba(79,125,255,.2); box-shadow: inset 0 0 0 1px rgba(79,125,255,.55); }
.fx-kb p { font-size: 13.5px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #1d2133; margin-bottom: 8px; color: var(--text); }
.kb { display: flex; gap: 6px; margin-top: 6px; }
.kb span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 500; background: rgba(79,125,255,.16); color: #a9c0ff; transition: background .2s; }
.kb span:hover { background: rgba(79,125,255,.32); }
.kb .wide { flex: 1 1 100%; }

/* fx: поиск */
.fx-search { display: flex; flex-direction: column; gap: 8px; }
.sfield { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line2); }
.sfield .ic { width: 17px; height: 17px; color: var(--faint); }
.stype { font: 500 14px var(--mono); border-right: 2px solid var(--a3); padding-right: 3px; white-space: nowrap; overflow: hidden; width: 0; animation: type 4s steps(15) infinite; }
@keyframes type { 0% { width: 0; } 45%, 85% { width: 15ch; } 100% { width: 0; } }
.srow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--panel); font-size: 13.5px; }
.srow span { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow em { font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
.srow mark { background: rgba(43,228,196,.18); color: var(--a3); border-radius: 4px; padding: 0 3px; }

/* fx: радар */
.fx-radar { position: relative; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, var(--line2) 27px 28px); box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; }
.fx-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(43,228,196,.45), transparent 25%); animation: spin 3.5s linear infinite; }
.fx-radar b { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--a3); box-shadow: 0 0 12px var(--a3); animation: ping 2s infinite; }
.fx-radar .p1 { top: 30%; left: 62%; } .fx-radar .p2 { top: 62%; left: 26%; animation-delay: .7s; background: #c6a4ff; box-shadow: 0 0 12px #c6a4ff; } .fx-radar .p3 { top: 70%; left: 70%; animation-delay: 1.3s; }
.rlabel { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); color: var(--a3); }

/* ── безопасность ─────────────────────────────────────────────────── */
.sec-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.shield-stage { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.shield-stage::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed var(--line2); animation: spin 50s linear infinite; }
.shield-core { width: 170px; height: 170px; border-radius: 48px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--a1), var(--a2)); box-shadow: 0 30px 80px -20px rgba(110, 90, 255, .9), inset 0 1px 0 rgba(255,255,255,.35); animation: breathe 5s ease-in-out infinite; }
.shield-core .ic { width: 84px; height: 84px; stroke-width: 1.4; }
.orbit { position: absolute; inset: 12%; border-radius: 50%; animation: spin 18s linear infinite; }
.orbit b { position: absolute; top: -26px; left: 50%; margin-left: -26px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(20,23,38,.85); box-shadow: inset 0 0 0 1px var(--line2); color: var(--a3); animation: spin 18s linear infinite reverse; }
.o2 { animation-delay: -6s; } .o2 b { animation-delay: -6s; color: #c6a4ff; }
.o3 { animation-delay: -12s; } .o3 b { animation-delay: -12s; color: #8fb0ff; }
.sec-list { display: grid; gap: 14px; margin-top: 36px; }
.sec-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.sec-item:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px var(--line2); }
.sec-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(43,228,196,.12); color: var(--a3); }
.sec-item h3 { font-size: 17px; margin-bottom: 4px; }
.sec-item p { color: var(--dim); font-size: 14.5px; }

/* ── как начать: шаги с закреплённым экраном ──────────────────────── */
.how-in { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.how-sticky { position: sticky; top: 110px; align-self: start; }
.how-screen { position: relative; margin-top: 40px; height: 300px; border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.hs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0;
  transform: translateY(30px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hs em { font: 500 13px var(--mono); font-style: normal; color: var(--a3); }
.how[data-active="1"] .hs1, .how[data-active="2"] .hs2, .how[data-active="3"] .hs3 { opacity: 1; transform: none; }
.hs-logo { width: 86px; height: 86px; border-radius: 26px; display: grid; place-items: center; background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 20px 50px -14px rgba(139,92,255,.9); }
.hs-logo .ic { width: 46px; height: 46px; }
.hs b { font-size: 22px; }
.hs-btn { display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 16px; font-weight: 600; background: linear-gradient(100deg, var(--a1), var(--a2)); box-shadow: 0 16px 40px -12px rgba(110,90,255,.9); }
.hs-at { display: flex; align-items: center; font: 600 26px var(--mono); padding: 14px 24px; border-radius: 18px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(43,228,196,.5); color: var(--dim); }
.hs-at b { color: var(--text); font-size: 26px; }
.hs-at i { width: 3px; height: 26px; margin-left: 4px; background: var(--a3); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.how-steps { list-style: none; margin: 0; padding: 30vh 0 20vh; display: grid; gap: 34vh; }
.step { padding: 30px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); opacity: .35; transform: scale(.96); transition: opacity .5s, transform .5s var(--ease), box-shadow .5s; }
.step.on { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(124,108,255,.55), 0 30px 60px -30px rgba(110,90,255,.7); }
.step-num { font: 600 15px var(--mono); color: var(--a3); }
.step h3 { font-size: 22px; letter-spacing: -.025em; margin: 10px 0 8px; }
.step p { color: var(--dim); font-size: 15.5px; }

/* ── скачать ──────────────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; gap: 18px; }
.dl-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 22px; padding: 30px;
  border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); transform-style: preserve-3d; transition: transform .35s var(--ease); }
.dl-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(124,108,255,.18), transparent 50%); }
.dl-android::after, .dl-ios::after { content: ''; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; filter: blur(50px); opacity: .45; }
.dl-android::after { background: #3ddc84; }
.dl-ios::after { background: #8fb0ff; }
.dl-top { display: flex; align-items: center; gap: 16px; }
.dl-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line2); }
.dl-ic .ic { width: 30px; height: 30px; }
.dl-android .dl-ic { color: #3ddc84; }
.dl-top h3 { font-size: 20px; letter-spacing: -.02em; }
.dl-top p { color: var(--faint); font: 500 13px var(--mono); margin-top: 2px; }
.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.dl-steps li { counter-increment: s; display: flex; gap: 12px; color: var(--dim); font-size: 15px; }
.dl-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--panel2); color: var(--text); }
.dl-card .btn { margin-top: auto; }
.dl-meta { text-align: center; color: var(--faint); font: 500 12px var(--mono); }
.dl-text { color: var(--dim); font-size: 15px; }

/* ── вопросы ──────────────────────────────────────────────────────── */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); transition: transform .3s var(--ease), background .3s; }
.faq-item[open] .faq-x { transform: rotate(45deg); background: rgba(124,108,255,.25); }
.faq-item p { padding: 0 22px 20px; color: var(--dim); }

/* ── финал и подвал ───────────────────────────────────────────────── */
.final { padding: 80px 0 140px; }
.final-in { text-align: center; padding: 80px 24px; border-radius: 36px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(139,92,255,.45), transparent 60%), var(--panel); box-shadow: inset 0 0 0 1px var(--line2); }
.final h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -.03em; }
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--dim); font-size: 14px; }
.foot-nav a:hover { color: var(--text); }
.foot-note { width: 100%; color: var(--faint); font: 500 12px var(--mono); }

/* ── вылеты при прокрутке ─────────────────────────────────────────── */
[data-fly] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-fly="up"] { transform: translateY(60px); }
[data-fly="left"] { transform: translateX(-80px) rotate(-2deg); }
[data-fly="right"] { transform: translateX(80px) rotate(2deg); }
[data-fly="zoom"] { transform: scale(.82); }
[data-fly="blur"] { transform: translateY(20px); filter: blur(12px); }
[data-fly="tilt"] { transform: perspective(900px) rotateX(24deg) translateY(80px); transform-origin: 50% 100%; }
[data-fly].is-in { opacity: 1; transform: none; filter: none; }
.hero-h { opacity: 1; }

/* ── адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .top-act { margin-left: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-os { justify-content: center; }
  .hero-stage { min-height: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.tall { grid-row: span 1; }
  .sec-split, .how-in, .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-web { grid-column: span 2; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .top-in { height: 64px; }
  .hero { padding-top: 100px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .hero-stage { min-height: 520px; }
  .phone { width: 260px; height: 530px; }
  .ring1 { width: 360px; height: 360px; } .ring2 { width: 280px; height: 280px; }
  .f2 { right: 0; } .f1 { left: 0; }
  .bento, .dl-grid { grid-template-columns: 1fr; }
  .tile.wide, .dl-web { grid-column: auto; }
  .tile { padding: 22px; }
  .dv-laptop { width: 150px; } .dv-beam1 { left: calc(50% - 100px); } .dv-beam2 { left: calc(50% + 80px); }
  .sec { padding: 80px 0; }
  .how-sticky { position: relative; top: 0; }
  .how-screen { height: 220px; }
  .how-steps { padding: 0; gap: 16px; }
  .step { opacity: 1; transform: none; }
  .final-in { padding: 56px 18px; }
}

/* меньше движения — по просьбе системы */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-fly], .word > span, .msg { opacity: 1 !important; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}

/* ── вход (login.php) ─────────────────────────────────────────────────
   Как в GoOffline и Тикере: слева рассказ о продукте, справа карточка
   с одной дверью — e-ID. Дальше шаги мессенджера: @адрес, облачный пароль. */
.login { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.login-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px;
  border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(79,125,255,.10), rgba(139,92,255,.06) 60%, transparent); overflow: hidden; }
.login-hero-body { max-width: 480px; }
.login-head { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.login-sub { margin-top: 14px; color: var(--dim); font-size: 16px; max-width: 420px; }
.login-chat { display: flex; flex-direction: column; gap: 8px; margin: 32px 0; max-width: 360px; }
.login-chat .msg { font-size: 14px; }
.login-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.login-points li { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 15px; }
.login-pi { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(43,228,196,.12); color: var(--a3); }
.login-pi .ic { width: 18px; height: 18px; }
.login-back { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; }
.login-back:hover { color: var(--text); }
.login-back .ic { width: 16px; height: 16px; }

.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 24px; }
.login-brand-m { display: none; }
.login-card { width: 100%; max-width: 420px; padding: 40px 36px; border-radius: 28px; text-align: center;
  background: rgba(14, 16, 28, .72); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 90px -40px rgba(70, 60, 200, .6); }
.login-mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: var(--grad); background-size: 160% 100%; box-shadow: 0 16px 40px -12px rgba(139,92,255,.9); }
.login-mark .ic { width: 30px; height: 30px; }
.login-mark-wait { animation: breathe 2s ease-in-out infinite; }
.login-title { font-size: 26px; letter-spacing: -.025em; }
.login-lede { color: var(--dim); font-size: 15px; margin: 8px 0 26px; }
.login-btn .ic { width: 20px; height: 20px; }
.login-err, .login-note { display: flex; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 16px;
  background: rgba(255, 110, 110, .1); color: #ffb4b4; box-shadow: inset 0 0 0 1px rgba(255,110,110,.3); }
.login-note { margin: 16px 0 0; background: rgba(240, 180, 41, .1); color: #f6d58a; box-shadow: inset 0 0 0 1px rgba(240,180,41,.3); }
.login-err .ic, .login-note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.login-why { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; text-align: left; }
.login-why li { display: flex; gap: 10px; color: var(--dim); font-size: 14px; }
.login-why .ic { width: 17px; height: 17px; color: var(--a3); margin-top: 2px; }
.login-fine { margin-top: 22px; color: var(--faint); font-size: 12.5px; }
.login-fine a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }

.login-loader { display: flex; justify-content: center; gap: 8px; margin: 6px 0 26px; }
.login-loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--a3); animation: bar .9s ease-in-out infinite; }
.login-loader i:nth-child(2) { animation-delay: .15s; background: #8fb0ff; } .login-loader i:nth-child(3) { animation-delay: .3s; background: #c6a4ff; }

.login-form { display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 7px; }
.field-l { font-size: 13px; color: var(--dim); font-weight: 500; }
.field input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0; font: 500 16px 'Geist', sans-serif; color: var(--text);
  background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .2s; }
.field input:focus { box-shadow: inset 0 0 0 1.5px var(--a2), 0 0 0 4px rgba(139,92,255,.18); }
.at-row { display: flex; align-items: center; border-radius: 14px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line2); }
.at-row:focus-within { box-shadow: inset 0 0 0 1.5px var(--a2), 0 0 0 4px rgba(139,92,255,.18); }
.at-row b { padding-left: 16px; color: var(--faint); font: 600 16px var(--mono); }
.at-row input { background: transparent; box-shadow: none; padding-left: 4px; font-family: var(--mono); }
.at-row input:focus { box-shadow: none; }
.field-h { font-size: 12.5px; color: var(--faint); }
.field-h.ok { color: var(--a3); }
.field-h.bad { color: #ffb4b4; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.login-link { display: block; margin-top: 18px; color: var(--dim); font-size: 14px; font-weight: 500; }
.login-link:hover { color: var(--text); }
.login-link-dim { margin-top: 10px; color: var(--faint); }

.login-states { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; font: 500 12px var(--mono); color: var(--faint); }
.login-states span { padding: 6px 4px; }
.login-states a { padding: 6px 10px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.login-states a:hover { color: var(--text); }
.login-states a.on { color: var(--text); background: rgba(124,108,255,.2); box-shadow: inset 0 0 0 1px rgba(124,108,255,.5); }

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-hero { display: none; }
  .login-brand-m { display: flex; }
  .login-main { justify-content: flex-start; padding-top: 32px; }
}
@media (max-width: 680px) {
  .login-card { padding: 30px 20px; border-radius: 24px; }
}

/* ── «Всё в одном» (22.10.2026): переводы, товары, лента ─────────────── */
.tile-soon { position: absolute; top: 24px; right: 24px; padding: 5px 10px; border-radius: 999px;
  font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: #f6d58a; background: rgba(240,180,41,.12); box-shadow: inset 0 0 0 1px rgba(240,180,41,.35); }

/* перевод и товар в переписке героя */
.msg.pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 62%; }
.msg.pay .pay-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: none; }
.msg.pay .pay-ic .ic { width: 18px; height: 18px; }
.msg.pay b { display: block; font-size: 18px; letter-spacing: -.02em; }
.msg.pay small { display: block; font-size: 11px; opacity: .8; }
.msg.pay time { width: 100%; }
.msg.item { width: 62%; padding: 6px 6px 7px; }
.item-img { display: block; height: 56px; border-radius: 13px; margin-bottom: 7px;
  background: radial-gradient(circle at 30% 30%, #ffd1a8, transparent 40%), linear-gradient(135deg, #ff8a5b, #e0569b 55%, #8b5cff); }
.msg.item b { display: block; padding: 0 6px; font-size: 13px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 0; }
.item-row em { font-style: normal; font-weight: 700; }
.item-row span { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: linear-gradient(100deg, var(--a1), var(--a2)); }
.msg.item time { padding: 0 6px; }

/* плитка «Платежи» */
.fx-pay { display: flex; flex-direction: column; gap: 8px; }
.pay-bal { padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--a1), var(--a2) 60%, #e06cff); margin-bottom: 4px; }
.pay-bal span { display: block; font: 500 12px var(--mono); opacity: .8; }
.pay-bal b { font: 700 30px/1.1 var(--mono); letter-spacing: -.03em; }
.pay-bal b i { font-style: normal; }
.pay-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--panel); font-size: 13.5px; }
.pay-row i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; background: #1d2133; }
.pay-row span { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-row b { font: 600 13px var(--mono); }
.pay-row b.plus { color: var(--a3); }

/* плитка «Магазины» */
.fx-shop { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; gap: 6px 14px; align-items: center;
  padding: 10px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.shop-img { grid-row: span 2; width: 76px; height: 76px; border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #ffd1a8, transparent 40%), linear-gradient(135deg, #ff8a5b, #e0569b 55%, #8b5cff); }
.shop-info b { display: block; font-size: 14px; }
.shop-info span { font: 600 13px var(--mono); color: var(--a3); }
.shop-btn { justify-self: start; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: linear-gradient(100deg, var(--a1), var(--a2)); }

/* плитка «Лента друзей» */
.fx-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fp { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.fp1 { background: linear-gradient(160deg, #4f7dff, #2be4c4); }
.fp2 { background: linear-gradient(160deg, #e06cff, #ff8a5b); }
.fp3 { background: linear-gradient(160deg, #8b5cff, #4f7dff); }
.fp em { position: absolute; left: 6px; bottom: 6px; font: 600 10px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.45); }
