/* Download app — modern Obsidian Gold composition (scoped) */
.dl-app {
  --dl-gold: #f0c646;
  --dl-gold-a: #ffe28a;
  --dl-gold-b: #e8b923;
  --dl-gold-c: #b47a12;
  --dl-ink: #050507;
  --dl-panel: rgba(12, 12, 16, 0.72);
  --dl-line: rgba(240, 198, 70, 0.22);
  --dl-line-soft: rgba(255, 248, 231, 0.08);
  --dl-text: #fff8e7;
  --dl-muted: rgba(255, 248, 231, 0.64);
  --dl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dl-font: "Vazirmatn", "Sora", Tahoma, sans-serif;
  --dl-display: "Sora", "Vazirmatn", Tahoma, sans-serif;
  position: relative;
  isolation: isolate;
  padding: 0.25rem 0 2rem;
  overflow: clip;
  font-family: var(--dl-font);
  color: var(--dl-text);
}

.dl-app > *:not(.dl-stage) {
  position: relative;
  z-index: 1;
}

.dl-stage {
  position: absolute;
  inset: -1.5rem -1rem auto;
  height: min(560px, 72vh);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dl-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: dl-drift 16s var(--dl-ease) infinite;
}
.dl-bloom-a {
  width: 320px;
  height: 320px;
  top: -60px;
  inset-inline-end: 8%;
  background: radial-gradient(circle, rgba(240, 198, 70, 0.48), transparent 68%);
}
.dl-bloom-b {
  width: 240px;
  height: 240px;
  top: 140px;
  inset-inline-start: 4%;
  background: radial-gradient(circle, rgba(255, 226, 138, 0.22), transparent 70%);
  animation-delay: -6s;
}

.dl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 198, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 198, 70, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.dl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240, 198, 70, 0.18);
  animation: dl-spin 28s linear infinite;
}
.dl-ring-a {
  width: 280px;
  height: 280px;
  top: 40px;
  inset-inline-end: 12%;
}
.dl-ring-b {
  width: 360px;
  height: 360px;
  top: 0;
  inset-inline-end: 6%;
  border-style: dashed;
  opacity: 0.55;
  animation-direction: reverse;
  animation-duration: 42s;
}

@keyframes dl-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -18px, 0) scale(1.08); }
}
@keyframes dl-spin { to { transform: rotate(360deg); } }

.dl-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: dl-in 0.75s var(--dl-ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes dl-in {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-reveal,
  .dl-bloom,
  .dl-ring,
  .dl-phone,
  .dl-float,
  .dl-phone-bars span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero */
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

@media (max-width: 900px) {
  .dl-hero { grid-template-columns: 1fr; }
  .dl-hero-visual { order: -1; justify-self: center; }
}

.dl-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1206;
  background: linear-gradient(180deg, var(--dl-gold-a), var(--dl-gold-b));
}
.dl-badge-soft {
  color: var(--dl-gold-a);
  background: rgba(240, 198, 70, 0.1);
  border: 1px solid var(--dl-line);
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--dl-display);
}

.dl-title {
  margin: 0 0 0.75rem;
  font-family: var(--dl-display);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fffaf0;
  text-wrap: balance;
}

.dl-lead {
  margin: 0 0 1.4rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
  color: var(--dl-muted);
  font-weight: 500;
}

.dl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.dl-btn-primary,
.dl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-decoration: none !important;
  border-radius: 16px;
  transition:
    transform 0.25s var(--dl-ease),
    filter 0.25s var(--dl-ease),
    background 0.25s var(--dl-ease),
    border-color 0.25s var(--dl-ease);
}
.dl-btn-primary {
  min-height: 58px;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  color: #1a1206 !important;
  background: linear-gradient(165deg, #fff1b0 0%, #f0c646 42%, #c98916 100%);
  border: 1px solid rgba(255, 241, 176, 0.45);
}
.dl-btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
}
.dl-btn-primary:active { transform: translateY(0) scale(0.99); }
.dl-btn-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(26, 18, 6, 0.14);
  flex-shrink: 0;
}
.dl-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.15;
}
.dl-btn-text strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.dl-btn-text small {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.72;
  font-family: var(--dl-display);
}

.dl-btn-secondary {
  min-height: 58px;
  padding: 0.85rem 1.15rem;
  color: var(--dl-gold-a) !important;
  background: rgba(255, 248, 231, 0.03);
  border: 1px solid var(--dl-line);
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}
.dl-btn-secondary:hover {
  background: rgba(240, 198, 70, 0.1);
  border-color: rgba(240, 198, 70, 0.4);
  transform: translateY(-1px);
}

.dl-btn-primary.is-disabled,
.dl-btn-secondary.is-disabled {
  opacity: 0.42;
  pointer-events: none;
  filter: none;
  transform: none;
}

.dl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (max-width: 560px) {
  .dl-stats { grid-template-columns: 1fr; }
}

.dl-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.05), rgba(255, 248, 231, 0.02));
  border: 1px solid var(--dl-line-soft);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--dl-ease), transform 0.25s var(--dl-ease);
}
.dl-stat:hover {
  border-color: var(--dl-line);
  transform: translateY(-2px);
}
.dl-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 248, 231, 0.48);
}
.dl-stat-value {
  display: block;
  font-family: var(--dl-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fffaf0;
}

/* Phone visual */
.dl-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.dl-phone {
  position: relative;
  width: min(220px, 58vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 32px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 241, 176, 0.55), rgba(180, 122, 18, 0.35) 40%, rgba(20, 16, 8, 0.95));
  border: 1px solid rgba(255, 226, 138, 0.35);
  animation: dl-phone-float 5.5s var(--dl-ease) infinite;
}
.dl-phone-shine {
  position: absolute;
  inset: 8% 18% auto;
  height: 42%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 60%);
  border-radius: 40%;
  filter: blur(2px);
  pointer-events: none;
}
.dl-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 10px;
  border-radius: 999px;
  background: #0a0907;
  z-index: 2;
}
.dl-phone-screen {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 198, 70, 0.28), transparent 42%),
    linear-gradient(180deg, #14110c 0%, #070706 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.4rem 1rem 1.2rem;
  overflow: hidden;
}
.dl-phone-brand {
  font-family: var(--dl-display);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  color: rgba(255, 241, 176, 0.85);
}
.dl-phone-star {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--dl-gold-a);
  filter: drop-shadow(0 0 18px rgba(240, 198, 70, 0.45));
  animation: dl-pulse 2.8s ease-in-out infinite;
}
.dl-phone-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 36px;
}
.dl-phone-bars span {
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--dl-gold-a), var(--dl-gold-c));
  animation: dl-bar 1.8s ease-in-out infinite;
}
.dl-phone-bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.dl-phone-bars span:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.dl-phone-bars span:nth-child(3) { height: 85%; animation-delay: 0.3s; }
.dl-phone-bars span:nth-child(4) { height: 50%; animation-delay: 0.45s; }

.dl-phone-card {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(180deg, #fff1b0, #e8b923);
}

.dl-float {
  position: absolute;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-family: var(--dl-display);
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--dl-gold-a);
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid var(--dl-line);
  backdrop-filter: blur(10px);
  animation: dl-bob 4s var(--dl-ease) infinite;
}
.dl-float-a {
  top: 18%;
  inset-inline-start: 4%;
}
.dl-float-b {
  bottom: 22%;
  inset-inline-end: 2%;
  animation-delay: -1.4s;
}

@keyframes dl-phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes dl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes dl-bar {
  0%, 100% { transform: scaleY(0.75); }
  50% { transform: scaleY(1); }
}
@keyframes dl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Body panels */
.dl-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .dl-body { grid-template-columns: 1fr; }
}

.dl-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dl-panel {
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--dl-panel);
  border: 1px solid var(--dl-line-soft);
  backdrop-filter: blur(16px);
}
.dl-panel-head {
  margin-bottom: 1rem;
}
.dl-panel-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--dl-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fffaf0;
}
.dl-panel-head p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dl-muted);
}

.dl-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.dl-timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 248, 231, 0.025);
  border: 1px solid transparent;
  transition: border-color 0.25s var(--dl-ease), background 0.25s var(--dl-ease), transform 0.25s var(--dl-ease);
}
.dl-timeline li:hover {
  border-color: var(--dl-line);
  background: rgba(240, 198, 70, 0.06);
  transform: translateX(-2px);
}
html[dir="ltr"] .dl-timeline li:hover { transform: translateX(2px); }

.dl-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--dl-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1206;
  background: linear-gradient(180deg, var(--dl-gold-a), var(--dl-gold-b));
  flex-shrink: 0;
}
.dl-timeline strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 248, 231, 0.9);
}

.dl-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.dl-chips li {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 550;
  color: rgba(255, 248, 231, 0.88);
  background: rgba(255, 248, 231, 0.03);
  border: 1px solid var(--dl-line-soft);
  border-inline-start: 3px solid var(--dl-gold-b);
}

.dl-notes {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 248, 231, 0.78);
}

.dl-warn {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 0.95rem;
}


/* Windows download card */
.dl-hero-win {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 215, 128, 0.12);
}
/* Windows badges use the same shiny gold as Android (.dl-badge / .dl-badge-soft) */
.dl-title-win {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem) !important;
}

.dl-stat-warn {
  border-color: rgba(212, 168, 67, 0.55);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 67, 0.18);
}
.dl-stat-warn .dl-stat-value {
  color: #d4a843;
}
.dl-stat-ok .dl-stat-value {
  color: #6bcf8e;
}


.dl-faq-list {
  display: grid;
  gap: 0.55rem;
}
.dl-faq-item {
  border-radius: 14px;
  border: 1px solid var(--dl-line-soft);
  background: rgba(255, 248, 231, 0.03);
  padding: 0.65rem 0.9rem;
}
.dl-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #fffaf0;
}
.dl-faq-item p {
  margin: 0.55rem 0 0.15rem;
  color: var(--dl-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}
.dl-geo a {
  color: var(--dl-gold-a);
  text-decoration: none;
  font-weight: 650;
}
.dl-geo a:hover {
  text-decoration: underline;
}

