/* صفحه QR دانلود اپ */
.adl-page {
  min-height: 100dvh;
  margin: 0;
  font-family: Vazirmatn, system-ui, sans-serif;
  color: #142824;
  background: #f5f2eb;
  overflow-x: hidden;
}

.adl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(63, 109, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(201, 166, 107, 0.16), transparent 50%),
    linear-gradient(180deg, #faf8f4 0%, #f5f2eb 45%, #f0ebe0 100%);
}

.adl-bg__ribbon {
  position: absolute;
  width: 140%;
  height: 2px;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(232, 212, 168, 0.55), rgba(201, 166, 107, 0.75), rgba(232, 212, 168, 0.55), transparent);
  animation: adlRibbonDrift 9s ease-in-out infinite;
}

.adl-bg__ribbon--1 { top: 18%; opacity: 0.45; }
.adl-bg__ribbon--2 { top: 72%; opacity: 0.28; animation-delay: -3s; }

@keyframes adlRibbonDrift {
  0%, 100% { transform: translateX(0) rotate(-1deg); }
  50% { transform: translateX(4%) rotate(1deg); }
}

.adl-wrap {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0)) 20px calc(32px + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  justify-content: center;
  text-align: center;
}

/* ——— لوگوی ثابت اپ ——— */
.adl-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
}

.adl-brand {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1a3d36;
  margin: 0 0 6px;
}

.adl-tagline {
  margin: 0 0 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #556862;
  line-height: 1.55;
  max-width: 320px;
}

.adl-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adl-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(201, 166, 107, 0.45);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  cursor: pointer;
  text-align: right;
}

.adl-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: adlShimmer 4.2s ease-in-out infinite;
  pointer-events: none;
}

.adl-btn--android {
  background: linear-gradient(135deg, #1a3d36 0%, #274842 42%, #355944 100%);
  color: #faf8f4;
  box-shadow: 0 12px 32px rgba(26, 61, 54, 0.28), inset 0 1px 0 rgba(232, 212, 168, 0.25);
  animation: adlBtnPulse 3.6s ease-in-out infinite;
}

.adl-btn--android:hover,
.adl-btn--android:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(26, 61, 54, 0.34), 0 0 0 1px rgba(201, 166, 107, 0.5);
}

.adl-btn--ios {
  background: linear-gradient(135deg, #fffefc 0%, #f7f2e8 55%, #f0ebe0 100%);
  color: #1a3d36;
  box-shadow: 0 10px 28px rgba(201, 166, 107, 0.14);
  cursor: default;
  opacity: 0.92;
}

.adl-btn__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.adl-btn--android .adl-btn__icon {
  background: linear-gradient(145deg, rgba(232, 212, 168, 0.35), rgba(201, 166, 107, 0.2));
  color: #e8d4a8;
}

.adl-btn--ios .adl-btn__icon {
  background: rgba(201, 166, 107, 0.14);
  color: #a8844a;
}

.adl-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.adl-btn__text strong {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.adl-btn__text small {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.82;
}

.adl-btn__badge {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(201, 166, 107, 0.22);
  color: #a8844a;
  border: 1px solid rgba(201, 166, 107, 0.35);
  white-space: nowrap;
}

.adl-meta {
  margin-top: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6f7a74;
}

.adl-meta a {
  color: #274842;
  text-decoration: none;
  border-bottom: 1px solid rgba(39, 72, 66, 0.25);
}

@keyframes adlShimmer {
  0%, 72%, 100% { transform: translateX(-120%); }
  38% { transform: translateX(120%); }
}

@keyframes adlBtnPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(26, 61, 54, 0.28), inset 0 1px 0 rgba(232, 212, 168, 0.25); }
  50% { box-shadow: 0 14px 36px rgba(26, 61, 54, 0.34), 0 0 20px rgba(201, 166, 107, 0.12), inset 0 1px 0 rgba(232, 212, 168, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .adl-btn--android,
  .adl-bg__ribbon,
  .adl-btn::before {
    animation: none !important;
  }
}
