.download-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.7rem;
  min-height: 460px;
  padding: 2.5rem 1.6rem 2.3rem;
  color: #fff;
  background:
    radial-gradient(800px 320px at 90% 10%, rgba(251, 113, 133, 0.28), transparent 55%),
    linear-gradient(120deg, rgba(12, 6, 10, 0.62), rgba(12, 6, 10, 0.86)),
    url("../assets/covers/desktop-ui.jpg") center / cover;
}

.download-hero::before,
.download-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: dl-drift 10s ease-in-out infinite alternate;
}

.download-hero::before {
  width: 220px;
  height: 220px;
  background: rgba(219, 39, 119, 0.45);
  top: -40px;
  inset-inline-end: 8%;
}

.download-hero::after {
  width: 180px;
  height: 180px;
  background: rgba(109, 40, 217, 0.4);
  bottom: -50px;
  inset-inline-start: 10%;
  animation-delay: -3s;
}

@keyframes dl-drift {
  to { transform: translate3d(-18px, 16px, 0) scale(1.08); }
}

.dl-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .download-hero {
    min-height: 560px;
    padding: 3.2rem 3rem 2.8rem;
  }
  .dl-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.download-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  max-width: 14ch;
}

.download-hero .lead {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.85;
  font-size: 1.08rem;
}

.dl-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: #1a0812;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.62rem 0.95rem;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(251, 113, 133, 0.55);
}

.dl-pill.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dl-pill svg {
  width: 16px;
  height: 16px;
}

.dl-shot {
  position: relative;
}

.dl-shot img {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  animation: dl-float 6s ease-in-out infinite;
}

.dl-float-phone {
  position: absolute;
  width: 38%;
  inset-inline-start: -8%;
  bottom: -12%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px -16px #000;
  animation: dl-float 7s ease-in-out infinite reverse;
}

@keyframes dl-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.os-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

@media (min-width: 720px) {
  .os-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .os-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.os-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.os-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--brand) 55%, transparent);
}

.os-card img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.os-card:hover img.bg {
  transform: scale(1.1);
}

.os-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 10, 0.15) 10%, rgba(10, 6, 10, 0.9));
}

.os-card .pad {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.3rem;
  color: #fff;
}

.os-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 0.7rem;
}

.os-ico svg {
  width: 22px;
  height: 22px;
}

.os-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.os-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.7;
}

.os-card .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.os-card .btns a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #1a0812;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.48rem 0.8rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

.os-card .btns a:hover {
  transform: translateY(-2px);
  background: #ffe4ef;
}

.os-card .btns a.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.os-card .btns a.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.os-card .btns a svg {
  width: 13px;
  height: 13px;
}

.gallery {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 210px 210px;
  }
  .gallery .big { grid-row: 1 / 3; }
}

.gallery figure {
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.browser-cta {
  margin-top: 2.4rem;
  border-radius: 1.45rem;
  display: grid;
  gap: 1.2rem;
  align-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(194, 24, 91, 0.16), transparent 60%),
    var(--surface-muted);
  overflow: hidden;
}

@media (min-width: 800px) {
  .browser-cta {
    grid-template-columns: 1.2fr 1fr;
    padding: 0;
  }
  .browser-cta .copy {
    padding: 1.8rem 1.8rem 1.8rem 2rem;
  }
}

.browser-cta .copy {
  padding: 1.5rem;
}

.browser-cta img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .download-hero::before,
  .download-hero::after,
  .dl-shot img,
  .dl-float-phone {
    animation: none;
  }
}
