@font-face {
  font-family: "IRANSans";
  src: url("/static/fonts/Sans-a4fran3.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html.home-splash-active { overflow: hidden; }

.home-splash {
  --splash-ink: #073f39;
  --splash-brand: #0b6b5c;
  --splash-brand-bright: #16957d;
  --splash-pink: #ec3e72;
  --splash-amber: #ffb51b;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 47%, rgba(22, 149, 125, .15), transparent 25rem),
    linear-gradient(145deg, #fcfefd 0%, #f3f8f6 55%, #edf5f2 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.home-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-splash.is-skipped { display: none; }

.home-splash-grid {
  position: absolute;
  inset: -30%;
  opacity: .28;
  background-image:
    linear-gradient(rgba(7, 63, 57, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 63, 57, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 52%);
  mask-image: radial-gradient(circle at center, #000, transparent 52%);
  transform: perspective(700px) rotateX(58deg) translateY(18%);
}

.home-splash-card {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  color: var(--splash-ink);
  font-family: "IRANSans", sans-serif;
  text-align: center;
  direction: rtl;
}

.home-splash-radar {
  position: relative;
  width: 208px;
  height: 208px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 28px 70px rgba(7, 63, 57, .09), inset 0 0 0 1px rgba(7, 63, 57, .06);
  isolation: isolate;
}

.home-splash-radar::before,
.home-splash-radar::after {
  position: absolute;
  content: "";
  z-index: -1;
  background: rgba(11, 107, 92, .12);
}

.home-splash-radar::before { width: 1px; height: 88%; }
.home-splash-radar::after { width: 88%; height: 1px; }

.home-splash-ring {
  position: absolute;
  border: 1px solid rgba(11, 107, 92, .18);
  border-radius: 50%;
}

.home-splash-ring.is-outer { inset: 12px; }
.home-splash-ring.is-middle { inset: 39px; }
.home-splash-ring.is-inner { inset: 67px; }

.home-splash-sweep {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  border-radius: 50%;
  animation: home-splash-radar-spin 1.75s linear infinite;
}

.home-splash-sweep::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 294deg,
    rgba(22, 149, 125, .04) 310deg,
    rgba(22, 149, 125, .42) 358deg,
    transparent 360deg
  );
}

.home-splash-signal {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--splash-pink);
  box-shadow: 0 0 0 0 rgba(236, 62, 114, .36);
  animation: home-splash-signal-ping 1.75s ease-out infinite;
}

.home-splash-signal.is-one { top: 43px; right: 51px; animation-delay: .3s; }
.home-splash-signal.is-two {
  bottom: 47px;
  left: 53px;
  width: 6px;
  height: 6px;
  animation-delay: .85s;
}
.home-splash-signal.is-three {
  top: 91px;
  left: 28px;
  width: 5px;
  height: 5px;
  background: var(--splash-amber);
  animation-delay: 1.2s;
}

.home-splash-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, .92);
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(145deg, var(--splash-brand-bright), #07594d);
  box-shadow: 0 14px 34px rgba(7, 89, 77, .28);
  direction: ltr;
}

.home-splash-mark::before,
.home-splash-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.home-splash-mark::before {
  top: -8px;
  right: -7px;
  width: 18px;
  height: 18px;
  background: var(--splash-pink);
}

.home-splash-mark::after {
  top: 5px;
  right: 9px;
  width: 10px;
  height: 10px;
  background: var(--splash-amber);
}

.home-splash-mark b { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.home-splash-copy { margin-top: 25px; }

.home-splash-copy strong {
  display: block;
  color: var(--splash-ink);
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.home-splash-copy strong span {
  margin-left: 7px;
  color: var(--splash-pink);
  font-size: .58em;
  font-weight: 900;
  letter-spacing: .16em;
  vertical-align: .15em;
}

.home-splash-copy small {
  display: block;
  margin-top: 8px;
  color: #5b716d;
  font-size: .78rem;
  font-weight: 700;
}

.home-splash-loader {
  position: relative;
  width: 152px;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 63, 57, .1);
  direction: ltr;
}

.home-splash-loader i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--splash-brand), var(--splash-brand-bright) 66%, var(--splash-pink));
  transform-origin: right center;
  animation: home-splash-progress 3s cubic-bezier(.22, .78, .28, 1) both;
}

.home-splash-status {
  margin-top: 10px;
  color: #71847f;
  font-size: .68rem;
  font-weight: 600;
}

@keyframes home-splash-radar-spin { to { transform: rotate(360deg); } }

@keyframes home-splash-signal-ping {
  0%, 35% { opacity: 0; box-shadow: 0 0 0 0 rgba(236, 62, 114, .3); }
  50% { opacity: 1; }
  78%, 100% { opacity: .12; box-shadow: 0 0 0 12px rgba(236, 62, 114, 0); }
}

@keyframes home-splash-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 430px) {
  .home-splash { padding: 18px; }
  .home-splash-radar { width: 184px; height: 184px; }
  .home-splash-ring.is-outer,
  .home-splash-sweep { inset: 10px; }
  .home-splash-ring.is-middle { inset: 35px; }
  .home-splash-ring.is-inner { inset: 61px; }
  .home-splash-signal.is-one { top: 38px; right: 45px; }
  .home-splash-signal.is-two { bottom: 42px; left: 47px; }
  .home-splash-signal.is-three { top: 80px; left: 25px; }
  .home-splash-mark { width: 80px; height: 80px; border-radius: 24px; }
  .home-splash-mark b { font-size: 2.3rem; }
  .home-splash-copy { margin-top: 22px; }
  .home-splash-copy strong { font-size: 1.35rem; }
  .home-splash-copy small { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-splash { transition-duration: 1ms; }
  .home-splash-sweep,
  .home-splash-signal { animation: none; }
  .home-splash-loader i { animation: none; transform: scaleX(1); }
}
