:root {
  --bg: #0d0d11;
  --bg-2: #101017;
  --surface: #16161d;
  --surface-2: #1c1c25;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f7;
  --muted: #a4a2ac;
  --faint: #6f6d78;
  --accent: #8b7cf5;
  --accent-deep: #6c5ce7;
  --champagne: linear-gradient(120deg, #9a86ff 0%, #7c6cf0 45%, #4fc3e8 100%);
  --radius: 20px;
  --maxw: 1080px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(13, 13, 17, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand .dot {
  width: 28px; height: 28px; border-radius: 8px;
  object-fit: cover; display: block;
  box-shadow: 0 4px 16px rgba(139, 124, 245, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff !important; background: var(--champagne);
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 480px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(139, 124, 245, 0.16), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
h1 {
  font-size: clamp(38px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800;
  margin: 0 auto 22px; max-width: 14ch;
}
h1 .grad { background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 56ch; margin: 0 auto 36px; }

.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border-radius: 16px; background: var(--champagne); color: #fff;
  font-weight: 700; font-size: 17px; box-shadow: 0 12px 34px rgba(139, 124, 245, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139, 124, 245, 0.38); }
.appstore svg { width: 26px; height: 26px; }
.appstore small { display: block; font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.appstore .big { font-size: 18px; line-height: 1; }
.ghost-link { color: var(--muted); font-size: 15px; font-weight: 500; }
.ghost-link:hover { color: var(--text); }

/* ---------- Phone mock ---------- */
.mock {
  margin: 60px auto 0; width: 280px; height: 570px; border-radius: 44px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; padding: 14px;
}
.mock .screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, rgba(139,124,245,0.12), transparent), var(--bg-2);
  display: flex; flex-direction: column; padding: 26px 20px; gap: 14px;
}
.mock .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 999px; }
.mock .stat { font-size: 44px; font-weight: 800; background: var(--champagne); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.03em; margin-top: 10px; }
.mock .stat-label { color: var(--muted); font-size: 13px; margin-top: -6px; }
.mock .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.mock .card .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(139,124,245,0.14); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mock .card .amt { margin-left: auto; color: var(--accent); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
h2 { font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.025em; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(139,124,245,0.35); }
.feature .fic {
  width: 46px; height: 46px; border-radius: 13px; background: rgba(139,124,245,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Screenshots (seamless auto-scroll marquee) ---------- */
.shots {
  overflow: hidden; padding: 8px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.shots-track {
  display: flex; width: max-content;
  animation: marquee 60s linear infinite;
}
.shots:hover .shots-track { animation-play-state: paused; }
/* Each item carries its own trailing gap (margin, not flex gap) so translateX(-50%)
   lands exactly on the duplicated half — a truly seamless loop. */
.shot {
  flex: 0 0 auto; width: 232px; margin-right: 22px;
  border-radius: 34px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
  padding: 8px; aspect-ratio: 1320 / 2868;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .shots { overflow-x: auto; }
  .shots-track { animation: none; }
}

/* privacy band */
.band {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy-item { display: flex; gap: 14px; align-items: flex-start; }
.privacy-item .pic { font-size: 22px; }
.privacy-item h4 { font-size: 16px; margin-bottom: 4px; }
.privacy-item p { color: var(--muted); font-size: 14.5px; }

/* final CTA */
.final { text-align: center; }
.final .box {
  background: radial-gradient(120% 120% at 50% 0%, rgba(139,124,245,0.14), transparent 60%), var(--surface);
  border: 1px solid var(--border); border-radius: 28px; padding: 60px 32px; box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 60px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .links a { color: var(--muted); font-size: 14px; }
.footer .links a:hover { color: var(--text); }
.footer .copy { font-size: 13px; color: var(--faint); }

/* ---------- Legal (doc) pages ---------- */
.doc { padding: 72px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); text-align: left; max-width: none; margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; color: var(--text); }

@media (max-width: 860px) {
  .grid, .privacy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid, .privacy-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
