/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.4);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }

.btn-ghost { color: #6b7280; background: transparent; }
.btn-ghost:hover { color: #111827; background: #f3f4f6; }

.btn-outline {
  background: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
}
.btn-outline:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.btn-white {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ================================
   NAV
   ================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
}
.nav-links a:hover { color: #111827; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ================================
   HERO
   ================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 40%, #ffffff 70%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: 0 1px 4px rgba(37,99,235,0.15);
}
.badge-dot {
  width: 7px; height: 7px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #0f172a;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: #4b5563;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 60px;
}

/* Dashboard mockup */
.hero-mockup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.05);
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  transform: perspective(1200px) rotateX(4deg);
  transition: transform 0.4s ease;
}
.hero-mockup:hover { transform: perspective(1200px) rotateX(0deg); }

.mockup-bar {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #d1d5db;
}
.mockup-dots span:nth-child(1) { background: #f87171; }
.mockup-dots span:nth-child(2) { background: #fbbf24; }
.mockup-dots span:nth-child(3) { background: #34d399; }
.mockup-url {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.mockup-body {
  display: flex;
  height: 340px;
}

.mockup-sidebar {
  width: 180px;
  background: #1e293b;
  padding: 20px 16px;
  flex-shrink: 0;
}
.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.mock-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 7px;
}
.mock-logo span { font-size: 13px; font-weight: 700; color: #fff; }
.mock-nav-items { display: flex; flex-direction: column; gap: 2px; }
.mock-nav-item {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: #94a3b8;
  cursor: default;
}
.mock-nav-item.active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; }

.mockup-content {
  flex: 1;
  padding: 24px;
  background: #f8fafc;
  overflow: hidden;
}
.mock-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.mock-stat {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}
.mock-stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.mock-stat-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.mock-stat.blue .mock-stat-num { color: #2563eb; }
.mock-stat.green .mock-stat-num { color: #16a34a; }
.mock-stat.purple .mock-stat-num { color: #7c3aed; }
.mock-stat.orange .mock-stat-num { color: #ea580c; }

.mock-chart {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
}
.mock-chart-label { font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 12px; }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.mock-bar {
  flex: 1;
  background: #dbeafe;
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}
.mock-bar.active { background: #2563eb; }

/* ================================
   TRUST
   ================================ */
.trust {
  padding: 48px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.trust-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: 16px;
  font-weight: 700;
  color: #d1d5db;
  letter-spacing: -0.5px;
  transition: color 0.3s;
}
.trust-logo:hover { color: #9ca3af; }

/* ================================
   SECTION HEADER
   ================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 18px;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}

/* ================================
   FEATURES
   ================================ */
.features { padding: 100px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}

.feature-large {
  grid-column: span 1;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon svg { opacity: 0.9; }

.bg-blue   { background: #dbeafe; color: #2563eb; }
.bg-purple { background: #ede9fe; color: #7c3aed; }
.bg-green  { background: #dcfce7; color: #16a34a; }
.bg-yellow { background: #fef9c3; color: #ca8a04; }
.bg-pink   { background: #fce7f3; color: #db2777; }
.bg-teal   { background: #ccfbf1; color: #0d9488; }
.bg-orange { background: #ffedd5; color: #ea580c; }
.bg-indigo { background: #e0e7ff; color: #4338ca; }
.bg-gray   { background: #f3f4f6; color: #4b5563; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 14px;
}
.feature-list { display: flex; flex-direction: column; gap: 6px; }
.feature-list li {
  font-size: 13px;
  color: #4b5563;
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 12px;
}

/* ================================
   HOW IT WORKS
   ================================ */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.step {
  flex: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}
.step:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 28px rgba(37,99,235,0.1);
  transform: translateY(-3px);
}
.step-num {
  font-size: 36px;
  font-weight: 900;
  color: #e0e7ff;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step:hover .step-num { color: #bfdbfe; }
.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
}
.step-arrow {
  font-size: 24px;
  color: #d1d5db;
  padding-top: 40px;
  flex-shrink: 0;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
  padding: 100px 0;
  background: #0f172a;
}
.testimonials .section-title { color: #fff; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
}
.testimonial:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-3px);
}
.stars { color: #fbbf24; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 600; color: #f1f5f9; }
.author-role { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ================================
   PRICING
   ================================ */
.pricing {
  padding: 100px 0;
  background: #f8fafc;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
}
.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px #2563eb, 0 16px 48px rgba(37,99,235,0.2);
  transform: translateY(-8px);
}
.pricing-card.featured:hover { transform: translateY(-12px); }

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}
.plan-price span { font-size: 16px; font-weight: 500; color: #9ca3af; }
.plan-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
  min-height: 36px;
}

.plan-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 13px;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.plan-features li.included { color: #374151; }
.plan-features li.not-included { color: #d1d5db; }

.plan-features li.included::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
  font-size: 13px;
}
.plan-features li.not-included::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 14px;
}

/* ================================
   FAQ
   ================================ */
.faq { padding: 100px 0; }
.faq-inner { max-width: 800px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: #bfdbfe; }

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  color: #2563eb;
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.75;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}

/* ================================
   CTA
   ================================ */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta-note { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #0f172a;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-icon { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.footer-brand p { font-size: 14px; color: #64748b; line-height: 1.65; max-width: 260px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s;
}
.footer-col a:hover { color: #e2e8f0; }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
    z-index: 99;
  }

  .hero { padding: 100px 0 60px; }
  .hero-mockup { display: none; }
  .mockup-sidebar { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }

  .steps { flex-direction: column; }
  .step-arrow { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .trust-logos { gap: 24px; }
}
