:root {
  --bg: #06070f;
  --surface: #0d1120;
  --surface-2: #121830;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(167, 139, 250, 0.35);
  --text: #f8fafc;
  --muted: #b4bfd0;
  --muted-2: #8392a8;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --radius: 20px;
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { flex-shrink: 0; }

.shell { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 7, 15, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-wrap nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 700 16px/1 var(--font); text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(99, 102, 241, .75); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--violet-2); background: rgba(139, 92, 246, .08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }

.store-btn { min-height: 56px; padding: 0 22px; gap: 12px; }
.store-btn .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: .2px; }
.store-btn strong { font-size: 18px; font-weight: 800; }
.store-btn.is-soon { cursor: default; color: var(--muted); border: 1px dashed var(--line); background: transparent; }
.store-btn.is-soon:hover { transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 18% 25%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(500px 380px at 82% 35%, rgba(34, 211, 238, .14), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px;
  padding: 88px 0 104px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(139, 92, 246, .08);
  color: #ddd6fe; font-size: 14px; font-weight: 600; margin-bottom: 28px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98; letter-spacing: -0.045em; font-weight: 800;
  margin-bottom: 24px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.lede strong { color: var(--text); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; color: var(--muted-2); font-size: 14px; }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 440px; height: 440px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.35), rgba(34,211,238,.08) 55%, transparent 72%);
  filter: blur(10px);
}
.phone {
  position: relative; width: min(320px, 78vw);
  padding: 10px; border-radius: 46px;
  background: linear-gradient(150deg, #262c44, #0a0d18 55%);
  border: 1px solid #2c3550;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.phone img { width: 100%; height: auto; aspect-ratio: 1242 / 2688; object-fit: cover; object-position: top; border-radius: 37px; background: #0b1020; }
.phone.sm { width: 100%; max-width: 270px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 33px; }

/* ---------- SECTIONS ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  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(-3px); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  color: #c4b5fd; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .25);
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* screens */
.screens { background: linear-gradient(180deg, transparent, rgba(139,92,246,.05) 30%, rgba(34,211,238,.04) 70%, transparent); }
.screen-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.screen-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen-item figcaption { margin-top: 24px; max-width: 280px; }
.screen-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.screen-item p { color: var(--muted); font-size: 15px; }

/* about */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 28px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.about p { color: var(--muted); font-size: 18px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
  font-weight: 600; font-size: 16px;
}
.checklist svg { width: 22px; height: 22px; color: var(--cyan); }

/* download */
.download {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 32px; border-radius: 32px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 300px at 20% 0%, rgba(139,92,246,.28), transparent 70%),
    radial-gradient(520px 300px at 80% 100%, rgba(34,211,238,.18), transparent 70%),
    var(--surface);
}
.download img.app-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 16px 40px -10px rgba(139,92,246,.6); }
.download p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.download .cta-row { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 112px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted-2); font-size: 15px; margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 36px; color: var(--muted-2); font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-wrap nav { flex-wrap: wrap; row-gap: 0; }
  .nav-links {
    order: 3; width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding: 0 0 10px; margin-top: -4px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 14px; border-radius: 999px; white-space: nowrap; font-size: 14px; }
  .nav-links a[aria-current="page"] { background: rgba(139, 92, 246, .16); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 0 80px; text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  .screen-row {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 0 20px 12px; scrollbar-width: none;
  }
  .screen-row::-webkit-scrollbar { display: none; }
  .screen-item { flex: 0 0 74%; scroll-snap-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, var(--max)); }
  .screen-row { margin-inline: -16px; padding-inline: 16px; }
  .nav-wrap nav { min-height: 56px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .hero-grid { padding: 40px 0 64px; gap: 48px; }
  .pill { font-size: 13px; margin-bottom: 22px; }
  .lede { margin-bottom: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .card .icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .card h3 { font-size: 18px; margin-bottom: 4px; }
  .card p { font-size: 15px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }
  .about { padding: 28px 22px; border-radius: 22px; }
  .about p { font-size: 16px; }
  .download { padding: 56px 20px; border-radius: 24px; }
  .download p { font-size: 16px; }
  footer { margin-top: 72px; }
  .footer-links { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- MULTI-PAGE ---------- */
.nav-links a { position: relative; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--grad);
}
.page-head { padding-top: 72px; padding-bottom: 0; }
.page-head + .section { padding-top: 0; }
.page-title { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 18px; }
.page .section-head { margin-bottom: 56px; }
.section.tight { padding-top: 0; }

.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { text-decoration: none; display: flex; flex-direction: column; }
.link-card p { flex: 1; }
.link-card .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--violet-2); font-weight: 700; font-size: 15px; }
.link-card:hover .more { color: var(--cyan); }
.link-card .more svg { width: 16px; height: 16px; transition: transform .15s; }
.link-card:hover .more svg { transform: translateX(3px); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
.contact-grid .card { text-decoration: none; display: flex; flex-direction: column; }
.contact-grid .card strong { margin-top: 14px; font-size: 16px; color: var(--violet-2); word-break: break-word; }

@media (max-width: 960px) {
  .explore { grid-template-columns: 1fr; }
  .page-head { padding-top: 48px; }
}
@media (max-width: 640px) {
  .page-head { padding-top: 36px; }
  .page .section-head { margin-bottom: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .link-card .more { grid-column: 2; margin-top: 10px; }
  .contact-grid .card strong { grid-column: 2; margin-top: 8px; }
}

/* layout polish */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.about .page-title { font-size: clamp(36px, 4.2vw, 54px); }
@media (max-width: 960px) {
  .nav-wrap nav { padding-top: 10px; }
}
@media (max-width: 640px) {
  .nav-links { justify-content: space-between; gap: 0; }
  .nav-links a { padding: 7px 10px; font-size: 14px; }
}
@media (max-width: 360px) {
  .nav-links a { padding: 6px 7px; font-size: 13px; }
}
