/* ============================================================
   Промо-лендинг Obsidian для Windows
   Оглавление:
   1. Переменные и база
   2. Кнопки
   3. Навигация
   4. Hero и декоративные пятна
   5. Мокап окна приложения
   6. Секции: общее
   7. Возможности (карточки)
   8. Галерея (вкладки)
   9. Отзывы (бегущие ленты)
   10. FAQ
   11. CTA и футер
   12. Анимации и адаптив
   ============================================================ */

/* ---------- 1. Переменные и база ---------- */
:root {
  --bg: #0d0c12;
  --bg-card: #14111d;
  --bg-panel: #0f0d16;
  --bg-window: #131019;
  --bg-sidebar: #151221;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #e9e7f2;
  --text-muted: #a9a4c0;
  --text-dim: #77728f;
  --accent: #8b7cf6;
  --accent-light: #a99aff;
  --accent-soft: rgba(139, 124, 246, .14);
  --grad: linear-gradient(135deg, #9a86ff, #6c5ce7 60%, #5a48d6);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 14px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 124, 246, .35); }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

a { color: var(--accent-light); }
a:hover { color: #c4b8ff; }

/* ---------- 2. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 40px rgba(124, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 60px rgba(124, 92, 246, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(139, 124, 246, .6);
  background: rgba(139, 124, 246, .08);
}

.btn-lg { padding: 18px 38px; font-size: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14.5px; font-weight: 700; border-radius: 10px; }

.arrow { font-size: 20px; line-height: 1; }

/* ---------- 3. Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 44px;
  background: rgba(13, 12, 18, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(139, 124, 246, .6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links > a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links > a:hover { color: var(--text); }

/* ---------- 4. Hero и декоративные пятна ---------- */
.hero {
  position: relative;
  padding: 170px 40px 110px;
  text-align: center;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(108, 92, 231, .22), transparent 60%);
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  pointer-events: none;
}

/* размытые светящиеся пятна на фоне */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.blob-1 { top: 120px; left: 8%;  width: 340px; height: 340px; opacity: .5;  background: radial-gradient(circle, rgba(139, 124, 246, .5), transparent 65%); }
.blob-2 { top: 340px; right: 6%; width: 420px; height: 420px; opacity: .4;  background: radial-gradient(circle, rgba(88, 68, 196, .5), transparent 65%); animation-direction: reverse; animation-duration: 14s; }
.blob-3 { top: 60px;  right: 12%; width: 380px; height: 380px; opacity: .35; background: radial-gradient(circle, rgba(139, 124, 246, .45), transparent 65%); animation-duration: 13s; }
.blob-4 { bottom: -60px; left: 30%; width: 460px; height: 300px; opacity: .4; background: radial-gradient(circle, rgba(139, 124, 246, .45), transparent 65%); animation-duration: 11s; }

.hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(139, 124, 246, .4);
  background: rgba(139, 124, 246, .1);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c4b8ff;
  animation: badge-glow 4s ease-in-out infinite;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.grad-text {
  background: linear-gradient(100deg, #c4b8ff, #8b7cf6 50%, #6c5ce7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ---------- 5. Мокап окна приложения ---------- */
.window-wrap {
  position: relative;
  max-width: 1060px;
  margin: 72px auto 0;
}

.window {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--bg-window);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(108, 92, 231, .18);
  overflow: hidden;
  text-align: left;
  will-change: transform;
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 8px 0 16px;
  background: #181422;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.titlebar-app {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8f8aa8;
}
.titlebar-app img { width: 15px; height: 15px; object-fit: contain; }
.titlebar-controls {
  display: flex;
  gap: 2px;
  color: var(--text-dim);
  font-size: 13px;
}
.titlebar-controls span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
}
.titlebar-controls .restore { font-size: 11px; }

.window-body {
  display: grid;
  grid-template-columns: 212px 1fr 250px;
  height: 470px;
  font-size: 13px;
}

.pane { overflow: hidden; }

/* левая панель — дерево файлов */
.pane-files {
  padding: 16px 10px;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pane-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 10px 10px;
}
.file { padding: 6px 10px; border-radius: 7px; color: #8f8aa8; font-weight: 600; }
.file.open { color: #c9c5dd; }
.file.nested { padding-left: 26px; font-weight: 400; }
.file.active { background: rgba(139, 124, 246, .16); color: #d9d2ff; font-weight: 600; }

/* центр — редактор */
.pane-editor {
  padding: 22px 30px;
  line-height: 1.7;
  color: #bdb8d2;
}
.breadcrumbs { font-size: 11.5px; color: var(--text-dim); margin-bottom: 14px; }
.pane-editor h3 { font-size: 21px; font-weight: 800; color: #efedf7; margin-bottom: 12px; }
.pane-editor p + p { margin-top: 12px; }

.tags { display: flex; gap: 8px; }
.tag {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 11.5px;
  font-weight: 700;
}

.wikilink {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 124, 246, .5);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret-blink 1.1s infinite;
}

.task { display: flex; align-items: center; gap: 9px; }
.task.done { color: var(--text-dim); }
.checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #6c5ce7;
  color: #fff;
  font-size: 10px;
}
.checkbox.empty { background: none; border: 1.5px solid var(--text-dim); }

/* правая панель — граф и обратные ссылки */
.pane-side {
  padding: 16px;
  background: var(--bg-sidebar);
  border-left: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pane-side .pane-title { padding: 0; }

.minigraph {
  position: relative;
  height: 130px;
  border-radius: 10px;
  background: #100d1a;
  border: 1px solid rgba(255, 255, 255, .05);
  margin-bottom: 6px;
}
.minigraph svg,
.gallery-panel > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.minigraph line,
.gallery-panel line {
  stroke: rgba(139, 124, 246, .45);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
line.faint { stroke: rgba(139, 124, 246, .22); }

/* узел графа */
.gnode {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.gnode.pulse { background: #a78bfa; animation: node-pulse 2.4s ease-out infinite; }

.backlink {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ---------- 6. Секции: общее ---------- */
.section { position: relative; padding: 110px 40px; }
.features, .faq { max-width: 1200px; margin: 0 auto; }
.faq { max-width: 840px; }

.section-head { text-align: center; margin-bottom: 56px; }

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
}

.section-head .sub {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- 7. Возможности ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 124, 246, .5);
  box-shadow: 0 20px 50px rgba(108, 92, 231, .2);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-text { font-weight: 800; font-size: 15px; letter-spacing: -1px; }
.icon-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(#a99aff, #5a48d6, #a99aff);
}

.card h3 { font-size: 19px; font-weight: 800; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

/* ---------- 8. Галерея ---------- */
.gallery {
  background: var(--bg-panel);
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.gallery .section-head { margin-bottom: 44px; }
.gallery .tabs,
.gallery .gallery-frame { max-width: 1120px; margin-left: auto; margin-right: auto; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tab {
  position: relative;
  padding: 13px 26px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .25s;
}
.tab:hover { border-color: rgba(139, 124, 246, .6); }
.tab.active::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(139, 124, 246, .8);
}

.gallery-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .09);
  background: #12101b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  overflow: hidden;
}

.gallery-panel {
  position: relative;
  height: 520px;
  display: none;
  background: radial-gradient(ellipse at 50% 40%, #17132a, #0f0d18 70%);
}
.gallery-panel.active { display: block; }

.panel-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* узлы с подписями на вкладке «Граф» */
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.node.main { font-size: 13px; font-weight: 700; color: #d9d2ff; }
.node .gnode { position: static; transform: none; }

/* вкладка «Canvas» */
.canvas-panel {
  background-color: #0f0d18;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.canvas-panel line { stroke: rgba(139, 124, 246, .5); stroke-width: 1.5; }

.sticky {
  position: absolute;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #181428;
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.sticky h4 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.sticky p { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.sticky .tags { margin-top: 10px; }
.sticky.highlight {
  background: linear-gradient(145deg, #221a3e, #181428);
  border-color: rgba(139, 124, 246, .5);
  box-shadow: 0 18px 50px rgba(108, 92, 231, .25);
}
.sticky.highlight h4 { color: #d9d2ff; }
.sticky.highlight p { color: #bdb8d2; }

/* вкладка «Оформление» */
.themes-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  background: #0f0d18;
  padding: 0 30px;
}
.themes-row { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }

.theme {
  margin: 0;
  width: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  transition: transform .3s ease;
}
.theme:hover { transform: translateY(-6px); }
.theme.featured {
  border-color: rgba(139, 124, 246, .5);
  box-shadow: 0 16px 44px rgba(108, 92, 231, .22);
}

.theme-bar {
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #181422;
}
.theme-bar img { width: 11px; height: 11px; object-fit: contain; }
.theme-bar.light { background: #ece9f4; }
.theme-bar.ocean { background: #0a1420; }

.theme-body { display: flex; height: 130px; background: var(--bg-window); }
.theme-body .col { width: 64px; background: var(--bg-sidebar); border-right: 1px solid rgba(255, 255, 255, .06); }
.theme-body .lines { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.theme-body i { display: block; height: 6px; border-radius: 4px; background: #8f8aa8; opacity: .5; }
.theme-body i.bright { height: 9px; background: var(--text); opacity: .9; }
.theme-body i.accent { background: var(--accent); opacity: 1; }
.w70 { width: 70%; } .w92 { width: 92%; } .w84 { width: 84%; } .w46 { width: 46%; }

.theme-body.light { background: #faf9fd; }
.theme-body.light .col { background: #f0edf7; border-color: rgba(0, 0, 0, .06); }
.theme-body.light i { background: #8a84a0; opacity: .6; }
.theme-body.light i.bright { background: #2a2438; opacity: 1; }
.theme-body.light i.accent { background: #6c5ce7; opacity: 1; }

.theme-body.ocean { background: #0c1826; }
.theme-body.ocean .col { background: #0a1420; }
.theme-body.ocean i { background: #7796ad; opacity: .6; }
.theme-body.ocean i.bright { background: #dff3ff; opacity: 1; }
.theme-body.ocean i.accent { background: #38bdf8; opacity: 1; }

.theme figcaption { padding: 12px 14px; background: #12101b; font-size: 13px; font-weight: 700; }

.themes-note { font-size: 14px; color: var(--text-dim); font-weight: 600; }

/* ---------- 9. Отзывы ---------- */
.reviews { padding-left: 0; padding-right: 0; overflow: hidden; }
.reviews .section-head { padding: 0 40px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 22px; }

/* содержимое дублируется скриптом, поэтому -50% даёт бесшовный цикл */
.track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-right: 22px;
  animation: marquee 48s linear infinite;
}
.track.reverse { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .track { animation-play-state: paused; }

.review {
  flex: none;
  width: 350px;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review .stars { color: var(--accent); font-size: 13px; letter-spacing: 3px; }
.review > p:not(.stars) { font-size: 14.5px; line-height: 1.65; color: #c9c5dd; text-wrap: pretty; }
.review footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
}
.review b { font-size: 14px; color: var(--text); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.av-1 { background: linear-gradient(135deg, #8b7cf6, #5a48d6); }
.av-2 { background: linear-gradient(135deg, #a78bfa, #6c5ce7); }
.av-3 { background: linear-gradient(135deg, #7a68e8, #4c3ac0); }
.av-4 { background: linear-gradient(135deg, #9a86ff, #6250d8); }
.av-5 { background: linear-gradient(135deg, #8b7cf6, #4c3ac0); }
.av-6 { background: linear-gradient(135deg, #a78bfa, #5a48d6); }
.av-7 { background: linear-gradient(135deg, #9a86ff, #6c5ce7); }
.av-8 { background: linear-gradient(135deg, #7a68e8, #6250d8); }

/* ---------- 10. FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item > p {
  padding: 0 26px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.faq-plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(139, 124, 246, .5);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }

/* ---------- 11. CTA и футер ---------- */
.cta {
  position: relative;
  padding: 100px 40px 120px;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(108, 92, 231, .25), transparent 65%);
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cta-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(139, 124, 246, .7));
}

.cta h2 {
  max-width: 700px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 40px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
  color: var(--text-dim);
}
.footer a { color: var(--accent-light); text-decoration: none; font-weight: 700; }
.footer a:hover { color: #c4b8ff; }

/* ---------- 12. Анимации и адаптив ---------- */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -30px) scale(1.06); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes node-pulse {
  from { box-shadow: 0 0 0 0 rgba(139, 124, 246, .55); }
  to   { box-shadow: 0 0 0 12px rgba(139, 124, 246, 0); }
}
@keyframes caret-blink {
  0%, 45%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(139, 124, 246, .25); }
  50%      { box-shadow: 0 0 26px rgba(139, 124, 246, .5); }
}

/* появление блоков при скролле (управляется js/main.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav { padding: 13px 20px; }
  .nav-links { gap: 18px; }
  .nav-links > a:not(.btn) { display: none; }

  .hero { padding: 140px 20px 80px; }
  .section { padding: 80px 20px; }

  /* в мокапе оставляем только редактор */
  .window-body { grid-template-columns: 1fr; height: auto; }
  .pane-files, .pane-side { display: none; }

  .gallery-panel { height: 440px; }
  .node { font-size: 11px; }
  .sticky { width: 210px !important; }

  .cta { padding: 80px 20px 100px; }
}
