/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

/* Show white logo by default (over dark hero), hide dark logo */
.nav-logo-dark {
  display: none;
}

/* When scrolled (white bg), show dark logo, hide white logo */
.nav.scrolled .nav-logo-white {
  display: none;
}

.nav.scrolled .nav-logo-dark {
  display: block;
}

.nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.nav:not(.scrolled) .nav-links a:hover {
  color: #4cc9f0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a2e;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4cc9f0;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #16213e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 35, 0.4) 0%,
    rgba(15, 15, 35, 0.6) 50%,
    rgba(15, 15, 35, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: 2.5rem;
}

.hero-logo-img {
  height: 120px;
  width: auto;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-tagline .highlight {
  color: #4cc9f0;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 2px solid #4cc9f0;
  border-radius: 50px;
  color: #4cc9f0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* === Features Section === */
.features {
  padding: 6rem 2rem;
  background: #fafbfc;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4cc9f0 0%, #3a86ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* === Download Section === */
.download {
  padding: 6rem 2rem;
  background: #ffffff;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.store-badge svg {
  width: 180px;
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 8px;
}

.store-badge:hover svg {
  transform: scale(1.05);
  opacity: 0.9;
}

.qr-code svg {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* === CTA Section === */
.cta {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
  color: #ffffff;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-badge {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: #4cc9f0;
  border-radius: 50px;
  color: #0f0f23;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Footer === */
.footer {
  padding: 2rem;
  text-align: center;
  background: #0a0a1a;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #4cc9f0;
}

.footer-divider {
  margin: 0 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-logo-img {
    height: 80px;
  }

  .features {
    padding: 4rem 1.25rem;
  }

  .download {
    padding: 4rem 1.25rem;
  }

  .download-grid {
    gap: 3rem;
  }

  .cta {
    padding: 4rem 1.25rem;
  }
}
