/* Download app page — /download-app */

.dl-hero {
  --dl-ink: #f4f8ff;
  --dl-muted: rgba(244, 248, 255, 0.78);
  --dl-deep: #031a33;
  --dl-accent: #0466c8;
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: var(--dl-ink);
  background:
    linear-gradient(115deg, rgba(3, 26, 51, 0.92) 0%, rgba(4, 102, 200, 0.72) 48%, rgba(3, 26, 51, 0.88) 100%),
    var(--dl-hero-image) center center / cover no-repeat;
}

.dl-hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dl-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.45;
  animation: dlOrbFloat 12s ease-in-out infinite;
}

.dl-hero__orb--one {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  inset-inline-end: 8%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.55), transparent 70%);
}

.dl-hero__orb--two {
  width: 16rem;
  height: 16rem;
  bottom: 8%;
  inset-inline-start: 6%;
  background: radial-gradient(circle, rgba(4, 102, 200, 0.7), transparent 70%);
  animation-delay: -4s;
}

.dl-hero__orb--three {
  width: 10rem;
  height: 10rem;
  top: 38%;
  inset-inline-start: 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  animation-delay: -7s;
}

.dl-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 5.5rem 4.5rem;
}

.dl-hero__copy {
  max-width: 34rem;
  animation: dlRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dl-hero__brand {
  display: block;
  height: auto;
  width: clamp(9rem, 18vw, 11.5rem);
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.dl-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.dl-hero__subtitle {
  margin: 0 0 2rem;
  max-width: 30rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--dl-muted);
  font-weight: 400;
}

.dl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.dl-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 11.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dl-store:hover,
.dl-store:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.dl-store i {
  font-size: 1.65rem;
  line-height: 1;
}

.dl-store span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.dl-store small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.dl-store strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.dl-store--ios {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dl-store--ios:hover,
.dl-store--ios:focus {
  background: #000;
}

.dl-store--android {
  background: var(--dl-accent);
  border-color: transparent;
}

.dl-store--android:hover,
.dl-store--android:focus {
  background: #0353a4;
}

.dl-hero__soon {
  display: inline-block;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

.dl-phone {
  position: relative;
  display: flex;
  justify-content: center;
  animation: dlRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.dl-phone__glow {
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.45), transparent 68%);
  filter: blur(8px);
  animation: dlPulse 4.5s ease-in-out infinite;
}

.dl-phone__device {
  position: relative;
  width: min(100%, 17.5rem);
  aspect-ratio: 9 / 18.5;
  padding: 0.7rem;
  border-radius: 2.35rem;
  background: linear-gradient(160deg, #1f2937 0%, #0b1220 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: dlFloat 5.5s ease-in-out infinite;
}

.dl-phone__notch {
  position: absolute;
  top: 1.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 0.72rem;
  border-radius: 999px;
  background: #05070d;
  z-index: 2;
}

.dl-phone__screen {
  height: 100%;
  border-radius: 1.8rem;
  overflow: hidden;
  background: #031a33;
}

.dl-phone__splash {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dl-benefits {
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(180deg, #f3f7fb 0%, #ffffff 48%, #f7fafc 100%);
}

.dl-benefits__intro {
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.dl-benefits__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dl-benefits__subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.65;
}

.dl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.dl-benefit {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.dl-benefit__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #e0eeff;
  color: #0466c8;
  font-size: 1.15rem;
}

.dl-benefit__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.dl-benefit__text {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.65;
}

@keyframes dlRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dlFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes dlPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@keyframes dlOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -22px, 0);
  }
}

@media (max-width: 991.98px) {
  .dl-hero {
    min-height: auto;
  }

  .dl-hero__inner {
    padding-block: 4.25rem 3.5rem;
  }

  .dl-hero__copy {
    max-width: none;
    text-align: center;
    margin-inline: auto;
  }

  .dl-hero__brand {
    margin-inline: auto;
  }

  .dl-hero__subtitle {
    margin-inline: auto;
  }

  .dl-hero__actions {
    justify-content: center;
  }

  .dl-phone {
    margin-top: 0.5rem;
  }

  .dl-phone__device {
    width: min(100%, 14.5rem);
  }

  .dl-benefits__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .dl-store {
    width: 100%;
    justify-content: flex-start;
  }

  .dl-hero__title {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-hero__copy,
  .dl-phone,
  .dl-phone__device,
  .dl-phone__glow,
  .dl-hero__orb {
    animation: none !important;
  }
}

[dir="rtl"] .dl-store i {
  margin-inline: 0;
}
