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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.content {
  padding: 40px 30px;
  text-align: center;
}

/* Logo section */
.logo-section {
  margin-bottom: 30px;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
}

/* Welcome section */
.welcome-section {
  margin-bottom: 40px;
}

.welcome-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.welcome-message {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* Action section */
.action-section {
  margin-bottom: 40px;
}

.app-check-message {
  margin-bottom: 20px;
}

#app-message {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
}

.download-section {
  margin-bottom: 30px;
}

.download-text {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.download-btn {
  display: inline-block;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: scale(1.05);
}

/* APK Download Button Styles */
.apk-download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.apk-download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.apk-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 30px;
  color: white;
  text-decoration: none;
}

.download-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.main-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.sub-text {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.auto-redirect-info {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.redirect-text {
  font-size: 1rem;
  color: #667eea;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon {
  font-size: 1.2rem;
}

#countdown {
  font-weight: bold;
  color: #764ba2;
  font-size: 1.1rem;
}

/* Features section */
.features-section {
  margin-bottom: 30px;
  text-align: left;
  background: rgba(102, 126, 234, 0.05);
  padding: 25px;
  border-radius: 15px;
}

.features-section h3 {
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.3rem;
}

.features-list {
  list-style: none;
  max-width: 400px;
  margin: 0 auto;
}

.features-list li {
  padding: 8px 0;
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  padding-top: 20px;
  margin-top: 20px;
}

.footer p {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .content {
    padding: 30px 20px;
  }

  .welcome-title {
    font-size: 1.7rem;
  }

  .logo {
    font-size: 2rem;
  }

  .welcome-message {
    font-size: 1rem;
  }

  .apk-download-button {
    gap: 10px;
    padding: 15px 25px;
  }

  .main-text {
    font-size: 1.1rem;
  }

  .download-icon {
    font-size: 1.8rem;
  }

  .redirect-text {
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .content {
    padding: 25px 15px;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .features-section {
    padding: 20px;
  }

  .apk-download-button {
    gap: 8px;
    padding: 12px 20px;
  }

  .main-text {
    font-size: 1rem;
  }

  .sub-text {
    font-size: 0.8rem;
  }

  .download-icon {
    font-size: 1.5rem;
  }
}

/* Animation for countdown */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 1s ease-in-out;
}
