/* ============================================
   home.css - Homepage-specific styles
   Scoped to body.home to avoid affecting other pages
   ============================================ */

/* --- Body override --- */
body.home {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #ffffff;
  background: linear-gradient(180deg, #3499ff 0.18%, #da2be6 99.82%);
  overflow-x: hidden;
}

/* --- Layout Container --- */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  padding: 0;
}

/* --- Hero: Logo + Heading + Tagline --- */
.home-hero {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  flex-shrink: 0;
  width: 100%;
}

.home-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 20px;
}

.home-heading {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 56px;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.home-tagline {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
}

.home-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.home-badges a {
  display: inline-block;
  line-height: 0;
}

.home-badges img.home-badge {
  height: 48px;
  max-height: 48px;
  width: auto;
  transition: opacity 0.2s ease;
}

.home-badges img.home-badge:hover {
  opacity: 0.8;
}

/* --- Screenshots Section --- */
.home-screenshots {
  width: 100%;
  position: relative;
  padding-top: 40px;
  padding-bottom: 160px;
}

.home-screenshots-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-screenshot img {
  height: 782px;
  width: auto;
  display: block;
}

/* Stagger offsets via margin-top (affects document flow)
   Relative to screenshot-1: 2: +175px, 3: -50px, 4: +120px */
.home-screenshot-1 {
  margin-top: 0px;
}

.home-screenshot-2 {
  margin-top: 0px;
}

.home-screenshot-3 {
  margin-top: 0px;
}

.home-screenshot-4 {
  margin-top: 0px;
}

/* --- Footer --- */
.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 24px;
  text-align: center;
  font-size: 1.125rem;
  color: #ffffff;
  width: 100%;
  border-top: none;
  background: #da2be6cc;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.home-footer a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.home-footer a:hover {
  color: #ffffff;
}

.home-footer-dot {
  margin: 0 4px;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .home-screenshot img {
    height: 620px;
  }

  .home-screenshots-row {
    gap: 16px;
  }

  .home-screenshot-1 {
    margin-top: 40px;
  }
  .home-screenshot-2 {
    margin-top: 180px;
  }
  .home-screenshot-3 {
    margin-top: 0px;
  }
  .home-screenshot-4 {
    margin-top: 135px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .home-hero {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .home-heading {
    font-size: 3rem;
  }

  .home-tagline {
    font-size: 1.5rem;
    padding: 0 24px;
  }

  .home-badges img.home-badge {
    height: 40px;
    max-height: 40px;
  }

  /* Carousel: horizontal scroll with snap, ~1.5 screenshots visible */
  .home-screenshots {
    padding-top: 24px;
    padding-bottom: 120px;
  }

  .home-screenshots-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    max-width: none;
    padding: 16px 16vw 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-screenshots-row::-webkit-scrollbar {
    display: none;
  }

  .home-screenshot {
    flex: 0 0 auto;
    scroll-snap-align: center;
    margin-top: 0 !important;
  }

  .home-screenshot img {
    height: auto;
    width: 65vw;
    max-width: 360px;
  }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 480px) {
  .home-hero {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .home-logo {
    width: 72px;
    height: 72px;
  }

  .home-heading {
    font-size: 30px;
  }

  .home-tagline {
    font-size: 15px;
  }

  .home-screenshots-row {
    gap: 12px;
    padding: 12px 20vw 12px 16px;
  }

  .home-screenshot img {
    width: 70vw;
  }
}
