/* NEONCUT — визуальное направление: ночной Майами / Vice City, неон, закат, тёмный премиум.
   Вся графика — CSS/SVG, без ассетов Rockstar. */
:root {
  --bg: #09070F;
  --bg-2: #120D1C;
  --bg-3: #1B1429;
  --card: rgba(27, 20, 41, 0.72);
  --pink: #FF3D9A;
  --pink-2: #FF6FB5;
  --purple: #8B5CF6;
  --orange: #FF8754;
  --cyan: #3DE7FF;
  --text: #FFFFFF;
  --muted: #A9A3B5;
  --line: rgba(255, 255, 255, 0.09);
  --danger: #FF5470;
  --ok: #3DFFB4;
  --sunset: linear-gradient(100deg, var(--orange) 0%, var(--pink) 50%, var(--purple) 100%);
  --glow-pink: 0 0 24px rgba(255, 61, 154, 0.45), 0 0 64px rgba(255, 61, 154, 0.18);
  --radius: 20px;
  /* Anton и Inter — с собственного сервера (web/fonts); пока их нет, работают системные запасные шрифты */
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", "DIN Condensed", sans-serif-condensed, sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video, svg { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--sunset); color: #fff; box-shadow: var(--glow-pink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 61, 154, .65), 0 0 90px rgba(139, 92, 246, .3); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 61, 154, .6); background: rgba(255, 61, 154, .08); }
.btn-danger { background: transparent; border-color: rgba(255, 84, 112, .45); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 84, 112, .1); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(9, 7, 15, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 24px/1 var(--display); letter-spacing: .06em; text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--sunset); position: relative;
  box-shadow: var(--glow-pink);
}
.brand-mark::after { content: ""; position: absolute; inset: 7px 9px 7px 10px; background: var(--bg); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
/* кнопка-«бургер»: видна только на телефоне (≤900px), где .nav-links скрыты; логика — web/nav.js */
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; margin-left: auto; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; color: #fff;
}
.nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav.menu-open .nav-toggle-bar { background: transparent; }
.nav.menu-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav.menu-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; padding: 110px var(--gutter) 150px;
}
.sky {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(120% 70% at 70% 105%, rgba(255, 135, 84, .55) 0%, rgba(255, 61, 154, .35) 30%, rgba(139, 92, 246, .18) 55%, transparent 75%),
    linear-gradient(180deg, #0B0816 0%, #1A0F33 45%, #3A1450 70%, #6B1F5C 100%);
}
.stars-bg {
  position: absolute; inset: 0 0 40% 0; z-index: -4; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 25%, #ffd6ec 50%, transparent 51%), radial-gradient(1px 1px at 80% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 44% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 46%, #e3d4ff 50%, transparent 51%), radial-gradient(1px 1px at 68% 6%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
.sun {
  position: absolute; z-index: -3; left: 50%; bottom: 150px; width: min(560px, 80vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD36E 0%, #FF8754 38%, #FF3D9A 70%, #8B5CF6 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 62%, transparent 62% 67%, #000 67% 72%, transparent 72% 78%, #000 78% 82%, transparent 82% 89%, #000 89% 92%, transparent 92%);
          mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 62%, transparent 62% 67%, #000 67% 72%, transparent 72% 78%, #000 78% 82%, transparent 82% 89%, #000 89% 92%, transparent 92%);
  filter: drop-shadow(0 0 60px rgba(255, 61, 154, .55));
  opacity: .9;
}
.grid-floor {
  position: absolute; z-index: -2; left: -50%; right: -50%; bottom: 0; height: 230px;
  background:
    linear-gradient(transparent 0 92%, rgba(255, 61, 154, .55) 92%) 0 0 / 100% 36px,
    linear-gradient(90deg, transparent 0 96%, rgba(139, 92, 246, .55) 96%) 0 0 / 60px 100%,
    linear-gradient(180deg, rgba(9, 7, 15, 0) 0%, rgba(9, 7, 15, .9) 100%);
  transform: perspective(320px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 45%); mask: linear-gradient(180deg, transparent 0%, #000 45%);
  animation: grid-run 1.6s linear infinite;
}
@keyframes grid-run { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 36px, 0 0, 0 0; } }
.palms { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 61, 154, .35);
  background: rgba(255, 61, 154, .08); color: var(--pink-2);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 {
  margin: 0; font: 400 clamp(46px, 7.4vw, 104px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(9, 7, 15, .45);
}
h1 .line { display: block; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
h1 .line:nth-child(2) { animation-delay: .12s; }
h1 .line:nth-child(3) { animation-delay: .24s; }
/* текст никогда не прячется: если анимация не проиграется (фоновая вкладка, слабое устройство), он всё равно виден */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
.grad {
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 61, 154, .45));
}
.lede { max-width: 560px; margin: 22px 0 30px; font-size: clamp(16px, 1.6vw, 19px); color: #E3DDEB; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.facts li { display: flex; align-items: baseline; gap: 10px; }
.facts strong { font: 400 30px/1 var(--display); background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); font-size: 14px; }

/* макет телефона с клипом (чисто CSS, без скриншотов игры) */
.phone-stage { position: relative; justify-self: center; perspective: 1200px; }
.phone {
  width: clamp(220px, 23vw, 300px); aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2a2140, #0e0a18);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(255, 61, 154, .25);
  transform: rotateY(-14deg) rotateX(4deg); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotateY(-10deg) rotateX(2deg) translateY(-12px); } }
.phone-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #120c20; }
.mock-scene {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #2b1050 0%, #a02a6c 42%, #ff8754 58%, #1a1030 59%, #0e0a18 100%);
}
.mock-road {
  position: absolute; left: -40%; right: -40%; bottom: 0; height: 42%;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 211, 110, .9) 18px 30px) 50% 0 / 6px 100% no-repeat, #1a1328;
  transform: perspective(200px) rotateX(55deg); transform-origin: 50% 100%;
  animation: road 0.7s linear infinite;
}
@keyframes road { to { background-position: 50% 30px, 0 0; } }
.mock-car {
  position: absolute; left: 50%; bottom: 13%; width: 34%; height: 9%; transform: translateX(-50%);
  border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #ff6fb5, #c02d7a);
  box-shadow: 0 6px 0 #0b0812, 0 0 30px rgba(255, 61, 154, .6);
}
.mock-lights { position: absolute; left: 0; right: 0; top: 26%; display: flex; justify-content: space-around; }
.mock-lights span { width: 30%; height: 36px; border-radius: 50%; filter: blur(14px); animation: siren 0.9s steps(2) infinite; }
.mock-lights span:first-child { background: #ff2d55; }
.mock-lights span:last-child { background: #2d7bff; animation-delay: .45s; }
@keyframes siren { 50% { opacity: .15; } }
.mock-stars { position: absolute; top: 14px; right: 14px; display: flex; gap: 3px; }
.mock-stars i { width: 12px; height: 12px; background: #fff; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mock-label {
  position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px;
  background: rgba(9, 7, 15, .7); border: 1px solid rgba(255, 61, 154, .5); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.mock-caption {
  position: absolute; left: 0; right: 0; bottom: 30%; text-align: center;
  font: 400 clamp(22px, 2.4vw, 32px)/1 var(--display); letter-spacing: .02em;
  text-shadow: 0 3px 0 #09070F, 0 0 12px rgba(0, 0, 0, .8);
}
.mock-caption .hot { color: var(--pink); animation: pop 1.2s ease-in-out infinite; display: inline-block; }
@keyframes pop { 50% { transform: scale(1.18); } }
.mock-progress { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 40%; background: var(--sunset); animation: prog 6s linear infinite; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.float-chip {
  position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(18, 13, 28, .82); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.chip-a { top: 18%; left: -38%; border-color: rgba(255, 61, 154, .45); animation: float 8s ease-in-out infinite reverse; }
.chip-a::before { content: "★ "; color: var(--pink); }
.chip-b { bottom: 16%; right: -30%; border-color: rgba(139, 92, 246, .5); animation: float 9s ease-in-out infinite; }
.chip-b::before { content: "✂ "; color: var(--purple); }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- секции ---------- */
main > section { max-width: 1240px; margin: 0 auto; padding: 96px var(--gutter); }
.section-head { margin-bottom: 34px; }
.kicker { margin: 0 0 8px; color: var(--pink-2); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h2 { margin: 0 0 10px; font: 400 clamp(34px, 4.6vw, 58px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h3 { margin: 0; }

.panel {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 32px); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* загрузка */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 300px; padding: 40px 20px; border-radius: 16px; cursor: pointer; isolation: isolate;
  border: 2px dashed rgba(255, 255, 255, .16); transition: border-color .25s, background .25s, transform .25s;
}
.dropzone::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px; z-index: -1; opacity: 0;
  background: conic-gradient(from var(--a, 0deg), var(--orange), var(--pink), var(--purple), var(--orange));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
  transition: opacity .3s;
}
.dropzone:hover, .dropzone.drag { border-color: transparent; background: rgba(255, 61, 154, .06); }
.dropzone:hover::before, .dropzone.drag::before { opacity: 1; animation: spin 3s linear infinite; }
.dropzone.drag { transform: scale(1.01); }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.dz-ring {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 6px; color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .18), transparent 60%), var(--sunset); box-shadow: var(--glow-pink);
}
.dz-title { font: 400 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.dz-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.dz-hints span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* обработка */
.progress-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.ring-wrap { position: relative; width: clamp(140px, 18vw, 190px); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring-fg { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s ease; filter: drop-shadow(0 0 8px rgba(255, 61, 154, .6)); }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(34px, 4vw, 46px)/1 var(--display); }
.stage { font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--body); margin-bottom: 4px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 18px 0; }
.bar-fill { height: 100%; width: 0; background: var(--sunset); transition: width .6s ease; position: relative; }
.bar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.steps-inline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.steps-inline li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .3s; }
.si-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); flex: none; transition: all .3s; }
.steps-inline li.active { color: #fff; }
.steps-inline li.active .si-dot { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: pulse 1.2s ease-in-out infinite; }
.steps-inline li.done { color: #D9D3E3; }
.steps-inline li.done .si-dot { border-color: var(--ok); background: var(--ok); }
.keep-open { margin: 16px 0 0; }

.error { border-color: rgba(255, 84, 112, .5); background: rgba(255, 84, 112, .08); color: #ffd3db; margin-top: 16px; }

/* результаты */
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.empty-panel { text-align: center; display: grid; justify-items: center; gap: 10px; padding: clamp(24px, 5vw, 48px); }
.empty-panel .muted { max-width: 560px; margin: 0; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--cyan);
  background: rgba(61, 231, 255, .08); box-shadow: 0 0 28px rgba(61, 231, 255, .25); }
.empty-tips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty-tips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.empty-panel .results-actions { justify-content: center; }
#cancel-upload { margin-top: 10px; }
.mic-opt { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; }
.mic-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.mic-opt span { display: grid; gap: 2px; font-size: 14px; }
.mic-opt small { font-size: 12.5px; }
/* цвет метки клипа по типу момента — неоновая палитра */
.label[data-kind="wanted"], .label[data-kind="police_chase"] { background: linear-gradient(90deg, #4D7CFF, #FF4D6D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label[data-kind="escape"] { color: var(--ok); text-shadow: 0 0 18px rgba(61, 255, 180, .35); }
.label[data-kind="impact"], .label[data-kind="explosion"] { color: var(--orange); text-shadow: 0 0 18px rgba(255, 135, 84, .4); }
.label[data-kind="gunfire"] { color: var(--danger); text-shadow: 0 0 18px rgba(255, 84, 112, .4); }
.label[data-kind="reaction"] { color: var(--pink-2); text-shadow: 0 0 18px rgba(255, 61, 154, .4); }
.label[data-kind="chase_story"] { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label[data-kind="high_motion"], .label[data-kind="highlight"], .label[data-kind="loud_chaos"] { color: var(--cyan); text-shadow: 0 0 18px rgba(61, 231, 255, .35); }
.results-title { font: 400 clamp(28px, 3.4vw, 42px)/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.clip {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(27, 20, 41, .9), rgba(18, 13, 28, .9)); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.clip:nth-child(2) { animation-delay: .08s; }
.clip:nth-child(3) { animation-delay: .16s; }
.clip:hover { transform: translateY(-4px); border-color: rgba(255, 61, 154, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 61, 154, .15); }
.clip-frame { position: relative; aspect-ratio: 9 / 16; background: #000; }
.clip-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.rank {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; pointer-events: none;
  background: var(--sunset); font: 400 16px/1.2 var(--display); letter-spacing: .04em; box-shadow: var(--glow-pink);
}
.clip-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.clip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label { font: 400 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.verified { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.verified.ok { color: var(--ok); background: rgba(61, 255, 180, .1); }
.verified.bad { color: var(--danger); background: rgba(255, 84, 112, .1); }
.reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.reasons li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); color: #DCD0FF; }
.transcript { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.transcript:empty { display: none; }
.clip-body .download { margin-top: auto; }
.why { font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.why summary { cursor: pointer; color: #DCD0FF; font-weight: 600; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::before { content: "▸ "; }
.why[open] summary::before { content: "▾ "; }
.why-head { margin: 8px 0 6px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.why-list li { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; }
.why-list .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.why-list .bar i { display: block; height: 100%; background: var(--sunset); border-radius: inherit; }
.why-list small { color: var(--muted); }
.why-conf { margin: 10px 0 0; }
.why-issues-head { margin: 8px 0 4px; color: #FFC85A; font-weight: 600; }
.why-issues { margin: 0; padding-left: 18px; color: #FFE3A8; font-size: 12.5px; display: grid; gap: 3px; }

.timeline-panel { margin-top: 26px; padding: 0; }
.timeline-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.timeline-panel summary::-webkit-details-marker { display: none; }
.timeline-panel summary::after { content: "+"; font-size: 22px; color: var(--pink); margin-left: 8px; }
.timeline-panel[open] summary::after { content: "–"; }
.timeline-panel canvas { display: block; width: calc(100% - 44px); margin: 0 22px; height: 150px; }
.timeline-panel p { margin: 10px 22px 20px; }
.danger-row { margin-top: 18px; display: flex; justify-content: flex-end; }

/* история обработок */
.history { margin-top: 26px; }
.history-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.history-head h3 { font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history-list li {
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.h-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.h-dot.done { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.h-dot.processing, .h-dot.queued { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.h-dot.failed { background: var(--danger); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.plan-hot { border-color: rgba(255, 61, 154, .55); background: radial-gradient(120% 80% at 50% 0%, rgba(255, 61, 154, .18), transparent 60%), var(--card); box-shadow: 0 0 50px rgba(255, 61, 154, .15); }
.plan-badge { position: absolute; top: -12px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--sunset); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-name { font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.plan-price strong { font: 400 42px/1 var(--display); }
.plan-price span { margin-left: 6px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-feats li { position: relative; padding-left: 22px; color: #DCD5E6; font-size: 14px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
.plan-feats li.off { color: var(--muted); }
.plan-feats li.off::before { content: "✕"; color: var(--muted); }
.plan .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 0 20px; transition: border-color .2s; }
.faq-list details[open] { border-color: rgba(255, 61, 154, .4); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--pink); font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }

/* как это работает */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.step::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--sunset); opacity: .6; }
.step .num { font: 400 46px/1 var(--display); background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 14px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* возможности */
.feature-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 18px; }
.feature { padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature h3 { margin: 16px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.feature .note { margin-top: 12px; font-size: 13px; color: #CFC6E0; }
.f-hot { grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 61, 154, .22), transparent 60%), var(--card); border-color: rgba(255, 61, 154, .3); }
.feature-grid .feature:last-child { grid-column: span 2; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 61, 154, .12); border: 1px solid rgba(255, 61, 154, .35); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--pink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-hot .f-icon svg { fill: var(--pink); stroke: none; }
.honesty { margin-top: 26px; max-width: 760px; }

.footer { border-top: 1px solid var(--line); padding: 34px var(--gutter) max(46px, calc(env(safe-area-inset-bottom) + 24px)); display: grid; gap: 12px; max-width: 1240px; margin: 0 auto; }
.footer p { margin: 0; color: var(--muted); font-size: 13px; max-width: 820px; }
.foot-brand { font-size: 20px; }


/* ---------- кинематографичный первый экран: дымка над горизонтом, плёночное зерно, виньетка ---------- */
.haze {
  position: absolute; z-index: -2; left: 0; right: 0; bottom: 120px; height: 260px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 111, 181, .28), transparent 70%);
  filter: blur(20px); animation: haze 9s ease-in-out infinite alternate;
}
@keyframes haze { from { opacity: .6; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(5, 3, 10, .65) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.phone-video:not(.hidden) ~ .mock-scene, .phone-video:not(.hidden) ~ .mock-label,
.phone-video:not(.hidden) ~ .mock-caption, .phone-video:not(.hidden) ~ .mock-progress { display: none; }

/* ---------- настоящие ролики ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; }
.demo-card { display: grid; gap: 14px; align-content: start; }
.demo-phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; padding: 8px; overflow: hidden;
  background: linear-gradient(160deg, #2a2140, #0e0a18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 60px rgba(255, 61, 154, .18);
  transition: transform .35s ease, box-shadow .35s ease;
}
.demo-card:hover .demo-phone { transform: translateY(-6px); box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 61, 154, .4), 0 0 80px rgba(255, 61, 154, .3); }
.demo-phone video { width: 100%; height: 100%; border-radius: 21px; object-fit: cover; background: #000; display: block; }
.demo-chip { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 5px 12px; border-radius: 999px; font: 400 15px/1.2 var(--display);
  letter-spacing: .04em; text-transform: uppercase; background: rgba(9, 7, 15, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); pointer-events: none; }
.demo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.dm-auto { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFC85A; }
.demo-why { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-why li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); color: #DCD0FF; }
.demo-src { font-size: 12px; color: var(--muted); }
.demo-src a { color: #CFC6E0; display: inline-block; padding: 10px 0; margin: -10px 0; }  /* область касания на телефоне */
.demo-note { margin-top: 22px; max-width: 760px; }

/* ---------- разбор реальной обработки ---------- */
.run { margin-top: 26px; padding: clamp(20px, 3vw, 34px); }
.run-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 22px; }
.run-title { margin: 0 0 6px; font: 400 clamp(26px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.run-total { display: grid; justify-items: end; }
.run-total strong { font: 400 clamp(34px, 4vw, 52px)/1 var(--display); background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.run-stages { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.run-stages li { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  opacity: .35; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, border-color .5s ease; }
.run.in-view .run-stages li { opacity: 1; transform: none; }
.run.in-view .run-stages li:nth-child(2) { transition-delay: .25s; } .run.in-view .run-stages li:nth-child(3) { transition-delay: .5s; }
.run.in-view .run-stages li:nth-child(4) { transition-delay: .75s; } .run.in-view .run-stages li:nth-child(5) { transition-delay: 1s; }
.run-stages b { display: block; font-size: 14px; } .run-stages span { font-size: 12px; color: var(--muted); }
.run-stages em { display: block; margin-top: 6px; font: 400 22px/1 var(--display); font-style: normal; color: var(--pink-2); }
.run-track { position: relative; }
.run-bar { position: relative; height: 56px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .07)); border: 1px solid var(--line); }
.run-bar .cand { position: absolute; top: 18px; height: 20px; border-radius: 4px; background: rgba(169, 163, 181, .35); }
.run-bar .pick { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; background: var(--sunset);
  box-shadow: 0 0 18px rgba(255, 61, 154, .7); opacity: 0; transform: scaleY(.3); transition: opacity .5s ease, transform .5s ease; }
.run.in-view .run-bar .pick { opacity: 1; transform: none; transition-delay: 1.9s; }
.run-head-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 12px #fff; opacity: 0; }
.run.in-view .run-head-line { animation: scan 1.8s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes scan { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.run-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.run-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #D9D3E3; }
.run-legend li { display: flex; align-items: center; gap: 8px; }
.run-legend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-cand { background: rgba(169, 163, 181, .45); } .lg-clip { background: var(--sunset); }
.run-out { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.run-out li { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 61, 154, .3); background: rgba(255, 61, 154, .06); font-size: 13px; color: var(--muted); }
.run-out li b { display: block; color: #fff; font: 400 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px; }

/* ---------- пример записи в студии ---------- */
.sample-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }

/* ---------- тарифы: два предварительных ---------- */
.plans-two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: start; }
.plans-more { margin: 18px 0 0; } .plans-more a { color: var(--pink-2); font-weight: 600; text-decoration: none; display: inline-block; padding: 12px 0; }
.plans-more a:hover { text-decoration: underline; }

/* ---------- ранний доступ ---------- */
.early-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 56px); padding: clamp(24px, 4vw, 48px);
  border-radius: 28px; border: 1px solid rgba(255, 61, 154, .35); max-width: 1180px;
  background: radial-gradient(90% 120% at 0% 0%, rgba(255, 135, 84, .18), transparent 55%),
              radial-gradient(90% 120% at 100% 100%, rgba(139, 92, 246, .22), transparent 55%), var(--card);
  box-shadow: 0 0 80px rgba(255, 61, 154, .12);
}
.early-copy h2 { margin-bottom: 10px; }
.early-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.early-points li { position: relative; padding-left: 26px; color: #E3DDEB; }
.early-points li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.early-form { display: grid; gap: 14px; align-content: start; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #D9D3E3; }
.fld em { font-weight: 400; font-style: normal; }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9, 7, 15, .6);
  /* 16px: на iPhone поле с более мелким шрифтом при фокусе приближает всю страницу */
  color: #fff; font: 500 16px/1.4 var(--body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: rgba(255, 61, 154, .7); box-shadow: 0 0 0 3px rgba(255, 61, 154, .18); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #D9D3E3; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--pink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.2em; font-weight: 600; }
.form-msg.ok { color: var(--ok); } .form-msg.bad { color: #ff9fb0; }
.early-form.done .fld, .early-form.done .fld-row, .early-form.done .consent, .early-form.done button { display: none; }
.early-form.done { align-content: center; }
.early-form.done .form-msg { font-size: 18px; line-height: 1.45; padding: 22px 24px; border-radius: 16px;
  background: rgba(61, 255, 180, .08); border: 1px solid rgba(61, 255, 180, .35); box-shadow: 0 0 40px rgba(61, 255, 180, .12); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #D9D3E3; text-decoration: none; font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: #fff; }


/* ---------- атмосфера Vice City (собственная графика CSS/SVG) ---------- */
html { overflow-x: clip; }
.horizon {
  position: absolute; z-index: -2; left: 0; right: 0; bottom: 228px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 181, .9) 18%, #FFD36E 50%, rgba(139, 92, 246, .9) 82%, transparent);
  box-shadow: 0 0 18px rgba(255, 61, 154, .8), 0 0 70px rgba(255, 61, 154, .35);
}
/* огни машин на дамбе у горизонта */
.trails { position: absolute; z-index: -2; left: 0; right: 0; bottom: 231px; height: 12px; overflow: hidden; pointer-events: none; }
.trails i { position: absolute; top: 0; left: -20%; height: 2px; width: 110px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #FF3D9A); box-shadow: 0 0 10px #FF3D9A; animation: trail 7s linear infinite; }
.trails i:nth-child(2) { top: 6px; width: 80px; background: linear-gradient(270deg, transparent, #3DE7FF); box-shadow: 0 0 10px #3DE7FF;
  animation: trail-back 9s linear infinite; animation-delay: -4s; }
.trails i:nth-child(3) { top: 3px; width: 60px; opacity: .75; animation-duration: 11s; animation-delay: -7s; }
.trails i:nth-child(4) { top: 9px; width: 50px; background: linear-gradient(270deg, transparent, #FFD36E); box-shadow: 0 0 10px #FFD36E;
  animation: trail-back 13s linear infinite; animation-delay: -2s; opacity: .8; }
@keyframes trail { from { left: -20%; } to { left: 110%; } }
@keyframes trail-back { from { left: 110%; } to { left: -20%; } }

/* неоновые разделители и закатное свечение разделов */
main > section { position: relative; isolation: isolate; }
main > section + section::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 154, .6) 30%, rgba(139, 92, 246, .6) 70%, transparent);
  box-shadow: 0 0 16px rgba(255, 61, 154, .35);
}
.demo::after, .pricing::after, .how::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; max-width: 90vw;
  background: radial-gradient(closest-side, rgba(255, 61, 154, .16), transparent);
}
.demo::after { top: 6%; right: -8%; }
.how::after { bottom: 0; left: -10%; background: radial-gradient(closest-side, rgba(61, 231, 255, .09), transparent); }
.pricing::after { bottom: -10%; left: 20%; background: radial-gradient(closest-side, rgba(139, 92, 246, .2), transparent); }
.kicker { text-shadow: 0 0 14px rgba(255, 61, 154, .55); }
h2 { text-shadow: 0 0 46px rgba(255, 61, 154, .2); }
.demo-phone::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 61, 154, .45), transparent); filter: blur(8px);
}
.demo-card { position: relative; }
.demo-phone { overflow: visible; }
.demo-phone video { position: relative; }
/* пальмы в карточке раннего доступа */
.early-card { position: relative; overflow: hidden; }
.early-card::after {
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 260px; height: 312px; pointer-events: none; opacity: .09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 360'%3E%3Cg fill='%23FF3D9A'%3E%3Cpath d='M120 360 C126 280 132 200 150 120 L156 122 C142 200 138 280 136 360Z'/%3E%3Cpath d='M152 122 C110 92 70 96 30 120 C78 100 116 104 150 128Z M152 122 C190 84 236 82 270 100 C226 92 190 102 156 128Z M152 122 C140 74 104 52 70 50 C106 66 132 90 150 126Z M152 122 C176 78 214 62 246 64 C210 76 184 98 156 128Z M152 122 C122 116 88 140 70 176 C98 146 124 132 150 128Z M152 122 C190 124 220 150 232 184 C206 152 182 136 154 130Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.early-card > * { position: relative; z-index: 1; }
/* полоса заката над подвалом */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: var(--gutter); right: var(--gutter); height: 2px;
  background: var(--sunset); box-shadow: 0 0 24px rgba(255, 61, 154, .55);
}

/* невысокие экраны ноутбуков (MacBook Air 13" — 800–900 пикселей по высоте): текст первого экрана целиком над
   линией горизонта — заголовок масштабируется и по высоте экрана, нижний отступ равен высоте «дороги» */
@media (min-width: 901px) and (max-height: 1000px) {
  .hero { padding-top: 92px; padding-bottom: 250px; }
  h1 { font-size: clamp(46px, min(7.4vw, 10vh), 104px); }
  .lede { margin: 16px 0 22px; }
  .facts { margin-top: 24px; }
}

/* закат за телефоном справа: не перекрывает заголовок */
@media (min-width: 901px) {
  .sun { left: 72%; bottom: 170px; width: min(620px, 52vw); }
  .haze { left: 35%; }
}


/* ---------- персонализация: компактная панель «Fine-tune your clips» ---------- */
.tune { margin-top: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: border-color .25s, box-shadow .25s; }
.tune[open] { border-color: rgba(255, 61, 154, .4); box-shadow: 0 0 40px rgba(255, 61, 154, .1); }
.tune summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.tune summary::-webkit-details-marker { display: none; }
.tune-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: rgba(255, 61, 154, .12); border: 1px solid rgba(255, 61, 154, .35); }
.tune-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--pink-2); stroke-width: 2; stroke-linecap: round; }
.tune-head { font-size: 14px; }
.tune-head em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.tune-sum { margin-left: auto; font-size: 12.5px; color: #DCD0FF; padding: 5px 11px; border-radius: 999px;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); }
.tune-sum::after { content: " ▾"; color: var(--pink-2); }
.tune[open] .tune-sum::after { content: " ▴"; }
.tune-body { padding: 4px 16px 16px; display: grid; gap: 14px; }
.tune-label { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-2);
  text-shadow: 0 0 12px rgba(255, 61, 154, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 7, 15, .55);
  color: #E3DDEB; font: 600 13.5px/1.2 var(--body); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, color .2s; }
.chip:hover { border-color: rgba(255, 61, 154, .55); }
.chip[aria-checked="true"] { color: #fff; border-color: transparent;
  background: linear-gradient(#150f22, #150f22) padding-box, var(--sunset) border-box; border: 1px solid transparent;
  box-shadow: 0 0 18px rgba(255, 61, 154, .35); }
.chip[disabled] { cursor: not-allowed; color: var(--muted); opacity: .6; }
.chip .soon { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #FFC85A; border: 1px solid rgba(255, 200, 90, .45); }
.chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tune-effects { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(9, 7, 15, .5); border: 1px dashed rgba(255, 255, 255, .12);
  display: grid; gap: 6px; font-size: 13px; color: #D9D3E3; }
.tune-effects b { color: var(--pink-2); font-weight: 700; margin-right: 6px; }
.tune .mic-opt { margin-top: 0; }
.result-opts { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.result-opts span, .h-opts span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 61, 154, .1); border: 1px solid rgba(255, 61, 154, .3); color: #FFD0E6; }
.h-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.h-opts span { font-size: 11px; padding: 2px 8px; }
@media (max-width: 640px) {
  .tune summary { padding: 12px; gap: 10px; }
  .tune-body { padding: 4px 12px 14px; }
  .tune-sum { margin-left: 0; width: 100%; text-align: center; font-size: 12px; padding: 5px 10px; }
  /* на телефоне — две колонки: панель остаётся компактной */
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chip { min-height: 40px; padding: 7px 8px; font-size: 13px; text-align: center; }
  .chip .soon { display: block; width: max-content; margin: 3px auto 0; font-size: 9px; padding: 1px 6px; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .chip-a { left: -20%; } .chip-b { right: -16%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .demo-card { scroll-snap-align: start; }
  .run-stages { grid-template-columns: repeat(3, 1fr); }
  .early-card { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; padding-bottom: 120px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .phone-stage { order: -1; margin-top: 8px; }
  .phone { width: 200px; transform: none; animation: none; }
  .float-chip { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .f-hot { grid-row: auto; grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  /* страницы без кнопки меню и скрипта (Privacy, Beta Terms — по тесту CSP без <script>): две короткие ссылки
     помещаются в шапку и на телефоне, поэтому остаются на виду */
  .nav:not(:has(.nav-toggle)) .nav-links { display: flex; gap: 18px; }
  .nav-cta + .nav-toggle { margin-left: 0; }   /* рядом с кнопкой «Try it free» отступ даёт она сама */
  /* открытое меню: ссылки колонкой под шапкой на всю ширину, со своим фоном (шапка наверху страницы прозрачная) */
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 6px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
    /* непрозрачный фон без вложенного backdrop-filter: внутри шапки с размытием фон меню просвечивал (Chromium) */
    background: #0B0912;
  }
  .nav.menu-open .nav-links a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  main > section { padding: 64px var(--gutter); }
  .horizon, .trails { display: none; }  /* на телефоне текст первого экрана доходит до линии горизонта */
  /* полосы солнца проходят под текстом первого экрана — тише солнце и тень у текста, чтобы читалось */
  .hero .sun { opacity: .42; -webkit-mask: linear-gradient(180deg, #000 0 40%, transparent 85%);
               mask: linear-gradient(180deg, #000 0 40%, transparent 85%); }   /* без полос-прорезей под текстом: ярче прежних .2, но без контрастных полос */
  .hero-copy .lede, .hero-copy .facts span { text-shadow: 0 1px 14px rgba(9, 7, 15, .95), 0 0 2px rgba(9, 7, 15, .9); }
  .demo-grid { grid-template-columns: repeat(3, 78%); gap: 16px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .run-stages { grid-template-columns: 1fr 1fr; }
  .run-total { justify-items: start; }
  .plans-two { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .phone-stage { display: none; }
  .sun { bottom: auto; top: 70px; width: 115vw; opacity: .2; }
  .facts span { color: #D9D3E3; }
  .cta-row .btn { flex: 1 1 100%; }
  .facts { gap: 12px 22px; }
  .facts strong { font-size: 24px; }
  .progress-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .progress-info { width: 100%; }
  .steps-inline { grid-template-columns: 1fr 1fr; text-align: left; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature:last-child { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .history-list li { grid-template-columns: auto 1fr auto; }
  .h-date { display: none; }
  .history-list li .h-status { grid-column: 2; grid-row: 2; }
  .results-actions, .results-actions .btn { width: 100%; }
  .results-actions .btn { flex: 1; }
  .dropzone { min-height: 240px; }
  .brand { font-size: 21px; }
}

/* Закрытая бета: страница входа по приглашению и строка «вошли как …» */
.signin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 96px 16px 48px;
  position: relative; isolation: isolate; overflow: hidden; }
/* вход и согласие — первые экраны тестировщика: тот же неоновый закат, что на главной, приглушённый за карточкой */
.signin-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -18vh; width: min(640px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, #FFD36E 0%, #FF8754 38%, #FF3D9A 70%, #8B5CF6 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 62%, transparent 62% 67%, #000 67% 72%, transparent 72% 78%, #000 78% 82%, transparent 82% 89%, #000 89% 92%, transparent 92%);
          mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 62%, transparent 62% 67%, #000 67% 72%, transparent 72% 78%, #000 78% 82%, transparent 82% 89%, #000 89% 92%, transparent 92%);
  filter: drop-shadow(0 0 60px rgba(255, 61, 154, .5)); opacity: .38;
}
.signin-wrap::after {
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 100%, rgba(255, 61, 154, .22), transparent 70%),
              radial-gradient(45% 35% at 12% 8%, rgba(139, 92, 246, .2), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) { .signin-wrap::before { animation: auth-sun 9s ease-in-out infinite alternate; } }
@keyframes auth-sun { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-14px); } }
.signin-card { width: min(440px, 100%); }
.signin-card .results-title { font-size: clamp(26px, 6vw, 34px); }
.status-note { margin-top: 6px; color: #D9D3E3; }
.beta-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.beta-user a { color: var(--muted); }
.beta-user a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Privacy Notice, Beta Terms и согласие перед первым использованием (закрытая бета) */
.legal { max-width: 820px; margin: 0 auto; padding: 120px var(--gutter) 72px; overflow-wrap: anywhere; }
.legal h1 { font: 400 clamp(38px, 7vw, 64px)/1 var(--display); text-transform: uppercase; margin: 6px 0 10px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: #D9D3E3; line-height: 1.6; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--pink-2); }
.legal code { font-size: .92em; }
.legal-meta { color: var(--muted) !important; font-size: 14px; }
.legal-draft { border: 1px solid rgba(255, 135, 84, .5); background: rgba(255, 135, 84, .08); border-radius: 12px; padding: 12px 14px; }
mark.todo { background: rgba(255, 135, 84, .22); color: #FFD9C7; border-radius: 4px; padding: 0 4px; }
.legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); color: #D9D3E3; }
.legal-table td:first-child { width: 62%; }
@media (max-width: 640px) {
  .legal { padding-top: 96px; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100% !important; }
  .legal-table thead { display: none; }
  .legal-table td { border-bottom: 0; padding: 4px 0; }
  .legal-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
.consent-card { width: min(520px, 100%); }
.consent-points { padding-left: 18px; display: grid; gap: 8px; margin: 4px 0 16px; color: #D9D3E3; font-size: 14px; line-height: 1.5; }
.consent a, .consent-card a { color: var(--pink-2); }

/* Карточка ролика на телефоне: видео 9:16 не занимает весь экран, а кнопка скачивания стоит сразу под ним */
@media (max-width: 640px) {
  .clip-frame { max-height: 60vh; max-height: 60dvh; }
  .clip-top { order: -3; }
  .clip-body .download { order: -2; margin-top: 0; }
}
