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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #f0f0f5;
  line-height: 1.6;
  overflow-x: hidden;
  background: #0a0e27;
}

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

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* ========== Background Gradient ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30, 60, 180, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(60, 40, 200, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(20, 30, 140, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 90% 40% at 10% 90%, rgba(40, 20, 160, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(50, 50, 200, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, #0a0e27 0%, #0d1440 40%, #111b5e 100%);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
}

.app-icon {
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #c0c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-weight: 400;
}

.app-store-btn {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 8px;
}

.app-store-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.qr-wrapper {
  margin-top: 32px;
}

.qr-code {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
}

/* ========== Screenshots ========== */
.screenshots {
  padding: 80px 0;
}

.phone-carousel {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
}

/* Hide scrollbar but keep functionality */
.phone-carousel::-webkit-scrollbar {
  display: none;
}
.phone-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone-frame {
  flex-shrink: 0;
  position: relative;
  width: 240px;
  height: 500px;
  background: #1a1a2e;
  border-radius: 36px;
  border: 3px solid #2a2a4a;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  scroll-snap-align: center;
  animation: float 6s ease-in-out infinite;
}

.phone-frame:nth-child(2) {
  animation-delay: -2s;
}

.phone-frame:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Features ========== */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ========== Footer ========== */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ========== Fade-in Animation ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .app-icon {
    width: 110px;
    height: 110px;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .phone-carousel {
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 24px;
    gap: 20px;
  }

  .phone-frame {
    width: 200px;
    height: 420px;
    border-radius: 30px;
  }

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

  .feature-card {
    padding: 24px 20px;
  }
}
