/* --- Global Variables & Reset --- */
:root {
  --primary-magenta: #c2185b;
  --light-pink: #fce4ec;
  --dark-bg: #1a1a24;
  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --bg-light: #f9f9fb;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--text-light);
}
.bg-magenta {
  background-color: var(--primary-magenta);
}
.bg-dark {
  background-color: var(--dark-bg);
}
.bg-light {
  background-color: var(--bg-light);
}
.mt-2 {
  margin-top: 1.5rem;
}
.section-padding {
  padding: 80px 0;
}

/* --- Typography --- */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-magenta);
  color: var(--text-light);
}
.btn-primary:hover {
  background: #a0144a;
}
.btn-store {
  background: var(--text-dark);
  color: var(--text-light);
  border-radius: 8px;
}
.btn-store.outline {
  background: transparent;
  border: 1px solid var(--text-light);
}
.app-store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Sentinel --- */
#header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0; /* Default padding */
  transition:
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

/* Intersetion Observer Scrolled State */
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary-magenta);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-only-cta {
  display: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 100px 0 140px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
}
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-light);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

/* --- Features Section --- */
.section-title {
  margin-bottom: 60px;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  margin-top: 24px;
  border-radius: 12px;
  align-self: center;
  max-height: 200px;
}

/* --- Stats, FAQ & CTA Sections --- */
.stats-grid,
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.accordion {
  margin-top: 32px;
}
.faq-item {
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-magenta);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
}
.faq-item.active .faq-question::after {
  content: "-";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 150px;
  margin-top: 12px;
  color: #555;
}

/* --- Footer --- */
footer {
  padding: 40px 0;
}
.footer-logo {
  margin: 0 auto 16px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero-grid,
  .stats-grid,
  .faq-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-store-buttons {
    justify-content: center;
  }
  .faq-question {
    text-align: left;
  }
  .hero {
    padding: 40px 0 100px;
  }

  /* Mobile Navigation Setup */
  .desktop-only-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 0; /* Reset padding for animation */
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition:
      max-height 0.4s ease,
      padding 0.4s ease;
  }

  .nav-links.active {
    max-height: 400px; /* Arbitrary large height to allow content */
    padding: 24px 0;
  }

  .mobile-only-cta {
    display: block;
    margin-top: 16px;
  }

  /* Hamburger Animation */
  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
