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

:root {
  --purple: #7540B2;
  --purple-dark: #5a2d91;
  --purple-light: #f3eefa;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--purple-dark); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--purple);
}
.btn-white:hover { background: var(--gray-100); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--gray-600); font-weight: 500; font-size: 0.9375rem; text-decoration: none; }
.nav-links a:hover { color: var(--purple); }
.nav-links .btn { color: var(--white); }
.nav-links .btn:hover { color: var(--white); }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%);
}
.hero h1 { color: var(--gray-900); margin-bottom: 24px; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: 0.875rem; color: var(--gray-400); }

/* Integrations */
.integrations {
  padding: 48px 0;
  text-align: center;
  background: var(--white);
}
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.integration-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background 0.15s, color 0.15s;
}
a.integration-badge { text-decoration: none; }
a.integration-badge:hover { background: var(--purple-light); color: var(--purple); text-decoration: none; }

/* Features */
.features {
  padding: 80px 0;
  background: var(--white);
}
.features h2 { text-align: center; margin-bottom: 8px; }
.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 24px rgba(117, 64, 178, 0.08);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; color: var(--gray-900); }
.feature-card p { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.6; }

/* Value / Timeline */
.value-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.value-section h2 { text-align: center; margin-bottom: 48px; }
.timeline {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.timeline-marker {
  flex-shrink: 0;
  width: 80px;
  padding: 6px 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-content strong { display: block; margin-bottom: 4px; color: var(--gray-900); }
.timeline-content p { color: var(--gray-500); font-size: 0.9375rem; }

/* Pricing */
.pricing-section {
  padding: 80px 0;
  background: var(--white);
}
.pricing-section h2 { text-align: center; margin-bottom: 8px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.pricing-card {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.pricing-card.popular {
  border: 2px solid var(--purple);
  box-shadow: 0 4px 24px rgba(117, 64, 178, 0.12);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-card h3 {
  margin-bottom: 12px;
  color: var(--gray-900);
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.price-annual {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-card li {
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "\2713";
  color: var(--purple);
  font-weight: 700;
  margin-right: 8px;
}
.pricing-card .btn { width: 100%; text-align: center; }

/* Final CTA */
.final-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
}
.final-cta h2 { color: var(--white); margin-bottom: 12px; font-size: 2.25rem; }
.final-cta p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }

/* Footer */
.footer {
  padding: 48px 0 24px;
  background: var(--gray-900);
  color: var(--gray-400);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.footer-brand img { margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-brand a { color: var(--gray-400); }
.footer-brand a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-links a { color: var(--gray-400); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal { border-top: 1px solid var(--gray-700); padding-top: 16px; }
.footer-legal p { font-size: 0.8125rem; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 110px 0 60px; }
  .hero-sub { font-size: 1.05rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 16px auto 0; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .timeline-item { flex-direction: column; gap: 8px; }
  .timeline-marker { width: auto; display: inline-block; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
