/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid rgba(233, 236, 233, 0.12);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg,
    rgba(233, 236, 233, 0.09),
    rgba(233, 236, 233, 0.025));
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease,
              color 0.25s ease, transform 0.25s var(--ease-out);
}

/* The label rides above the hover fill. */
.btn > * { position: relative; z-index: 1; }

/* The fill lives on its own layer under the text, so the gradient cannot
   blend into the label. It sweeps in from the left on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(74, 222, 128, 0.20),
    rgba(74, 222, 128, 0.06));
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left center;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
  pointer-events: none;
}

.btn:hover {
  border-color: rgba(74, 222, 128, 0.5);
  transform: translateY(-1px);
}

.btn:hover::before { opacity: 1; transform: scaleX(1); }

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06130b;
  font-weight: 600;
  box-shadow: 0 8px 22px -12px rgba(74, 222, 128, 0.75);
}

.btn--primary::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.02));
}

.btn--primary:hover {
  background: #63e695;
  border-color: #63e695;
  box-shadow: 0 10px 26px -10px rgba(74, 222, 128, 0.85);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(4px); }
