* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 960px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
}

.hero-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .logo-row {
    justify-content: flex-start;
  }
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.95;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

/* Feature Badges */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 768px) {
  .features {
    justify-content: flex-start;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.badge-indigo { background: rgba(99, 102, 241, 0.3); border: 1px solid rgba(99, 102, 241, 0.5); }
.badge-pink { background: rgba(236, 72, 153, 0.3); border: 1px solid rgba(236, 72, 153, 0.5); }
.badge-purple { background: rgba(139, 92, 246, 0.3); border: 1px solid rgba(139, 92, 246, 0.5); }

/* Download Cards */
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex-shrink: 0;
}

.card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 140px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.18);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-version {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.card-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #fff;
  color: #6D28D9;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.card-btn:hover {
  background: #f0e7ff;
  transform: scale(1.05);
}

.card-soon {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 0 16px;
  opacity: 0.7;
  font-size: 0.85rem;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

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

.divider {
  margin: 0 12px;
  opacity: 0.5;
}

.copyright {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Agreement Pages */
.agreement-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.agreement-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.agreement-page .back-link:hover {
  opacity: 1;
}

.agreement-page h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.agreement-content {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  border-radius: 16px;
  padding: 32px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.agreement-content h1 { font-size: 1.5rem; margin: 24px 0 12px; color: #4F46E5; }
.agreement-content h2 { font-size: 1.3rem; margin: 20px 0 10px; color: #4F46E5; }
.agreement-content h3 { font-size: 1.1rem; margin: 16px 0 8px; color: #6D28D9; }
.agreement-content p { margin-bottom: 12px; }
.agreement-content ul, .agreement-content ol { margin: 8px 0 12px 24px; }
.agreement-content a { color: #7C3AED; }

.loading {
  text-align: center;
  padding: 48px;
  opacity: 0.6;
}
