:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-dark: #4338ca;
  --line: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .22);
  --shadow-lg: 0 30px 60px -20px rgba(99, 102, 241, .35);
  --radius: 18px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1140px, 92%); margin: 0 auto; }
.center { text-align: center; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand__logo-img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand__logo-img--footer { width: 40px; height: 40px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 600; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: opacity .2s, transform .2s;
}
.nav__cta:hover { opacity: .9; transform: translateY(-1px); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* Hero */
.hero {
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(99, 102, 241, .16), transparent 60%),
    linear-gradient(180deg, #f8faff, #fff);
  padding: 72px 0 88px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .1);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__copy p { margin: 22px 0 30px; color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-weight: 600; font-size: .92rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .18s, box-shadow .18s, background .18s;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { transform: translateY(-2px); }

/* Phone mockup */
.hero__visual { position: relative; display: grid; place-items: center; }
/* Device wrapper: anchors the floating badges to the phone so they hug it
   instead of drifting toward the viewport edge. */
.device {
  position: relative;
  width: 350px;
  max-width: 100%;
}

/* App screenshot: keep the image's natural aspect ratio, framed like a
   device screen (no cropping / distortion). */
.appshot {
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  border: 10px solid #10121a;
  box-shadow: var(--shadow-lg);
}
/* Deterministic app screen mockup (mirrors the real app UI) */
.app {
  background: #f8faff;
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 610px;
  position: relative;
  text-align: left;
}
.app__search {
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--dd-line, #e5e7eb);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--dd-muted, #64748b);
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .25);
}
.app__search-icon { font-size: .95rem; }
.app__title { margin: 0 16px; font-size: 1.5rem; font-weight: 800; color: var(--dd-ink, #0f172a); letter-spacing: -.5px; }
.app__list { margin: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--dd-line, #e5e7eb);
  box-shadow: 0 8px 22px -14px rgba(15, 23, 42, .2);
  padding: 12px;
}
.app-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--av, #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.app-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-card__name { font-size: .92rem; font-weight: 700; color: var(--dd-ink); line-height: 1.25; overflow-wrap: break-word; text-align: left; }
.app-card__loc { font-size: .76rem; color: var(--dd-muted); line-height: 1.2; overflow-wrap: break-word; text-align: left; }
.app-badge {
  flex: 0 0 auto;
  background: rgba(16, 185, 129, .14);
  color: #059669;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.app-chevron { color: var(--dd-muted); font-size: 1.05rem; }
.app__tabbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--dd-line, #e5e7eb);
  padding: 12px 22px;
  margin-top: auto;
  color: var(--dd-muted, #64748b);
  font-size: .72rem;
  font-weight: 600;
}
.app-tab--active { color: var(--dd-indigo, #6366f1); }
.app__fab {
  position: absolute;
  right: 16px;
  bottom: 64px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dd-gradient, linear-gradient(120deg, #6366f1, #8b5cf6));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, .55);
}
.appbar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding-top: 28px; }
.appbar__search { font-size: 1.1rem; }
.search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
}
.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.item__emoji { font-size: 1.4rem; }
.item b { display: block; font-size: .92rem; }
.item small { color: var(--muted); font-size: .78rem; }
.item__tag {
  margin-left: auto;
  background: rgba(16, 185, 129, .14);
  color: #059669;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .85rem;
  animation: float 4s ease-in-out infinite;
}
.float-card b { color: var(--brand-dark); }
.float-card span { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.float-card--1 { top: 90px; right: -18px; }
.float-card--2 { bottom: 110px; left: -18px; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.6px; }
.section__subtitle { text-align: center; color: var(--muted); margin: 14px auto 48px; max-width: 560px; font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12));
  margin-bottom: 18px;
}
.card h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.step h3 { font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--pro { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.plan__tag {
  position: absolute;
  top: -13px; left: 28px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-weight: 800; font-size: 1.2rem; }
.plan__price { font-size: 2.6rem; font-weight: 900; margin: 14px 0 4px; letter-spacing: -1px; }
.plan__price span { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 20px 0 28px; display: grid; gap: 12px; color: var(--muted); }
.plan li::before { content: '✓ '; color: var(--brand-dark); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }

/* CTA */
.cta {
  background: radial-gradient(80% 120% at 50% 0%, rgba(139,92,246,.4), transparent 60%), linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -.6px; }
.cta p { margin: 12px 0 28px; opacity: .92; font-size: 1.1rem; }

/* Footer */
.footer { background: #0b1020; color: #94a3b8; padding: 56px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer__brand { color: #fff; }
.footer__brand p { margin-top: 12px; color: #94a3b8; font-size: .92rem; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__links h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .4px; }
.footer__links a { display: block; margin-bottom: 8px; font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom a { color: #cbd5e1; }
.footer__bottom a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy p { max-width: 100%; }
  .hero__actions, .hero__meta { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 10px; }
  .float-card--1 { right: 6%; }
  .float-card--2 { left: 4%; }
  .grid, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 8px; border-radius: 10px; }
  .nav__links a:hover { background: var(--bg-alt); }
  .nav__cta { text-align: center; }
  .nav__toggle { display: flex; }
  .device { width: 300px; }
}
