/* Лендинг Sinabam. Цвета и формы — из приложения (Sinabam/src/styles.css):
   те же акценты тем, панели, карточки, «brand-mark» с тремя полосками. */

:root {
  --accent: #7c3aed;
  --accent-2: #6366f1;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", monospace;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root, :root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0b0c13;
  --panel: rgba(16, 17, 25, .72);
  --panel-solid: #10111a;
  --card: rgba(255, 255, 255, .04);
  --card-hover: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #f7f7fb;
  --text-2: #a6a8b5;
  --text-3: #666a79;
  --shadow: 0 30px 90px rgba(0, 0, 0, .5);
  --grid: rgba(255, 255, 255, .045);
}

:root[data-mode="light"] {
  color-scheme: light;
  --bg: #f3f4f8;
  --bg-2: #eceef5;
  --panel: rgba(255, 255, 255, .78);
  --panel-solid: #ffffff;
  --card: rgba(20, 20, 30, .035);
  --card-hover: rgba(20, 20, 30, .065);
  --border: rgba(20, 20, 30, .09);
  --border-strong: rgba(20, 20, 30, .16);
  --text: #171821;
  --text-2: #565968;
  --text-3: #8c8f9c;
  --shadow: 0 30px 80px rgba(30, 35, 60, .16);
  --grid: rgba(20, 20, 30, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img, svg, canvas { display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
kbd {
  font-family: var(--mono); font-size: .78em; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2);
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.kicker { color: var(--accent); font-size: 11px; letter-spacing: 2.4px; font-weight: 800; }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, color-mix(in srgb, var(--accent) 60%, #fff) 70%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: -220% 0; } }

/* --- brand-mark: как в панели разделов приложения --- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 19px; font-weight: 750; letter-spacing: -.5px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px var(--accent-soft);
  transition: background .5s ease;
}
.brand-mark span { width: 3px; border-radius: 5px; background: #fff; opacity: .95; animation: eq 1.6s ease-in-out infinite; }
.brand-mark span:nth-child(1) { height: 11px; }
.brand-mark span:nth-child(2) { height: 19px; animation-delay: -.5s; }
.brand-mark span:nth-child(3) { height: 14px; animation-delay: -1s; }
.brand-mark.sm { width: 30px; height: 30px; border-radius: 10px; }
.brand-mark.sm span:nth-child(1) { height: 9px; } .brand-mark.sm span:nth-child(2) { height: 15px; } .brand-mark.sm span:nth-child(3) { height: 11px; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }

/* --- Кнопки --- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 13px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { box-shadow: 0 18px 44px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { border: 1px solid var(--border-strong); background: var(--card); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--card-hover); border-color: var(--accent); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; gap: 7px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-xl { height: 62px; padding: 0 26px; border-radius: 17px; font-size: 16px; }
.btn-block { width: 100%; height: 52px; }
.btn-ico { width: 24px !important; height: 24px !important; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-title { font-size: 16px; }
.btn-meta { font-size: 12px; font-weight: 600; opacity: .78; margin-top: 3px; }
.btn-size { font-weight: 600; opacity: .75; font-size: 13px; }
.btn-shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 48%, transparent 66%);
  transform: translateX(-120%); animation: shine 4.2s ease-in-out infinite 1.5s;
}
@keyframes shine { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.icon-btn {
  height: 36px; min-width: 36px; padding: 0 9px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-2); border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--card-hover); color: var(--text); }
.icon-btn.sm { height: 30px; min-width: 30px; padding: 0 6px; border-radius: 9px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.kbd-hint { border-color: var(--border); }
.kbd-hint kbd { font-size: 11px; }

/* --- Полоса прокрутки страницы --- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

/* --- Шапка --- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: padding .35s var(--ease); }
.nav-inner {
  width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 20px;
  padding: 8px 10px 8px 14px; border-radius: 18px; border: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled { padding: 8px 0; }
.nav.scrolled .nav-inner {
  background: var(--panel); border-color: var(--border); box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14.5px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--card-hover); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.if-light { display: none; }
:root[data-mode="light"] .if-light { display: block; }
:root[data-mode="light"] .if-dark { display: none; }

.theme-pop-wrap { position: relative; }
.theme-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 236px; padding: 14px; border-radius: 16px;
  background: var(--panel-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: popIn .22s var(--spring);
}
.theme-pop-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; letter-spacing: .3px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.swatch {
  aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--s1), var(--s2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .25s var(--spring), box-shadow .2s ease;
}
.swatch:hover { transform: scale(1.14); }
.swatch.active { box-shadow: 0 0 0 2px var(--panel-solid), 0 0 0 4px var(--s1); }

/* --- Первый экран --- */
.hero { position: relative; min-height: 100vh; padding: 132px 0 80px; overflow: hidden; display: flex; align-items: center; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  animation: drift 22s ease-in-out infinite alternate; will-change: transform;
}
.aurora i:nth-child(1) { --c: color-mix(in srgb, var(--accent) 55%, transparent); left: -18vmax; top: -16vmax; }
.aurora i:nth-child(2) { --c: color-mix(in srgb, var(--accent-2) 45%, transparent); right: -22vmax; top: -6vmax; animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { --c: color-mix(in srgb, var(--accent) 30%, transparent); left: 30%; top: 30vmax; animation-duration: 32s; animation-delay: -14s; }
:root[data-mode="light"] .aurora i { opacity: .35; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(.95); }
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }

.pill-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: border-color .2s ease, color .2s ease;
}
.pill-badge:hover { border-color: var(--accent); color: var(--text); }
.pill-badge svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.pill-badge:hover svg { transform: translateX(3px); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #22c55e; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-title { margin-top: 22px; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -2.6px; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 560px; line-height: 1.6; }
.rotator { display: inline-flex; position: relative; color: var(--text); font-weight: 700; }
.rotator-word { display: inline-block; transition: opacity .35s ease, transform .45s var(--ease), filter .35s ease; }
.rotator-word.out { opacity: 0; transform: translateY(-60%); filter: blur(4px); }
.rotator-word.in { opacity: 0; transform: translateY(60%); filter: blur(4px); transition: none; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 7px; border-radius: 4px; z-index: -1;
  background: var(--accent-soft);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); }
.mobile-note { margin-top: 20px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }

/* --- Живой макет приложения --- */
.hero-visual { position: relative; }
/* Перспектива — у обёртки: макет наклоняется, а парящие карточки рисуются поверх него. */
.mock-wrap { position: relative; perspective: 1400px; }
.mock {
  position: relative; display: flex; height: 440px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(140% 50% at 0% 0%, var(--accent-soft), transparent 60%), color-mix(in srgb, var(--bg) 70%, #000);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02), 0 40px 120px -20px var(--accent-soft);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg));
  transition: transform .5s var(--ease);
}
:root[data-mode="light"] .mock { background: radial-gradient(140% 50% at 0% 0%, var(--accent-soft), transparent 60%), #e4e6ee; }
.mock-glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 5; mix-blend-mode: overlay;
  background: radial-gradient(500px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 45%);
}
.mock-dock { width: 70px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 12px; }
.mock-dock .brand-mark { margin-bottom: 12px; }
.mdock { width: 60px; padding: 5px 0 6px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-3); position: relative; }
.mdock > span:last-child { font-size: 9.5px; font-weight: 700; }
.mdock-ico { position: relative; width: 40px; height: 32px; border-radius: 11px; display: grid; place-items: center; transition: background .2s ease, color .2s ease, transform .2s ease; }
.mdock-ico svg { width: 18px; height: 18px; }
.mdock:hover { color: var(--text-2); }
.mdock:hover .mdock-ico { background: var(--card-hover); }
.mdock:active .mdock-ico { transform: scale(.92); }
.mdock.active { color: var(--text); }
.mdock.active .mdock-ico { background: var(--accent-soft); color: var(--accent); }
.mdock::before {
  content: ""; position: absolute; left: -5px; top: 21px; width: 3px; height: 0; border-radius: 0 3px 3px 0; transform: translateY(-50%);
  background: linear-gradient(var(--accent), var(--accent-2)); transition: height .25s var(--ease);
}
.mdock.active::before { height: 22px; }
.mdock-badge {
  position: absolute; top: -2px; right: 1px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.mdock-spacer { flex: 1; }
.mdock-update {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px var(--accent-soft);
  animation: bob 2.6s ease-in-out infinite;
}
.mdock-update svg { width: 17px; height: 17px; animation: spin 6s linear infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.mock-stage {
  position: relative; flex: 1; min-width: 0; margin: 8px 8px 8px 0; border-radius: 15px; overflow: hidden;
  background: radial-gradient(circle at 74% 18%, var(--accent-soft), transparent 36%), var(--bg);
  border: 1px solid var(--border);
}
.mview { position: absolute; inset: 0; display: flex; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s ease, transform .35s var(--ease); }
.mview.active { opacity: 1; transform: none; pointer-events: auto; }
.m-side { width: 40%; max-width: 210px; flex: none; padding: 16px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.m-kicker { color: var(--accent); font-size: 8.5px; letter-spacing: 2px; font-weight: 800; padding: 0 4px; }
.m-title { font-size: 18px; font-weight: 780; letter-spacing: -.6px; padding: 0 4px 6px; }
.m-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px; border-radius: 9px; background: var(--card); border: 1px solid var(--border); color: var(--text-3); font-size: 11.5px; margin-bottom: 4px; }
.m-search svg { width: 13px; height: 13px; }
.m-card, .m-chat {
  display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 8px 9px; border-radius: 11px;
  border: 1px solid transparent; transition: background .2s ease;
}
.m-card i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.m-card b, .m-chat b { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card small, .m-chat small { grid-column: 2; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card.active, .m-chat.active { background: var(--accent-soft); border-color: var(--border); }
.m-card:not(.active):hover, .m-chat:not(.active):hover { background: var(--card-hover); }
.m-chat .av { grid-row: span 2; }
.av {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 55%, #000));
}
.m-main { flex: 1; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.m-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-doc-head b { font-size: 15px; font-weight: 750; letter-spacing: -.3px; }
.m-chip { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.m-chip.live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.m-typed { font-size: 12.5px; color: var(--text-2); line-height: 1.7; min-height: 88px; white-space: pre-wrap; }
.m-typed .cur { display: inline-block; width: 2px; height: 1.1em; vertical-align: -2px; margin-left: 1px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.m-typed b { color: var(--text); }
.m-sketch { width: 100%; height: auto; margin-top: auto; border-radius: 12px; background: var(--card); border: 1px dashed var(--border-strong); }
.m-sketch path, .m-sketch ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.5; }
.m-sketch .sk1, .m-sketch .sk2 { stroke: var(--accent); }
.m-sketch .sk3 { stroke: #f59e0b; }
.m-sketch .sk4 { stroke: #10b981; stroke-width: 4.5; }
.m-sketch.play path, .m-sketch.play ellipse { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawStroke 1.4s var(--ease) forwards; }
.m-sketch.play .sk2 { animation-delay: .9s; }
.m-sketch.play .sk3 { animation-delay: 1.3s; }
.m-sketch.play .sk4 { animation-delay: 2.1s; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.m-conv { gap: 9px; }
.bub { max-width: 78%; padding: 8px 11px; border-radius: 14px; font-size: 12px; background: var(--card-hover); border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; animation: bubIn .4s var(--spring) both; }
.bub.out { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; border-bottom-left-radius: 14px; border-bottom-right-radius: 5px; }
.bub.img span { display: block; width: 150px; height: 70px; border-radius: 9px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 35%, transparent)), repeating-linear-gradient(90deg, var(--border) 0 18px, transparent 18px 26px); }
.mview.active .bub:nth-child(2) { animation-delay: .1s; } .mview.active .bub:nth-child(3) { animation-delay: .35s; }
.mview.active .bub:nth-child(4) { animation-delay: .7s; } .mview.active .bub:nth-child(5) { animation-delay: 1.1s; }
.bub.typing { display: flex; gap: 4px; padding: 11px 13px; }
.bub.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: dots 1.2s ease-in-out infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; } .bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.94); } }

.m-board { padding-bottom: 12px; }
.m-cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; min-height: 0; }
.m-col { border-radius: 12px; background: var(--card); border: 1px solid var(--border); padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.m-col-h { font-size: 10.5px; font-weight: 750; color: var(--text-2); display: flex; align-items: center; gap: 6px; padding: 2px 3px 4px; }
.m-col-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.m-task { padding: 9px; border-radius: 9px; background: var(--panel-solid); border: 1px solid var(--border); font-size: 11.5px; font-weight: 650; display: flex; flex-direction: column; gap: 3px; }
.m-task small { color: var(--text-3); font-size: 10px; font-weight: 600; }
.m-task.done { opacity: .7; }
.mview.active .m-task.moving { animation: taskMove 3.6s var(--ease) infinite; position: relative; z-index: 2; }
@keyframes taskMove {
  0%, 20% { transform: none; box-shadow: none; }
  45%, 70% { transform: translate(calc(100% + 18px), 46px) rotate(2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
  100% { transform: none; }
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 13px 10px 10px; border-radius: 15px;
  background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  font-size: 12.5px; z-index: 6; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .5s var(--ease);
  animation: floatIn .8s var(--spring) both;
}
.float-card b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.float-card small { display: block; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.fc-call { left: -38px; bottom: 54px; animation-delay: .9s; }
.fc-toast { right: -26px; top: 46px; animation-delay: 1.2s; }
.fc-update { right: 28px; bottom: -22px; animation-delay: 1.5s; }
@keyframes floatIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.9); } }
.fc-avatars { display: flex; }
.fc-avatars .av { width: 26px; height: 26px; font-size: 10.5px; border: 2px solid var(--panel-solid); margin-left: -8px; }
.fc-avatars .av:first-child { margin-left: 0; }
.av.speak, .av.speak2 { box-shadow: 0 0 0 2px #22c55e; animation: speak 1.4s ease-in-out infinite; }
.av.speak2 { animation-delay: .7s; }
@keyframes speak { 50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .35); } }
.fc-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fc-ico svg { width: 16px; height: 16px; }
.fc-ico.ok { background: rgba(34, 197, 94, .16); color: #22c55e; }
.fc-btn { margin-left: 4px; padding: 6px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.mock-hint { margin-top: 38px; text-align: center; color: var(--text-3); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* --- Бегущая строка --- */
.marquee {
  position: relative; padding: 22px 0; border-block: 1px solid var(--border); overflow: hidden; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 14px; padding-right: 14px; }
.marquee-row span {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; font-size: 17px; font-weight: 700; color: var(--text-2);
}
.marquee-row span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Зачем: одна задача — два способа --- */
.why { padding: 120px 0 70px; }
.why-inner { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.why-title { margin-top: 14px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; }
.why-swap { display: inline-grid; }
.why-swap > span { grid-area: 1 / 1; color: var(--accent); transition: opacity .35s ease, transform .5s var(--ease); }
.why[data-mode="split"] .why-swap [data-for="one"],
.why[data-mode="one"] .why-swap [data-for="split"] { opacity: 0; transform: translateY(.35em); }

.why-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 26px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.why-toggle button { position: relative; z-index: 1; height: 38px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: color .3s ease; }
.why-toggle button:hover { color: var(--text); }
.why-toggle button[aria-selected="true"] { color: #fff; }
.why-toggle-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px var(--accent-soft);
  transition: transform .45s var(--spring);
}
.why[data-mode="one"] .why-toggle-pill { transform: translateX(100%); }

.why-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 6px; }
.why-steps li {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; overflow: hidden;
  border: 1px solid transparent; cursor: pointer; transition: background .25s ease, border-color .25s ease;
}
.why-steps li:hover { background: var(--card-hover); }
.why-steps li.active { background: var(--card); border-color: var(--border-strong); }
.why-steps li.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: stepBar var(--step-ms, 2600ms) linear forwards;
}
.why.paused .why-steps li.active::after { animation: none; }
@keyframes stepBar { from { transform: scaleX(0); } }
.ws-ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--card-hover); color: var(--text-2); transition: background .25s ease, color .25s ease; }
.ws-ico svg { width: 17px; height: 17px; }
.why-steps li.active .ws-ico { background: var(--accent-soft); color: var(--accent); }
.why-steps li.done .ws-ico { color: #22c55e; }
.why-steps b { display: block; font-size: 15px; }
.why-steps small { display: block; color: var(--text-3); font-size: 13px; font-weight: 600; }

.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.why-stats div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.why-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: #ef4444; transition: color .35s ease; }
.why[data-mode="one"] .why-stats b { color: #22c55e; }
.why-stats b.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.why-stats span { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; line-height: 1.3; }

/* Сцена: «рабочий стол» с окнами */
.ws-desk {
  position: relative; height: 440px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong);
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 55%), var(--bg-2);
  box-shadow: var(--shadow);
}
.ws-desk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px;
}
.ws-win {
  position: absolute; left: var(--x); top: var(--y); width: 58%; height: 58%; z-index: 1;
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  transform: scale(.95);
  transition: transform .5s var(--ease), opacity .4s ease, box-shadow .3s ease;
}
/* Окна на заднем плане притемнены (слой поверх), а не полупрозрачны — не просвечивают друг через друга. */
.ws-win::after { content: ""; position: absolute; inset: 0; background: var(--bg-2); opacity: .6; pointer-events: none; transition: opacity .4s ease; }
.ws-win.front { z-index: 3; transform: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1.5px var(--c); }
.ws-win.front::after { opacity: 0; }
.ws-desk[data-mode="one"] .ws-win { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.6); }
.ws-bar {
  height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 11px; font-size: 11.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 16%, transparent); border-bottom: 1px solid var(--border);
}
.ws-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ws-body { flex: 1; min-height: 0; padding: 10px; display: flex; flex-direction: column; gap: 7px; }

.ws-bub { display: block; align-self: flex-start; width: var(--w, 60%); height: 16px; flex: none; border-radius: 8px; background: var(--card-hover); }
.ws-bub.me { align-self: flex-end; background: color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.ws-line { display: block; width: var(--w, 80%); height: 8px; flex: none; border-radius: 4px; background: var(--border-strong); }
.ws-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-height: 0; }
.ws-tiles i { border-radius: 8px; background: var(--card-hover); }
.ws-tiles i.on { box-shadow: inset 0 0 0 2px #22c55e; }
.ws-tiles i.screen { background: linear-gradient(135deg, var(--accent-soft), var(--card-hover)); }
.ws-cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-height: 0; }
.ws-cols > div { display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 8px; background: var(--card); }
.ws-cols i { height: 18px; border-radius: 5px; background: var(--card-hover); }
.ws-cols i.new { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Одно окно Sinabam */
.ws-one {
  position: absolute; left: 6%; top: 6%; width: 88%; height: 72%; z-index: 4; display: flex; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  background: radial-gradient(140% 50% at 0% 0%, var(--accent-soft), transparent 60%), var(--bg);
  opacity: 0; transform: scale(.88); pointer-events: none;
  transition: opacity .4s ease, transform .55s var(--spring);
}
.ws-desk[data-mode="one"] .ws-one { opacity: 1; transform: none; transition-delay: .12s; }
.ws-dock { width: 50px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.ws-dock .brand-mark { margin-bottom: 6px; }
.ws-dock-item { width: 34px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: background .25s ease, color .25s ease; }
.ws-dock-item svg { width: 16px; height: 16px; }
.ws-dock-item.active { background: var(--accent-soft); color: var(--accent); }
.ws-main { position: relative; flex: 1; margin: 6px 6px 6px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); overflow: hidden; }
.ws-pane { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .35s var(--ease); }
.ws-pane.active { opacity: 1; transform: none; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 12.5px; }
.ws-head span { font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.ws-head span.live { color: #22c55e; }

/* Панель задач */
.ws-taskbar {
  position: absolute; left: 50%; bottom: 12px; z-index: 6; display: flex; padding: 6px; transform: translateX(-50%);
  border-radius: 16px; background: var(--panel); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
}
.ws-task {
  position: relative; width: 36px; height: 36px; margin: 0 3px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: var(--c); opacity: .7;
  transition: transform .3s var(--spring), opacity .3s ease, width .4s var(--ease), margin .4s var(--ease);
}
.ws-task svg { width: 17px; height: 17px; }
.ws-task.active { opacity: 1; transform: translateY(-4px); }
.ws-task::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .3s ease; }
.ws-task.active::after { opacity: 1; }
.ws-task b { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; font-size: 9.5px; background: #ef4444; color: #fff; }
.ws-task.sb { background: none; opacity: 1; width: 0; margin: 0; overflow: hidden; }
.ws-task.sb .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.ws-desk[data-mode="one"] .ws-task[data-app] { width: 0; margin: 0; opacity: 0; overflow: hidden; }
.ws-desk[data-mode="one"] .ws-task.sb { width: 36px; margin: 0 3px; }
.ws-desk[data-mode="one"] .ws-task.sb::after { opacity: 1; }

.ws-cursor {
  position: absolute; left: 0; top: 0; z-index: 8; width: 22px; height: 22px; pointer-events: none;
  transform: translate(60%, 60%); transition: transform .6s var(--ease);
}

/* --- Общие заголовки секций --- */
section { position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2, .final h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.section-head.left { text-align: left; margin: 0; }

/* --- Бенто с возможностями --- */
.features { padding: 120px 0 80px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense; }
.card {
  position: relative; border-radius: var(--radius); padding: 22px; background: var(--card); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column; gap: 18px; isolation: isolate;
  transition: border-color .3s ease, transform .4s var(--ease), background .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 55%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: var(--border-strong); }
.card-head { display: flex; gap: 14px; align-items: flex-start; }
.card-ico {
  width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px var(--accent-soft);
}
.card-ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; letter-spacing: -.3px; font-weight: 750; }
.card-head p { margin-top: 4px; color: var(--text-2); font-size: 14px; line-height: 1.5; }

.c-notes { grid-column: span 2; grid-row: span 2; }
.c-kanban, .c-flow, .c-docs { grid-column: span 2; }

/* Холст */
.draw { position: relative; flex: 1; min-height: 340px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--border); overflow: hidden; touch-action: none; }
.draw::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 20px 20px;
}
.draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.draw.erasing canvas { cursor: cell; }
.draw-hint {
  position: absolute; left: 50%; top: 16%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; pointer-events: none;
  color: var(--text-3); font-weight: 600; font-size: 14px; transition: opacity .4s ease;
}
.draw-hint svg { width: 16px; height: 16px; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(-14deg) translate(-2px, 2px); } }
.draw-hint.hide { opacity: 0; }
.draw-bar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-width: calc(100% - 20px); overflow-x: auto;
}
.draw-colors, .draw-sizes { display: flex; gap: 6px; align-items: center; }
.draw-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--c); transition: transform .2s var(--spring), box-shadow .2s ease; flex: none; }
.draw-dot:hover { transform: scale(1.15); }
.draw-dot.active { box-shadow: 0 0 0 2px var(--panel-solid), 0 0 0 4px var(--c); }
.draw-size { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.draw-size i { display: block; border-radius: 50%; background: var(--text-2); }
.draw-size.active { background: var(--accent-soft); }
.draw-size.active i { background: var(--accent); }
.draw-sep { width: 1px; height: 20px; background: var(--border-strong); flex: none; }
.draw-tool { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.draw-tool svg { width: 16px; height: 16px; }
.draw-tool:hover { background: var(--card-hover); color: var(--text); }
.draw-tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* Чат */
/* Высота ленты фиксирована: новые сообщения не меняют размер карточки и не двигают сетку. */
.chat-demo { flex: none; height: 230px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
.chat-demo .bub { flex: none; max-width: 86%; font-size: 13px; }
.chat-demo .bub small { display: block; font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 1px; }
.chat-demo .bub.voice { display: flex; align-items: center; gap: 8px; }
.chat-demo .bub.voice .wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.chat-demo .bub.voice .wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .8; height: var(--h); }
.chat-demo .bub.sticker { background: none; border: 0; font-size: 38px; padding: 0; line-height: 1; }
.chat-demo .bub.leave { animation: bubOut .35s ease forwards; }
@keyframes bubOut { to { opacity: 0; transform: translateY(-10px); height: 0; padding: 0; margin: 0; } }

/* Звонок */
.call-demo { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.call-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 160px; }
.call-tile {
  position: relative; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--border); display: grid; place-items: center;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.call-tile .av { width: 40px; height: 40px; font-size: 15px; transition: box-shadow .25s ease; }
.call-tile em { position: absolute; left: 7px; bottom: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.call-tile.talk { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e, 0 0 24px rgba(34, 197, 94, .25); }
.call-tile.talk .av { box-shadow: 0 0 0 3px rgba(34, 197, 94, .5), 0 0 0 7px rgba(34, 197, 94, .14); }
.call-tile.screen { background: linear-gradient(135deg, var(--accent-soft), transparent), var(--panel-solid); }
.scr { width: 70%; height: 52%; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.scr i { display: block; height: 5px; border-radius: 3px; background: var(--border-strong); }
.scr i:first-child { width: 50%; background: var(--accent); }
.scr i:nth-child(2) { width: 85%; } .scr i:nth-child(3) { width: 65%; }
.call-bar { display: flex; justify-content: center; gap: 8px; }
.call-bar span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-hover); color: var(--text-2); }
.call-bar span svg { width: 16px; height: 16px; }
.call-bar .on { background: var(--accent-soft); color: var(--accent); }
.call-bar .hang { background: #ef4444; color: #fff; width: 44px; border-radius: 17px; }

/* Темы */
.c-theme .swatches.big { gap: 10px; }
.theme-name { margin-top: auto; font-weight: 800; font-size: 26px; letter-spacing: -.8px; transition: color .3s ease; }

/* Календарь */
.cal-demo { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11.5px; }
.cal-demo .dow { color: var(--text-3); font-weight: 700; font-size: 10px; padding-bottom: 2px; }
.cal-demo .d { position: relative; aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-weight: 650; color: var(--text-2); transition: background .2s ease; }
.cal-demo .d:hover { background: var(--card-hover); }
.cal-demo .d.muted { opacity: .35; }
.cal-demo .d.today { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px var(--accent-soft); }
.cal-demo .d.ev::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--e, var(--accent)); }

/* Канбан */
.kb-score { margin-left: auto; flex: none; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #22c55e; transition: transform .3s var(--spring); }
.kb-score.bump { transform: scale(1.18); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 230px; }
.kb-col { border-radius: 14px; background: var(--card); border: 1px solid var(--border); padding: 9px; display: flex; flex-direction: column; gap: 8px; transition: background .2s ease, border-color .2s ease; }
.kb-col.over { background: var(--accent-soft); border-color: var(--accent); border-style: dashed; }
.kb-col-h { font-size: 12px; font-weight: 750; color: var(--text-2); display: flex; align-items: center; gap: 7px; padding: 2px 4px 2px; }
.kb-col-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kb-card {
  padding: 10px 11px; border-radius: 11px; background: var(--panel-solid); border: 1px solid var(--border); cursor: grab; user-select: none; touch-action: none;
  display: flex; flex-direction: column; gap: 5px; transition: transform .2s var(--ease), box-shadow .2s ease, opacity .2s ease;
}
.kb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.kb-card b { font-size: 13px; font-weight: 700; }
.kb-card span { font-size: 11px; color: var(--text-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kb-card .pr { width: 6px; height: 6px; border-radius: 50%; background: #64748b; }
.kb-card[data-p="high"] .pr { background: #ef4444; } .kb-card[data-p="mid"] .pr { background: #f59e0b; }
.kb-card.is-done b { text-decoration: line-through; text-decoration-color: var(--text-3); color: var(--text-2); }
.kb-card.placeholder { opacity: .35; border-style: dashed; box-shadow: none; transform: none; }
.kb-ghost { position: fixed; z-index: 80; pointer-events: none; cursor: grabbing; transform: rotate(3deg) scale(1.04); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); border-color: var(--accent); }
.kb-card.landed { animation: landed .5s var(--spring); }
@keyframes landed { from { transform: scale(.9); } }

/* Пайплайн */
.flow { width: 100%; height: auto; max-height: 230px; flex: 1; }
.flow .edges path { fill: none; stroke: var(--border-strong); stroke-width: 2.2; transition: stroke .3s ease; }
.flow .edges path.on { stroke: var(--accent); stroke-dasharray: 6 6; animation: dash .6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.flow .nodes circle, .flow .nodes rect, .flow .nodes > g > path:first-child {
  fill: var(--panel-solid); stroke: var(--border-strong); stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease, filter .3s ease;
}
.flow .nodes text { fill: var(--text-2); font-size: 13px; font-weight: 700; text-anchor: middle; font-family: var(--font); transition: fill .3s ease; }
.flow .nodes .fin { fill: none; stroke: var(--text-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow .nodes g.on circle, .flow .nodes g.on rect, .flow .nodes g.on > path:first-child { fill: var(--accent-soft); stroke: var(--accent); filter: drop-shadow(0 0 10px var(--accent-glow)); }
.flow .nodes g.on text { fill: var(--text); }
.flow .nodes g.on .fin { stroke: #22c55e; fill: none; filter: none; }
.flow .nodes g.skip { opacity: .4; }

/* Документы */
.doc-demo { flex: 1; min-height: 200px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.doc-line { position: relative; color: var(--text-2); min-height: 1.5em; }
.doc-line.h { color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.doc-line.dim { color: var(--text-3); }
.doc-line mark { background: color-mix(in srgb, #f43f5e 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.caret { position: relative; display: inline-block; width: 2px; height: 1.15em; vertical-align: -3px; margin-left: 1px; background: var(--cc); }
.caret.c1 { --cc: var(--accent); }
.caret.c2 { --cc: #f43f5e; }
.caret em {
  position: absolute; left: 0; bottom: 100%; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--cc);
  padding: 1px 6px; border-radius: 6px 6px 6px 0; white-space: nowrap; line-height: 1.4;
}

/* Версии */
.versions { display: grid; gap: 4px; }
.ver { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; font-size: 13px; font-weight: 650; transition: background .2s ease; }
.ver:hover { background: var(--card-hover); }
.ver i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--text-3); }
.ver:first-child i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ver small { margin-left: auto; color: var(--text-3); font-size: 11.5px; }

/* Языки */
.lang-flip { margin-top: auto; height: 54px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--border); display: grid; place-items: center; perspective: 400px; }
.lf { font-weight: 800; font-size: 18px; letter-spacing: -.3px; display: inline-block; transition: transform .45s var(--ease), opacity .3s ease; }
.lf.flip { transform: rotateX(90deg); opacity: 0; }

/* --- Цифры --- */
.stats { padding: 40px 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(160deg, var(--card), transparent); }
.stat b { display: block; font-size: clamp(38px, 4.4vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-weight: 600; }

/* --- Шаги --- */
.steps { padding: 100px 0; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; counter-reset: s; }
.steps-list::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(var(--line, 0)); transition: transform 1.4s var(--ease);
}
.steps-list li { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step-n {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 20px; font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px var(--accent-soft), 0 0 0 8px var(--bg);
}
.steps-list h3 { font-size: 20px; letter-spacing: -.4px; }
.steps-list p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; max-width: 320px; margin-inline: auto; }

/* --- Вопросы --- */
.faq { padding: 60px 0 110px; }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color .25s ease, background .25s ease; }
.faq details[open] { border-color: var(--border-strong); background: var(--card-hover); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); transition: transform .35s var(--ease), background .25s ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: var(--accent); }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* --- Финал --- */
.final { padding: 120px 0 130px; text-align: center; overflow: hidden; }
/* Значки возможностей слетаются в иконку. Только transform и opacity — анимация
   идёт на видеокарте и не подтормаживает; свечение — готовый градиент, не фильтр. */
.final-orb { --s: 1; position: relative; width: 140px; height: 140px; margin: 0 auto 40px; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fo-icon {
  position: relative; z-index: 2; width: 140px; height: 140px; border-radius: 36px;
  transform: scale(.82); opacity: .55;
  transition: transform .6s var(--spring) .78s, opacity .4s ease .7s;
}
.fo-glow {
  position: absolute; inset: -90px; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  opacity: 0; transform: scale(.6); transition: opacity .8s ease .8s, transform .9s var(--ease) .8s;
}
.fo-chip {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center; border-radius: 15px; color: var(--accent);
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transform: translate(calc(var(--x) * var(--s)), calc(var(--y) * var(--s)));
  transition: transform .75s cubic-bezier(.55, 0, .25, 1) calc(var(--i) * 60ms), opacity .3s ease calc(.5s + var(--i) * 60ms);
}
.fo-chip svg { width: 21px; height: 21px; }
.final-orb.assembled .fo-chip { transform: translate(0, 0) scale(.4); opacity: 0; }
.final-orb.assembled .fo-icon { transform: none; opacity: 1; }
.final-orb.assembled .fo-glow { opacity: 1; transform: none; animation: glowBreath 4s ease-in-out 1.8s infinite; }
@keyframes glowBreath { 50% { opacity: .55; } }
.final-orb:hover .fo-icon { transform: scale(1.04); transition-delay: 0s; }
.final-orb:active .fo-icon { transform: scale(.97); }
.final-inner p { margin: 16px auto 34px; max-width: 520px; color: var(--text-2); font-size: 17px; }
.final h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -2px; }

/* --- Подвал --- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { color: var(--text-2); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-3); font-size: 13px; }

/* --- Окна --- */
.modal, .palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.palette { place-items: start center; padding-top: 14vh; }
.modal[hidden], .palette[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .55); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(460px, 100%); border-radius: 24px; padding: 30px 28px 24px; text-align: center;
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: modalIn .4s var(--spring);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.modal-x { position: absolute; right: 12px; top: 12px; }
.modal-badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 16px 40px var(--accent-soft); }
.modal-badge svg { width: 28px; height: 28px; animation: drop 1.4s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 40% { transform: none; opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
.modal-card h3 { font-size: 22px; letter-spacing: -.5px; }
.modal-sub { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.modal-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.modal-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.modal-steps li b { color: var(--text); }
.modal-steps li > span { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.modal-foot { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
.modal-foot a { color: var(--accent); font-weight: 700; }

.palette-card { position: relative; width: min(560px, 100%); border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden; animation: modalIn .3s var(--spring); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.palette-input svg { width: 18px; height: 18px; color: var(--text-3); }
.palette-input input { flex: 1; height: 54px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.palette-list li svg { width: 17px; height: 17px; }
.palette-list li small { margin-left: auto; color: var(--text-3); font-size: 12px; font-weight: 600; }
.palette-list li.sel { background: var(--accent-soft); color: var(--text); }
.palette-list li.sel svg { color: var(--accent); }
.palette-list .empty { justify-content: center; color: var(--text-3); cursor: default; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; width: min(380px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px;
  border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: toastIn .45s var(--spring);
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.toast > div { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 14px; }
.toast small { display: block; color: var(--text-2); font-size: 12.5px; }
.toast-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.toast-ico svg { width: 18px; height: 18px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* --- Появление при прокрутке --- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }

/* --- Адаптив --- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .hero-visual { max-width: 720px; width: 100%; margin-inline: auto; }
  .why-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-stage { max-width: 680px; width: 100%; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-links, .kbd-hint { display: none; }
  .nav-actions { margin-left: auto; }
  .br-desk { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 108px 0 56px; }
  .hero-title { letter-spacing: -1.6px; }
  .btn-xl { width: 100%; }
  .mock { height: 360px; transform: none !important; }
  .mock-dock { width: 56px; }
  .mdock { width: 50px; }
  .m-side { display: none; }
  .mview[data-view="teams"] .m-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-card { display: none; }
  .fc-update { display: flex; right: 10px; bottom: -18px; }
  .mock-hint { margin-top: 32px; }
  .final-orb { --s: .72; }
  .why { padding: 90px 0 40px; }
  .why-toggle { display: grid; width: 100%; }
  .why-steps li { padding: 8px 10px; }
  .why-stats { gap: 6px; }
  .why-stats div { padding: 10px; }
  .why-stats b { font-size: 24px; }
  .why-stats span { font-size: 11.5px; }
  .ws-desk { height: 330px; }
  .ws-bar { height: 26px; font-size: 10.5px; }
  .bento { grid-template-columns: 1fr; }
  .c-notes, .c-kanban, .c-flow, .c-docs { grid-column: auto; grid-row: auto; }
  .draw { min-height: 300px; }
  .kanban { gap: 6px; }
  .kb-col { padding: 6px; }
  .kb-card { padding: 8px; }
  .kb-card b { font-size: 12px; }
  .stats-grid { gap: 10px; }
  .stat { padding: 18px; }
  .steps-list { grid-template-columns: 1fr; gap: 34px; }
  .steps-list::before { display: none; }
  .footer-links { margin-left: 0; }
  .nav-actions .btn-sm span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
