/* --- 1. Variables & Global Styles --- */
:root {
  --blue: #3b82f6;
  --blue-bg: #eff6ff;
  --text-dark: #111827;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background-color: var(--white);
  overflow-x: hidden;
}

section {
  padding: 80px 10%;
}

img {
  max-width: 100%;
  height: auto;
}

#nav-check {
  display: none; /* Hide checkbox */
}

.nav-toggler {
  display: none; /* Hide hamburger on desktop */
  cursor: pointer;
  padding: 5px;
}

.nav-toggler span,
.nav-toggler span::before,
.nav-toggler span::after {
  display: block;
  background: var(--text-dark);
  height: 2px;
  width: 25px;
  position: relative;
  transition: 0.3s;
}

.nav-toggler span::before,
.nav-toggler span::after {
  content: "";
  position: absolute;
}

.nav-toggler span::before {
  bottom: 8px;
}
.nav-toggler span::after {
  top: 8px;
}

.mobile-only {
  display: none;
}

/* --- 2. Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--blue);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

/* --- 3. Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
}

.hero-content {
  flex: 1.2;
}

.badge {
  color: var(--blue);
  background: var(--blue-bg);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 24px 0;
  font-weight: 800;
}

.text-blue {
  color: var(--blue);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.store-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-store {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.btn-store.dark {
  background: #000;
  color: #fff;
  border: none;
}
.btn-store.light {
  background: #f3f4f6;
  color: #000;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
}

/* --- 4. Feature Cards --- */
.features-section {
  background: var(--bg-light);
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  text-align: left;
  box-shadow: var(--shadow);
}

.btn-added {
  color: var(--blue);
  border: none;
  background: none;
  font-weight: 700;
}

.btn-add {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

/* --- 5. Split Section (Invite Friends) --- */
.split-info {
  display: flex;
  align-items: center;
  gap: 80px;
}

.check-list {
  list-style: none;
  margin-top: 25px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.ui-card {
  background: var(--blue-bg);
  padding: 30px;
  border-radius: 28px;
  width: 100%;
  max-width: 400px;
}

.user-row {
  background: var(--white);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.user-row button.added {
  color: var(--blue);
  border: none;
  background: none;
  font-weight: 700;
}
.user-row button.add {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

/* --- 6. Wall of Love (Testimonials) --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.test-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* --- 7. Final CTA Section --- */
.final-cta {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 100px 5%;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
}

/* --- 8. Responsive Design --- */
@media (max-width: 1024px) {
  .hero,
  .split-info {
    flex-direction: column;
    text-align: center;
  }
  .hero h2 {
    font-size: 3rem;
  }
  .hero-content p,
  .store-btns {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  border-top: 1px solid #f0f0f0;
  background: var(--white);
}

/* --- Media Query: Mobile (below 768px) --- */
@media (max-width: 768px) {
  /* Navigation Hamburger Logic */
  .nav-toggler {
    display: block;
  }

  .nav-cta {
    display: none; /* Hide main button to save space */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid #f9fafb;
  }

  .nav-links li a {
    display: block;
    padding: 20px;
    text-align: center;
  }

  .mobile-only {
    display: block;
  }

  /* Open menu when checkbox is checked */
  #nav-check:checked ~ .nav-links {
    max-height: 400px;
  }

  /* Animate Hamburger to X */
  #nav-check:checked ~ .nav-toggler span {
    background: transparent;
  }
  #nav-check:checked ~ .nav-toggler span::before {
    transform: rotate(45deg);
    bottom: 0;
  }
  #nav-check:checked ~ .nav-toggler span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Section Spacing */
  .hero h2 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Stack features in 1 column */
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .cta-btns {
    flex-direction: column;
    gap: 15px;
  }

  .btn-white {
    margin-right: 0;
  }

  footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-right a {
    margin-left: 0;
  }
}
