/* Eyebrow */
.eyebrow {
  color: var(--pr-muted);
  margin-block-end: 16px;
}

/* Interactive buttons */
.btn {
  --btn-mx: 50%;
  --btn-my: 50%;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
  padding: 14px 32px;
  position: relative;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
  z-index: 0;
}

.btn::before {
  background: radial-gradient(
    circle at var(--btn-mx) var(--btn-my),
    rgba(255, 255, 255, 0.18) 0%,
    transparent 55%
  );
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.35s var(--ease-out);
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn::after {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 100%
  );
  content: "";
  inset: -20%;
  opacity: 0;
  position: absolute;
  transform: translateX(-120%) skewX(-18deg);
  transition:
    transform 0.75s var(--ease-out),
    opacity 0.35s var(--ease-out);
  z-index: -1;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(120%) skewX(-18deg);
}

.btn__text {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.btn--primary {
  background-color: var(--pr-purple);
  border: 1px solid var(--pr-purple);
  box-shadow: 0 0 0 rgba(91, 45, 142, 0);
  color: var(--pr-white);
}

.btn--primary:hover {
  background-color: var(--pr-purple-soft);
  border-color: var(--pr-purple-soft);
  box-shadow: 0 8px 32px rgba(91, 45, 142, 0.45);
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid var(--pr-purple);
  color: var(--pr-white);
}

.btn--ghost:hover {
  background-color: rgba(91, 45, 142, 0.12);
  box-shadow: 0 0 24px rgba(91, 45, 142, 0.2);
}

.btn--magnetic {
  will-change: transform;
}

.text-link {
  align-items: center;
  color: var(--pr-muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  position: relative;
  transition: color 250ms var(--ease-out);
}

.text-link::after {
  background: var(--pr-purple);
  block-size: 1px;
  content: "";
  inline-size: 0;
  inset-block-end: -2px;
  inset-inline-start: 0;
  position: absolute;
  transition: inline-size 0.35s var(--ease-out);
}

.text-link:hover {
  color: var(--pr-white);
}

.text-link:hover::after {
  inline-size: 100%;
}

.text-link__arrow {
  display: inline-block;
  transition: transform 250ms var(--ease-out);
}

.text-link:hover .text-link__arrow {
  transform: translateX(6px);
}

/* Section header */
.section-header {
  margin-block-end: 48px;
}

.section-header__title {
  margin-block-end: 0;
}

/* CTA banner (global footer) */
.cta-banner {
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cta-banner__bg {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.cta-banner__bg img {
  block-size: 100%;
  inline-size: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-banner__overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.72) 0%,
    rgba(10, 10, 10, 0.55) 50%,
    rgba(10, 10, 10, 0.78) 100%
  );
  inset: 0;
  position: absolute;
  z-index: 1;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  margin-block-end: 16px;
}

.cta-banner__subtitle {
  color: var(--pr-muted);
  margin-block-end: 40px;
  margin-inline: auto;
  max-inline-size: 480px;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before {
    transition: background-color 0.2s, border-color 0.2s;
  }

  .btn--magnetic {
    transform: none !important;
  }
}
