/* Subtle motion for the Invest Xpert public home page. */
.cash-home-header {
  animation: ix-home-enter .7s ease-out backwards;
}

.cash-brand-mark img {
  transform-origin: center;
  animation: ix-home-logo 4.8s ease-in-out infinite;
}

.cash-brand > span {
  animation: ix-home-wordmark 4.8s ease-in-out infinite;
}

.cash-home-hero h1 {
  animation: ix-home-enter .75s .1s ease-out backwards;
}

.cash-home .cash-home-visual {
  position: relative;
  isolation: isolate;
  animation: ix-home-enter .9s .2s ease-out backwards, ix-home-frame 5s ease-in-out infinite;
}

.cash-home-visual .cash-home-wallet {
  position: relative;
  z-index: 1;
  transform-origin: center 55%;
  will-change: transform;
  animation: ix-home-banner-float 6s ease-in-out infinite;
}

.cash-home-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: auto;
  left: -60%;
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 226, 151, .04) 38%, rgba(255, 243, 190, .3) 50%, rgba(203, 115, 255, .1) 62%, transparent 82%);
  filter: none;
  pointer-events: none;
  animation: ix-home-shine 6.5s ease-in-out infinite;
}

.cash-home-welcome {
  animation: ix-home-enter .8s .45s ease-out backwards;
}

.cash-home-action.secondary {
  animation: ix-home-enter .65s .62s ease-out backwards;
}
.cash-home-action.primary {
  animation: ix-home-enter .65s .75s ease-out backwards;
}

@keyframes ix-home-enter {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ix-home-logo {
  0%, 100% { transform: translateY(0) rotate(-2deg); filter: drop-shadow(0 0 4px rgba(255, 202, 57, .35)); }
  50% { transform: translateY(-3px) rotate(2deg); filter: drop-shadow(0 0 11px rgba(255, 211, 75, .75)); }
}

@keyframes ix-home-wordmark {
  0%, 100% { text-shadow: 0 3px 0 #7a2a00, 0 0 10px rgba(255, 190, 19, .45); }
  50% { text-shadow: 0 3px 0 #7a2a00, 0 0 19px rgba(255, 207, 53, .9); }
}

@keyframes ix-home-banner-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}

@keyframes ix-home-frame {
  0%, 100% { box-shadow: 0 0 17px rgba(255, 153, 10, .24); }
  50% { box-shadow: 0 0 27px rgba(255, 175, 43, .42), 0 0 14px rgba(168, 65, 215, .23); }
}

@keyframes ix-home-shine {
  0%, 12% { opacity: 0; transform: translateX(0) skewX(-18deg); }
  18% { opacity: .75; }
  47% { opacity: .75; transform: translateX(430%) skewX(-18deg); }
  53%, 100% { opacity: 0; transform: translateX(430%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cash-home-header,
  .cash-brand-mark img,
  .cash-brand > span,
  .cash-home-hero h1,
  .cash-home .cash-home-visual,
  .cash-home-visual .cash-home-wallet,
  .cash-home-visual::after,
  .cash-home-welcome,
  .cash-home-action.secondary,
  .cash-home-action.primary {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .cash-home-visual::after { display: none; }
}
