:root {
  --grad-top: #2e1d6b;
  --grad-bot: #7d6cf5;
  --primary: #7d6cf5;
  --primary-deep: #5b49d6;
  --primary-soft: rgba(125, 108, 245, 0.12);
  --card: #ffffff;
  --ink: #1c1830;
  --muted: #615d78;
  --line: #e9e6f4;
  --bg: #f6f5fb;
  --radius: 20px;
  --maxw: 1080px;
  --docw: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Top nav (shared) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .logo { height: 30px; width: auto; }
.topbar-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.topbar-links a { color: var(--ink); }
.topbar-links a:hover { color: var(--primary); text-decoration: none; }
.btn-pill {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.btn-pill:hover { background: var(--primary-deep); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(165deg, var(--grad-top) 0%, var(--grad-bot) 100%);
  color: #fff;
  padding: 80px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .logo-night { height: 64px; width: auto; margin: 0 auto 28px; }
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin: 0 auto 18px;
  max-width: 720px;
}
.hero .sub {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  max-width: 580px;
  margin: 0 auto 32px;
}
.tagline {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 13px;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light {
  background: #fff;
  color: var(--primary-deep);
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
}
.btn-light:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* hero phones */
.hero-shots {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-end;
  margin-top: 56px;
  flex-wrap: wrap;
}

/* ---------- Phone frame ---------- */
.phone {
  background: #0e0b1a;
  padding: 10px;
  border-radius: 42px;
  box-shadow: 0 30px 60px rgba(30, 18, 80, 0.35);
  position: relative;
  width: 230px;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 20px;
  background: #0e0b1a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone img { border-radius: 32px; width: 100%; display: block; }
.phone.lg { width: 256px; }
.phone.sm { width: 210px; }

/* ---------- Sections ---------- */
.section { padding: 88px 24px; }
.section .wrap { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0 0 12px;
}
.section h2 {
  font-size: 38px;
  letter-spacing: -1px;
  text-align: center;
  margin: 0 auto 14px;
  max-width: 620px;
  font-weight: 800;
}
.section .lead {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 56px;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(46,29,107,0.10); }
.feature .ico {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--primary-soft);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* gallery */
.gallery {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--muted); }

/* split highlight */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split h2 { text-align: left; margin: 0 0 16px; font-size: 34px; }
.split p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.split ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.split li { padding-left: 30px; position: relative; margin-bottom: 12px; font-size: 16px; }
.split li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--primary);
  font-weight: 800;
}
.split .media { display: flex; justify-content: center; }

/* pricing */
.price-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(46,29,107,0.12);
}
.price-card .badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.price-card .amount { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; }
.price-card .amount span { font-size: 18px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* final CTA */
.final {
  background: linear-gradient(165deg, var(--grad-top) 0%, var(--grad-bot) 100%);
  color: #fff;
  text-align: center;
  padding: 84px 24px;
}
.final h2 { color: #fff; font-size: 38px; letter-spacing: -1px; margin: 0 auto 14px; max-width: 560px; }
.final p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 500px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer {
  background: #15112a;
  color: #b9b4d0;
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
}
.footer .logo-night { height: 34px; margin: 0 auto 18px; opacity: .95; }
.footer a { color: #cfcae6; margin: 0 10px; }
.footer a:hover { color: #fff; }
.footer .copy { margin-top: 18px; color: #7d789a; }

/* ---------- Legal document layout (privacy / terms) ---------- */
.legal-hero {
  background: linear-gradient(165deg, var(--grad-top) 0%, var(--grad-bot) 100%);
  color: #fff;
  padding: 64px 24px 72px;
  text-align: center;
}
.legal-hero h1 { font-size: 40px; letter-spacing: -1px; margin: 0 0 10px; font-weight: 800; }
.legal-hero p { color: rgba(255,255,255,0.88); font-size: 17px; margin: 0; }

.doc {
  max-width: var(--docw);
  margin: -44px auto 64px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: 0 14px 40px rgba(46, 29, 107, 0.10);
}
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.3px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 16px; color: #36324a; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.callout {
  background: var(--primary-soft);
  border: 1px solid rgba(125, 108, 245, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  margin: 18px 0;
}
.placeholder {
  background: #fff6e0;
  border: 1px dashed #e0b65a;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 14px;
  color: #8a6400;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
  .split h2 { text-align: center; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 17px; }
  .section { padding: 60px 20px; }
  .section h2 { font-size: 30px; }
  .features { grid-template-columns: 1fr; }
  .topbar-links { gap: 14px; font-size: 14px; }
  .topbar-links .hide-sm { display: none; }
  .doc { padding: 32px 22px; }
  .final h2 { font-size: 30px; }
}
