.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.7rem 3.2rem;
  border-radius: 99rem;
  background: linear-gradient(120deg, var(--azure), var(--aqua));
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1.4rem 3.6rem rgba(21, 128, 61, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  /* transform is owned by the JS magnetic effect — CSS only transitions shadow */
  transition: box-shadow 0.4s ease;
}

.cta-button:hover {
  box-shadow:
    0 2rem 5rem rgba(21, 128, 61, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* deep-blue fill rises on hover */
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #116233, #3da35f);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.cta-button:hover::before {
  transform: translateY(0);
}

/* light streak sweeps across on hover */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}

.cta-button:hover::after {
  left: 140%;
}

.cta-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.5s var(--ease), background 0.3s ease;
  flex-shrink: 0;
}

.cta-button__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.cta-button:hover .cta-button__icon {
  transform: rotate(-45deg);
  background: rgba(255, 255, 255, 0.3);
}

.cta-button__text {
  color: inherit;
  font-weight: 700;
}

/* Ghost / secondary variant */
.cta-button.is--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1.5px solid rgba(21, 128, 61, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1rem 2.6rem rgba(21, 128, 61, 0.14);
}

.cta-button.is--ghost::before {
  background: var(--glow);
}

.cta-button.is--ghost:hover {
  border-color: var(--azure);
  box-shadow: 0 1.4rem 3.4rem rgba(21, 128, 61, 0.22);
}

/* Inverse variant — for dark / gradient surfaces */
.cta-button.is--inverse {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1.4rem 3.4rem rgba(8, 42, 23, 0.28);
}

.cta-button.is--inverse::before {
  background: var(--glow);
}

.cta-button.is--inverse .cta-button__icon {
  background: var(--glow);
  color: var(--azure);
}

.cta-button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* touch devices get no magnetic JS — restore a simple press effect */
@media (hover: none) {
  .cta-button {
    transition: transform 0.25s ease, box-shadow 0.4s ease;
  }

  .cta-button:active {
    transform: scale(0.97);
  }
}
