/* ─── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #0F0F23;
  --surface:    #1C1C2E;
  --border:     #2A2A3E;
  --text:       #FFFFFF;
  --text2:      #9999BB;
  --text3:      #55556A;
  --accent:     #6C63FF;
  --accent-soft: rgba(108,99,255,0.12);
  --accent-glow: rgba(108,99,255,0.55);
  --success:    #00C9A7;
  --success-soft: rgba(0,201,167,0.12);
  --warning:    #FF9F43;
  --danger:     #FF6B6B;
  --radius:     16px;
  --max-w:      1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 100px; padding-bottom: 100px; }

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,15,35,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(15,15,35,0.92);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 0 24px var(--accent-glow);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(15,15,35,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text2);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-text { position: relative; z-index: 2; }
.hero-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 20px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.4); }
.btn-secondary {
  background: transparent;
  color: var(--text2);
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: #fff; }

/* Hero phone mockup */
.hero-phone {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 280px;
  height: 580px;
  background: #111122;
  border-radius: 44px;
  border: 2px solid #2E2E48;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px #1a1a30, 0 0 120px rgba(108,99,255,0.15);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.phone-screen {
  width: 100%; height: 100%;
  padding-top: 48px;
  padding-bottom: 56px;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Mini UI inside phone */
.mini-header { padding: 0 14px 6px; }
.mini-greeting { font-size: 14px; font-weight: 800; color: #fff; }
.mini-loc { font-size: 9px; color: var(--accent); margin-top: 1px; }
.mini-stats { display: flex; gap: 6px; padding: 0 10px; margin-bottom: 6px; }
.mini-stat {
  flex: 1; background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border); padding: 8px;
  border-left: 3px solid var(--accent);
}
.mini-stat.green { border-left-color: var(--success); }
.mini-stat-val { font-size: 16px; font-weight: 800; color: #fff; }
.mini-stat-lbl { font-size: 8px; color: var(--text2); }
.mini-section { font-size: 8px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px 3px; }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 10px; }
.mini-action {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px; text-align: center;
  font-size: 9px; font-weight: 600; color: #fff;
}
.mini-rows { padding: 0 10px; display: flex; flex-direction: column; gap: 3px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 8px;
}
.mini-row-name { font-size: 8.5px; color: var(--text2); font-weight: 500; }
.mini-row-badge {
  font-size: 8px; font-weight: 700; padding: 1px 5px;
  border-radius: 4px;
}
.mini-row-badge.green { background: rgba(0,201,167,0.15); color: var(--success); }
.mini-row-badge.orange { background: rgba(255,179,71,0.15); color: #FFB347; }
.mini-row-val { font-size: 8.5px; font-weight: 700; color: var(--success); }
.mini-row-val.muted { color: var(--text3); font-weight: 400; }
.mini-cta-card {
  margin: 0 10px;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 8px;
}
.mini-cta-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.mini-cta-text { flex: 1; min-width: 0; }
.mini-cta-title { font-size: 8.5px; font-weight: 700; color: #fff; }
.mini-cta-desc { font-size: 7px; color: var(--text2); margin-top: 1px; }
.mini-cta-chevron { font-size: 10px; color: var(--text3); flex-shrink: 0; }
.mini-tab-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #111122; border-top: 1px solid var(--border);
  display: flex; padding: 6px 0 12px;
}
.mini-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mini-tab-icon { font-size: 13px; filter: grayscale(1); opacity: 0.4; }
.mini-tab-icon.active { filter: none; opacity: 1; }
.mini-tab-lbl { font-size: 7px; color: var(--text3); }
.mini-tab-lbl.active { color: var(--accent); }

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero .blob-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: var(--accent);
  opacity: 0.08;
}
.hero .blob-2 {
  width: 300px; height: 300px;
  bottom: 80px; left: -120px;
  background: var(--accent);
  opacity: 0.05;
}
.hero .blob-3 {
  width: 200px; height: 200px;
  top: 60%; right: 10%;
  background: var(--success);
  opacity: 0.06;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-header {
  text-align: center;
  margin-bottom: 72px;
}
.features-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.features-header h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.features-header p {
  font-size: 18px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto;
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-content { }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.feature-icon.teal { background: var(--success-soft); }
.feature-content h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.feature-content p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

/* Feature visual (card mockup) */
.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  filter: blur(40px);
}
.fv-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.fv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fv-dot.green { background: var(--success); }
.fv-dot.orange { background: var(--warning); }
.fv-dot.red { background: var(--danger); }
.fv-label { font-size: 12px; color: var(--text2); }
.fv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.fv-row:first-of-type { border-top: none; }
.fv-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(108,99,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.fv-info { flex: 1; }
.fv-name { font-size: 13px; font-weight: 600; color: #fff; }
.fv-sub { font-size: 11px; color: var(--text2); margin-top: 1px; }
.fv-badge {
  font-size: 11px; font-weight: 700; border-radius: 8px;
  padding: 3px 8px;
}
.fv-badge.green { background: rgba(0,201,167,0.15); color: var(--success); }
.fv-badge.orange { background: rgba(255,159,67,0.15); color: var(--warning); }
.fv-badge.red { background: rgba(255,107,107,0.15); color: var(--danger); }

/* ─── Feature Grid ───────────────────────────────────────────────────────── */
.grid-section { padding-top: 0; }
.grid-header {
  text-align: center;
  margin-bottom: 48px;
}
.grid-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.grid-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-4px); }
.grid-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.grid-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.grid-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-soft);
  border: 1px solid rgba(0,201,167,0.3);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 16px;
}
.pricing-header h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.pricing-header p {
  font-size: 18px;
  color: var(--text2);
}

/* Toggle */
.pricing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.toggle-wrap {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
}
.toggle-btn {
  padding: 10px 24px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: 0.2s;
  position: relative;
}
.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}
.toggle-save {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
}
.price-card.pro {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(108,99,255,0.12);
}
.price-card .popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 10px;
}
.price-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-card .price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.price-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text2);
}
.price-card .price-note {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text2);
}
.price-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.price-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s;
}
.price-btn.outline {
  border: 1px solid var(--border);
  color: #fff;
}
.price-btn.outline:hover { border-color: var(--accent); }
.price-btn.filled {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.price-btn.filled:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,99,255,0.4); }

/* ─── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta .blob-cta {
  position: absolute;
  width: 400px; height: 400px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(80px);
  pointer-events: none;
}
.final-cta h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.final-cta p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.store-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  min-width: 158px;
}
.store-badge-link:hover { transform: translateY(-2px); opacity: 0.85; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; }
.store-badge-sub { font-size: 10px; opacity: 0.7; line-height: 1.3; letter-spacing: 0.2px; }
.store-badge-name { font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; }

/* Trust badges */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text3);
}
.trust-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: var(--text3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text2); }
.footer-copy {
  font-size: 13px;
  color: var(--text3);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.blob { animation: float 8s ease-in-out infinite; }
.hero .blob-2 { animation-delay: 2s; }
.hero .blob-3 { animation-delay: 4s; }

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-phone { margin-top: 40px; }
  .hero h1 { font-size: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; max-width: 320px; }
  .phone-frame { width: 220px; height: 460px; border-radius: 36px; }
  .phone-frame::before { width: 70px; height: 22px; top: 10px; }
  .features-header h2, .pricing-header h2, .final-cta h2, .grid-header h2 { font-size: 30px; }
  .feature-content h3 { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .trust-row { flex-direction: column; align-items: center; gap: 16px; }
  .store-badge-link { min-width: 140px; padding: 9px 14px; }
  .store-badge-name { font-size: 15px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
