/* Playly — сайт. Тёмная тема, живой фон, анимации только transform/opacity */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --dim: #8c8c8c;
  --accent: #ffffff;
  --c1: #ffffff;
  --c2: #d6d6d6;
  --c3: #bdbdbd;
  --c4: #8f8f8f;
  --c5: #cfcfcf;
  --grad: linear-gradient(100deg, #ffffff 0%, #c9c9c9 40%, #8f8f8f 65%, #e6e6e6 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.45em; border-radius: 6px; word-break: break-word; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.6vw, 54px); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- живой фон ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  opacity: .11; will-change: transform;
}
.aurora span:nth-child(1) { background: radial-gradient(circle closest-side, var(--c1), transparent); left: -18vmax; top: -22vmax; animation: drift1 26s var(--ease) infinite alternate; }
.aurora span:nth-child(2) { background: radial-gradient(circle closest-side, var(--c3), transparent); right: -20vmax; top: 8vmax; animation: drift2 32s var(--ease) infinite alternate; }
.aurora span:nth-child(3) { background: radial-gradient(circle closest-side, var(--c4), transparent); left: 20vmax; bottom: -34vmax; opacity: .08; animation: drift3 38s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(22vmax, 14vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-18vmax, 18vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-14vmax, -20vmax, 0) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- шапка ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, border-color .35s, height .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  --header-h: 60px;
  background: rgba(10, 10, 10, .66);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--font-display); }
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.header .btn { padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  background: var(--surface); color: var(--text);
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: #fff; color: #0a0a0c; border-color: #fff; box-shadow: 0 10px 40px -10px rgba(255, 255, 255, .45); }
.btn-primary:hover { background: #fff; box-shadow: 0 16px 50px -12px rgba(255, 255, 255, .5); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(150, 150, 150, .35) 45%, rgba(150, 150, 150, .35) 55%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.2s var(--ease) infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn small { font-weight: 600; opacity: .7; font-size: 13px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--header-h) + 56px) 0 80px; display: flex; align-items: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.badge:hover { border-color: rgba(255,255,255,.3); background: var(--surface-2); }
.badge b { background: var(--grad); color: #0a0a0c; padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(38px, 6.2vw, 78px); margin: 22px 0 0; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); max-width: 540px; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--dim); font-size: 14px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .7); }

.stage { position: relative; perspective: 1400px; }
.stage-inner { position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: #121212;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stage .glow {
  position: absolute; inset: -6% -8% -14%; z-index: -1; opacity: .7;
  background: radial-gradient(closest-side at 36% 46%, rgba(255, 255, 255, .55), transparent), radial-gradient(closest-side at 72% 60%, rgba(170, 170, 170, .45), transparent);
  animation: pulse 7s ease-in-out infinite alternate;
}
@keyframes pulse { from { transform: scale(.95); opacity: .55; } to { transform: scale(1.06); opacity: .85; } }
.phone {
  position: relative; width: 100%; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2a2a2a, #0d0d0d);
  border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #050506; z-index: 2; box-shadow: 0 0 0 2px rgba(255,255,255,.05); }
.phone img { width: 100%; border-radius: 26px; aspect-ratio: 540 / 1136; object-fit: cover; background: #111; }
.stage .phone { position: absolute; width: 26%; right: -4%; bottom: -14%; transform: translateZ(60px); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(18, 18, 18, .9); border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 40px -14px rgba(0,0,0,.8);
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; flex: none; }
.chip-1 { left: -5%; top: 12%; transform: translateZ(80px); }
.chip-2 { left: 8%; bottom: -8%; animation-delay: -2s; transform: translateZ(90px); }
.chip-3 { right: 4%; top: -6%; animation-delay: -4s; transform: translateZ(70px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.eqbars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eqbars b { width: 3px; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: 50% 100%; animation: eq 1.1s ease-in-out infinite; }
.eqbars b:nth-child(2) { animation-delay: -.3s; } .eqbars b:nth-child(3) { animation-delay: -.6s; } .eqbars b:nth-child(4) { animation-delay: -.15s; } .eqbars b:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line-2); z-index: 1; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- полоса цифр ---------- */
.stats { border-block: 1px solid var(--line); background: rgba(255,255,255,.02); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(32px, 4.4vw, 52px)/1 var(--font-display); }
.stat span { display: block; color: var(--muted); font-size: 15px; margin-top: 10px; }
