
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  animation: float 25s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.5deg); }
  66% { transform: translateY(4px) rotate(-0.5deg); }
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  z-index: 1;
}

.card {
  background: rgba(30, 30, 46, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
  transition: all 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  padding: 24px 32px 0;
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.card-body {
  padding: 32px;
  text-align: center;
}

.download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 32px;
  font-weight: 500;
}

.progress-container {
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #374151;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s ease-out;
}

.status-text {
  font-size: 16px;
  color: #f3f4f6;
  margin-bottom: 16px;
  font-weight: 500;
}

.error-text {
  font-size: 14px;
  color: #ef4444;
  margin-bottom: 16px;
  min-height: 1.2em;
  font-weight: 500;
}

.features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #d1d5db;
  font-weight: 500;
}

.feature svg {
  color: #10b981;
}

.card-footer {
  background: rgba(17, 24, 39, 0.6);
  padding: 16px 32px;
  text-align: center;
}

.footer-text {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .card-body {
    padding: 24px;
  }
  
  .card-header {
    padding: 20px 24px 0;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .download-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }
  
  .features {
    gap: 16px;
  }
  
  .feature {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
