:root {
  --accent: #5eead4;
  --accent-soft: #2dd4bf;
  --ink: #f8fafc;
  --muted: #94a3b8;
}

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(94, 234, 212, 0.08),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 90%,
      rgba(99, 102, 241, 0.1),
      transparent 60%
    ),
    #050816;
}

/* ----- Aurora gradient blobs ------------------------------------------- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--a {
  background: radial-gradient(circle, #14b8a6 0%, transparent 65%);
  top: -20vmax;
  left: -15vmax;
  animation: drift-a 18s ease-in-out infinite alternate;
}

.aurora__blob--b {
  background: radial-gradient(circle, #6366f1 0%, transparent 65%);
  bottom: -25vmax;
  right: -20vmax;
  animation: drift-b 22s ease-in-out infinite alternate;
}

.aurora__blob--c {
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  top: 30%;
  left: 35%;
  width: 40vmax;
  height: 40vmax;
  opacity: 0.35;
  animation: drift-c 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8vmax, 6vmax, 0) scale(1.15);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-10vmax, -4vmax, 0) scale(1.1);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(-4vmax, -2vmax, 0);
  }
  to {
    transform: translate3d(5vmax, 3vmax, 0);
  }
}

/* ----- Subtle dotted grid overlay -------------------------------------- */

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.12) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(
    ellipse at center,
    black 35%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
}

/* ----- Eyebrow + ping dot ---------------------------------------------- */

.eyebrow {
  opacity: 0;
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms forwards;
}

.ping-dot {
  position: relative;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

/* ----- Headline -------------------------------------------------------- */

.headline {
  line-height: 1.05;
}

.headline__line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
}

.headline__word {
  display: inline-flex;
}

.headline__char {
  display: inline-block;
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #cbd5e1 60%,
    #94a3b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-40deg);
  transform-origin: 50% 100%;
  animation: settle 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--char-index, 0) * 55ms + 350ms);
}

.headline__word--accent .headline__char {
  background-image: linear-gradient(
    180deg,
    #5eead4 0%,
    #2dd4bf 60%,
    #14b8a6 100%
  );
}

@keyframes settle {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ----- Lede + checks --------------------------------------------------- */

.lede {
  opacity: 0;
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 1100ms forwards;
}

.checks {
  opacity: 0;
  animation: rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 1300ms forwards;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  transition:
    transform 250ms ease,
    border-color 250ms ease,
    background 250ms ease;
}

.check:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(15, 23, 42, 0.7);
}

.check__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.7);
  flex: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .ping-dot,
  .headline__char,
  .eyebrow,
  .lede,
  .checks {
    animation: none !important;
  }
  .headline {
    /* Override the inline transform written by script.js (cursor parallax)
       if the user toggles reduced motion mid-session. */
    transform: none !important;
  }
  .headline__char {
    opacity: 1;
    transform: none;
  }
  .eyebrow,
  .lede,
  .checks {
    opacity: 1;
  }
}
