:root {
  --bg: #02051f;
  --bg-elevated: #0a1040;
  --text: #f1f4ff;
  --muted: #a9b0d8;
  --border: rgba(150, 165, 255, 0.28);
  --gradient: linear-gradient(100deg, #6e8dff 0%, #a767d9 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 15%, #10195b 0%, #02051f 45%, #010316 100%);
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 75% 0%, rgba(129, 108, 255, 0.35), transparent 40%),
    radial-gradient(circle at 20% 100%, rgba(32, 92, 255, 0.25), transparent 35%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(112, 140, 255, 0.5) 0.7px, transparent 1.8px),
    radial-gradient(circle, rgba(155, 173, 255, 0.5) 0.7px, transparent 2px);
  background-size: 140px 140px, 200px 200px;
  background-position: 20px 30px, 100px 80px;
}

.site-header,
main,
.site-footer {
  width: min(980px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0 1rem;
}

.brand {
  text-decoration: none;
  color: #7d8fff;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.mobile-nav {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.5rem 0 1rem;
  position: relative;
  z-index: 2;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(31, 45, 114, 0.35);
  color: #6f88f4;
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  width: min(760px, 92%);
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.pill-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.pill-btn {
  color: white;
  background: var(--gradient);
  box-shadow: 0 8px 40px rgba(109, 112, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(196, 204, 255, 0.45);
  background: rgba(7, 15, 56, 0.5);
}

.small {
  min-width: 170px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
}

.large {
  min-width: 280px;
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
}

.pill-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.stats article,
.card,
.cta {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 24, 78, 0.6), rgba(7, 12, 45, 0.65));
  border-radius: 1.2rem;
  backdrop-filter: blur(8px);
}

.stats article {
  text-align: center;
  padding: 1.2rem;
}

.stats h3 {
  margin: 0;
  font-size: 1.8rem;
}

.stats p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.2rem;
}

.card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  margin: 2.2rem 0 2.5rem;
  padding: 2rem;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta p {
  margin: 0.9rem auto 1.4rem;
  color: var(--muted);
  width: min(700px, 90%);
}

.site-footer {
  padding: 0.2rem 0 1.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .small {
    min-width: 150px;
  }

  .large {
    width: min(100%, 420px);
  }
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: -0.5rem;
    margin-bottom: 0.6rem;
  }
}
