@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --bg: #07060b;
  --bg-elev: #12101a;
  --ink: #f5f2ff;
  --muted: rgba(245, 242, 255, 0.68);
  --faint: rgba(245, 242, 255, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --violet: #7c3aed;
  --magenta: #d946ef;
  --pink: #ec4899;
  --orange: #f97316;
  --grad: linear-gradient(120deg, #7c3aed 0%, #d946ef 48%, #f97316 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(217, 70, 239, 0.22), rgba(249, 115, 22, 0.18));
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(900px 480px at 95% 8%, rgba(249, 115, 22, 0.18), transparent 55%),
    radial-gradient(700px 500px at 70% 90%, rgba(217, 70, 239, 0.12), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 100; box-shadow: 0 0 18px rgba(217, 70, 239, 0.55);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0;
  backdrop-filter: blur(16px);
}
.nav-back, .nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color 0.2s;
}
.nav-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-back:hover, .nav-links a:hover { color: var(--ink); }
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 18px; }

.hero {
  padding: 48px 0 28px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(217, 70, 239, 0.8);
}
.hero h1 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.95; letter-spacing: -0.05em; font-weight: 800;
}
.hero h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin: 0 0 28px; max-width: 34rem;
  color: var(--muted); font-size: 1.08rem; line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad); color: #120816;
  box-shadow: 0 14px 40px rgba(217, 70, 239, 0.28);
}
.btn-ghost {
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.hero-stats span {
  padding: 14px 12px; border-radius: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  color: var(--faint); font-size: 12px; line-height: 1.35;
}
.hero-stats strong {
  display: block; margin-bottom: 4px;
  color: var(--ink); font-size: 13px; font-weight: 700;
}

.hero-visual { position: relative; min-height: 420px; }
.phone {
  position: relative; width: min(300px, 100%); margin: 0 auto;
  padding: 14px; border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.phone-screen {
  position: relative; overflow: hidden; border-radius: 26px;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 214, 102, 0.18), transparent 42%),
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.22), transparent 40%),
    #15121f;
}
.phone-screen::after,
.play-frame::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,6,11,0.08) 0%, rgba(7,6,11,0.02) 45%, rgba(7,6,11,0.62) 100%);
}
.phone-status {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; padding: 14px 16px 0;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.75);
}
.phone-preview {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: end center;
  padding: 0 18px 72px;
}

/* Живой Memoji: только голова, без плиты и без 3D-filter артефактов */
.memoji-stage {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  padding-bottom: 18%;
  pointer-events: none;
  background: none;
}
.memoji-rig {
  width: min(78%, 260px);
  aspect-ratio: 1;
  will-change: transform;
  background: none;
  /* Без CSS filter — в Safari filter+transform даёт тёмный прямоугольник */
}
.memoji-frames {
  position: relative;
  width: 100%;
  height: 100%;
  background: none;
  /* Страховка: срезаем любые остатки квадратной плиты */
  -webkit-mask-image: radial-gradient(ellipse 52% 58% at 50% 46%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 58% at 50% 46%, #000 72%, transparent 100%);
}
.memoji-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.28s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
  background: none;
  /* На случай старого кэша с непрозрачной плитой */
  mix-blend-mode: normal;
}
.memoji-frame.is-on { opacity: 1; }
.caption-line {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; max-width: 100%; width: 100%;
}
.cap-word {
  position: relative;
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.03em; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  /* Паддинг всегда одинаковый — подсветка не меняет ширину и не ломает переносы */
  padding: 4px 10px;
  border-radius: 10px;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  will-change: color, background;
}
.cap-word.active {
  background: var(--grad);
  color: #120816;
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(217, 70, 239, 0.35);
}
.phone-glow {
  position: absolute; inset: 18% -10% auto; height: 60%;
  background: var(--grad); filter: blur(60px); opacity: 0.35; z-index: -1;
}
.float-chip {
  position: absolute; padding: 10px 14px; border-radius: 999px;
  background: rgba(18,16,26,0.82); border: 1px solid var(--line);
  backdrop-filter: blur(10px); font-size: 12px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip.a { top: 18%; left: -4%; }
.float-chip.b { top: 42%; right: -8%; animation-delay: -1.5s; }
.float-chip.c { bottom: 12%; left: 4%; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 {
  margin: 12px 0 12px;
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em; line-height: 1.05;
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.65; }

.playground {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px;
  padding: 22px; border-radius: calc(var(--radius) + 8px);
  background: rgba(255,255,255,0.025); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.play-stage {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
    var(--grad-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.play-stage::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.2), transparent 35%);
}
.play-frame {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: var(--frame-w, 56%);
  aspect-ratio: var(--frame-ratio, 9 / 16);
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 214, 102, 0.16), transparent 42%),
    radial-gradient(circle at 30% 18%, rgba(124, 58, 237, 0.3), transparent 45%),
    #1a1028;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  transition: width 0.35s var(--ease), aspect-ratio 0.35s var(--ease);
  display: grid; place-items: end center;
  padding: 0 14px 16%;
}
.play-frame .memoji-rig { width: min(78%, 210px); }
.play-caption {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; width: 100%; text-align: center;
}
.play-caption .cap-word { font-size: clamp(1.05rem, 2.1vw, 1.4rem); }
.play-caption.is-row {
  flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 8px;
}
.play-controls { display: grid; gap: 18px; align-content: start; }
.control-block h3 {
  margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint); font-weight: 700;
}
.style-rail, .format-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: var(--muted); font-size: 13px; font-weight: 700;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.18); }
.chip.active {
  color: #120816; border-color: transparent; background: var(--grad);
  box-shadow: 0 10px 24px rgba(217, 70, 239, 0.25);
}
.play-note { color: var(--faint); font-size: 13px; line-height: 1.5; margin: 0; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.feature-card {
  position: relative; padding: 24px; border-radius: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 70, 239, 0.35);
  background: rgba(255,255,255,0.05);
}
.feature-card::after {
  content: ''; position: absolute; width: 140px; height: 140px; right: -40px; top: -40px;
  border-radius: 50%; background: var(--grad); opacity: 0.08; filter: blur(20px);
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,0.08);
  font-size: 18px;
}
.feature-card h3 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: -0.03em;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.access-band {
  margin-top: 18px; padding: 28px; border-radius: 24px;
  background: var(--grad-soft); border: 1px solid rgba(255,255,255,0.1);
}
.access-band h3 {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em;
}
.access-band p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 70ch; }

.cta {
  margin: 20px 0 90px; padding: 48px 36px; border-radius: 32px;
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(124,58,237,0.35), transparent 60%),
    radial-gradient(700px 240px at 90% 100%, rgba(249,115,22,0.25), transparent 55%),
    rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em;
}
.cta p { margin: 0; color: var(--muted); max-width: 40ch; line-height: 1.6; }

.footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

.privacy-page-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.privacy-title {
  margin: 10px 0 8px; text-align: center;
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.04em;
}
.privacy-subtitle { text-align: center; color: var(--faint); margin: 0 0 28px; }
.policy-card {
  padding: 28px; border-radius: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
}
.policy-card h2 {
  margin: 28px 0 10px; font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.02em;
}
.policy-card h2:first-child { margin-top: 0; }
.policy-card p, .policy-card li { color: var(--muted); line-height: 1.7; }
.policy-card ul { padding-left: 1.2rem; }
.policy-card a { color: #f0abfc; text-decoration: underline; text-underline-offset: 3px; }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

@media (max-width: 920px) {
  .hero-grid, .playground, .features-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .play-stage { min-height: 360px; }
  .cta { padding: 32px 22px; }
}

@media (max-width: 560px) {
  .float-chip { display: none; }
  .hero-actions .btn { width: 100%; }
}
