/* Tokens mirror the app's ui/theme/Theme.kt */
:root {
  --bg: #07060B;
  --bg2: #0D0B14;
  --surface: #141120;
  --surface2: #1C1829;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --glass: rgba(255, 255, 255, .08);
  --text: #FFFFFF;
  --text2: #B9B4C7;
  --dim: #7D778C;
  --indigo: #3B1CFF;
  --violet: #8B2CF5;
  --magenta: #E21CF0;
  --pink: #FF2D95;
  --ok: #22D37A;
  --warn: #FFB020;
  --bad: #FF4D5E;
  --grad: linear-gradient(90deg, var(--violet), var(--magenta), var(--pink));
  --grad-diag: linear-gradient(135deg, var(--indigo), var(--violet), var(--magenta), var(--pink));
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; color: var(--text); background: var(--glass); padding: 1px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow-a { width: 620px; height: 620px; top: -220px; right: -160px; background: rgba(139, 44, 245, .32); }
.glow-b { width: 520px; height: 520px; top: 40vh; left: -260px; background: rgba(226, 28, 240, .14); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 6, 11, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.02em; background: linear-gradient(90deg, #fff 30%, #E7C6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 9px; letter-spacing: .14em; color: var(--text2); margin-top: 4px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--text2); }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-grad { background: var(--grad); box-shadow: 0 10px 30px -10px rgba(226, 28, 240, .6); }
.btn-grad:hover { box-shadow: 0 14px 38px -10px rgba(226, 28, 240, .8); }
.btn-glass { background: var(--glass); border: 1px solid var(--line-strong); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.btn-white { background: #fff; color: #0D0B14; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--text2); font-weight: 500; }
.dot, .ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex: none; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 20px; }
.lead { font-size: 18px; color: var(--text2); max-width: 540px; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; list-style: none; margin-top: 36px; color: var(--dim); font-size: 14px; flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-weight: 700; }

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { width: 300px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2a2438, #0d0b14 60%); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px rgba(139, 44, 245, .55), inset 0 0 0 1px rgba(255, 255, 255, .04); transform: rotate(-3deg); }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #2b1450 0%, var(--bg) 60%); padding: 30px 14px 0; display: flex; flex-direction: column; gap: 10px; font-size: 10px; }
.s-top { display: flex; justify-content: space-between; align-items: center; }
.s-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.s-logo img { width: 20px; height: 20px; }
.s-server { display: flex; align-items: center; gap: 5px; font-size: 9px; background: var(--glass); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; color: var(--text2); }
.s-server .ok-dot { width: 6px; height: 6px; }
.s-chips { display: flex; gap: 5px; }
.s-chips span { padding: 4px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 9px; color: var(--text2); }
.s-chips .on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 700; }
.s-hero { position: relative; flex: none; height: 190px; border-radius: 18px; overflow: hidden; background:
  radial-gradient(circle at 70% 25%, rgba(255, 210, 120, .85) 0 7%, transparent 8%),
  radial-gradient(120% 90% at 70% 20%, #c0368f 0%, #5a1fa8 40%, #160c2c 75%);
  display: flex; align-items: flex-end; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(7, 6, 11, .9)); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .18); }
.s-hero-text { position: relative; z-index: 1; padding: 12px; width: 100%; }
.s-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.s-meta { color: var(--text2); font-size: 9px; margin: 2px 0 8px; }
.s-btns { display: flex; gap: 6px; }
.s-btns span { padding: 5px 12px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.s-btns .play { background: #fff; color: #000; }
.s-btns .glass { background: rgba(255, 255, 255, .15); border: 1px solid var(--line-strong); }
.s-dots { display: flex; gap: 4px; justify-content: center; }
.s-dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.s-dots .on { width: 16px; background: var(--grad); }
.s-row-title { font-weight: 700; font-size: 11px; }
.s-row { display: flex; gap: 7px; }
.cw .c { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.cw .c b { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); }
.p1 { background: linear-gradient(140deg, #1b4b6b, #0e1b33); }
.p2 { background: linear-gradient(140deg, #6b2a1b, #2b0d14); }
.p3 { background: linear-gradient(140deg, #1b6b4a, #0b2018); }
.p4 { background: linear-gradient(160deg, #6d2bd9, #22104a); }
.p5 { background: linear-gradient(160deg, #d92b7c, #3d0d26); }
.p6 { background: linear-gradient(160deg, #2b8fd9, #0c2340); }
.top .t { position: relative; flex: none; width: 88px; height: 82px; }
.top em { position: absolute; left: -2px; bottom: -14px; font-style: normal; font-weight: 800; font-size: 70px; line-height: 1; color: var(--bg); -webkit-text-stroke: 1.5px var(--magenta); }
.top .p { position: absolute; right: 0; top: 0; width: 56px; height: 82px; border-radius: 8px; }
.s-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 4px 16px; background: linear-gradient(transparent, var(--bg) 30%); }
.s-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7.5px; color: var(--dim); }
.s-tabs i { width: 14px; height: 14px; border-radius: 4px; background: var(--line-strong); }
.s-tabs .on { color: #fff; font-weight: 700; }
.s-tabs .on i { width: 34px; height: 18px; border-radius: 999px; background: linear-gradient(90deg, #4A1FD6, #7B1F7A); }

.float { position: absolute; background: rgba(20, 17, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); animation: bob 6s ease-in-out infinite; }
.f-ping { left: 0; top: 58%; padding: 14px 16px; width: 200px; }
.f-label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; font-weight: 600; }
.f-rows div { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.ok { color: var(--ok); font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }
.f-merge { right: 0; bottom: 16%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; color: var(--text2); line-height: 1.3; animation-delay: -3s; }
.f-num { font-size: 34px; font-weight: 800; line-height: 1; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; max-width: calc(var(--wrap) - 48px); }
.stats div { background: var(--bg2); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--dim); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--text2); margin-top: 14px; font-size: 17px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card p { color: var(--text2); margin-top: 8px; font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-diag); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(139, 44, 245, .8); }
.ico svg { width: 24px; height: 24px; fill: #fff; }

/* Player */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 24px; }
.ticks { list-style: none; display: grid; gap: 14px; color: var(--text2); font-size: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background:
  radial-gradient(circle at 78% 30%, rgba(255, 190, 120, .5) 0 6%, transparent 7%),
  linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 30%, transparent 60%, rgba(0, 0, 0, .8)),
  radial-gradient(120% 100% at 75% 25%, #8f3a7a, #2d1460 45%, #0b0817 85%);
  box-shadow: 0 40px 90px -40px rgba(226, 28, 240, .5); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 22px; font-size: 13px; }
.pl-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.pl-pill { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line-strong); color: var(--text2); }
.pl-mid { display: flex; justify-content: center; align-items: center; gap: 48px; font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.pl-play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); font-size: 16px; }
.pl-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pl-bar b { display: block; height: 100%; width: 42%; background: var(--grad); }
.pl-acts { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--text2); }
.pl-acts .next { margin-left: auto; color: #fff; font-weight: 700; }

/* Steps */
.steps { grid-template-columns: repeat(3, 1fr); list-style: none; }
.step { display: inline-block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1.5px var(--magenta); }


/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); font-weight: 500; font-size: 20px; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text2); padding-bottom: 22px; margin-top: -6px; }

/* CTA */
.cta-card { position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 32px; background:
  radial-gradient(80% 120% at 50% 0%, rgba(226, 28, 240, .35), transparent 60%),
  linear-gradient(135deg, #2a1170, #1a0b33 50%, #3a0c3c);
  border: 1px solid var(--line-strong); display: flex; flex-direction: column; align-items: center; }
.cta-card img { margin-bottom: 22px; filter: drop-shadow(0 12px 30px rgba(226, 28, 240, .6)); }
.cta-card p { color: var(--text2); margin: 14px 0 30px; max-width: 460px; font-size: 17px; }
.small { display: block; margin-top: 16px; font-size: 13px; color: var(--dim); }

/* Footer */
.footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer .wordmark { font-size: 18px; }
.disclaimer { color: var(--dim); font-size: 13px; max-width: 620px; }
.copy { color: var(--dim); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .cta-row, .hero-meta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin: 0 24px; width: auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 16px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .stats { margin: 0 16px; }
  .stats div { padding: 20px 16px; }
  .stats b { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .phone { width: 250px; }
  .phone-stage { margin-bottom: 24px; }
  .f-ping { width: 170px; left: -4px; top: 8%; padding: 12px; }
  .f-rows div { font-size: 12px; }
  .f-merge { right: -4px; }
  .pl-acts span:nth-child(3) { display: none; }
  .pl-mid { gap: 28px; }
  .btn { height: 48px; padding: 0 22px; }
  .nav .btn-sm { padding: 0 14px; }
}
/* ---------- Privacy ---------- */
.privacy { grid-template-columns: repeat(3, 1fr); }
.pv { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pv-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px; font-size: 20px; color: #E7C6FF; background: var(--surface2); border: 1px solid var(--line-strong); }
.pv p { color: var(--text2); margin-top: 8px; font-size: 15px; }

@media (max-width: 960px) {
  .privacy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.small.link { margin-top: 6px; color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
