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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
}

.nav-cta {
  background: linear-gradient(135deg, #6C63FF, #4A45B2);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(175deg, #f8f7ff 0%, #fff 50%, #f0faf5 100%);
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #6C63FF, #F57C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.store-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  line-height: 1;
}

.store-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.apple-btn {
  background: #000;
  color: #fff;
}

.google-btn {
  background: #000;
  color: #fff;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #6C63FF;
}

.stat span {
  font-size: 13px;
  color: #777;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
}

/* Hero Phone */
.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-carousel {
  position: relative;
  width: 320px;
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(108, 99, 255, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.08);
}

.phone-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: 32px;
}

.phone-img.active {
  position: relative;
  opacity: 1;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fafafa;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f7ff 0%, #fff 100%);
}

.screenshots-carousel {
  position: relative;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  padding: 20px 0;
}

.screenshots-track.dragging {
  cursor: grabbing;
  transition: none;
}

.screenshot-card {
  flex: 0 0 260px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  background: #fff;
}

.screenshot-card:hover {
  transform: scale(1.03);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 8px;
  color: #333;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: #6C63FF;
  transform: scale(1.3);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8f7ff, #fff);
  border: 1px solid rgba(108, 99, 255, 0.1);
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #4A45B2);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #6C63FF 0%, #4A45B2 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-text p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.7;
}

.cta-section .store-btn {
  background: #fff;
  color: #1a1a2e;
}

.cta-section .store-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-phone {
  width: 280px;
  flex-shrink: 0;
}

.cta-phone img {
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  background: #1a1a2e;
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .store-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-text p {
    max-width: 100%;
  }

  .cta-section .store-buttons {
    justify-content: center;
  }

  .cta-phone {
    display: none;
  }

  .phone-carousel {
    width: 260px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .store-btn {
    padding: 10px 18px;
  }

  .store-btn strong {
    font-size: 14px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat strong {
    font-size: 18px;
  }

  .phone-carousel {
    width: 220px;
  }

  .screenshot-card {
    flex: 0 0 200px;
  }

  .cta-text h2 {
    font-size: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
