/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #ffffff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --accent: #10b981;
  --dark: #0f172a;
  --gray-900: #1a1a2e;
  --gray-700: #475569;
  --gray-500: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 50px rgba(79,70,229,0.18);
  --radius: 14px;
}

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: grid; place-items: center;
  color: white; font-weight: 900;
  box-shadow: var(--shadow-md);
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-2px); }

.mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; font-size: 1.5rem;
  color: var(--dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 25px 60px rgba(79,70,229,.28); }
.btn-secondary {
  background: white;
  color: var(--dark);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,70,229,.10), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(6,182,212,.10), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(79,70,229,.10);
  color: var(--primary);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  color: var(--dark);
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--dark);
  color: white;
  border-radius: 12px;
  transition: transform .2s;
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn .label { font-size: .7rem; opacity: .8; }
.store-btn .name { font-size: 1.1rem; font-weight: 700; line-height: 1; }

/* ===== Phone mockup ===== */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  height: 600px;
  background: linear-gradient(160deg, #1f2937 0%, #0f172a 100%);
  border-radius: 48px;
  padding: 14px;
  box-shadow: 0 40px 80px rgba(15,23,42,.35), inset 0 0 0 2px rgba(255,255,255,.08);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background: linear-gradient(160deg, #4f46e5 0%, #06b6d4 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white;
  text-align: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.18), transparent 60%);
}
.shield-icon {
  width: 110px; height: 110px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 3.5rem;
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,.25);
  z-index: 1;
}
.phone-screen h3 { font-size: 1.5rem; margin-bottom: 8px; z-index: 1; }
.phone-screen p { font-size: .9rem; opacity: .9; z-index: 1; }
.connect-btn {
  margin-top: 30px;
  padding: 14px 36px;
  background: white;
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  z-index: 1;
}

.floating {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.floating .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.floating.f1 { top: 50px; left: -30px; animation-delay: 0s; }
.floating.f2 { bottom: 80px; right: -30px; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Stats ===== */
.stats {
  padding: 60px 0;
  background: var(--dark);
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat-label { color: var(--gray-500); font-size: .95rem; }

/* ===== Sections ===== */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-head p { color: var(--gray-700); font-size: 1.08rem; }

/* ===== Feature Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: grid; place-items: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: white;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-700); font-size: .95rem; }

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step {
  text-align: center;
  padding: 30px 20px;
}
.step-num {
  width: 64px; height: 64px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--gray-700); font-size: .95rem; }

/* ===== CTA ===== */
.cta {
  background: var(--gradient);
  color: white;
  text-align: center;
  border-radius: 28px;
  padding: 70px 30px;
  margin: 80px auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 50%);
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  position: relative;
}
.cta p { opacity: .9; margin-bottom: 30px; position: relative; }
.cta .store-row { justify-content: center; position: relative; }
.cta .store-btn { background: rgba(0,0,0,.25); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all .25s;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--primary); }
.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
}
.faq-q .toggle { font-size: 1.4rem; color: var(--primary); transition: transform .25s; }
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--gray-700);
  transition: all .3s ease;
}
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 400px; }

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: var(--gray-200);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { color: var(--gray-500); margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-500); transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--gray-500);
  font-size: .9rem;
}

/* ===== Legal pages ===== */
.legal-hero {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--gray-200);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
.legal-hero p { color: var(--gray-700); }
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
  color: var(--dark);
}
.legal-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--dark);
}
.legal-content p, .legal-content li {
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal-content ul { padding-left: 24px; margin-bottom: 14px; list-style: disc; }
.legal-content a { color: var(--primary); text-decoration: underline; }

/* ===== Forms ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 12px; font-size: 1.3rem; }
.contact-info p { color: var(--gray-700); margin-bottom: 24px; }
.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 14px;
}
.info-item .ico {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.info-item h4 { margin-bottom: 4px; font-size: .95rem; }
.info-item p { color: var(--gray-700); font-size: .9rem; margin: 0; }

.form-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--dark);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--gray-200); }
  .nav-links.show { display: flex; }
  .mobile-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 60px 0; }
  .phone { width: 260px; height: 520px; }
  .floating.f1 { left: 10px; }
  .floating.f2 { right: 10px; }
}
