/*
  CTA 26 — 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-950: #020617;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-900: #0f172a;
  --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(--white);
  background-color: var(--white);
  line-height: 1.5;
}

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

.cta {
  position: relative;
  overflow: hidden;
  background-color: var(--slate-950);
  padding: clamp(4rem, 3rem + 4vw, 9rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.waves {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.7;
  pointer-events: none;
}

.wave {
  display: flex;
  height: 6rem;
}

.wave svg {
  height: 100%;
  width: 200%;
  flex-shrink: 0;
}

.cta__inner {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__heading {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

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

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

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

.button--primary:hover {
  background-color: var(--slate-200);
}

@media (min-width: 640px) {
  .wave {
    height: 8rem;
  }
}

/* Motion — disabled entirely under reduced motion; the waves render
   static and every element already renders at its final, fully visible
   state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-cta26-scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes al-cta26-scroll-reverse {
    from {
      transform: translateX(-50%);
    }
    to {
      transform: translateX(0);
    }
  }

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

  .wave {
    animation-name: al-cta26-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  .wave--reverse {
    animation-name: al-cta26-scroll-reverse;
  }

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