/*
  CTA 19 — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

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

.cta {
  padding: clamp(3.5rem, 2.9rem + 2.4vw, 5.5rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.cta__grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.spheres-frame {
  position: relative;
  order: 2;
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.cta__copy {
  order: 1;
}

.spheres {
  position: absolute;
  inset: 0;
}

.sphere {
  position: absolute;
  border-radius: 999px;
  background-image: linear-gradient(to bottom right, #334155, #020617);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.35);
}

.cta__proof {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.avatars {
  display: flex;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 0.5625rem;
  font-weight: 600;
  margin-left: -0.5rem;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar--dark-1 {
  background-color: var(--slate-900);
}
.avatar--dark-2 {
  background-color: #334155;
}
.avatar--dark-3 {
  background-color: #64748b;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  color: #fbbf24;
}

.stars svg {
  width: 0.875rem;
  height: 0.875rem;
}

.cta__heading {
  margin: 1.25rem 0 0;
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta__description {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.cta__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.button:focus-visible {
  outline: 2px solid var(--slate-900);
  outline-offset: 2px;
}

.button--primary {
  color: var(--white);
  background-color: var(--slate-900);
}

.button--primary:hover {
  background-color: #334155;
}

.button--secondary {
  color: var(--slate-900);
  border: 1px solid var(--slate-300);
}

.button--secondary:hover {
  border-color: var(--slate-400);
  background-color: var(--slate-50);
}

@media (min-width: 640px) {
  .cta__actions {
    flex-direction: row;
  }

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

  .spheres-frame {
    order: 1;
    max-width: 20rem;
  }

  .cta__copy {
    order: 2;
  }
}

/* Motion — disabled entirely under reduced motion; the sphere cluster
   renders static at its resting angle and every element already renders
   at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta19-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes al-cta19-up {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .spin {
    animation: al-cta19-spin 32000ms linear infinite;
  }

  .reveal {
    animation: al-cta19-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
