:root {
  color-scheme: dark;
  --bg: #070B16;
  --surface: #11182B;
  --card: #121A31;
  --line: #25345C;
  --text: #FFFFFF;
  --muted: #9AA5C3;
  --primary: #6459D9;
  --accent: #55D6A2;
  --lilac: #B89AFF;
  --tint: #6459D9;
  --p: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
.wrap { width: min(100% - 32px, 72rem); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--lilac); margin: 0 0 12px; }
.grad { background: linear-gradient(90deg, #F0EDFF, #B89AFF 45%, #55D6A2); -webkit-background-clip: text; background-clip: text; color: transparent; }

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100% - 72rem) / 2));
  background: rgba(7, 11, 22, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 52, 92, .5);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.08rem; }
.brand img { border-radius: 9px; }
.top .links { display: flex; gap: 22px; margin-left: auto; }
.top .links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top .links a:hover { color: var(--text); }
.pill { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 650; background: linear-gradient(90deg, var(--primary), #8B6CF5); }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  width: min(100% - 32px, 72rem); margin: 0 auto; padding: 110px 0 80px;
}
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: 1.02; font-weight: 800; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 14px; background: #fff; color: #000; font-weight: 650; font-size: 1.15rem; line-height: 1.1; }
.store svg { width: 26px; height: 26px; fill: #000; }
.store small { display: block; font-size: .68rem; font-weight: 500; }
.store.big { margin-top: 10px; font-size: 1.3rem; padding: 14px 26px; }
.ghost { color: var(--text); text-decoration: none; font-weight: 600; opacity: .85; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .92rem; }
.ticks li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 800; }

.hero-phone { position: relative; justify-self: center; width: min(320px, 78vw, calc((100svh - 150px) * .46)); }
.glow { position: absolute; inset: 8% -20%; background: radial-gradient(closest-side, var(--tint), transparent); opacity: .45; filter: blur(30px); transition: background .8s ease; z-index: 0; }
.phone {
  position: relative; z-index: 1; aspect-ratio: 506 / 1100; width: 100%;
  border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2A3354, #0C1122);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 37px; }
.hero-phone .phone { animation: float 7s ease-in-out infinite; }
.chip {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 14px;
  background: rgba(18, 26, 49, .9); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4); font-size: .82rem; line-height: 1.3; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-size: .9rem; }
.chip span { color: var(--muted); }
.chip.c1 { left: -38%; top: 18%; animation-delay: -1s; }
.chip.c2 { right: -34%; top: 46%; animation-delay: -3s; }
.chip.c2 b { color: #F2A65A; }
.chip.c3 { left: -26%; bottom: 12%; animation-delay: -4.5s; }
.chip.c3 b { color: var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.story { position: relative; height: calc(var(--n) * 100vh); }
.sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 56px 1fr 1fr; align-items: center; gap: 32px;
  width: min(100% - 32px, 72rem); margin: 0 auto; padding-top: 60px;
}
.rail { position: relative; justify-self: center; width: 3px; height: 46%; border-radius: 3px; background: var(--line); }
.rail i { position: absolute; inset: 0 0 auto 0; height: calc(var(--p) * 100%); border-radius: 3px; background: linear-gradient(var(--lilac), var(--tint)); transition: background .6s; }
.chapters { position: relative; height: 26rem; }
.chapter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(40px); transition: opacity .3s ease, transform .5s ease; pointer-events: none; }
.chapter.on { transition: opacity .55s ease .12s, transform .55s ease .12s; }
.chapter.on { opacity: 1; transform: none; pointer-events: auto; }
.chapter.past { transform: translateY(-40px); }
.step { font-weight: 800; font-size: 1rem; color: var(--tint); margin: 0 0 12px; transition: color .6s; }
.step span { color: var(--muted); font-weight: 600; }
.chapter h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.chapter p:not(.step) { color: var(--muted); font-size: 1.12rem; max-width: 30rem; margin: 18px 0 16px; }
.chapter ul { padding: 0; margin: 0; list-style: none; }
.chapter li { color: var(--text); font-size: .98rem; margin: 6px 0; }
.chapter li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); margin-right: 12px; vertical-align: middle; transition: background .6s; }
.stage { position: relative; justify-self: center; width: min(330px, 40vw, calc((100svh - 110px) * .46)); perspective: 1400px; }
.stage .phone { transform: rotateY(calc((var(--p) - .5) * -14deg)) rotateX(4deg); transition: transform .2s linear; }
.stage .phone img { opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .6s ease; }
.stage .phone img.on { opacity: 1; transform: none; }
.dots { display: none; }

.privacy, .pricing, .faq { padding: 120px 0 40px; }
.privacy h2, .pricing h2, .faq h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 800; max-width: 46rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.card .ico { font-size: 1.6rem; }
.card h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; max-width: 52rem; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; }
.plan.plus { background: linear-gradient(160deg, #2E2058, #151029 70%); border-color: #5B47B8; box-shadow: 0 30px 80px rgba(124, 77, 255, .25); }
.plan h3 { font-size: 1.2rem; color: var(--muted); }
.plan.plus h3 { color: var(--lilac); }
.price { font-size: 2.6rem; font-weight: 800; margin: 6px 0 14px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { padding: 0; margin: 0; list-style: none; }
.plan li { margin: 9px 0; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.faq .wrap { max-width: 50rem; }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lilac); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }
.final { padding: 140px 0 120px; text-align: center; }
.final img { width: min(320px, 70vw); height: auto; margin: 0 auto; }
.final p { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin: 22px 0 18px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; width: min(100% - 32px, 72rem); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3) { transition-delay: .2s; }
.cards .reveal:nth-child(4) { transition-delay: .3s; }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .chip.c1 { left: -18%; }
  .chip.c2 { right: -16%; }
  .chip.c3 { left: -10%; }
}
@media (max-width: 760px) {
  .top .links { display: none; }
  .pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 96px; gap: 56px; }
  .hero-phone { width: min(260px, 66vw); }
  .chip { font-size: .74rem; padding: 8px 11px; }
  .chip.c1 { left: -22%; }
  .chip.c2 { right: -20%; }
  .chip.c3 { left: -16%; }
  .sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 12px; padding: 76px 0 18px; align-items: start; }
  .rail { display: none; }
  .stage { grid-row: 2; width: auto; height: 100%; max-height: 52vh; display: flex; justify-content: center; }
  .stage .phone { height: 100%; width: auto; border-radius: 34px; padding: 7px; }
  .stage .phone img { inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 28px; }
  .chapters { grid-row: 3; height: 13.5rem; }
  .chapter h2 { font-size: 1.75rem; }
  .chapter p:not(.step) { font-size: 1rem; margin: 8px 0 8px; }
  .chapter li { font-size: .88rem; margin: 3px 0; }
  .step { margin-bottom: 4px; font-size: .9rem; }
  .dots { grid-row: 1; display: flex; justify-content: center; gap: 6px; }
  .dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); transition: background .4s, width .4s; }
  .dots i.on { width: 34px; background: var(--tint); }
  .cards, .plans { grid-template-columns: 1fr; }
  .privacy, .pricing, .faq { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stage .phone { transform: none; }
}

.page-hero { position: relative; padding: 140px 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 520px; background: radial-gradient(closest-side, rgba(100, 89, 217, .55), transparent); filter: blur(40px); z-index: -1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; font-weight: 800; }
.page-hero .lead { margin: 18px 0 0; }
.page-hero .updated { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 64px; }
.summary .card h3 { font-size: 1.02rem; }
.doc { display: grid; grid-template-columns: 15rem 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.toc p { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.toc a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 5px 10px; border-radius: 10px; transition: background .2s, color .2s; }
.toc a:hover, .toc a.on { color: var(--text); background: rgba(100, 89, 217, .22); }
.doc section { scroll-margin-top: 96px; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 1.5rem; font-weight: 750; margin-bottom: 12px; }
.doc h2 .n { color: var(--lilac); margin-right: 10px; font-weight: 800; }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 1.2rem; margin: 10px 0; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--text); }
.tag { display: inline-block; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .84rem; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 26px; background: linear-gradient(160deg, #2E2058, #151029 75%); border: 1px solid #5B47B8; box-shadow: 0 30px 80px rgba(124, 77, 255, .2); margin-bottom: 56px; }
.contact-card h2 { font-size: 1.6rem; font-weight: 800; }
.contact-card p { color: var(--muted); margin: 6px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
.btn.alt { background: transparent; color: var(--text); border: 1px solid var(--line); }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 56px; }
.topics .card h3 { margin-top: 12px; }
.callout { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 22px; background: rgba(85, 214, 162, .08); border: 1px solid rgba(85, 214, 162, .35); margin-bottom: 56px; }
.callout .ico { font-size: 1.8rem; }
.callout h3 { font-size: 1.15rem; margin-bottom: 6px; }
.callout p { color: var(--muted); margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 22px 20px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--primary); font-weight: 800; }
.steps li span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.related { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 60px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc p { width: 100%; }
  .summary, .topics, .steps { grid-template-columns: 1fr; }
  .page-hero { padding-top: 110px; }
}

.hero.sub { min-height: auto; padding: 120px 0 40px; }
.hero.sub h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.hero.sub .hero-phone { width: min(290px, 70vw, calc((100svh - 150px) * .46)); }
.story.short .sticky { padding-top: 70px; }
.section-title { padding: 80px 0 28px; }
.section-title h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 800; }
.section-title p { color: var(--muted); max-width: 40rem; margin: 12px 0 0; }
@media (max-width: 760px) {
  .hero.sub { padding-top: 96px; }
}
