/* ============================================================
   OBS Shell — Landing. Apple MacBook Pro school: graphite premium,
   crazy air, large type, scroll-driven. Pinpoint blue accent.
   No neon. No purple-on-white. When in doubt — quieter.
   ============================================================ */
:root {
  /* surfaces — graphite */
  --bg:        #08090c;
  --bg-deep:   #050609;
  --surface:   #16181d;
  --surface-2: #1c1f25;
  --surface-3: #23252b;

  /* brand / accent — blue, pointwise */
  --accent:      #3b82f6;
  --accent-soft: #6ea8fe;
  --flame:       #4da3ff;

  /* text */
  --ink:      #f2f3f5;
  --ink-dim:  #9a9ca4;
  --ink-mute: #62656e;

  /* status */
  --status:  #22c55e;
  --rec:     #e05a4d;
  --stream:  #a06bf2;
  --warn:    #f59e0b;

  --line:        rgba(255,255,255,0.08);
  --line-2:      rgba(255,255,255,0.05);
  --line-strong: rgba(255,255,255,0.14);

  /* Кривые. --ease — основная «дорогая» на появления и крупные движения:
     мягкий разгон, длинный выход, без резкого старта прежней expo-кривой.
     --ease-soft — короткие hover/подсветки. --ease-spring — лёгкий доводчик
     на интерактивных элементах (совсем чуть-чуть за 1, без «резинки»). */
  --ease:        cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 1200px;
  --shadow-deep: 0 60px 160px -40px rgba(0,0,0,0.95);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(59,130,246,0.35); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #26282e; border-radius: 99px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: #34373f; }

/* Зерна намеренно нет. Оно маскировало ступени в подложках, но само читалось
   крупой на тёмном фоне. Ступени убраны в источнике: подложки секций плоские,
   свечения компактные и контрастные (крутой спад = узкая ступень). */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* faint graphite radial glows — barely there, never neon */
.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(88px); }

/* ---- typography ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

h1, h2, h3 { letter-spacing: -0.03em; font-weight: 800; line-height: 0.98; text-wrap: balance; }
.h1 { font-size: clamp(46px, 8vw, 92px); }
.h2 { font-size: clamp(34px, 5.4vw, 66px); }
.lead { color: var(--ink-dim); font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; font-weight: 400; text-wrap: pretty; }
.section { padding: clamp(90px, 14vh, 180px) 0; position: relative; }
.section-head { max-width: 820px; margin: 0 auto clamp(52px, 8vh, 92px); text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin: 22px auto 0; max-width: 640px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 56px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, box-shadow .3s, border-color .2s;
}
.btn .b-sub { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; margin-left: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 50px -16px rgba(59,130,246,0.7), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: #4a8dfa; transform: translateY(-2px); box-shadow: 0 22px 60px -16px rgba(59,130,246,0.8), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-glass { background: rgba(255,255,255,0.05); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-os-logo { width: 17px; height: 17px; flex: none; }
/* Купить PRO — плоская кислотно-лаймовая заливка, жирный тёмный текст (Тинькофф-стиль
   финтех-подписок: без глянца и градиентов, чистый флэт). */
.btn-buy {
  height: 50px; padding: 0 22px; border-radius: 99px; font-size: 15.5px; font-weight: 800; gap: 9px;
  background: #aad63a; color: #12210a; border-color: transparent; box-shadow: none;
}
.btn-buy:hover { background: #b8e448; transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(170,214,58,0.5); }
.btn-buy .b-sub { color: #2c3d1a; opacity: .72; font-weight: 500; }
.btn-buy:disabled { opacity: .6; pointer-events: none; }
.hero-buy { order: 6; margin-top: 26px; display: flex; justify-content: center; }

/* PRO — мини-бренд-бейдж: чёрный чип с белым текстом на лайме (как «PRO» в Тинькофф).
   Один и тот же знак — на сайте (кнопка) и в оверлее приложения — для узнаваемости. */
.pro-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 7px 3px; border-radius: 6px;
  background: #12210a; color: #eafccb; font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .02em;
}
.sn-buy { background: #aad63a; color: #12210a; font-weight: 700; }
.sn-buy:hover { background: #b8e448; }

/* Модалка покупки: ввод email перед оплатой (ключ придёт письмом + на странице). */
.buyModal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.buyModal[hidden] { display: none; }
.buyModal-bg { position: absolute; inset: 0; background: rgba(6,7,9,0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.buyModal-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); animation: buyPop .26s var(--ease); }
@keyframes buyPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.buyModal-x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--ink-mute); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; transition: color .15s; }
.buyModal-x:hover { color: var(--ink); }
.buyModal-title { font-size: 20px; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.buyModal-lead { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.buyModal-input { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 15.5px; font-family: inherit; outline: none; transition: border-color .15s; }
.buyModal-input:focus { border-color: #aad63a; }
.buyModal-input::placeholder { color: var(--ink-mute); }
.buyModal-err { color: #e05a4d; font-size: 13px; min-height: 17px; margin: 7px 2px 0; text-align: left; }
.buyModal-go { width: 100%; margin-top: 6px; }
.buyModal-note { color: var(--ink-mute); font-size: 12.5px; margin: 13px 0 0; }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 62px;
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .42s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled { background: rgba(12,13,16,0.7); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.hdr nav { display: flex; gap: 30px; margin-left: auto; }
.hdr nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-dim); transition: color .15s; }
.hdr nav a:hover { color: var(--ink); }
.hdr .btn { margin-left: 8px; }
/* Шапка улетает вверх, когда выезжает sticky sub-nav. */
.hdr.hidden-up { transform: translateY(-100%); }

/* Sticky sub-nav (как у Apple iPhone Air): компактная плашка с быстрым скачиванием. */
.subnav { position: fixed; top: 0; left: 0; right: 0; z-index: 85; transform: translateY(-100%); transition: transform .42s var(--ease); background: rgba(12,13,16,0.82); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-bottom: 1px solid var(--line); }
.subnav.show { transform: none; }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.sn-name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.sn-name img { width: 27px; height: 27px; }
.sn-actions { display: flex; align-items: center; gap: 12px; }
.sn-note { font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.sn-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 17px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: background .2s, filter .2s, transform .12s; white-space: nowrap; }
.sn-btn svg { width: 15px; height: 15px; }
.sn-btn:active { transform: scale(0.96); }
.sn-glass { background: rgba(255,255,255,0.07); border: 1px solid var(--line-strong); color: var(--ink); }
.sn-glass:hover { background: rgba(255,255,255,0.12); }
.sn-primary { background: var(--accent); color: #fff; }
.sn-primary:hover { filter: brightness(1.1); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 138px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero .glow { width: 560px; height: 560px; left: 50%; top: -230px; transform: translateX(-50%); background: rgba(59,130,246,0.3); }
/* Flex-колонка с order: продукт (stage) встаёт между слоганом и кнопками — как у Apple. */
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero-flame { position: relative; width: 60px; height: 60px; margin: 0 auto 18px; }
.hero-flame img { width: 100%; height: 100%; position: relative; z-index: 2; animation: breathe 5s var(--ease) infinite; }
.hero-flame::after {
  content: ""; position: absolute; inset: -45%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,163,255,0.5), rgba(77,163,255,0) 64%); filter: blur(26px);
  animation: glowpulse 5s var(--ease) infinite;
}
@keyframes breathe { 50% { transform: scale(1.045) translateY(-2px); } }
@keyframes glowpulse { 50% { opacity: 0.62; transform: scale(1.12); } }

.hero-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 22px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .dim { color: var(--ink-dim); }
.hero .lead { max-width: 640px; margin: 0 auto 30px; }

.hero-price { font-size: 16px; color: var(--ink-dim); order: 7; margin: 22px 0 0; }
.hero-price b { color: var(--ink); font-weight: 800; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: stretch; order: 6; }
.btn-os { flex-direction: column; height: 64px; gap: 0; padding: 0 26px; min-width: 220px; align-items: center; justify-content: center; line-height: 1; }
.btn-os .b-top { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.btn-os .b-sub { display: block; margin: 4px 0 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; opacity: .65; letter-spacing: .02em; }
.hero-foot { order: 8; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); letter-spacing: .01em; }
.hero-foot b { color: var(--ink-dim); font-weight: 500; }

/* hero product stage — продукт-герой между слоганом и кнопками (как iPhone Air). */
.hero-stage { order: 5; margin: 34px 0 44px; position: relative; width: 100%; }

.hero-screen {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 22px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-deep);
  background: #0b0d12;
}
.scr-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 78%); mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 78%); }
.scr-wm { position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%); font-family: var(--mono); font-size: clamp(10px,1.3vw,14px); letter-spacing: 0.32em; color: rgba(255,255,255,0.10); white-space: nowrap; text-align: center; }
.scr-bar { position: absolute; top: clamp(16px, 3.6%, 30px); left: 50%; z-index: 3; transform: translateX(-50%); animation: barRise 1.05s .2s both var(--ease); }
@keyframes barRise { from { opacity: 0; transform: translate(-50%, 52px); } to { opacity: 1; transform: translate(-50%, 0); } }
.scr-bar .cbar-wrap { transform-origin: top center; }
.scr-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 8px; }
.scr-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: recpulse 1.8s infinite; }
.stage-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 28%; z-index: 4; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg) 96%); }

/* ============================================================
   LIVE PRODUCT MOCKS — center bar + pill (CSS replica)
   ============================================================ */
.cbar {
  display: inline-flex; align-items: stretch; gap: 12px; padding: 16px;
  background: rgba(13,14,17,0.96); border: 1px solid var(--line-strong); border-radius: 26px;
  backdrop-filter: blur(16px); box-shadow: 0 40px 90px -20px rgba(0,0,0,0.85);
  font-size: 13px;
}
.cbar .cseg { display: flex; align-items: stretch; gap: 12px; }

/* ---- identity card ---- */
.cb-id { display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 232px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; }
.cb-id .idtop { display: flex; align-items: center; gap: 14px; }
.cb-id .idtop img { width: 46px; height: 46px; flex: none; }
.cb-id .idmeta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cb-id .nm { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.cb-id .st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-dim); }
.cb-id .st .d { width: 8px; height: 8px; border-radius: 50%; background: #e0a23a; box-shadow: 0 0 9px rgba(224,162,58,0.7); flex: none; animation: recpulse 1.6s infinite; }
.cb-id .st.ok .d { background: var(--status); box-shadow: 0 0 9px rgba(34,197,94,0.7); animation: none; }
.cb-id .host { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); margin-top: -2px; }
.cb-id .divider { height: 1px; background: var(--line); margin: 0 -2px; }
.cb-id .scene { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--ink-dim); }
.cb-id .scene > svg:first-child { width: 17px; height: 17px; color: var(--ink-dim); flex: none; }
.cb-id .scene b { color: var(--ink); font-weight: 700; }
.cb-id .scene .chev { width: 16px; height: 16px; margin-left: auto; color: var(--ink-mute); flex: none; }

/* ---- action cards (label top / big icon / status bottom) ---- */
.cb-act { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; min-width: 116px; padding: 20px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; color: var(--ink-dim); transition: border-color .2s, background .2s, transform .12s; }
.cb-act .lbl { font-size: 16px; font-weight: 700; color: var(--ink); }
.cb-act svg { width: 30px; height: 30px; }
.cb-act .sub { font-size: 13.5px; color: var(--ink-mute); }
.cb-act.on-ok { border-color: rgba(34,197,94,0.45); background: rgba(34,197,94,0.09); }
.cb-act.on-ok svg, .cb-act.on-ok .sub { color: var(--status); }
.cb-act.on-rec { border-color: rgba(224,90,77,0.5); background: rgba(224,90,77,0.1); }
.cb-act.on-rec svg, .cb-act.on-rec .sub { color: var(--rec); }
.cb-act.on-stream { border-color: rgba(160,107,242,0.5); background: rgba(160,107,242,0.12); }
.cb-act.on-stream svg, .cb-act.on-stream .sub { color: var(--stream); }
/* interactive bar */
.cbar.live .cb-act, .cbar.live .cb-icon, .cbar.live .scene { cursor: pointer; }
.cbar.live .cb-act:hover, .cbar.live .cb-icon:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
.cbar.live .cb-act:active { transform: translateY(1px); }
.cb-act.disabled { opacity: .42; }
.cb-act.demo-hot { border-color: var(--accent); background: rgba(59,130,246,0.1); box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 0 26px -6px var(--accent); transition: border-color .4s, background .4s, box-shadow .4s; }
.cb-icon.off { color: #e0a23a; border-color: rgba(224,162,58,0.42); background: rgba(224,162,58,0.12); }

/* ---- library card ---- */
.cb-lib { display: flex; align-items: center; gap: 16px; padding: 0 22px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; }
.cb-lib .lic { width: 30px; height: 30px; color: var(--accent-soft); flex: none; }
.cb-lib .lt .a { font-weight: 800; font-size: 17px; }
.cb-lib .lt .b { font-size: 13.5px; color: var(--ink-mute); margin-top: 2px; }
.cb-lib .cnt { padding-left: 22px; margin-left: 6px; border-left: 1px solid var(--line); text-align: center; }
.cb-lib .cnt .n { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.cb-lib .cnt .u { font-size: 11px; color: var(--ink-mute); text-transform: lowercase; letter-spacing: .04em; margin-top: 4px; }

/* ---- right 2x2 icon grid ---- */
.cb-mini { display: grid; grid-template-columns: repeat(2, 56px); grid-auto-rows: 56px; gap: 12px; align-content: center; align-self: center; }
.cb-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-dim); transition: border-color .2s, background .2s, color .2s; }
.cb-icon svg { width: 24px; height: 24px; }
.cb-icon.danger { color: var(--rec); border-color: rgba(224,90,77,0.4); background: rgba(224,90,77,0.1); }

/* Блок индикаторов звука (микрофон + рабочий стол) — как в новом overlay приложения:
   отдельная ячейка, в ней два метра с градиентной обводкой + иконка снизу. */
.cb-audio { display: flex; align-items: stretch; gap: 13px; padding: 16px 17px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 18px; }
.cb-meter { display: flex; flex-direction: column; align-items: center; gap: 11px; }
/* Внешняя градиентная обводка метра (зелёный низ -> серый -> красный верх), тонкая — как в overlay:
   внешний div = рамка через padding, внутренний = сам метр. */
.cb-mwrap { width: 15px; flex: 1 1 auto; min-height: 78px; border-radius: 7px; padding: 1.5px; background: linear-gradient(to top, rgba(34,197,94,0.6) 0%, rgba(120,124,135,0.4) 52%, rgba(239,68,68,0.65) 100%); }
/* Сам метр: фикс-градиент громкости (зелёный -> жёлтый -> красный, как в OBS). */
.cb-mbar { height: 100%; border-radius: 5.5px; overflow: hidden; position: relative; background: linear-gradient(to top, #16a34a 0%, #22c55e 45%, #eab308 78%, #ef4444 100%); }
/* Маска сверху прячет «непройденную» часть — видимая высота снизу = громкость. */
.cb-mbar i { position: absolute; left: 0; right: 0; top: 0; background: #14151a; transition: height .16s linear; }
.cb-meter > svg { width: 19px; height: 19px; color: var(--ink-dim); flex: none; }

.cbar-wrap { position: relative; display: inline-block;
  /* Свет идёт от самой панели, а не из фона: контур повторяет её форму,
     спад короткий и крутой, поэтому ступеней нет физически. */
  filter:
    drop-shadow(0 0 34px rgba(59,130,246,0.16))
    drop-shadow(0 18px 44px rgba(0,0,0,0.55));
}
.obs-chip { position: absolute; top: -38px; right: 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: rgba(16,17,20,0.9); border: 1px solid var(--line); border-radius: 9px; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); }
.obs-chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--status); box-shadow: 0 0 8px var(--status); }

/* pill */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px;
  background: rgba(16,17,20,0.94); border: 1px solid var(--line-strong); border-radius: 99px;
  backdrop-filter: blur(10px); box-shadow: 0 14px 36px -10px rgba(0,0,0,0.7); font-size: 13.5px;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(224,90,77,0.5); animation: recpulse 1.8s infinite; }
.pill.idle .dot { background: var(--ink-mute); animation: none; }
.pill .lbl { font-weight: 700; letter-spacing: 0.04em; }
.pill .tm { font-family: var(--mono); color: var(--ink-dim); font-size: 13px; }
@keyframes recpulse { 70% { box-shadow: 0 0 0 7px rgba(224,90,77,0); } 100% { box-shadow: 0 0 0 0 rgba(224,90,77,0); } }

/* ============================================================
   STICKY DEMO — продукт прилипает, по скроллу выезжают подписи (Apple Mac mini)
   ============================================================ */
.sdemo { height: 360vh; position: relative; }
.sdemo-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(30px, 5vh, 56px); overflow: hidden; }
.sdemo-head { text-align: center; z-index: 2; }
.sdemo-stage { position: relative; width: min(960px, 86vw); display: flex; align-items: center; justify-content: center; }
.sdemo-glow { position: absolute; width: 78%; height: 130%; left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(59,130,246,0.2), rgba(59,130,246,0) 64%); pointer-events: none; }
.sdemo-stage .cbar-wrap { position: relative; z-index: 1; }
.sdemo-cap { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; background: rgba(16,17,20,0.92); border: 1px solid var(--line-strong); border-radius: 14px; backdrop-filter: blur(10px); box-shadow: var(--shadow-deep); opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity .5s var(--ease), transform .5s var(--ease); max-width: 248px; }
.sdemo-cap.on { opacity: 1; transform: none; }
.sdemo-cap .n { font-family: var(--mono); font-size: 11px; color: var(--accent-soft); letter-spacing: .1em; }
.sdemo-cap b { font-size: 15px; font-weight: 700; }
.sdemo-cap span:last-child { font-size: 13px; color: var(--ink-dim); line-height: 1.4; }
.cap-1 { left: -3%; top: -12%; }
.cap-2 { right: -3%; top: 2%; }
.cap-3 { left: 2%; bottom: -12%; }
.cap-4 { right: -1%; bottom: -2%; }
.sdemo-dots { display: flex; gap: 10px; z-index: 2; }
.sd-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: width .35s var(--ease), background .25s; }
.sd-dot.on { width: 26px; border-radius: 99px; background: var(--accent); }
@media (max-width: 720px) {
  .sdemo { height: 300vh; }
  /* Бар целиком не влезает — показываем натурально в overflow-ленте и едем по шагам
     (активный блок центрируется через JS). Края затухают — видно, что бар продолжается. */
  .sdemo-stage { display: block; width: 100%; overflow-x: hidden; overflow-y: visible; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .sdemo-stage .cbar-wrap { display: block; width: max-content; max-width: none; transform: none !important; transform-origin: left center; margin: 0; }
  .sdemo-stage .cbar { transition: transform .8s cubic-bezier(0.33, 1, 0.68, 1); will-change: transform; }
  .sdemo-glow { display: none; }
  .sdemo-cap { position: static; opacity: 1; transform: none; max-width: 90%; margin: 110px auto 0; display: none; }
  .sdemo-cap.on { display: flex; }
  .cap-1, .cap-2, .cap-3, .cap-4 { left: auto; right: auto; top: auto; bottom: auto; }
}

/* ============================================================
   BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-rows: 224px; }
.card {
  position: relative; border-radius: 28px; padding: 28px 30px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 55%), var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
/* Иконка-плитка: крупнее, с градиентом и мягким свечением — как у Apple. */
.card .ci { width: 66px; height: 66px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, rgba(59,130,246,0.3), rgba(59,130,246,0.08)); border: 1px solid rgba(59,130,246,0.32); box-shadow: 0 8px 24px -10px rgba(59,130,246,0.55), inset 0 1px 0 rgba(255,255,255,0.1); flex: none; }
.card .ci svg { width: 33px; height: 33px; color: #d2e2ff; }
.card h3 { font-size: 22px; font-weight: 800; margin-top: 22px; letter-spacing: -0.02em; }
.card p { font-size: 14px; color: var(--ink-dim); margin-top: 9px; line-height: 1.5; font-weight: 400; max-width: 94%; }
.card .spacer { flex: 1; }
.card-foot { margin-top: auto; }

/* Бейдж Pro — лайм в тон кнопке «Купить PRO» (#aad63a): все Pro-элементы одного цвета.
   Высокая специфичность (.card .badge.pro), чтобы перебить .card > * { position: relative }. */
.card .badge.pro { position: absolute; top: 17px; right: 17px; z-index: 4; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px 4px; border-radius: 999px; color: #cde86f; background: rgba(170,214,58,0.13); border: 1px solid rgba(170,214,58,0.42); box-shadow: 0 0 22px -8px rgba(170,214,58,0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bento-note { margin-top: 16px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.5; }
.bento-note b { color: #aad63a; font-weight: 700; }

.b-replay  { grid-column: span 4; grid-row: span 2; }
.b-pill    { grid-column: span 2; }
.b-hotkey  { grid-column: span 2; }
.b-library { grid-column: span 3; }
.b-compress{ grid-column: span 3; }
.b-tg      { grid-column: span 2; }
.b-multi   { grid-column: span 2; }
.b-scene   { grid-column: span 2; }
.b-theme   { grid-column: span 3; }
.b-os      { grid-column: span 3; }

/* replay buffer visual */
.replayviz { margin-top: auto; }
.replayviz .track { display: flex; align-items: flex-end; gap: 3px; height: 84px; padding: 14px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.replayviz .track i { flex: 1; border-radius: 2px; background: rgba(255,255,255,0.1); transition: background .3s; }
.replayviz .track i.hot { background: var(--accent); box-shadow: 0 0 10px rgba(59,130,246,0.5); }
.replayviz .rcap { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.replayviz .rcap .save { color: var(--accent-soft); display: inline-flex; align-items: center; gap: 6px; }
.replayviz .rcap .save svg { width: 14px; height: 14px; }

/* hotkey keys */
.keys { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.keycap { font-family: var(--mono); font-size: 18px; font-weight: 600; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(180deg, var(--surface-3), #15171c); border: 1px solid var(--line-strong); border-bottom-width: 3px; color: var(--ink); }
.keys .alt { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-left: 6px; }

/* os logos row */
.oslogos { display: flex; align-items: center; gap: 16px; margin-top: auto; color: var(--ink-dim); }
.oslogos svg { width: 26px; height: 26px; }
.oslogos .soon { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }

.b-thumb { margin-top: auto; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.b-thumb img { width: 100%; display: block; }

/* ============================================================
   SHOWCASE — Apple-style swipe carousel
   ============================================================ */
.showcase { position: relative; overflow: hidden; }
.carousel { position: relative; margin-top: 6px; cursor: grab; touch-action: pan-y; }
.carousel.dragging { cursor: grabbing; }
.carousel.dragging .car-track { transition: none; }
.car-track { display: flex; gap: 26px; will-change: transform; transition: transform .95s cubic-bezier(0.32,0.72,0,1); padding-left: max(28px, calc(50vw - 630px)); }
.car-slide { flex: 0 0 auto; width: min(1260px, 92vw); }
.car-card {
  position: relative; border-radius: 34px; border: 1px solid var(--line); overflow: hidden;
  background: #0b0d12; box-shadow: var(--shadow-deep);
  display: flex; flex-direction: column; transition: border-color .5s, transform .95s cubic-bezier(0.32,0.72,0,1), opacity .95s cubic-bezier(0.32,0.72,0,1);
}
.car-slide:not(.active) .car-card { transform: scale(0.93); opacity: .35; border-color: var(--line-2); }
.car-cap { padding: clamp(20px, 2.4vw, 30px) clamp(24px, 3vw, 38px) 0; position: relative; z-index: 3; }
.car-cap .no { font-family: var(--mono); font-size: 14px; color: var(--accent-soft); font-weight: 500; }
.car-cap h3 { font-size: clamp(25px, 3.1vw, 40px); font-weight: 800; margin-top: 8px; }
.car-cap p { color: var(--ink-dim); font-size: clamp(15px,1.6vw,17px); margin-top: 10px; max-width: 540px; }
.car-vis { position: relative; margin-top: clamp(14px,1.8vw,22px); flex: none; height: clamp(280px, 48vh, 480px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* Слайд библиотеки сложнее — чуть выше, но весь слайд влезает в экран с навигацией. */
.car-vis.lib { height: clamp(330px, 56vh, 560px); }
.car-vis img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.car-vis.mock { background: #0b0d12; }

.car-vis .cbar-wrap { transform-origin: center; }
/* text reveal when a slide becomes active — Apple-style word stagger */
.car-cap .no { opacity: 0; }
.car-slide.active .car-cap .no { animation: capRise .7s cubic-bezier(0.22,1,0.36,1) both; }
.car-word { display: inline-block; opacity: 0; filter: blur(9px); transform: translateY(0.42em); white-space: pre; }
.car-slide.active .car-cap h3 .car-word { animation: wordIn .85s cubic-bezier(0.22,1,0.36,1) both; animation-delay: calc(0.14s + var(--wi) * 0.05s); }
.car-slide.active .car-cap p .car-word { animation: wordIn .8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: calc(0.42s + var(--wi) * 0.014s); }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes capRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.frozen .car-word, .frozen .car-cap .no { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }

.car-foot { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: clamp(28px,4vh,44px); }
.car-dots { display: flex; align-items: center; gap: 10px; }
.car-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: rgba(255,255,255,0.18); padding: 0; transition: width .35s var(--ease), background .25s; cursor: pointer; }
.car-dots button.on { width: 30px; background: var(--accent); }
.car-nav { display: flex; gap: 8px; }
.car-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.04); color: var(--ink-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.car-nav button:hover { background: rgba(255,255,255,0.09); color: var(--ink); }
.car-nav button:active { transform: scale(0.94); }
.car-nav button svg { width: 18px; height: 18px; }
.car-nav button[disabled] { opacity: .3; pointer-events: none; }
.car-hint { text-align: center; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

/* ============================================================
   DESKTOP SCENE (slide 01) — bar + pill floating over a faux desktop
   ============================================================ */
.deskscene { position: absolute; inset: 0; overflow: hidden; background: #0a0b0d; }
.ds-wall { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 78% 18%, rgba(59,130,246,0.16), rgba(59,130,246,0) 55%),
  radial-gradient(90% 80% at 10% 90%, rgba(120,90,200,0.12), rgba(120,90,200,0) 60%),
  #0c0e13; }
.ds-wall::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px); background-size: 40px 40px; }
.ds-menubar { position: absolute; top: 0; left: 0; right: 0; height: 6%; min-height: 16px; background: rgba(10,11,14,0.6); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 14px; padding: 0 4%; }
.ds-menubar i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.ds-app { position: absolute; left: 6%; top: 16%; width: 60%; height: 64%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); filter: saturate(0.85); }
.ds-app .bar2 { height: 13%; background: #15171d; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.ds-app .bar2 span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ds-app .body2 { height: 87%; background:
  radial-gradient(80% 70% at 30% 30%, rgba(94,140,220,0.28), rgba(94,140,220,0) 60%),
  linear-gradient(135deg, #1a2030, #0e1117); position: relative; }
.ds-app .body2::before { content: ""; position: absolute; left: 8%; top: 18%; width: 46%; height: 54%; border-radius: 10px; background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); }
.ds-app .body2::after { content: ""; position: absolute; right: 8%; bottom: 14%; width: 34%; height: 30%; border-radius: 8px; background: rgba(255,255,255,0.04); }
.ds-dock { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; gap: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.07); }
.ds-dock i { width: clamp(20px,3.2vw,34px); aspect-ratio: 1; border-radius: 9px; background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)); }
.ds-dock i:nth-child(3) { background: linear-gradient(160deg, var(--accent-soft), var(--accent)); }
/* the OBS Shell overlay floating ON TOP — crisp */
.ds-overlay { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); z-index: 5; }
.ds-pill { position: absolute; right: 6%; top: 20%; z-index: 6; }
.ds-toast { position: absolute; right: 6%; top: 34%; z-index: 6; display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 12px; background: rgba(16,18,22,0.92); border: 1px solid rgba(34,197,94,0.4); color: var(--status); font-family: var(--mono); font-size: 13px; box-shadow: 0 20px 50px -16px rgba(0,0,0,0.7); opacity: 0; transform: translateY(-8px); }
.ds-toast svg { width: 16px; height: 16px; }
.ds-toast.show { animation: toastpop 3.4s ease both; }
@keyframes toastpop { 0%{opacity:0;transform:translateY(-8px)} 8%{opacity:1;transform:none} 80%{opacity:1;transform:none} 100%{opacity:0;transform:translateY(-8px)} }

/* ============================================================
   LIBRARY WINDOW (slide 03 + closer) — CSS replica
   ============================================================ */
.libwin { width: 100%; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #16171b; box-shadow: var(--shadow-deep); font-size: 13px; color: var(--ink); display: flex; flex-direction: column; aspect-ratio: 16 / 10; }
.lw-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex: none; }
.lw-bar .dots { display: flex; gap: 7px; }
.lw-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.lw-bar .dots i:nth-child(1){ background:#e0605a; } .lw-bar .dots i:nth-child(2){ background:#e0a23a; } .lw-bar .dots i:nth-child(3){ background:#3fb950; }
.lw-bar .ttl { font-weight: 700; margin-left: 6px; }
.lw-bar .badge { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); background: rgba(255,255,255,0.05); border-radius: 10px; padding: 2px 9px; }
.lw-bar .search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; min-width: clamp(120px,22%,230px); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; color: var(--ink-mute); font-size: 12px; }
.lw-bar .search svg { width: 14px; height: 14px; flex: none; }
.lw-body { display: flex; flex: 1; min-height: 0; }
.lw-side { flex: 0 0 28%; max-width: 200px; border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.lw-side .si { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-radius: 9px; color: var(--ink-dim); }
.lw-side .si.on { background: var(--accent); color: #fff; }
.lw-side .si.on .c { color: rgba(255,255,255,0.8); }
.lw-side .si .c { color: var(--ink-mute); font-size: 12px; }
.lw-side .sh { padding: 12px 11px 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.lw-main { flex: 1; padding: 14px; overflow: hidden; display: flex; flex-direction: column; }
.lw-grouphead { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 11px; }
.lw-grouphead .gc { color: var(--ink-mute); font-weight: 500; font-size: 12px; }
.lw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lw-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; opacity: 0; transform: translateY(14px) scale(0.98); }
.car-slide.active .lw-card, .cs-view.show .lw-card { animation: cardIn .6s cubic-bezier(0.22,1,0.36,1) both; animation-delay: calc(var(--ci) * 0.06s + 0.3s); }
.frozen .lw-card { opacity: 1 !important; transform: none !important; animation: none !important; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.lw-thumb { aspect-ratio: 16/9; position: relative; }
.lw-thumb .dur { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,0.72); color: #fff; font-family: var(--mono); font-size: 10px; padding: 1.5px 6px 1.5px 5px; border-radius: 5px; }
.lw-thumb .dur .dico { width: 8px; height: 8px; color: #fff; }
.lw-thumb .star { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.lw-thumb .star svg { width: 12px; height: 12px; color: rgba(255,255,255,0.4); }
.lw-thumb .star.on svg { color: #f5c518; }
.lw-thumb .rep { position: absolute; left: 6px; top: 6px; background: var(--stream); color: #fff; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; }
.lw-meta { padding: 8px 10px 10px; }
.lw-meta .nm { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-meta .sub { display: flex; justify-content: space-between; color: var(--ink-mute); font-size: 11px; margin-top: 3px; font-family: var(--mono); }
.lw-meta .tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.lw-meta .tg { font-size: 10px; color: var(--ink-dim); background: rgba(255,255,255,0.05); border-radius: 8px; padding: 1px 7px; }
/* Play-кнопка по центру превью — сразу ясно, что это видео, которое можно посмотреть. */
.lw-thumb .lw-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9); width: 36px; height: 36px; border-radius: 50%; background: rgba(10,12,16,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; opacity: .85; transition: transform .2s var(--ease), background .2s, opacity .2s; }
.lw-thumb .lw-play svg { width: 15px; height: 15px; color: #fff; margin-left: 1.5px; }
/* Hover (desktop): карточка приподнимается, play ярче и крупнее. На тач play всегда виден. */
.lw-card { transition: transform .22s var(--ease), border-color .22s; }
.lw-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lw-card:hover .lw-play { opacity: 1; transform: translate(-50%,-50%) scale(1.05); background: var(--accent); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .car-word, .car-cap .no { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }
  .lw-card { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   CLOSER LOOK — interactive
   ============================================================ */
.closer-shell {
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-deep);
}
.closer-grid { display: grid; grid-template-columns: 420px 1fr; min-height: 600px; }
.closer-list { padding: 28px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.cl-item { border-radius: 14px; overflow: hidden; transition: background .25s; }
.cl-item.open { background: var(--surface-2); }
.cl-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: none; border: none; color: var(--ink); font-family: inherit; font-size: 17px; font-weight: 700; text-align: left; letter-spacing: -0.01em; }
.cl-head .plus { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .35s var(--ease), background .2s, border-color .2s; color: var(--ink-dim); }
.cl-head .plus svg { width: 13px; height: 13px; }
.cl-item.open .cl-head .plus { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(135deg); }
.cl-head .hi { width: 18px; height: 18px; color: var(--ink-mute); flex: none; }
.cl-item.open .cl-head .hi { color: var(--accent-soft); }
.cl-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.cl-body p { padding: 0 18px 18px 50px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.cl-nav { display: flex; gap: 8px; margin-top: 14px; padding-left: 4px; }
.cl-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink-dim); transition: background .2s, color .2s; }
.cl-nav button:hover { background: var(--surface-3); color: var(--ink); }
.cl-nav button svg { width: 16px; height: 16px; }

.closer-stage { position: relative; background: #0b0d12; display: flex; align-items: center; justify-content: center; padding: 48px; overflow: hidden; }

.cs-view { position: absolute; inset: 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; opacity: 0; transform: scale(0.98) translateY(8px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cs-view.show { opacity: 1; transform: none; pointer-events: auto; }
.cs-view img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-deep); max-height: 100%; }
.cs-view .cap { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* scene dropdown mock */
.scenemock { width: 240px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-deep); }
.scenemock .row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--ink-dim); border-bottom: 1px solid var(--line-2); }
.scenemock .row:last-child { border-bottom: none; }
.scenemock .row svg { width: 15px; height: 15px; }
.scenemock .row.on { background: rgba(59,130,246,0.12); color: var(--ink); }
.scenemock .row .ck { margin-left: auto; color: var(--accent-soft); }
/* Мок сжатия видео (closer): полосы «до/после» с размерами. */
.cmprmock { width: min(380px, 82%); display: flex; flex-direction: column; gap: 9px; }
.cmprmock .cmpr-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-dim); }
.cmprmock .cmpr-line b { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.cmprmock .cmpr-line.done b { color: var(--status); }
.cmprmock .cmpr-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 4px; }
.cmprmock .cmpr-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.cmprmock .cmpr-track.done i { background: linear-gradient(90deg, #16a34a, #22c55e); }
/* Мок отправки в Telegram (closer). */
.tgmock { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-deep); }
.tgmock .tg-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, rgba(59,130,246,0.3), rgba(59,130,246,0.1)); border: 1px solid rgba(59,130,246,0.3); flex: none; }
.tgmock .tg-ic svg { width: 24px; height: 24px; color: #d2e2ff; }
.tgmock .tg-txt { display: flex; flex-direction: column; gap: 2px; }
.tgmock .tg-txt b { font-size: 15px; }
.tgmock .tg-txt span { font-size: 12.5px; color: var(--ink-mute); }
.tgmock .tg-go { width: 30px; height: 30px; border-radius: 50%; background: rgba(34,197,94,0.15); display: flex; align-items: center; justify-content: center; margin-left: 6px; flex: none; }
.tgmock .tg-go svg { width: 16px; height: 16px; color: var(--status); }

/* multimonitor mock */
.monmock { display: flex; gap: 22px; align-items: flex-end; }
.monmock .mon { border: 1px solid var(--line-strong); border-radius: 8px; background: #0a0b0d; position: relative; }
.monmock .mon.m1 { width: 220px; height: 132px; }
.monmock .mon.m2 { width: 170px; height: 106px; }
.monmock .mon .pill { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); height: 26px; padding: 0 10px; font-size: 10px; }
.monmock .mon .pill .dot { width: 6px; height: 6px; }
.monmock .mon .base { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 40%; height: 5px; border-radius: 0 0 3px 3px; background: var(--surface-3); }

/* keyboard mock */
.kbmock { display: flex; flex-direction: column; gap: 6px; }
.kbmock .krow { display: flex; gap: 6px; }
.kbmock .k { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); }
.kbmock .k.lit { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(59,130,246,0.6); }

/* ============================================================
   INSTALL — numbered steps + progress line
   ============================================================ */
.install-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.install-line { position: absolute; left: 23px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.install-line i { display: block; width: 100%; height: 0%; background: var(--accent); box-shadow: 0 0 12px rgba(59,130,246,0.5); }
.steps { display: flex; flex-direction: column; gap: 22px; position: relative; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; }
.step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; transition: background .3s, border-color .3s, color .3s; }
.step.active .num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px -6px rgba(59,130,246,0.6); }
.step .body { padding-top: 4px; }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 7px; letter-spacing: -0.02em; }
.step p { font-size: 15px; color: var(--ink-dim); line-height: 1.5; }
.step p .kbd { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
.warn { margin-top: 30px; padding: 18px 22px; border-radius: 16px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.28); font-size: 14.5px; color: #f3c98a; display: flex; gap: 13px; align-items: flex-start; }
.warn svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--warn); }
.warn b { color: #f7d9a3; font-weight: 700; }

/* requirements */
.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.req { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.req .rk { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.req .rv { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.req .rv.soon { color: var(--ink-dim); }
.req small { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-mute); line-height: 1.45; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq .q { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq .q.open { border-color: var(--line-strong); }
.faq .q button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: none; border: none; color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 700; text-align: left; letter-spacing: -0.01em; }
.faq .q button .pl { margin-left: auto; width: 22px; height: 22px; position: relative; flex: none; transition: transform .35s var(--ease); }
.faq .q button .pl::before, .faq .q button .pl::after { content: ""; position: absolute; background: var(--ink-dim); border-radius: 2px; }
.faq .q button .pl::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq .q button .pl::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.faq .q.open button .pl { transform: rotate(135deg); }
.faq .a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq .a p { padding: 0 24px 24px; font-size: 15.5px; color: var(--ink-dim); line-height: 1.6; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { text-align: center; position: relative; padding: clamp(110px, 18vh, 200px) 0; overflow: hidden; }
.cta .glow { width: 470px; height: 470px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(59,130,246,0.32); }
.cta .hero-flame { width: 104px; height: 104px; margin-bottom: 30px; }
.cta .spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-soft); opacity: 0; pointer-events: none; }
.cta h2 { margin-bottom: 18px; position: relative; z-index: 2; }
.cta .cta-price { font-size: 18px; color: var(--ink-dim); margin-bottom: 32px; position: relative; z-index: 2; }
.cta .cta-price b { color: var(--ink); font-weight: 800; }
.cta .hero-cta { position: relative; z-index: 2; }

footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 46px 0; position: relative; z-index: 1; }
footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand img { width: 22px; height: 22px; }
footer .fmeta { margin-left: auto; display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-dim); }
footer .fmeta a { display: inline-flex; align-items: center; gap: 7px; }
footer .fmeta a:hover { color: var(--ink); }
footer .fmeta svg { width: 15px; height: 15px; }
footer .disclaimer { width: 100%; margin-top: 22px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
footer .byline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-dim); }
footer .byline b { color: var(--accent-soft); font-weight: 600; }

/* ---- reveal ---- */
/* frozen-timeline fallback: if the document's animation clock isn't advancing
   (background tab / capture harness), snap everything to its visible end-state */
.frozen *, .frozen *::before, .frozen *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
.frozen .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
/* Появление. Прозрачность отрабатывает заметно быстрее, чем сдвиг: глаз ловит
   элемент сразу, а движение ещё доезжает — от этого оно читается дорогим, а не
   «выпрыгивающим». Микро-масштаб даёт ощущение приближения, а не подъёма листа. */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.988);
  transition: opacity .6s var(--ease), transform 1s var(--ease), filter .6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Расфокус — точечно: заголовки и герой. На карточках и сетках он дорог по GPU
   и на длинной странице даёт мыло, поэтому туда его не пускаем. */
.hero .reveal, h2.reveal, .sec-head .reveal, .sec-head.reveal { filter: blur(7px); }
.hero .reveal.in, h2.reveal.in, .sec-head .reveal.in, .sec-head.reveal.in { filter: blur(0); }

.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento .card { grid-column: auto !important; grid-row: auto !important; min-height: 190px; }
  .closer-grid { grid-template-columns: 1fr; }
  .closer-list { border-right: none; border-bottom: 1px solid var(--line); }
  .closer-stage { min-height: 380px; }
  .req-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hdr nav { display: none; }
  .hdr .btn { margin-left: auto; }            /* кнопка скачать — вправо */
  /* На мобиле НЕ делаем swap «шапка -> sub-nav» (он давал двойную шапку при скролле):
     sub-nav прячем совсем, а основная шапка остаётся на месте и не улетает вверх. */
  .subnav { display: none !important; }
  .hdr.hidden-up { transform: none; }
  .car-track { gap: 14px; padding-left: 16px; }
  .car-slide { width: 90vw; }
  .car-cap { padding-left: 22px; padding-right: 22px; }
  .car-foot { gap: 18px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .install-line { left: 19px; }
  .step .num { width: 40px; height: 40px; font-size: 15px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  /* Sub-nav на мобиле: убираем подпись и делаем кнопки компактнее — чтобы всё влезло. */
  .subnav .wrap { height: 52px; gap: 10px; }
  .sn-note { display: none; }
  .sn-name { font-size: 15px; }
  .sn-name img { width: 22px; height: 22px; }
  .sn-btn { height: 34px; padding: 0 13px; font-size: 13px; gap: 6px; }
  .hero { padding: 124px 0 50px; }
  .hero-cta { flex-direction: column; align-items: stretch; }   /* кнопки в столбик во всю ширину */
  .hero-cta .btn { width: 100%; }
  .cta .hero-cta { flex-direction: column; align-items: stretch; }
  .cta .hero-cta .btn { width: 100%; }
  .h1 { font-size: clamp(38px, 11vw, 60px); }                   /* заголовок не упирается в края */
  .bento { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .car-slide { width: 92vw; }
  .car-cap h3 { font-size: 24px; }
  .cbar { transform: scale(0.82); }
  /* На мобиле слайды чуть выше под контент (база уже задаёт height). */
  .car-vis { height: clamp(300px, 52vh, 460px); }
  /* Слайд библиотеки сложнее — выше, чтобы карточки влезли; контент не съезжает. */
  .car-vis.lib { height: clamp(380px, 64vh, 580px); }
  /* Слайд библиотеки в узком окне: убираем боковую панель и поиск, сетка в 2 колонки. */
  .lw-side { display: none; }
  .lw-bar .search { display: none; }
  .lw-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .lw-card .lw-meta .tags { display: none; }
  footer .fmeta { margin-left: 0; }
  footer .wrap { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none !important; }
}
