
/* =========================================
   TAMINYAR PREMIUM LAUNCH EFFECTS
   Homepage only
========================================= */

/* DOWNLOAD BUTTONS */

[data-ty-launch-cta] {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;

  background: linear-gradient(
    115deg,
    #125e49,
    #198c68,
    #229f79,
    #125e49
  ) !important;

  background-size: 240% 100% !important;
  color: #ffffff !important;

  animation:
    tyLaunchButtonGradient 7s ease-in-out infinite,
    tyLaunchButtonGlow 3s ease-in-out infinite;

  transition:
    filter .25s ease,
    box-shadow .25s ease;
}

[data-ty-launch-cta]:hover {
  filter: brightness(1.10);
}

.ty-launch-sweep {
  position: absolute !important;
  top: -100%;
  left: -80%;
  width: 38%;
  height: 300%;
  display: block !important;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.08),
    rgba(255,255,255,.48),
    rgba(255,255,255,.08),
    transparent
  );

  transform: rotate(25deg);
  pointer-events: none;
  z-index: 2;

  animation: tyLaunchSweep 4.5s ease-in-out infinite;
}

@keyframes tyLaunchButtonGradient {
  0%,100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes tyLaunchButtonGlow {
  0%,100% {
    box-shadow:
      0 5px 16px rgba(20,140,100,.15),
      0 0 0 0 rgba(30,180,120,.10);
  }
  50% {
    box-shadow:
      0 7px 24px rgba(20,140,100,.25),
      0 0 18px 4px rgba(30,180,120,.14);
  }
}

@keyframes tyLaunchSweep {
  0%,35% {
    left: -80%;
  }
  80%,100% {
    left: 145%;
  }
}

/* ANIMATED PERSIAN TYPOGRAPHY */

.hero .ty-hero-title-v2 em {
  color: #12934e;
  font-style: normal;
}

@supports ((background-clip: text) or
           (-webkit-background-clip: text)) {

  .hero .ty-hero-title-v2 em {
    background-image: linear-gradient(
      100deg,
      #087e40 0%,
      #12934e 25%,
      #31ce7f 47%,
      #087a48 65%,
      #12934e 85%,
      #087e40 100%
    ) !important;

    background-size: 280% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    animation: tyLaunchTypography 6s linear infinite;
  }
}

@keyframes tyLaunchTypography {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 280% 50%;
  }
}

/* BACKLIGHT BEHIND THE REAL APP IMAGE */

.hero .hero-visual {
  position: relative;
  isolation: isolate;
}

.hero .ty-launch-aura {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.hero .ty-launch-halo {
  position: absolute;
  width: 88%;
  max-width: 530px;
  aspect-ratio: 1;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(35,205,120,.20) 0%,
    rgba(35,205,120,.12) 35%,
    rgba(35,205,120,.035) 62%,
    transparent 73%
  );

  animation: tyLaunchHalo 5s ease-in-out infinite;
}

.hero .ty-launch-orbit {
  position: absolute;
  width: 92%;
  max-width: 530px;
  aspect-ratio: 1;

  border-radius: 50%;
  border: 1px dashed rgba(25,175,100,.32);

  animation: tyLaunchOrbit 24s linear infinite;
}

.hero .ty-launch-orbit::before {
  content: "";
  position: absolute;
  top: 13%;
  left: 15%;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #2acb79;

  box-shadow:
    0 0 12px #44d78d,
    0 0 22px rgba(44,210,120,.55);
}

.hero .ty-launch-orbit::after {
  content: "";
  position: absolute;
  right: 11%;
  bottom: 17%;

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: #169c6a;

  box-shadow: 0 0 13px #2bc988;
}

@keyframes tyLaunchHalo {
  0%,100% {
    transform: scale(.92);
    opacity: .65;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes tyLaunchOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE OPTIMIZATION */

@media (max-width: 700px) {

  .hero .ty-launch-halo {
    width: 83%;
  }

  .hero .ty-launch-orbit {
    width: 86%;
  }

  .hero .ty-launch-orbit::before {
    width: 6px;
    height: 6px;
  }

  [data-ty-launch-cta] {
    animation: tyLaunchButtonGradient 7s ease-in-out infinite;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  [data-ty-launch-cta],
  .ty-launch-sweep,
  .hero .ty-hero-title-v2 em,
  .hero .ty-launch-halo,
  .hero .ty-launch-orbit {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .hero .ty-hero-title-v2 em {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    background: none !important;
  }
}

