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

:root {
  --primary: #3a7afe;
  --primary-dark: #2563eb;
  --primary-light: #eff4ff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.btn-ghost {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-primary {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: white;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  padding: 128px 0 80px;
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 60%);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #c7d7ff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 800px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.btn-hero-primary {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(58, 122, 254, 0.35);
}
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58,122,254,0.4); }
.btn-hero-ghost {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  transition: background 0.15s, color 0.15s;
}
.btn-hero-ghost:hover { background: var(--bg); color: var(--text); }
.hero-disclaimer { font-size: 12px; color: var(--text-muted); margin-bottom: 56px; }

/* ===== APP PREVIEW / MOCKUP ===== */
.hero-app-preview {
  width: 100%;
  max-width: 940px;
  perspective: 1200px;
}
.app-chrome {
  background: #1e1e2e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.08);
  transform: rotateX(3deg);
}
.app-chrome-bar {
  background: #2a2a3e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.chrome-url {
  flex: 1;
  text-align: center;
  background: #1e1e2e;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 11px;
  color: #9ca3af;
  margin: 0 40px;
}
.app-chrome-body {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  height: 380px;
  background: #f5f5f7;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mock-sidebar {
  background: white;
  border-right: 1px solid #e5e7eb;
  padding: 12px 8px;
  overflow: hidden;
}
.mock-logo-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.mock-logo-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); flex-shrink: 0; }
.mock-logo-lines { display: flex; flex-direction: column; gap: 4px; }
.mock-line { height: 8px; border-radius: 4px; background: #e5e7eb; }
.mock-line.w80 { width: 80px; }
.mock-line.w60 { width: 60px; }
.mock-line.thin { height: 6px; background: #f3f4f6; }
.mock-nav-items { display: flex; flex-direction: column; gap: 2px; }
.mock-nav {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-nav.active { background: #eff4ff; color: var(--primary); font-weight: 600; }
.mock-content {
  padding: 14px;
  overflow: hidden;
}
.mock-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 14px;
}
.mock-card-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.mock-field-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 4px; }
.mock-field-input {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 10px;
  color: #374151;
  line-height: 1.5;
}
.mock-field-input.short { height: 28px; overflow: hidden; }
.mock-preview {
  background: white;
  border-left: 1px solid #e5e7eb;
  padding: 14px;
  overflow: hidden;
}
.mock-preview-label { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.mock-preview-content { display: flex; flex-direction: column; gap: 6px; }
.mock-preview-title { font-size: 13px; font-weight: 800; color: var(--text); }
.mock-tag { display: inline-block; padding: 2px 8px; background: #eff4ff; color: var(--primary); border-radius: 99px; font-size: 9px; font-weight: 700; }
.mock-preview-body { margin-top: 6px; font-size: 9px; color: #374151; line-height: 1.5; }
.mock-preview-body p { margin: 0 0 6px; }
.mock-preview-section { font-size: 9px; font-weight: 700; color: var(--text); margin: 6px 0 3px; }
.app-chrome-footer {
  background: rgba(255,255,255,0.97);
  border-top: 1px solid #e5e7eb;
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.mock-btn {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: #374151;
}
.mock-btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.proof-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.proof-stat {
  text-align: center;
  padding: 0 48px;
}
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
}
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 52px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.4s;
  opacity: 0;
  transform: translateY(16px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 96px 0;
  background: var(--bg);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s, box-shadow 0.2s;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  font-size: 24px;
  color: var(--border);
  padding-top: 40px;
  flex-shrink: 0;
  font-weight: 300;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 96px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s, box-shadow 0.2s;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.testimonial-card.featured {
  background: linear-gradient(135deg, #eff4ff 0%, #f5f0ff 100%);
  border-color: #c7d7ff;
}
.testimonial-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }
.testimonial-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ===== PRICING ===== */
.pricing {
  padding: 96px 0;
  background: var(--bg);
  text-align: center;
}
.pricing .section-title, .pricing .section-badge, .pricing .section-sub {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s, box-shadow 0.2s;
}
.pricing-card.visible { opacity: 1; transform: translateY(0); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 32px rgba(58,122,254,0.15);
}
.pricing-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-plan { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.pricing-price { font-size: 44px; font-weight: 900; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.pricing-features li { font-size: 13px; color: var(--text); }
.pricing-features li.muted { color: var(--text-muted); }
.btn-pricing-primary {
  display: block; width: 100%; text-align: center;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 13px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.1s;
}
.btn-pricing-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-pricing-outline {
  display: block; width: 100%; text-align: center;
  background: white;
  color: var(--text);
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  transition: background 0.15s;
}
.btn-pricing-outline:hover { background: var(--bg); }
.pricing-footnote { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* ===== SIGNUP CTA ===== */
.signup-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3a7afe 50%, #7c3aed 100%);
}
.signup-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.signup-text { flex: 1; min-width: 280px; }
.signup-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.signup-text p { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.65; }
.signup-form { flex: 1; min-width: 280px; }
.signup-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-fields input {
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  color: white;
  outline: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.signup-fields input::placeholder { color: rgba(255,255,255,0.55); }
.signup-fields input:focus { background: rgba(255,255,255,0.2); }
.btn-signup {
  width: 100%;
  background: white;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 800;
  padding: 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-signup:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.signup-disclaimer { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 10px; }
.signup-disclaimer a { color: rgba(255,255,255,0.75); }
.signup-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.success-icon { font-size: 48px; }
.signup-success h3 { font-size: 24px; font-weight: 800; color: white; }
.signup-success p { font-size: 15px; color: rgba(255,255,255,0.85); }
.signup-success a { color: white; font-weight: 700; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: #e2e8f0; padding: 72px 0 0; }
.footer-inner {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { flex: 1.5; min-width: 200px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo .nav-logo-icon { background: var(--primary); }
.footer-logo .nav-logo-name { color: white; }
.footer-tagline { font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 20px; max-width: 240px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #1e293b;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  flex: 2;
}
.footer-col { min-width: 120px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #ffffff; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h4 { margin-bottom: 14px; }
.footer-col a {
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 13px;
  color: #475569;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero-app-preview { display: none; }
  .app-chrome-body { grid-template-columns: 1fr 1fr; }
  .mock-preview { display: none; }
  .proof-stat { padding: 0 24px; }
  .proof-divider { display: none; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; }
  .signup-inner { flex-direction: column; gap: 36px; }
  .footer-inner { gap: 36px; }
  .footer-cols { gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
