:root {
  --bg-void: #06070a;
  --bg-base: #0b0d12;
  --bg-surface: #12151c;
  --bg-surface-2: #171b24;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f4f6fb;
  --text-secondary: #a6adbb;
  --text-muted: #6b7180;
  --accent-a: #7c5cff;
  --accent-b: #22d3ee;
  --accent-c: #ff5fa2;
  --gradient-brand: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --gradient-glow: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.35), transparent 55%),
                   radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.25), transparent 50%),
                   radial-gradient(circle at 50% 100%, rgba(255, 95, 162, 0.12), transparent 55%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Flash messages ---------------- */
.flash-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.flash-error { border-color: rgba(255, 95, 95, 0.5); color: #ffb3b3; }
.flash-success { border-color: rgba(80, 220, 150, 0.5); color: #9dffce; }
.flash-info { border-color: rgba(90, 170, 255, 0.5); color: #b7d8ff; }
.flash-warning { border-color: rgba(255, 190, 90, 0.5); color: #ffdca6; }

/* ---------------- Background glow ---------------- */
.glow-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-void);
  background-image: var(--gradient-glow);
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #0b0d12;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--accent-b);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-b);
  box-shadow: 0 0 10px var(--accent-b);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 800;
}

.hero h1 .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.subhead {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
}

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

.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------- Stats strip ---------------- */
.stats-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- Section heading ---------------- */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  color: var(--accent-b);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-surface-2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0b0d12;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------------- Providers strip ---------------- */
.providers-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.provider-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.7;
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-cta {
    display: none;
  }

  .nav-links.is-open .nav-cta-mobile {
    display: flex;
    width: 100%;
    padding: 16px 0 4px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
