/* ═══════════════════════════════════════════════════════════════════
   BANNGRU — главная в языке нового интерфейса (Орбиты)

   Страница сама ведёт себя как приложение: остров сверху вместо шапки,
   Ctrl+K для навигации, каждая секция — «пространство» со своим цветом,
   и фон перекрашивается вслед за прокруткой, как окно при смене сервера.

   Цвет пространства — одна переменная --tint типа <color> (@property),
   поэтому браузер сам плавно переливает её во всех местах, где она
   используется. Остров чёрный всегда — он «вырез», а не поверхность.

   Общие токены, кнопки и подвал — в site.css; здесь только главная.
   ═══════════════════════════════════════════════════════════════════ */

@property --tint {
    syntax: '<color>';
    inherits: true;
    initial-value: #a3ea30;
}

@property --ow-tint {
    syntax: '<color>';
    inherits: true;
    initial-value: #a3ea30;
}

/* Акцент приложения — лайм, а не мятный цвет остальных страниц сайта:
   главная показывает интерфейс, и цвета обязаны совпадать с ним */
:root {
    --accent: #a3ea30;
    --accent-dark: #86c51f;
    --accent-glow: rgba(163, 234, 48, 0.38);
    --tint: #a3ea30;
    --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --glass: rgba(20, 20, 28, 0.62);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.13);
    --on-accent: #0b1003;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: --tint 1.1s ease;
}

body.home { background: #06060a; }

.home ::selection { background: color-mix(in srgb, var(--tint) 40%, transparent); }

.home .btn-ghost:hover { border-color: color-mix(in srgb, var(--tint) 50%, transparent); }
.home .social-link:hover { color: var(--accent); border-color: rgba(163, 234, 48, 0.35); }
.home .eyebrow {
    color: var(--tint);
    background: color-mix(in srgb, var(--tint) 9%, transparent);
    border-color: color-mix(in srgb, var(--tint) 26%, transparent);
}
.home .eyebrow .dot { background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.home .grad-text {
    background: linear-gradient(110deg, var(--accent) 0%, #d8ff8a 30%, var(--tint) 62%, var(--accent) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
}

main, footer { position: relative; z-index: 1; }

/* ═══ Космос: фиксированный фон всей страницы ═══ */

.space-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.space-bg .aurora {
    position: absolute; inset: -20%;
    background:
        radial-gradient(38% 34% at 16% 14%, color-mix(in srgb, var(--tint) 24%, transparent), transparent 70%),
        radial-gradient(32% 30% at 86% 22%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
        radial-gradient(46% 40% at 62% 96%, color-mix(in srgb, var(--tint) 17%, transparent), transparent 70%);
    filter: blur(24px);
    animation: drift 28s ease-in-out infinite alternate;
}
.space-bg .nebula {
    position: absolute; inset: -30%; opacity: 0.65;
    background:
        radial-gradient(26% 20% at 70% 62%, color-mix(in srgb, var(--tint) 13%, transparent), transparent 70%),
        radial-gradient(20% 16% at 28% 40%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
    filter: blur(34px);
    animation: spin 110s linear infinite;
}
.space-bg .stars {
    position: absolute; inset: 0 0 -640px; opacity: 0.6; will-change: transform;
    background-image:
        radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1px 1px at 72% 14%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1.5px 1.5px at 42% 64%, color-mix(in srgb, var(--tint) 70%, transparent), transparent 60%),
        radial-gradient(1px 1px at 88% 52%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1px 1px at 26% 82%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1px 1px at 58% 36%, rgba(255, 255, 255, 0.3), transparent 60%),
        radial-gradient(1px 1px at 6% 58%, rgba(255, 255, 255, 0.3), transparent 60%),
        radial-gradient(1.5px 1.5px at 94% 86%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 60%);
    background-size: 640px 640px;
}
/* Ближний слой звёзд: крупнее, реже и быстрее — вместе с дальним даёт глубину */
.space-bg .stars-far {
    inset: 0 0 -900px; opacity: 0.8;
    background-image:
        radial-gradient(1.6px 1.6px at 18% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(2px 2px at 66% 12%, color-mix(in srgb, var(--tint) 80%, transparent), transparent 60%),
        radial-gradient(1.4px 1.4px at 84% 64%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(1.8px 1.8px at 36% 78%, rgba(255, 255, 255, 0.5), transparent 60%);
    background-size: 900px 900px;
}
/* Тонкая сетка-горизонт: даёт глубину, не споря с контентом.
   Сам рисунок — во внутреннем слое: его сдвигает прокрутка, и кажется,
   что летишь вперёд над плоскостью */
.space-bg .grid {
    position: absolute; left: -10%; right: -10%; bottom: -10%; height: 55%; overflow: hidden;
    transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 75%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 75%);
}
.space-bg .grid > i {
    position: absolute; inset: -64px 0 0; will-change: transform;
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--tint) 10%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--tint) 10%, transparent) 1px, transparent 1px);
    background-size: 64px 64px;
}

@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ Верхняя панель: логотип · остров · вход ═══ */

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); pointer-events: none; }
/* Не полоса, а мягкое затемнение: в Орбите шапки нет, остров висит в воздухе */
.topbar::before {
    content: ''; position: absolute; inset: 0 0 -36px;
    background: linear-gradient(to bottom, rgba(6, 6, 10, 0.88), rgba(6, 6, 10, 0.5) 55%, transparent);
    opacity: var(--scrolled, 0); transition: opacity 300ms ease;
}
.topbar-inner {
    position: relative; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
    /* Высота ряда закреплена: раскрытый остров выходит за неё вниз,
       а логотип и кнопки остаются по центру полосы шапки */
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: var(--nav-h); align-items: start;
}
.topbar .logo { align-self: center; justify-self: start; pointer-events: auto; }
.topbar-actions { grid-column: 3; align-self: center; justify-self: end; display: flex; gap: 10px; pointer-events: auto; }

/* ═══ Остров ═══

   Обёртка двигается: на первом экране остров «лежит» в герое крупным
   (--fly-y, --fly-s считает home.js по положению #islandSlot), при
   прокрутке поднимается вместе со страницей и встаёт в шапку. */

.island-wrap {
    --fly-y: 0px; --fly-s: 1;
    /* Колонка задана явно: на телефоне логотип выходит из сетки,
       и автораскладка сдвинула бы остров в первую колонку */
    grid-column: 2;
    margin-top: 16px; pointer-events: auto;
    transform: translate3d(0, var(--fly-y), 0) scale(var(--fly-s));
    transform-origin: 50% 0;
    will-change: transform;
}

.island {
    position: relative; display: flex; flex-direction: column;
    min-width: 0; color: rgba(255, 255, 255, 0.94);
    background: #000; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 21px;
    box-shadow:
        0 14px 34px -12px rgba(0, 0, 0, 0.85),
        0 0 0 1px color-mix(in srgb, var(--tint) 16%, transparent),
        0 0 40px -10px color-mix(in srgb, var(--tint) 40%, transparent);
    overflow: hidden;
    transition: box-shadow 400ms ease, border-radius 450ms var(--ease);
}
/* Смена размера капсулы (раскрытие, сворачивание, смена карточки).
   Класс и пиксельные width/height ставит home.js на время анимации */
.island.sizing {
    transition: width 600ms cubic-bezier(0.32, 1.22, 0.48, 1), height 600ms cubic-bezier(0.32, 1.22, 0.48, 1),
        border-radius 450ms var(--ease), box-shadow 400ms ease;
}
.island:hover { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px color-mix(in srgb, var(--tint) 30%, transparent), 0 0 50px -8px color-mix(in srgb, var(--tint) 55%, transparent); }

.island-bar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 40px; padding: 0 5px 0 4px; }

.island-main {
    display: flex; align-items: center; height: 32px; padding: 0 12px;
    color: inherit; background: none; border: 0; border-radius: 999px;
}
.island-main:focus-visible { outline-offset: 0; }

.island-search {
    display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
    font-size: 0.72rem; color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.07); border: 0; border-radius: 999px;
    transition: background 200ms ease, color 200ms ease;
}
.island-search:hover { background: color-mix(in srgb, var(--tint) 22%, transparent); color: #fff; }
.island-search kbd { font-family: var(--mono); font-size: 0.66rem; }

/* Живая часть: её ширину морфит home.js (FLIP), содержимое проявляется */
.isl-live {
    position: relative; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
    transition: width 620ms cubic-bezier(0.32, 1.22, 0.48, 1);
}
.isl-in { display: flex; align-items: center; gap: 10px; animation: islIn 460ms var(--ease) 90ms both; }
@keyframes islIn { from { opacity: 0; transform: translateY(6px) scale(0.86); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* Уходящее содержимое вынуто из потока: ширину уже задаёт новое */
.isl-in.isl-out {
    position: absolute; left: 0; top: 0; bottom: 0; pointer-events: none;
    animation: islOut 280ms ease forwards;
}
@keyframes islOut { to { opacity: 0; transform: translateY(-6px) scale(0.86); filter: blur(6px); } }

.isl-space { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; }
.isl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.isl-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.16); }
.isl-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
    color: var(--on-accent); background: var(--tint); border-radius: 999px;
}
.isl-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.isl-text b { font-size: 0.74rem; }
.isl-text span { font-size: 0.68rem; color: rgba(255, 255, 255, 0.6); }
.isl-name { font-size: 0.76rem; font-weight: 700; }
.isl-muted { color: rgba(255, 255, 255, 0.55); }
.isl-green { color: #2ed573; }
.isl-red { color: #ff5c5c; }
.isl-btn {
    width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.66rem; color: #fff; background: rgba(255, 255, 255, 0.12); border-radius: 50%;
}
.isl-btn.danger { background: #e0393e; }
.isl-stack { display: inline-flex; }
.isl-stack .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px #000; }
.isl-rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.isl-thumb { width: 34px; height: 20px; border-radius: 5px; background: linear-gradient(135deg, #5b8cff, #8b5cf6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* Эквалайзер «кто-то говорит» */
.isl-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.isl-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--tint); animation: eqBar 900ms ease-in-out infinite; }
.isl-eq i:nth-child(2) { animation-delay: 120ms; }
.isl-eq i:nth-child(3) { animation-delay: 260ms; }
.isl-eq i:nth-child(4) { animation-delay: 380ms; }
@keyframes eqBar { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Полоска «уведомление скоро уйдёт» */
.isl-progress {
    position: absolute; left: 18px; right: 18px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--tint); transform-origin: left; animation: islProgress var(--dur, 2.8s) linear forwards;
}
@keyframes islProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Раскрытое меню острова — навигация по сайту.
   Свёрнутое меню убрано из раскладки целиком (display: none), поэтому не
   задаёт ширину капсулы. Внутри — блок постоянной ширины: пока капсула
   растёт, текст не переносится и высота не прыгает. При сворачивании
   меню остаётся видимым (data-state="closing") и гаснет, пока капсула
   сжимается вокруг него. */
.island-menu { display: none; }
.island[data-open='true'] .island-menu, .island[data-state='closing'] .island-menu { display: block; }
.island-menu > div { width: 380px; }
.island[data-state='closing'] .island-menu { opacity: 0; transition: opacity 220ms ease; }
.island[data-open='true'] { border-radius: 26px; }
.island-links {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; min-width: 0;
    padding: 6px 10px 4px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.island-links a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    font-size: 0.86rem; color: rgba(255, 255, 255, 0.8); border-radius: 12px;
    transition: background 180ms ease, color 180ms ease;
}
.island-links a i { width: 16px; text-align: center; font-size: 0.8rem; color: var(--tint); }
.island-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.island-menu-foot { display: flex; gap: 8px; padding: 6px 12px 12px; }
.island-menu-foot .btn { flex: 1; padding: 10px 14px; font-size: 0.85rem; border-radius: 13px; }

/* Место острова в герое: высоту задаёт home.js под масштаб */
.island-slot { height: 60px; margin: 6px auto 30px; }

/* ═══ Точечно-матричные цифры (Nothing OS) ═══ */

.dm { display: inline-block; vertical-align: middle; }
.dm svg { display: block; }

/* ═══ Герой ═══ */

/* Первый экран целиком: остров, заголовок, кнопки и маскоты вокруг.
   Интерфейс показывает следующая секция — второе окно здесь дублировало бы её */
.hero {
    position: relative; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 8px) 0 120px;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#popLayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.pop {
    position: absolute; transform: translate(-50%, -50%);
    font-size: 1.7rem; will-change: transform, opacity;
    animation: popUp 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes popUp {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    25%  { opacity: 1; transform: translate(-50%, -90%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -230%) scale(0.95); }
}

.hero-copy { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-copy::before {
    content: ''; position: absolute; inset: -6% -14%; z-index: -1; pointer-events: none; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(6, 6, 10, 0.86) 0%, rgba(6, 6, 10, 0.55) 48%, transparent 74%);
    filter: blur(10px);
}
.hero h1 {
    font-size: clamp(2.8rem, 7.4vw, 5.9rem);
    font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance;
}
.hero-sub {
    max-width: 640px; margin: 26px auto 0;
    font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-secondary); text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note i { color: var(--tint); font-size: 0.75rem; }

/* Подсказка прокрутки внизу первого экрана */
.scroll-cue {
    position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-muted); transition: color 200ms ease;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue i { color: var(--tint); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ═══ Окно приложения (живой DOM-мокап нового интерфейса) ═══ */

.ow {
    --ow-tint: #a3ea30;
    position: relative; display: flex; gap: 12px; height: 600px; padding: 12px 12px 80px;
    text-align: left; color: var(--text-primary);
    background: #07070c; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 30px; overflow: hidden;
    box-shadow:
        0 60px 120px -40px rgba(0, 0, 0, 0.9),
        0 40px 130px -60px color-mix(in srgb, var(--ow-tint) 60%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: --ow-tint 900ms ease;
}

/* Свой космос внутри окна: красится цветом его пространства */
.ow-sky { position: absolute; inset: 0; pointer-events: none; }
.ow-sky::before {
    content: ''; position: absolute; inset: -20%;
    background:
        radial-gradient(40% 35% at 18% 12%, color-mix(in srgb, var(--ow-tint) 26%, transparent), transparent 70%),
        radial-gradient(45% 40% at 70% 100%, color-mix(in srgb, var(--ow-tint) 16%, transparent), transparent 70%);
    filter: blur(18px);
}
.ow-sky::after {
    content: ''; position: absolute; inset: 0; opacity: 0.5;
    background-image:
        radial-gradient(1px 1px at 22% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1px 1px at 64% 18%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(1.5px 1.5px at 80% 70%, color-mix(in srgb, var(--ow-tint) 60%, transparent), transparent 60%),
        radial-gradient(1px 1px at 40% 84%, rgba(255, 255, 255, 0.3), transparent 60%);
    background-size: 320px 320px;
}

/* Рельс: обложка пространства, переключатель, каналы, «я» */
.ow-rail {
    position: relative; z-index: 1; width: 262px; flex-shrink: 0;
    display: flex; flex-direction: column; overflow: hidden;
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 20px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.ow-cover {
    position: relative; height: 98px; flex-shrink: 0; padding: 12px 14px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background:
        radial-gradient(70% 90% at 85% 0%, color-mix(in srgb, var(--ow-tint) 75%, transparent), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--ow-tint) 45%, #0a0a10), #0c0c12 80%);
    transition: background 600ms ease;
}
.ow-cover::after {
    content: ''; position: absolute; inset: 0; opacity: 0.18;
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.2px);
    background-size: 9px 9px;
    mask-image: linear-gradient(135deg, transparent 30%, #000);
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000);
}
.ow-cover b { position: relative; z-index: 1; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.ow-cover small { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: rgba(255, 255, 255, 0.72); }
.ow-cover small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2ed573; }

.ow-switch { position: relative; display: flex; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ow-sp {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: rgba(0, 0, 0, 0.78);
    background: var(--sp); border: 0; border-radius: 11px; opacity: 0.5;
    transition: opacity 250ms ease, border-radius 300ms var(--ease), box-shadow 300ms ease, transform 250ms var(--spring);
}
.ow-sp:hover { opacity: 0.85; transform: translateY(-2px); }
.ow-sp[aria-pressed='true'] { opacity: 1; border-radius: 50%; box-shadow: 0 0 0 2px #0c0c12, 0 0 0 4px var(--sp); }
.ow-sp-folder {
    background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.6); opacity: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px;
}
.ow-sp-folder i { border-radius: 3px; }

.ow-list { flex: 1; min-height: 0; padding: 8px 10px; overflow: hidden; }
.ow-cat { padding: 9px 8px 5px; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ow-ch { display: flex; align-items: center; gap: 9px; padding: 7px 10px; font-size: 0.8rem; color: var(--text-secondary); border-radius: 10px; }
.ow-ch i { width: 12px; font-size: 0.72rem; color: var(--text-muted); }
.ow-ch.on { color: #fff; font-weight: 600; background: color-mix(in srgb, var(--ow-tint) 16%, transparent); box-shadow: inset 2px 0 0 var(--ow-tint); }
.ow-ch.on i { color: var(--ow-tint); }
.ow-ch .unread { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ow-vu { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 30px; font-size: 0.72rem; color: var(--text-secondary); }

.ow-me {
    display: flex; align-items: center; gap: 9px; margin: 8px; padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 14px;
}
.ow-me .name { font-size: 0.74rem; font-weight: 700; }
.ow-me .status { font-size: 0.64rem; color: #2ed573; }
.ow-me i { font-size: 0.72rem; color: var(--text-muted); }

/* Сцена справа: остров над окном, как в настоящей Орбите */
.ow-stage { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ow-island-row { height: 30px; display: flex; justify-content: center; }
.ow-island-row .island { font-size: 0.86em; border-radius: 999px; }
.ow-island-row .island-bar { height: 30px; padding: 0 4px; }
.ow-island-row .island-main { height: 26px; padding: 0 10px; cursor: default; }

.ow-win {
    flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
    background: rgba(10, 10, 15, 0.9); border: 1px solid var(--line-strong); border-radius: 20px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ow-tint) 12%, transparent), 0 40px 90px -40px color-mix(in srgb, var(--ow-tint) 45%, transparent);
}
.ow-head { height: 48px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.ow-crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-muted); white-space: nowrap; }
.ow-crumbs b { color: #fff; }
.ow-crumbs .fa-chevron-right { font-size: 0.55rem; opacity: 0.6; }
.ow-search {
    margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 11px;
    font-size: 0.7rem; color: var(--text-muted); white-space: nowrap;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px;
}
.ow-search kbd, .kbd {
    font-family: var(--mono); font-size: 0.66rem; padding: 2px 6px; color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-bottom-width: 2px; border-radius: 6px;
}

.ow-feed { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 14px 18px; overflow: hidden; }
.ow-day { align-self: center; margin-bottom: auto; padding: 3px 10px; font-size: 0.64rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border-radius: 999px; }

.bub-row { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; }
.bub-row.own { align-self: flex-end; flex-direction: row-reverse; }
.bub {
    position: relative; padding: 7px 12px 8px; font-size: 0.82rem; line-height: 1.4; color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.075); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 18px 18px 18px 6px;
}
.bub .who { display: block; margin-bottom: 1px; font-size: 0.68rem; font-weight: 700; color: var(--who, #fff); }
.bub .t { margin-left: 8px; font-size: 0.6rem; color: var(--text-muted); }
.own .bub { color: var(--on-accent); background: var(--ow-tint); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.own .bub .t { color: rgba(0, 0, 0, 0.45); }
.bub-reacts { position: absolute; right: 8px; bottom: -11px; display: flex; gap: 4px; }
.bub-react {
    display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font-size: 0.64rem; color: #fff;
    background: #1a1a24; border: 1px solid color-mix(in srgb, var(--ow-tint) 45%, transparent); border-radius: 999px;
    animation: reactPop 520ms var(--spring) both;
}
.bub-row:has(.bub-reacts) { margin-bottom: 10px; }
@keyframes reactPop { from { transform: scale(0) rotate(-20deg); } to { transform: none; } }

/* Чужое сообщение мягко всплывает, своё — взлетает из поля ввода */
.bub-row.enter { animation: bubIn 520ms var(--spring) both; }
.bub-row.own.enter { animation: bubLaunch 680ms var(--ease) both; }
@keyframes bubIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes bubLaunch {
    0%   { opacity: 0; transform: translateY(80px) scale(0.55); filter: blur(4px); }
    60%  { opacity: 1; filter: none; }
    100% { opacity: 1; transform: none; }
}
.bub-row.leave { animation: bubOut 360ms ease forwards; }
@keyframes bubOut { to { opacity: 0; transform: translateY(-16px) scale(0.96); } }


.ow-composer {
    display: flex; align-items: center; gap: 11px; margin: 0 14px 14px; padding: 8px 8px 8px 14px;
    font-size: 0.8rem; color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 16px;
}
.ow-composer .grow { flex: 1; }
.ow-send { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--on-accent); background: var(--ow-tint); border-radius: 10px; }

/* Док внизу окна */
.ow-dock {
    position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px;
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.ow-dock > span {
    position: relative; width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.92rem; color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px;
    transition: transform 300ms var(--spring), box-shadow 400ms ease;
}
.ow-dock > span.on::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; }
.ow-dock .sep { width: 1px; height: 30px; margin: 0 3px 5px; padding: 0; background: rgba(255, 255, 255, 0.14); border: 0; }
.ow-dock .pin { font-size: 0.68rem; font-weight: 800; color: rgba(0, 0, 0, 0.75); background: var(--sp); }

/* Подсказка-клавиша поверх окна (шаг «Alt+цифра» в пространствах) */
.ow-keytoast {
    position: absolute; z-index: 3; left: 50%; top: 46%;
    display: flex; align-items: center; gap: 8px; padding: 12px 16px;
    font-size: 0.9rem; font-weight: 600;
    background: rgba(8, 8, 12, 0.88); border: 1px solid var(--line-strong); border-radius: 16px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0; transform: translate(-50%, -40%) scale(0.92); pointer-events: none;
    transition: opacity 300ms ease, transform 400ms var(--spring);
}
.ow-keytoast .kbd { font-size: 0.85rem; padding: 4px 10px; }
.ow[data-step='3'] .ow-keytoast { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ow[data-step='2'] .ow-dock .pin { box-shadow: 0 0 0 2px #0c0c12, 0 0 0 4px var(--sp), 0 0 22px var(--sp); transform: translateY(-6px) scale(1.12); }
.ow[data-step='2'] .ow-sp-folder { box-shadow: 0 0 0 2px #0c0c12, 0 0 0 4px rgba(255, 255, 255, 0.5); }

/* Аватар: инициал на цвете — без картинок */
.av {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; font-size: 0.66rem; font-weight: 800; color: #fff;
    background: var(--av, #5b8cff); border-radius: 50%;
}
.av-xs { width: 18px; height: 18px; font-size: 0.5rem; }
.av-sm { width: 22px; height: 22px; font-size: 0.58rem; }
.av-md { width: 34px; height: 34px; font-size: 0.8rem; }
.av-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.speaking { position: relative; }
.speaking::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid #2ed573; animation: speakRing 1.6s ease-in-out infinite;
}
@keyframes speakRing { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

/* ═══ Общая типографика секций ═══ */

.sec { position: relative; z-index: 1; padding: 140px 0; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--tint);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.sec-title {
    margin-top: 16px; font-size: clamp(2.1rem, 4.8vw, 3.8rem);
    font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance;
}
.sec-lead { max-width: 560px; margin-top: 20px; font-size: 1.05rem; color: var(--text-secondary); text-wrap: pretty; }
.sec-head-center { text-align: center; }
.sec-head-center .sec-lead { margin-left: auto; margin-right: auto; }

/* ═══ Пространства: прокрутка переключает сервер ═══ */

.spaces { position: relative; z-index: 1; height: 420vh; }
.spaces-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.spaces-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }

/* Шаги лежат стопкой в одной ячейке сетки: высота — по самому длинному,
   и текст не наезжает на прогресс при смене шага */
.sp-steps { display: grid; margin-top: 4px; }
.sp-step { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 500ms ease, transform 600ms var(--ease), filter 500ms ease; pointer-events: none; }
.sp-step.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.sp-step .sec-title { margin-top: 18px; }
.sp-step .note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.82rem; color: var(--tint); }

.sp-progress { display: flex; gap: 8px; margin-top: 36px; list-style: none; }
.sp-progress li { flex: 1; }
.sp-progress button {
    width: 100%; display: flex; flex-direction: column; gap: 9px; padding: 0; text-align: left;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); background: none; border: 0; transition: color 300ms ease;
}
.sp-progress button::before {
    content: ''; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--tint) calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.12) 0);
}
.sp-progress button[aria-current='step'] { color: #fff; }
.sp-progress button[aria-current='step']::before { box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 60%, transparent); }

.ow--spaces { height: 540px; }
.ow--spaces .ow-search .lbl { display: none; }

/* ═══ Остров: витрина ═══ */

.isl-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }

.isl-modes { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.mode-pill {
    position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--tint);
    box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--tint) 70%, transparent);
    opacity: 0; pointer-events: none;
    transition: transform 520ms cubic-bezier(0.3, 1.25, 0.5, 1), width 520ms cubic-bezier(0.3, 1.25, 0.5, 1), height 300ms ease, opacity 300ms ease;
}
.mode-pill.ready { opacity: 1; }
.mode-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    font-size: 0.84rem; font-weight: 600; color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); border-radius: 999px;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms var(--spring);
}
.mode-chip i { font-size: 0.78rem; }
.mode-chip:hover { color: #fff; transform: translateY(-2px); }
.mode-chip { position: relative; z-index: 1; }
.mode-chip[aria-pressed='true'] { color: var(--on-accent); background: var(--tint); border-color: transparent; }
/* Когда подложка готова, фон рисует она, а не сама кнопка */
.isl-modes:has(.mode-pill.ready) .mode-chip[aria-pressed='true'] { background: transparent; }

.isl-points { display: grid; gap: 14px; margin-top: 34px; list-style: none; }
.isl-points li { display: flex; gap: 14px; font-size: 0.92rem; color: var(--text-secondary); }
.isl-points i {
    width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: var(--tint); background: color-mix(in srgb, var(--tint) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent); border-radius: 10px;
}
.isl-points b { color: #fff; font-weight: 600; }

/* «Экран»: верх монитора с вырезом-островом */
.isl-screen {
    position: relative; height: 430px; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; padding-top: 26px;
    background:
        radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 70%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line-strong); border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 100px -50px color-mix(in srgb, var(--tint) 45%, transparent);
}
/* Размытый «рабочий стол» под островом: показывает, что остров над контентом */
.isl-screen::after {
    content: ''; position: absolute; left: 7%; right: 7%; top: 120px; bottom: -40px; z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 24px 26px / 40% 10px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)) 24px 50px / 62% 10px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035)) 24px 92px / 50% 54px no-repeat,
        linear-gradient(color-mix(in srgb, var(--tint) 30%, transparent), color-mix(in srgb, var(--tint) 30%, transparent)) right 24px top 166px / 34% 40px no-repeat,
        rgba(10, 10, 15, 0.7);
    border: 1px solid var(--line); border-radius: 20px;
}

.big-island { position: relative; z-index: 2; font-size: 1.22rem; cursor: pointer; }
.big-island .island-bar { height: 50px; padding: 0 8px; }
.big-island .island-main { height: 42px; padding: 0 16px; cursor: pointer; }
.big-island .isl-text b { font-size: 0.86rem; }
.big-island .isl-text span { font-size: 0.78rem; }
.big-island .isl-name { font-size: 0.88rem; }
.big-island .isl-btn { width: 30px; height: 30px; font-size: 0.78rem; }
.big-island.island { border-radius: 26px; }

/* Как у меню острова: карточка показана блоком своей ширины, а размер
   капсулы вокруг неё анимирует home.js */
.isl-expand { display: none; }
.big-island[data-open='true'] .isl-expand, .big-island[data-state='closing'] .isl-expand { display: block; }
.big-island[data-state='closing'] .isl-expand { opacity: 0; transition: opacity 220ms ease; }
.big-island[data-open='true'] { border-radius: 30px; }
.isl-card { width: min(400px, 78vw); padding: 4px 18px 18px; font-size: 0.86rem; }
/* Содержимое карточки проявляется при раскрытии и при смене режима */
.big-island[data-open='true'] .isl-card > * { animation: cardIn 520ms var(--ease) both; animation-delay: calc(110ms + var(--i, 0) * 60ms); }
.big-island[data-open='true'] .isl-card > :nth-child(2) { --i: 1; }
.big-island[data-open='true'] .isl-card > :nth-child(3) { --i: 2; }
.big-island[data-open='true'] .isl-card > :nth-child(4) { --i: 3; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.isl-card .row { display: flex; align-items: center; gap: 12px; }
.isl-card .msg { margin-top: 12px; padding: 10px 14px; color: rgba(255, 255, 255, 0.86); background: rgba(255, 255, 255, 0.07); border-radius: 14px 14px 14px 5px; }
.isl-reply {
    display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 7px 7px 7px 14px;
    color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
}
.isl-reply span { flex: 1; }
.isl-reply b { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--on-accent); background: var(--tint); border-radius: 10px; font-size: 0.75rem; }
.isl-people { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }
.isl-people span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.65); }
.isl-ctrls { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.isl-ctrls b { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; background: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.isl-ctrls b.danger { background: #e0393e; }
.isl-feed-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.isl-feed-row:first-child { border-top: 0; }
.isl-feed-row div { flex: 1; min-width: 0; line-height: 1.3; }
.isl-feed-row small { display: block; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }
.isl-feed-row time { font-family: var(--mono); font-size: 0.68rem; color: rgba(255, 255, 255, 0.4); }
.isl-share { margin-top: 10px; aspect-ratio: 16 / 8; border-radius: 14px; background: linear-gradient(135deg, #2a3a7a, #5b3f9e); position: relative; overflow: hidden; }
.isl-share::before { content: ''; position: absolute; inset: 14px 14px auto; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); box-shadow: 0 22px 0 rgba(255, 255, 255, 0.15), 0 44px 0 rgba(255, 255, 255, 0.12); width: 55%; }
.isl-share span { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 0.7rem; background: rgba(0, 0, 0, 0.55); border-radius: 999px; }

.isl-hint { position: absolute; z-index: 2; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 0.78rem; color: var(--text-muted); }

/* ═══ Ctrl K ═══ */

.pal-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }

.keys { display: grid; gap: 10px; margin-top: 32px; }
.keys div { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.keys .combo { display: inline-flex; gap: 4px; min-width: 128px; }
.keys .kbd { font-size: 0.74rem; padding: 3px 8px; }

.pal {
    position: relative; overflow: hidden;
    background: rgba(12, 12, 18, 0.9); border: 1px solid var(--line-strong); border-radius: 22px;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint) 14%, transparent), 0 50px 110px -40px color-mix(in srgb, var(--tint) 50%, transparent), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.pal-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pal-input > i { color: var(--tint); }
.pal-input input {
    flex: 1; min-width: 0; padding: 0; font: inherit; font-size: 1.05rem; color: #fff;
    background: none; border: 0; outline: none;
}
.pal-input input::placeholder { color: var(--text-muted); }
.pal-list { max-height: 360px; overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.pal-group { padding: 10px 12px 6px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.pal-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px;
    font-size: 0.9rem; color: var(--text-secondary); border-radius: 12px; cursor: pointer;
}
.pal-item .ico {
    width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; color: var(--text-secondary); background: rgba(255, 255, 255, 0.06); border-radius: 9px;
}
.pal-item small { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); }
.pal-item mark { color: #fff; background: none; text-decoration: underline; text-decoration-color: var(--tint); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pal-item[aria-selected='true'] { color: #fff; background: color-mix(in srgb, var(--tint) 15%, transparent); }
.pal-item[aria-selected='true'] .ico { color: var(--on-accent); background: var(--tint); }
.pal-empty { padding: 28px 12px; text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; font-size: 0.72rem; color: var(--text-muted); border-top: 1px solid var(--line); }
.pal-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Глобальная палитра — тот же компонент в <dialog> */
.pal-dialog { width: min(640px, calc(100vw - 32px)); max-width: none; margin: 14vh auto auto; padding: 0; color: inherit; background: transparent; border: 0; overflow: visible; }
.pal-dialog::backdrop { background: rgba(4, 4, 8, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pal-dialog[open] .pal { animation: palIn 300ms var(--ease); }
@keyframes palIn { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ═══ Док приложений ═══ */

.apps { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 56px; }

.app-win {
    --c: var(--tint);
    width: min(960px, 100%); display: flex; flex-direction: column; overflow: hidden;
    background: rgba(12, 12, 18, 0.9); border: 1px solid var(--line-strong); border-radius: 26px;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent), 0 60px 120px -50px color-mix(in srgb, var(--c) 55%, transparent);
    transition: box-shadow 700ms ease;
}
.app-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.76rem; color: var(--text-muted); }
.app-bar .lights { display: flex; gap: 6px; margin-right: 8px; }
.app-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-bar .lights i:first-child { background: #ff5f57; }
.app-bar .lights i:nth-child(2) { background: #febc2e; }
.app-bar .lights i:nth-child(3) { background: #28c840; }
.app-bar b { color: #fff; font-weight: 600; }

.app-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 340px; }
.app-panel[hidden] { display: none; }
.app-panel.enter .app-info, .app-panel.enter .app-demo > * { animation: panelIn 520ms var(--ease) both; }
.app-panel.enter .app-demo > * { animation-delay: 80ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.app-info { display: flex; flex-direction: column; padding: 36px 36px 32px; }
.app-info .app-ico-lg {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; border-radius: 16px;
    background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 45%, #000));
    box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--c) 70%, transparent);
}
.app-info h3 { margin-top: 20px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.app-info p { margin-top: 12px; color: var(--text-secondary); text-wrap: pretty; }
.app-info .more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--c); }
.app-info .more:hover { text-decoration: underline; text-underline-offset: 4px; }

.app-demo {
    display: flex; flex-direction: column; justify-content: center; padding: 28px;
    background: radial-gradient(80% 80% at 70% 30%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), rgba(255, 255, 255, 0.02);
    border-left: 1px solid var(--line);
}

/* Большой док: увеличение «рыбьим глазом» считает home.js (--s) */
.big-dock {
    position: relative; display: flex; align-items: flex-end; gap: 8px; height: 78px; padding: 10px 12px;
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 26px;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.app-ico {
    --s: 1; position: relative; flex-shrink: 0;
    width: calc(56px * var(--s)); height: calc(56px * var(--s));
    display: flex; align-items: center; justify-content: center;
    font-size: calc(1.3rem * var(--s)); color: #fff;
    background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 42%, #000));
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: calc(16px * var(--s));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(0, 0, 0, 0.8);
    transition: width 140ms ease-out, height 140ms ease-out, font-size 140ms ease-out, border-radius 140ms ease-out, transform 300ms var(--spring);
}
.app-ico:active { transform: translateY(-10px); }
.app-ico[aria-selected='true']::after { content: ''; position: absolute; bottom: -8px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.app-ico .tip {
    position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
    padding: 5px 10px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; color: #fff;
    background: rgba(10, 10, 15, 0.92); border: 1px solid var(--line-strong); border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease;
}
.app-ico:hover .tip, .app-ico:focus-visible .tip { opacity: 1; transform: translateX(-50%); }
.dock-sep { width: 1px; height: 44px; margin: 0 4px 6px; background: rgba(255, 255, 255, 0.14); }

/* ═══ Мини-демо внутри окна приложения ═══
   Хореография включается классом .play у активной панели (ставит home.js
   чуть позже показа), а не наведением — демо проигрывается само. */

.pv { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-radius: 16px; }
.pv-pad { padding: 12px; }

.pv-voice { display: flex; flex-direction: column; overflow: hidden; }
.pv-voice-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; }
.pv-voice-head .ico { color: var(--c); }
.pv-voice-head .who { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 0.72rem; color: var(--text-muted); }
.pv-voice-head .live { width: 6px; height: 6px; border-radius: 50%; background: #2ed573; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
.pv-person { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 8px; background: rgba(0, 0, 0, 0.35); border-radius: 12px; transition: box-shadow 320ms ease, transform 320ms var(--spring); }
.pv-person.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, #2ed573 50%, transparent); }
.pv-person .nm { font-size: 0.68rem; color: var(--text-muted); }
.play .pv-person { transform: translateY(-2px); }
.pv-controls { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.pv-ctl { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); font-size: 0.72rem; }
.pv-ctl.hang { background: #e0393e; color: #fff; }
.pv-note { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--text-muted); }
.pv-note i { color: var(--c); }

.pv-video { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 230px; }
.pv-tile { position: relative; border-radius: 12px; overflow: hidden; transition: box-shadow 300ms ease; }
.pv-tile.main { grid-row: span 2; }
.pv-tile .lbl { position: absolute; left: 8px; bottom: 7px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; font-size: 0.64rem; background: rgba(0, 0, 0, 0.55); border-radius: 6px; }
.pv-tile .lbl .isl-rec { width: 6px; height: 6px; }
.pv-tile.main::before { content: ''; position: absolute; inset: 16px 16px auto; height: 10px; width: 50%; border-radius: 4px; background: rgba(255, 255, 255, 0.28); box-shadow: 0 20px 0 rgba(255, 255, 255, 0.16), 0 40px 0 rgba(255, 255, 255, 0.12), 0 70px 0 18px rgba(255, 255, 255, 0.08); }
.pv-tile.talk { box-shadow: 0 0 0 2px #2ed573; }
.t1 { background: linear-gradient(135deg, #2a3a7a, #5b3f9e); }
.t2 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.75), rgba(13, 148, 136, 0.75)); }
.t3 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.75), rgba(234, 88, 12, 0.75)); }
.pv-tile .face { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); }

.pv-player { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: radial-gradient(80% 90% at 30% 20%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), linear-gradient(135deg, #1d1d28, #07070c); color: #fff; font-size: 1.3rem; }
.pv-player i { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.14); border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 400ms var(--spring); }
.play .pv-player i { transform: scale(1.12); }
.pv-viewers { position: absolute; right: 10px; top: 10px; display: flex; }
.pv-viewers .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px #111; }
.pv-bar { height: 4px; margin-top: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.pv-bar i { display: block; width: 30%; height: 100%; background: var(--c); transition: width 2.6s cubic-bezier(0.4, 0, 0.2, 1); }
.play .pv-bar i { width: 72%; }
.pv-sync { margin-top: 9px; display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--text-muted); }

.pv-canvas { position: relative; height: 230px; overflow: hidden; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); background-size: 16px 16px; }
.pv-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-canvas path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.play .pv-canvas path { animation: drawStroke 1.6s var(--ease) forwards; }
.play .pv-canvas path:nth-child(2) { animation-delay: 300ms; }
.play .pv-canvas path:nth-child(3) { animation-delay: 650ms; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
.pv-cursor { position: absolute; display: flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 700; transition: transform 1.4s var(--ease); }
.pv-cursor i { font-size: 0.9rem; }
.pv-cursor span { padding: 1px 6px; border-radius: 5px; color: #0b0b10; }
.pv-cursor.c1 { left: 56%; top: 26%; color: #f87171; }
.pv-cursor.c1 span { background: #f87171; }
.pv-cursor.c2 { left: 22%; top: 62%; color: #a78bfa; }
.pv-cursor.c2 span { background: #a78bfa; }
.play .pv-cursor.c1 { transform: translate(40px, 30px); }
.play .pv-cursor.c2 { transform: translate(-20px, -40px); }

.pv-link { padding: 14px; }
.pv-link-url { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 0.78rem; background: rgba(0, 0, 0, 0.35); border: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); border-radius: 12px; }
.pv-link-url i { color: var(--c); }
.pv-link-url b { margin-left: auto; padding: 3px 9px; font-family: inherit; font-size: 0.68rem; color: var(--on-accent); background: var(--c); border-radius: 7px; }
.pv-guests { display: grid; gap: 8px; margin-top: 12px; }
.pv-guest { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 0.78rem; background: rgba(255, 255, 255, 0.04); border-radius: 11px; opacity: 0; transform: translateX(-10px); transition: opacity 400ms ease, transform 500ms var(--spring); }
.pv-guest small { margin-left: auto; font-size: 0.66rem; color: var(--text-muted); }
.play .pv-guest { opacity: 1; transform: none; }
.play .pv-guest:nth-child(2) { transition-delay: 450ms; }
.play .pv-guest:nth-child(3) { transition-delay: 900ms; }

.pv-cmd { display: flex; align-items: center; gap: 9px; padding: 11px 14px; font-family: var(--mono); font-size: 0.82rem; }
.pv-cmd .slash { color: var(--c); }
.pv-cmd .arg { color: var(--text-muted); }
.pv-cmd::after { content: ''; width: 7px; height: 1em; margin-left: -3px; background: var(--c); opacity: 0.75; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 0.75; } 50%, 100% { opacity: 0; } }
.pv-bot-reply { display: flex; gap: 10px; margin-top: 12px; opacity: 0; transform: translateY(10px); transition: opacity 400ms ease 300ms, transform 500ms var(--spring) 300ms; }
.play .pv-bot-reply { opacity: 1; transform: none; }
.pv-bot-badge { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c); color: #06170f; font-weight: 800; font-size: 0.7rem; border-radius: 9px; }
.pv-bot-body { flex: 1; padding: 11px 14px; font-size: 0.8rem; }
.pv-bot-body .tag { margin-left: 6px; padding: 1px 6px; font-size: 0.58rem; font-weight: 700; color: #06170f; background: var(--c); border-radius: 4px; vertical-align: 1px; }
.pv-bot-body .row { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-muted); }
.pv-bot-body .row b { color: #fff; font-family: var(--mono); font-weight: 500; }

.pv-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pv-pack { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 2rem; border-radius: 16px; animation: floaty 5s ease-in-out infinite; }
.pv-pack:nth-child(2) { animation-delay: 0.5s; }
.pv-pack:nth-child(3) { animation-delay: 1s; }
.pv-pack:nth-child(4) { animation-delay: 1.5s; }
.play .pv-pack { animation-duration: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.p1 { background: linear-gradient(135deg, #ec4899, #e11d48); }
.p2 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.p3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.p4 { background: linear-gradient(135deg, #10b981, #0d9488); }
.pv-sticker-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; font-size: 0.8rem; color: var(--text-secondary); }
.pv-sticker-row .big { font-size: 1.8rem; animation: floaty 2.4s ease-in-out infinite; }

.pv-map { position: relative; height: 230px; overflow: hidden; }
.pv-map-grid {
    position: absolute; inset: -10%; opacity: 0.35;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--c) 45%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--c) 45%, transparent) 1px, transparent 1px);
    background-size: 26px 26px; transition: transform 2s var(--ease);
}
.play .pv-map-grid { transform: scale(1.12) translate(-10px, 6px); }
.pv-map-road { position: absolute; inset: 0; }
.pv-map-road path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 6; stroke-linecap: round; }
.pv-pin { position: absolute; left: 44%; top: 36%; color: var(--c); font-size: 1.6rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); transition: transform 600ms var(--spring); }
.play .pv-pin { transform: translateY(-10px) scale(1.15); }
.pv-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 36px; height: 12px; margin-left: -18px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: pinPulse 2s ease-out infinite; }
@keyframes pinPulse { from { opacity: 0.8; transform: scale(0.4); } to { opacity: 0; transform: scale(1.8); } }
.pv-chip { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 0.76rem; background: rgba(8, 8, 12, 0.82); border: 1px solid var(--line-strong); border-radius: 13px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pv-chip small { margin-left: auto; font-family: var(--mono); color: var(--c); }
.pv-score { position: absolute; right: 12px; top: 12px; padding: 4px 11px; font-size: 0.72rem; font-weight: 700; color: #06170f; background: var(--c); border-radius: 999px; }

/* ═══ Цифры точками: факты о платформе ═══ */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.fact {
    position: relative; padding: 30px 28px 28px; overflow: hidden;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 24px;
}
.fact .dm { color: var(--tint); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tint) 45%, transparent)); }
.fact h3 { margin-top: 26px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.fact p { margin-top: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.fact-fallback { font-family: var(--mono); font-size: 3.4rem; font-weight: 700; line-height: 1; }

/* ═══ Платформы ═══ */

.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; }
.plat {
    display: flex; flex-direction: column; padding: 24px 22px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 22px;
    transition: border-color 250ms ease, transform 300ms var(--spring), background 250ms ease;
}
.plat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint) 40%, transparent); background: rgba(255, 255, 255, 0.05); }
.plat-ico { font-size: 1.6rem; color: var(--tint); }
.plat h3 { margin-top: 18px; font-size: 1.05rem; font-weight: 700; }
.plat p { flex: 1; margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); }
.plat a.go { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600; color: #fff; }
.plat a.go i { color: var(--tint); transition: transform 200ms ease; }
.plat a.go:hover i { transform: translateX(3px); }
.plat .soon { margin-top: 18px; align-self: flex-start; padding: 3px 10px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 999px; }
.plat-note { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.86rem; color: var(--text-muted); text-align: center; }
.plat-note i { color: var(--tint); }

/* ═══ Финал ═══ */

.finale { position: relative; z-index: 1; padding: 150px 0 170px; text-align: center; overflow: hidden; }
.rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.rings span {
    position: absolute; left: 50%; top: 50%; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent);
    transform: translate(-50%, -50%) rotateX(68deg);
    animation: ringSpin var(--d) linear infinite;
}
.rings span::after {
    content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
    background: var(--tint); box-shadow: 0 0 16px var(--tint);
}
.rings span:nth-child(1) { width: 520px; height: 520px; --d: 40s; }
.rings span:nth-child(2) { width: 760px; height: 760px; --d: 60s; animation-direction: reverse; }
.rings span:nth-child(3) { width: 1000px; height: 1000px; --d: 90s; }
@keyframes ringSpin { from { transform: translate(-50%, -50%) rotateX(68deg) rotate(0); } to { transform: translate(-50%, -50%) rotateX(68deg) rotate(360deg); } }
.finale h2 { margin-top: 18px; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.finale p { max-width: 540px; margin: 22px auto 0; color: var(--text-secondary); }
.finale .hero-actions { margin-top: 36px; }
.finale .beta-note { margin-top: 26px; font-size: 0.8rem; color: var(--text-muted); }

/* ═══ Движение: вход, прокрутка, отклик на мышь ═══

   Всё ниже — только transform / opacity / filter, чтобы браузер вёл
   анимации на композиторе. Значения, зависящие от прокрутки и мыши,
   пишет home.js в одном кадре (rAF) и только пока что-то меняется. */

/* Плавная прокрутка Lenis: родное smooth из site.css с ней конфликтует */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* Первый экран: космос проявляется, остров падает сверху на пружине,
   слова заголовка поднимаются из размытия по одному */
.js .space-bg { animation: spaceIn 1.8s ease both; }
@keyframes spaceIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.js .topbar .island { animation: islandDrop 1.1s cubic-bezier(0.3, 1.35, 0.45, 1) 150ms both; }
@keyframes islandDrop {
    from { opacity: 0; transform: translateY(-70px) scale(0.55); filter: blur(8px); }
    60%  { opacity: 1; filter: none; }
    to   { opacity: 1; transform: none; filter: none; }
}
.js .topbar .logo, .js .topbar-actions { animation: introFade 900ms ease 500ms both; }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

.hero h1 { perspective: 900px; }
.hero h1 .w { display: inline-block; transform-origin: 50% 90%; }
.js .hero h1 .w { animation: wordUp 1.15s var(--ease) both; animation-delay: calc(420ms + var(--i) * 95ms); }
/* У градиентного слова своя бесконечная анимация переливания — сохраняем её */
.js .hero h1 .w.grad-text {
    animation: wordUp 1.15s var(--ease) both, gradShift 8s ease-in-out infinite;
    animation-delay: calc(420ms + var(--i) * 95ms), 1.6s;
}
@keyframes wordUp {
    from { opacity: 0; transform: translateY(0.5em) rotateX(-75deg); filter: blur(14px); }
    to   { opacity: 1; transform: none; filter: none; }
}

.js [data-intro] { animation: introUp 1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes introUp {
    from { opacity: 0; transform: translateY(26px); filter: blur(10px); }
    to   { opacity: 1; transform: none; filter: none; }
}
/* Подсказке «листай» нужен свой transform (центровка) — у неё только прозрачность */
.js .scroll-cue[data-intro] { animation-name: introFade; }

/* Параллакс первого экрана: копию сдвигает и гасит home.js */
.hero-copy, #hero-canvas { will-change: transform, opacity; }

/* Появление при прокрутке: мягче, с размытием и лёгким масштабом */
.js .home .reveal, .home.js .reveal {
    opacity: 0; transform: translateY(44px) scale(0.98); filter: blur(10px);
    transition: opacity 900ms ease, transform 1.15s var(--ease), filter 900ms ease;
}
.js .home .reveal.visible { opacity: 1; transform: none; filter: none; }

/* Заголовки секций — по словам (слова раскладывает home.js) */
.sw { display: inline-block; }
.js .reveal .sw, .js .sp-step .sw {
    opacity: 0; transform: translateY(0.55em) rotate(2deg); filter: blur(8px);
    transition: opacity 700ms ease, transform 1s var(--ease), filter 700ms ease;
    transition-delay: calc(140ms + var(--i) * 65ms);
}
.js .reveal.visible .sw, .js .sp-step.is-on .sw { opacity: 1; transform: none; filter: none; }

/* Линия у подзаголовка-«кикера» прочерчивается */
.js .reveal .kicker::before { transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease) 200ms; }
.js .reveal.visible .kicker::before { transform: none; }

/* Свечение за курсором */
.cursor-glow {
    position: fixed; left: 0; top: 0; z-index: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
    border-radius: 50%; pointer-events: none; opacity: 0;
    background: radial-gradient(circle, color-mix(in srgb, var(--tint) 16%, transparent), transparent 62%);
    transition: opacity 600ms ease; will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* 3D-наклон за курсором: rotate ставит home.js, глубину даёт perspective
   родителя. Отдельное свойство rotate не спорит с transform появления */
.spaces-grid, .isl-grid, .pal-grid, .apps, .facts, .platforms { perspective: 1400px; }
[data-tilt] { will-change: rotate; }

/* Пятно света на карточке под курсором */
[data-spot] { position: relative; }
[data-spot]::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--tint) 14%, transparent), transparent 60%);
    opacity: var(--spot, 0); transition: opacity 400ms ease;
}
.app-win[data-spot]::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--c) 12%, transparent), transparent 60%); }

/* Магнитные кнопки тянутся к курсору — через translate, не трогая transform наведения */
[data-magnet] { will-change: translate; }

/* Блик пробегает по главной кнопке: при наведении и сам раз в несколько секунд */
.home .btn.shine { position: relative; overflow: hidden; isolation: isolate; }
.home .btn.shine::after {
    content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
    transform: translateX(-130%); animation: shine 5.5s ease-in-out 2.4s infinite;
}
.home .btn.shine:hover::after { animation: shine 900ms ease-out; }
@keyframes shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }

/* Меню острова: пункты проявляются лесенкой. Именно анимацией, а не
   переходом: элемент появляется из display: none, и переход бы не стартовал */
.island[data-open='true'] .island-links a, .island[data-open='true'] .island-menu-foot {
    animation: menuIn 480ms var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 30ms);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Пока остров раскрыт в герое, обёртка плавно возвращает обычный масштаб */
.island-wrap.easing { transition: transform 520ms var(--ease); }

/* Смена пространства в окне: каналы каскадом, обложка — из размытия */
.ow-list.swap > * { animation: listIn 560ms var(--ease) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes listIn { from { opacity: 0; transform: translateX(-12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ow-cover.swap b, .ow-cover.swap small, .ow-head.swap .ow-crumbs { animation: introUp 600ms var(--ease) both; }
.ow-cover.swap small { animation-delay: 80ms; }
.ow.swap { animation: winPulse 700ms var(--ease); }
@keyframes winPulse { 30% { transform: scale(0.988); } }

/* Док: выбранная иконка подпрыгивает, как запуск приложения на Mac */
.app-ico.bounce { animation: dockBounce 760ms cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes dockBounce {
    0%, 100% { translate: 0 0; }
    28% { translate: 0 -20px; }
    52% { translate: 0 0; }
    72% { translate: 0 -7px; }
}

/* Цифры точками зажигаются по одной, как светодиодная матрица */
.fact .dm circle.off { opacity: 0.09; }
.js .fact.reveal .dm circle.on {
    opacity: 0.08; transition: opacity 260ms ease;
    transition-delay: calc(260ms + var(--x) * 55ms + var(--y) * 22ms);
}
.js .fact.reveal.visible .dm circle.on { opacity: 1; }

/* Финал: кольца разворачиваются из центра, когда секция видна */
.js .finale .rings { opacity: 0; transform: scale(0.6); transition: opacity 1.4s ease, transform 1.8s var(--ease); }
.js .finale.in .rings { opacity: 1; transform: none; }

/* Платформы: иконка оживает при наведении */
.plat-ico { transition: transform 500ms cubic-bezier(0.3, 1.4, 0.5, 1); }
.plat:hover .plat-ico { transform: translateY(-3px) rotate(-8deg) scale(1.12); }

/* ═══ Адаптив ═══ */

@media (max-width: 1100px) {
    .platforms { grid-template-columns: repeat(3, 1fr); }
    /* Колонка чата в окне «Пространств» узкая — поиск наезжал на название канала */
    .ow--spaces .ow-search { display: none; }
    .ow-rail { width: 230px; }
}

@media (max-width: 960px) {
    .spaces-grid, .isl-grid, .pal-grid { grid-template-columns: 1fr; gap: 36px; }
    .spaces-grid { gap: 22px; }
    .sp-step .sec-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .sp-step .sec-lead { font-size: 0.95rem; margin-top: 12px; }
    .sp-progress { margin-top: 10px; }
    .ow--spaces { height: 380px; }
    .app-panel { grid-template-columns: 1fr; }
    .app-demo { border-left: 0; border-top: 1px solid var(--line); }
    .facts { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .sec { padding: 96px 0; }
    /* Остров по центру, как и его место в герое — иначе при полёте он
       уезжал бы вбок. Логотип выносим из сетки, чтобы не сдвигать центр. */
    .topbar-actions { display: none; }
    .topbar .logo { position: absolute; left: 16px; top: 19px; font-size: 0; gap: 0; }
    .island-search kbd { display: none; }
    .island-menu > div { width: min(360px, calc(100vw - 32px)); }
    .island-links { grid-template-columns: 1fr; }

    .ow { height: 470px; padding: 10px; }
    .ow .ow-dock { display: none; }
    .ow--spaces { height: auto; }
    .ow--spaces .ow-rail { width: 100%; }
    .ow--spaces .ow-stage, .ow--spaces .ow-keytoast { display: none; }
    .ow--spaces .ow-list { max-height: 170px; }

    .isl-screen { height: 380px; }
    .big-island { font-size: 1rem; }
    .big-dock { max-width: 100%; overflow-x: auto; height: 82px; gap: 6px; scrollbar-width: none; }
    .big-dock::-webkit-scrollbar { display: none; }
    .app-ico { --s: 0.86 !important; }
    .app-ico .tip { display: none; }
    .dock-sep { display: none; }
    .app-info { padding: 26px 22px; }
    .app-info h3 { font-size: 1.4rem; }
    .app-demo { padding: 18px; }
    .platforms { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { width: 100%; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .platforms { grid-template-columns: 1fr; }
    .keys .combo { min-width: 104px; }
}

/* ═══ Доступность: отключение движения ═══ */

@media (prefers-reduced-motion: reduce) {
    :root { transition: none; }
    .space-bg .aurora, .space-bg .nebula, .rings span { animation: none; }
    .island-wrap { transform: none !important; }
    .isl-in, .bub-row.enter, .bub-row.own.enter, .app-panel.enter .app-info, .app-panel.enter .app-demo > *,
    .pal-dialog[open] .pal, .bub-react { animation: none; }
    .scroll-cue i, .isl-eq i, .speaking::after, .pv-pack, .pv-sticker-row .big, .pv-cmd::after, .pv-pin::after, .isl-rec, .isl-progress { animation: none; }
    .isl-eq i { height: 9px; }
    .sp-step { transition: opacity 200ms ease; transform: none; filter: none; }
    .play .pv-canvas path { animation: none; stroke-dashoffset: 0; }
    .pv-canvas path { stroke-dashoffset: 0; }
    .isl-live, .ow, .ow-cover, .app-ico, .mode-chip, .plat, .pv-guest, .pv-bot-reply, .pv-bar i, .pv-cursor, .pv-pin, .pv-map-grid { transition: none; }

    /* Вход, параллакс и отклик на мышь — целиком выключены */
    .js .space-bg, .js .topbar .island, .js .topbar .logo, .js .topbar-actions,
    .js .hero h1 .w, .js .hero h1 .w.grad-text, .js [data-intro], .home .btn.shine::after,
    .ow-list.swap > *, .ow-cover.swap b, .ow-cover.swap small, .ow-head.swap .ow-crumbs, .ow.swap, .app-ico.bounce,
    .island[data-open='true'] .island-links a, .island[data-open='true'] .island-menu-foot,
    .big-island[data-open='true'] .isl-card > *, .isl-in.isl-out { animation: none; }
    .js .home .reveal, .js .reveal .sw, .js .sp-step .sw, .js .reveal .kicker::before,
    .js .fact.reveal .dm circle.on, .js .finale .rings, .plat-ico {
        opacity: 1; transform: none; filter: none; transition: none;
    }
    .mode-pill { display: none; }
    .cursor-glow { display: none; }
}
