/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #092d4a;
  --secondary-color: #0175C2;
  --accent-color: #00A8E8;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.app-icon-container {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: -0.5px;
}

.app-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

.app-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin: 0;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.ios-btn {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: var(--white);
}

.android-btn {
  background: linear-gradient(135deg, #3ddc84 0%, #00d4aa 100%);
  color: var(--white);
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

.btn-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.btn-store {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Features Section */
.features {
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  max-width: 1200px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  padding: 32px 24px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: var(--text-light);
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero {
    padding: 80px 40px;
  }
  
  .app-name {
    font-size: 3rem;
  }
  
  .download-buttons {
    flex-direction: row;
    max-width: 500px;
  }
  
  .download-btn {
    flex: 1;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    margin: 20px auto;
    padding: 40px 20px;
  }
  
  .app-name {
    font-size: 2rem;
  }
  
  .app-tagline {
    font-size: 1.125rem;
  }
  
  .app-icon-container {
    width: 100px;
    height: 100px;
  }
  
  .features {
    padding: 40px 20px;
    margin: 20px auto;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading State */
.download-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.download-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hidden class for device-specific buttons */
.hidden {
  display: none !important;
}
