/* --- Group wrapper --- */
.cta-btn-group {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

/* --- Base button --- */
.cta-btn {
  position: relative;
  display: inline-flex;
  width: 233px;
  height: 56px;
  align-items: center;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-satoshi, "Satoshi", sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Variant 1: Light — white button, for dark backgrounds --- */
.cta-btn--light {
  background: #ffffff;
  color: #0b0b0b;
}

/* --- Variant 2: Dark — dark button, for light backgrounds --- */
.cta-btn--dark {
  background: #111111;
  color: #fafafa;
}

/* --- Sliding text animation --- */
.cta-btn-text {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  display: block;
}

.cta-btn-inner {
  position: relative;
  display: block;
  height: 40px;
}

.cta-btn-inner span {
  position: absolute;
  inset: 0;
  height: 40px;
  line-height: 40px;
  font-family: var(--font-satoshi, "Satoshi", sans-serif);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.cta-btn-inner span:first-child {
  transform: translateY(0);
}
.cta-btn-inner span:last-child {
  transform: translateY(-40px);
}

/* --- Arrow icon link --- */
.cta-btn-icon-link {
  display: inline-flex;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.24s ease;
  text-decoration: none;
}

.cta-btn-icon-link img {
  width: 56px;
  height: 56px;
  display: block;
  pointer-events: none;
}

/* --- Group hover --- */
.cta-btn-group:hover .cta-btn-inner span:first-child {
  transform: translateY(40px);
}
.cta-btn-group:hover .cta-btn-inner span:last-child {
  transform: translateY(0);
}
.cta-btn-group:hover .cta-btn-icon-link {
  opacity: 0.75;
}

/* --- Focus --- */
.cta-btn:focus-visible,
.cta-btn-icon-link:focus-visible {
  outline: 2px solid #d9212e;
  outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .cta-btn-inner span,
  .cta-btn-icon-link {
    transition: none;
  }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .cta-btn {
    width: 200px;
    height: 48px;
    font-size: 14px;
    padding: 0 16px;
  }
  .cta-btn-icon-link,
  .cta-btn-icon-link img {
    width: 48px;
    height: 48px;
  }
}
