/* ==========================================================================
   Platform Availability & Universal Download Section
   ========================================================================== */

.download-section {
  padding: 80px 0;
  position: relative;
}

.download-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 48px;
  box-shadow: var(--shadow-floating);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.download-info .pill {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FDE047;
}

.download-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.download-info p {
  font-size: 17px;
  color: #E0E7FF;
  line-height: 1.6;
}

.download-platforms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Scannable QR Code Card */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  z-index: 1;
}

.qr-code-box {
  width: 180px;
  height: 180px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.qr-code-box svg,
.qr-code-box img {
  width: 100%;
  height: 100%;
}

.qr-caption {
  font-size: 13px;
  font-weight: 700;
  color: #C7D2FE;
}

/* Featured QR Code Container for Desktop (US-66) */
.qr-container.qr-featured {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 12px 32px rgba(0, 0, 0, 0.3);
}

.qr-container.qr-featured .qr-caption {
  color: #FDE047;
}

@media (max-width: 860px) {
  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    gap: 36px;
  }

  .download-info {
    align-items: center;
  }

  .download-info .pill {
    align-self: center;
  }

  .download-platforms-row {
    justify-content: center;
  }
}
