/* LoveAI — страница скачивания */
:root {
  --bg: #070a14;
  --bg-2: #0c1122;
  --card: rgba(255, 255, 255, .045);
  --card-hi: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .18);
  --text: #eef1fa;
  --muted: #9aa3bd;
  --faint: #677090;
  --blue: #3b6cff;
  --violet: #8b5cf6;
  --red: #ff4d5e;
  --grad: linear-gradient(120deg, #3b6cff 0%, #8b5cf6 50%, #ff4d5e 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.08; }
p { margin: 0; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ambient background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 18s ease-in-out infinite; }
.o1 { width: 620px; height: 620px; background: #2747d8; top: -220px; left: -160px; }
.o2 { width: 520px; height: 520px; background: #7a3ee0; top: 120px; right: -180px; animation-delay: -6s; opacity: .45; }
.o3 { width: 460px; height: 460px; background: #e3364b; top: 760px; left: 30%; animation-delay: -12s; opacity: .22; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.06); } }

/* nav */
.nav {
  position: sticky; top: 12px; z-index: 50; max-width: var(--wrap); margin: 12px auto 0; padding: 10px 12px 10px 16px;
  display: flex; align-items: center; gap: 24px; border-radius: 16px;
  background: rgba(10, 14, 28, .55); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  width: calc(100% - 32px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); }
.brand img { border-radius: 10px; }
.brand.small { font-size: 15px; }
.brand.small img { border-radius: 7px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s; }
.links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid #9db4ff; outline-offset: 3px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 16px 26px; font-size: 16.5px; }
.btn-block { width: 100%; padding: 14px 18px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(110, 80, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-grad:hover { box-shadow: 0 14px 40px -10px rgba(140, 90, 255, .9), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line-hi); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn .ico { display: inline-flex; width: 20px; height: 20px; }
.btn .ico svg { width: 100%; height: 100%; }
.btn .ico:empty { display: none; }

/* hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 40px;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-hi); font-size: 13.5px; font-weight: 600; color: #cdd5f0;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 0 4px rgba(62,224,138,.18); }
.pill-sep { color: var(--faint); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 22px 0 20px; }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta.center { justify-content: center; }
.cta-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* app mockup */
.mock { position: relative; perspective: 1400px; }
.mock-glow { position: absolute; inset: 8% 4%; background: var(--grad); filter: blur(70px); opacity: .45; border-radius: 40px; }
.window {
  position: relative; border-radius: 18px; overflow: hidden; background: #0e1324;
  border: 1px solid var(--line-hi); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease);
}
.mock:hover .window { transform: rotateY(-3deg) rotateX(2deg); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.win-body { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 360px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; border-right: 1px solid var(--line); }
.bubble { font-size: 13px; line-height: 1.5; border-radius: 14px; padding: 10px 12px; max-width: 92%; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, #3355e8, #6c47d8); color: #fff; border-bottom-right-radius: 5px; min-height: 40px; }
.bubble.ai { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.bubble.ai.show { opacity: 1; transform: none; }
.caret { display: inline-block; width: 2px; height: 14px; background: #fff; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.bubble.user.sent .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.think { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.spark { color: #a98bff; animation: spin 2.4s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.shim { background: linear-gradient(90deg, #6c7591 0%, #e8ecff 50%, #6c7591 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; font-weight: 600; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ai-done { display: none; }
.bubble.ai.done .think { display: none; }
.bubble.ai.done .ai-done { display: block; }
.ai-done p { margin-bottom: 8px; }
.chip {
  display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 7px 9px; margin-top: 6px; border-radius: 10px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); animation: pop .4s var(--ease) both;
}
.chip:nth-child(3) { animation-delay: .15s; }
.chip b { font-size: 9.5px; padding: 2px 5px; border-radius: 5px; background: #ff7a45; color: #fff; }
.chip:nth-child(3) b { background: #3b82f6; }
.chip em { margin-left: auto; font-style: normal; color: #3ee08a; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.composer {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 12.5px; color: var(--faint);
}
.composer .ph { flex: 1; }
.composer .send { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.preview { position: relative; background: #0a0e1c; display: flex; flex-direction: column; }
.pv-bar { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pv-bar span { display: block; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 7px; padding: 4px 10px; text-align: center; }
.pv-site { flex: 1; opacity: 0; transform: scale(.97); transition: opacity .6s, transform .6s var(--ease); display: flex; flex-direction: column; }
.preview.ready .pv-site { opacity: 1; transform: none; }
.preview.ready .pv-empty { opacity: 0; }
.pv-hero {
  padding: 22px 16px 20px; color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(255,190,120,.35), transparent 50%), linear-gradient(160deg, #3b2418, #1a100b);
}
.pv-logo { font-size: 11px; font-weight: 800; letter-spacing: .04em; opacity: .9; }
.pv-title { font: 700 19px/1.15 var(--display); margin: 16px 0 14px; max-width: 200px; }
.pv-btn { display: inline-block; font-size: 11px; font-weight: 800; padding: 7px 14px; border-radius: 99px; background: #f3b36b; color: #2a170c; }
.pv-menu { padding: 12px 14px; display: grid; gap: 7px; background: #f6efe7; flex: 1; }
.pv-menu div { display: flex; justify-content: space-between; font-size: 11.5px; color: #3a2a20; padding: 7px 10px; background: #fff; border-radius: 9px; }
.pv-menu b { color: #a5592a; }
.pv-empty { position: absolute; inset: 40px 0 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; transition: opacity .4s; }
.pv-empty span { font-size: 22px; color: #6d5bd0; }

/* marquee */
.marquee { margin: 40px 0 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: scroll 46s linear infinite; }
.track span { padding: 10px 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: #c9d0e6; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 110px 24px 0; }
.section.narrow { max-width: 820px; }
.head { text-align: center; margin-bottom: 48px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a8b6ff; margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 4vw, 48px); }
.head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* download cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-3px); }
.card.mine { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 70px -30px rgba(120, 80, 255, .55); }
.card .tag { display: none; position: absolute; top: -12px; left: 18px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--grad); color: #fff; }
.card.mine .tag { display: block; }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.card-ico svg { width: 26px; height: 26px; }
.card[data-os="android"] .card-ico { color: #3ddc84; }
.card[data-os="windows"] .card-ico { color: #4cc2ff; }
.card[data-os="ios"] .card-ico { color: #f2f4fa; }
.card[data-os="web"] .card-ico { color: #b49bff; }
.card h3 { font-size: 20px; }
.meta { font-size: 13.5px; color: var(--muted); margin-top: -6px; }
.card .btn { margin-top: auto; }
details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #c5cdf0; list-style: none; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--faint); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
.card details { border-top: 1px solid var(--line); padding-top: 12px; }
.card ol { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }
.share { display: inline-block; padding: 0 5px; border-radius: 5px; background: rgba(255,255,255,.1); }
.whatsnew { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.whatsnew b { color: var(--text); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.feat:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.feat.big { grid-row: span 2; display: flex; flex-direction: column; background: radial-gradient(circle at 100% 0%, rgba(124, 77, 216, .28), transparent 55%), var(--card); }
.f-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.07); border: 1px solid var(--line); margin-bottom: 18px; }
.feat.big .f-ico { background: var(--grad); color: #fff; border: 0; }
.feat h3 { font-size: 18.5px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat.big h3 { font: 700 26px/1.2 var(--display); margin-bottom: 14px; }
.f-demo { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.f-demo span { padding: 9px 14px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.f-demo span:nth-child(2) { background: none; border: 0; padding: 0; color: var(--faint); }
.f-demo .ok { color: #3ee08a; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 18px var(--display); background: var(--grad); margin-bottom: 18px; box-shadow: 0 10px 30px -8px rgba(120, 80, 255, .7); }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { padding: 18px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary { font-size: 16.5px; color: var(--text); }
.faq p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* final */
.final {
  max-width: 920px; margin: 120px auto 0; padding: 64px 24px; text-align: center; border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 77, 216, .35), transparent 60%), var(--card); border: 1px solid var(--line);
  width: calc(100% - 32px);
}
.final img { margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 20px 50px -15px rgba(229, 72, 77, .5); }
.final h2 { font-size: clamp(28px, 4vw, 44px); }
.final p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.final .cta { margin-top: 28px; }

.footer {
  max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13.5px;
}
.footer .brand { margin-right: auto; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feat.big, .feat:last-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 44px; text-align: center; }
  .lead { margin: 0 auto; }
  .cta { justify-content: center; }
  .window { transform: none; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); padding: 8px 8px 8px 12px; }
  .hero { padding: 44px 16px 24px; }
  .hero h1 { margin: 18px 0 16px; }
  .cta .btn { width: 100%; }
  .section { padding: 80px 16px 0; }
  .head { margin-bottom: 32px; }
  .cards, .features { grid-template-columns: 1fr; }
  .feat.big, .feat:last-child { grid-column: auto; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); min-height: 250px; }
  .preview { min-height: 250px; }
  .final { padding: 48px 18px; margin-top: 90px; width: calc(100% - 16px); }
  .final .cta .btn { width: 100%; }
  .footer { justify-content: center; text-align: center; }
  .footer .brand { margin-right: 0; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
