/* ==========================================================================
   Homepage Styles
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 8px;
  --bg-dark: #0f172a;
  --bg-dark-alt: #1e293b;
  --text-on-dark: #e2e8f0;
  --text-muted-on-dark: #94a3b8;
  --glow: rgba(99,102,241,.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

/* ── Dark Section ─────────────────────────────────────────────────────────── */
.dark-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  background: #312e81;
  z-index: 100;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) {
  color: var(--text-muted-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav .btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.nav .btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.25);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
  font-size: 20px;
  font-weight: 600;
  border-radius: 28px;
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted-on-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}
.hero-tagline {
  font-size: 16px;
  color: #a5b4fc;
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  background: var(--bg-alt);
  text-align: center;
}
.features h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--glow), 0 4px 0 var(--primary);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 24px 48px;
  text-align: center;
}
.how-it-works h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Pricing──────────────────────────────────────────────────────────────── */
.pricing {
  padding: 80px 24px;
  text-align: center;
  max-width: 1128px;
  margin: 0 auto;
}
.pricing h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
stripe-pricing-table {
  display: block;
  background: #312e81;
  border-radius: 16px;
  padding: 32px 0;
}

/* ── Compare Table ─────────────────────────────────────────────────────── */
.compare-table-wrap {
  max-width: 1080px;
  margin: 48px auto 0;
}
.compare-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
}
.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 16px;
  vertical-align: bottom;
}
.compare-feature-col {
  text-align: left !important;
  width: 35%;
}
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}
.compare-table tbody td {
  color: var(--text-muted);
}
.compare-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: #fff !important;
  border-radius: 12px 12px 0 0;
  position: relative;
}
.compare-highlight-cell {
  background: #eef2ff;
  color: var(--text) !important;
  font-weight: 500;
}
.compare-table tbody tr:last-child .compare-highlight-cell {
  border-radius: 0 0 12px 12px;
}
.compare-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(255,255,255,.25);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.compare-price {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}
.compare-price-light {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}
.compare-check {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}
.compare-enterprise-cta {
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.compare-enterprise-cta h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.compare-enterprise-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .compare-table { font-size: 12px; }
  .compare-table th,
  .compare-table td { padding: 8px 6px; }
  .compare-table-wrap { margin-top: 32px; }
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
}
.cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.cta p {
  font-size: 16px;
  color: var(--text-muted-on-dark);
  margin-bottom: 32px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted-on-dark);
  background: #312e81;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 60px 16px 48px; }
  .features, .how-it-works, .pricing, .cta { padding: 48px 16px; }
  .how-it-works { padding-bottom: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}
