:root {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: rgba(37, 99, 235, 0.14);
  --accent: #2563eb;
  --accent-2: #60a5fa;
  --text: #10233f;
  --muted: #5f718d;
  --shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 24%),
    var(--bg);
  min-height: 100vh;
}

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

.page-shell {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-block: 0 3rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 1.5rem;
  width: 100%;
  padding-inline: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.9rem 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.14);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 0.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.23rem;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.button--secondary,
.button--ghost {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
}

main {
  display: grid;
  gap: 4.5rem;
  padding-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(100svh - 11rem);
}

.hero__copy,
.hero__visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
  max-width: 11ch;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__stats li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.hero__stats strong,
.card h3,
.feature-row h3 {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.hero__stats span,
.card p,
.feature-row p {
  color: var(--muted);
  line-height: 1.6;
}

.visual-card {
  position: relative;
  overflow: visible;
  padding: 0;
  border-radius: 1.5rem;
  background: transparent;
  box-shadow: none;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -35%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  pointer-events: none;
}

.visual-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.82rem;
}

.lottie-stage {
  aspect-ratio: 1;
  width: 100%;
  min-height: 320px;
}

.visual-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  display: grid;
  gap: 1.5rem;
}

.section__heading {
  max-width: 48rem;
}

.section__heading h2,
.section--cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card__tag {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.card--compact {
  min-height: 100%;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
}

.feature-row__index {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.section--cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
}

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

  .desktop-cta {
    display: none;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.75rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.8rem 0.85rem;
    border-radius: 0.8rem;
    background: rgba(37, 99, 235, 0.04);
  }

  .topbar__inner {
    position: relative;
  }

  .hero,
  .grid--three,
  .grid--four,
  .section--cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--container), calc(100% - 1.2rem));
    padding-block: 0 2rem;
  }

  .topbar {
    top: 0;
  }

  .topbar__inner {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .topbar__inner {
    padding: 0.8rem;
  }

  h1 {
    max-width: 100%;
  }

  .visual-card__footer {
    flex-direction: column;
  }
}
