/* ===== Design tokens ===== */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --violet: #7c3aed;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, .18);
  --container: 1140px;
  --grad: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(99, 102, 241, .45); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-ghost { background: transparent; color: var(--slate); padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--grad); color: #fff; border-radius: 10px; font-size: 18px; font-weight: 800;
}
.nav { display: flex; gap: 28px; }
.nav a { color: var(--slate); font-weight: 500; font-size: 15px; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(124, 58, 237, .12), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, rgba(99, 102, 241, .10), transparent 55%),
    var(--bg-soft);
  padding: 80px 0 90px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--indigo-dark);
  background: rgba(99, 102, 241, .12); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--slate); margin-top: 20px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 12px;
  padding: 10px 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.25); }
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .02em; }
.store-badge strong { font-size: 17px; font-weight: 700; }
.store-badges-light { justify-content: center; margin-top: 6px; }
.store-badges-light .store-badge { background: #fff; color: var(--ink); }

/* Hero visual — phone mockup */
.hero-visual { position: relative; height: 480px; display: flex; justify-content: center; }
.phone {
  position: relative; width: 260px; height: 520px; margin-top: 10px;
  background: #0b1220; border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 10px #1e293b, 0 0 0 11px #334155;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0b1220; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: var(--bg-soft); border-radius: 30px; overflow: hidden; padding: 40px 16px 16px; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.app-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.app-search { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.app-doc { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.app-doc-ic { width: 38px; height: 38px; border-radius: 10px; background: #e0e7ff; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.app-doc-meta strong { display: block; font-size: 13px; }
.app-doc-meta small { color: var(--muted); font-size: 11px; }
.app-fab { position: absolute; bottom: 26px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 300; box-shadow: 0 8px 20px rgba(99,102,241,.5); }
.pill {
  position: absolute; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 999px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink); z-index: 3;
}
.pill-1 { top: 40px; left: 0; }
.pill-2 { top: 200px; right: 0; color: var(--violet); }
.pill-3 { bottom: 50px; left: 6px; color: var(--indigo); }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Logos ===== */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.logos-title { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 22px; }
.logos-row span { font-size: 20px; font-weight: 800; color: #94a3b8; letter-spacing: -.02em; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--indigo); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Features */
.features-grid { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 30px; transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(124,58,237,.12));
  border-radius: 14px; margin-bottom: 18px;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: 15px; }

/* Steps */
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.step { text-align: center; padding: 10px 16px; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; border-radius: 50%;
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 15px; }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: linear-gradient(135deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: #cbd5e1; font-size: 14px; }

/* Testimonials */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.testimonial blockquote { color: var(--ink); font-size: 1.02rem; font-weight: 500; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; }
.testimonial figcaption strong { display: block; font-size: 15px; }
.testimonial figcaption small { color: var(--muted); }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.price-card { padding: 32px; position: relative; }
.price-card.featured { border-color: var(--indigo); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.price-card h3 { font-size: 1.25rem; }
.price { margin: 14px 0 6px; font-size: 15px; color: var(--muted); font-weight: 500; }
.price span { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.price-desc { color: var(--slate); font-size: 14px; margin-bottom: 22px; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.price-list li { color: var(--slate); font-size: 15px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; padding: 20px 22px; font-size: 1.02rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq-icon { font-size: 22px; color: var(--indigo); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--slate); }

/* CTA */
.cta { padding: 84px 0; }
.cta-inner {
  text-align: center; background: var(--grad); color: #fff;
  border-radius: 24px; padding: 60px 30px; box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cta-inner p { margin: 14px auto 28px; max-width: 520px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.cta-inner .btn-primary { background: #fff; color: var(--indigo-dark); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cta-inner .btn-primary:hover { background: #f1f5f9; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: 14px; margin-bottom: 10px; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: #94a3b8; transition: color .15s ease; }
.footer-social a:hover { color: #fff; }

/* ===== Legal pages ===== */
.legal { padding: 60px 0 80px; background: var(--bg-soft); }
.legal-head { max-width: 820px; margin: 0 auto 40px; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal-head .updated { color: var(--muted); margin-top: 10px; font-size: 14px; }
.legal-body { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow-sm); }
.legal-body h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--slate); margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal-body a { color: var(--indigo); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-weight: 600; margin-bottom: 28px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { height: 560px; order: -1; }
  .features-grid, .steps-grid, .testimonials-grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav a { padding: 12px 0; }
  .site-header.nav-open .header-actions { display: flex; position: absolute; top: 232px; left: 0; right: 0; background: #fff; padding: 0 24px 20px; flex-direction: column; }
  .site-header.nav-open .header-actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .legal-body { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .floaty { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
