/* --- General Reset & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px; 
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark-grey);
}

/* --- Color & Font Variables --- */
:root {
  --purple: #5a189a;
  --purple-dark: #3c096c;
  --gold: #ffb703;
  --dark: #101010;
  --dark-grey: #444;
  --light: #fdfdfd;
  --light-grey: #f0f0f0;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background-color: var(--gold);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark-grey);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--purple);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-btn {
  display: inline-block;
}


/* --- Hero Section --- */
.hero {
  padding: 5rem 5% 6rem;
  background-color: var(--light);
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex-basis: 50%;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--purple);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin: 1.5rem 0 2rem;
  color: var(--dark-grey);
  line-height: 1.7;
  max-width: 500px;
}

.hero-image {
  flex-basis: 45%;
}

.hero-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(90, 24, 154, 0.2);
}


/* --- Buttons --- */
.btn, .btn-outline, .btn-store {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn {
  background: var(--purple);
  color: white;
}

.btn:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-outline {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
}

.btn-outline:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* --- General Section Styling --- */
section {
  padding: 6rem 5%;
  text-align: center;
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

section > p {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--dark-grey);
  line-height: 1.6;
}


/* --- Features Section --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* --- How It Works Section --- */
.how-it-works {
  background-color: var(--light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto 0;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-icon-container {
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 100px;
  height: 100px;
  background-color: #fff;
  border: 3px solid var(--purple);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.step-icon i {
  font-size: 2.5rem;
  color: var(--purple);
}

.step:hover .step-icon {
  background-color: var(--purple);
}
.step:hover .step-icon i {
  color: #fff;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--light-grey);
  z-index: 1;
}

/* --- App Preview Slider Section --- */
.slider-container {
  max-width: 800px;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  color: var(--purple);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s, color 0.3s;
}

.slider-btn:hover {
  background-color: var(--purple);
  color: white;
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}



/* --- Pricing Section --- */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  align-items: stretch;
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  width: 350px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--light-grey);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.card.highlight {
  border-color: var(--purple);
}

.card .btn, .card .btn-outline {
    margin-top: auto;
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background-color: var(--gold);
  color: var(--dark);
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--purple);
}

.card .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--dark);
}

.card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-grey);
}

.feature-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  color: var(--dark-grey);
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.feature-list .fa-check {
  color: #28a745;
}

.feature-list .fa-times {
  color: #dc3545;
}


/* --- Testimonials Section --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.testimonial {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--light-grey);
  text-align: left;
}

.testimonial img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-grey);
}

.testimonial h4 {
  font-weight: 600;
  color: var(--dark);
}

/* --- Download Section --- */
.download {
  background-color: var(--purple);
}

.download h2, .download p {
  color: white;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-store {
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
}

.btn-store i {
  font-size: 1.5rem;
}

.btn-store:hover {
  background: var(--gold);
  color: var(--dark);
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: var(--light-grey);
  padding: 3rem 5% 1.5rem;
  text-align: center;
}
.footer .logo {
  color: white;
}
.footer-links {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--light-grey);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold);
}
.social-icons {
  margin-bottom: 1.5rem;
}
.social-icons a {
  color: white;
  font-size: 1.2rem;
  margin: 0 0.7rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--gold);
}
.footer p {
  font-size: 0.9rem;
  color: #aaa;
}


/* --- Animations on Scroll --- */
.animated {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 70px;
    right: 5%;
    width: 90%;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-btn {
      display: none;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
      order: 2;
  }
  
  .hero-image {
      order: 1;
      margin-bottom: 2rem;
  }
  
  .hero-text p {
      margin-left: auto;
      margin-right: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .steps-grid::before {
    display: none;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }
}
