/* NexusVPN — premium download page */

.page-download {
  --primary: #7c6cf0;
  --primary-light: #a78bfa;
  --accent: #22d3ee;
  --bg: #030508;
  --glass: rgba(15, 21, 36, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #7c6cf0;
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: #22d3ee;
  top: 40%;
  right: -100px;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #6366f1;
  bottom: -60px;
  left: 30%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -20px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.95); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.logo-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.2), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(124, 108, 240, 0.25);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.brand-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light) 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-title span {
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
}

.pills li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

.pill-icon {
  font-size: 0.9rem;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.release-card {
  position: relative;
  overflow: hidden;
}

.release-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.card-head h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 6px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.ver-chip {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(124, 108, 240, 0.35);
  color: var(--primary-light);
  white-space: nowrap;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-value-sm {
  font-size: 0.72rem;
  line-height: 1.3;
}

.notes-block {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

.notes-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.notes {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin-top: 6px;
}

.notes:empty {
  display: none;
}

.notes:empty + .notes-label,
#notesWrap:has(.notes:empty) {
  display: none;
}

/* Download button */
.btn-download {
  position: relative;
  display: block;
  width: 100%;
  margin: 6px 0 14px;
  padding: 0;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #7c6cf0, #6366f1 50%, #22d3ee);
  box-shadow:
    0 12px 32px rgba(124, 108, 240, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(124, 108, 240, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-download:active {
  transform: translateY(0);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Steps */
.steps h3 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--muted);
}

.steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.steps li span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(124, 108, 240, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(124, 108, 240, 0.3);
}

/* QR */
.qr-grid {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qr-text h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.qr-text p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.page-url {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--accent);
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.qr-frame {
  flex-shrink: 0;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-frame img {
  display: block;
  width: 168px;
  height: 168px;
}

/* Empty */
.empty-panel {
  text-align: center;
  padding: 40px 24px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-panel p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hint */
.page-download .hint {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

/* Footer */
.site-foot {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.site-foot p {
  font-size: 0.72rem;
  color: #64748b;
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .qr-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-url {
    text-align: left;
  }
}

@media (min-width: 520px) {
  .shell {
    padding-top: 48px;
  }
}
