.cta-btn {
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}


.cta-inner {
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 4px;
}

/* TEXT BUTTON */
.cta-text {
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* VARIANTS */
.cta-primary .cta-text {
  background: #3b82f6;
  color: #fff;
}

.cta-secondary .cta-text {
  background: #eee;
  color: #111;
}

/* CIRCLE */
.cta-circle {
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth easing */
  will-change: transform;
  flex-shrink: 0;
}

.cta-primary .cta-circle {
  background: #3b82f6;
}

.cta-secondary .cta-circle {
  background: #ececec;
}

/* ARROW */
.cta-arrow {
  position: absolute;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-arrow svg {
  width: 12px;
  height: 12px;
  transition: none; /* SVG doesn't need transition */
  color: inherit;
}

/* Stroke width control needs an actual stroke; fill-only paths ignore stroke-width */
.cta-arrow svg path {
  stroke: currentColor;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
}

/* HOVER EFFECT - Optimized */


.cta-btn:hover .cta-circle {
  transform: translateX(15px) rotate(45deg);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(15px) rotate(45deg);
}

/* Active State */
.cta-btn:active .cta-circle,
.cta-btn:active .cta-arrow {
  transform: translateX(10px) rotate(45deg) scale(0.95);
}



/* Disabled State */
.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-btn:disabled:hover {
  filter: none;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: prefer-reduced-motion) {
  .cta-btn,
  .cta-inner,
  .cta-text,
  .cta-circle,
  .cta-arrow {
      transition: none;
      will-change: auto;
  }

  .cta-btn:hover .cta-circle,
  .cta-btn:hover .cta-arrow {
      transform: none;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .cta-text {
      padding: 8px 16px;
      font-size: 14px;
  }

  .cta-circle {
      width: 32px;
      height: 32px;
  }

  .cta-arrow {
      width: 32px;
      height: 32px;
  }

  .cta-arrow svg {
      width: 10px;
      height: 10px;
  }

  .cta-btn:hover .cta-circle,
  .cta-btn:hover .cta-arrow {
      transform: translateX(12px) rotate(45deg);
  }
}