:root {
  --apple-blue: #f28d48; /* Website brand orange */
  --apple-bg: #e8f2ff; /* Website brand light blue */
  --apple-text: #0984e3; /* Website brand dark blue */
}

.apple-cta-container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  will-change: height, margin-top, opacity;
}

.apple-cta {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(9, 132, 227, 0.12);
  outline: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: var(--apple-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 
    0 8px 24px rgba(9, 132, 227, 0.08), 
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-decoration: none;
  box-sizing: border-box;
  /* Maintain 60 FPS performance */
  will-change: width, transform, opacity;
  transform: translateZ(0);
  opacity: 0; /* Hidden initially, shown on card hover */
}

.apple-cta .cta-text {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-text);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.apple-cta .cta-icon {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff; /* White background for visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(9, 132, 227, 0.12);
  border: 1px solid rgba(9, 132, 227, 0.08);
  will-change: transform;
}

.apple-cta .cta-icon svg {
  position: absolute;
  will-change: opacity, transform;
}

.apple-cta .cta-icon svg.cta-custom-logo {
  width: 22px;
  height: 19px;
  opacity: 1;
  transform: scale(1);
}

.apple-cta .cta-icon svg.cta-arrow-icon {
  width: 18px;
  height: 18px;
  color: var(--apple-text);
  opacity: 0;
  transform: scale(0.6);
}

/* Hover effects */
.apple-cta:hover .cta-icon {
  filter: brightness(1.02);
  box-shadow: 0 6px 20px rgba(9, 132, 227, 0.18);
}

/* Shine sweep animation on hover */
.apple-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.apple-cta:hover::after {
  left: 150%;
  transition: left 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
