/* ------------------- */
/* 1. Design System & Variables */
/* ------------------- */
:root {
  --color-primary: #ffc759;
  --color-primary-hover: #ffb726;
  --color-secondary: #111827;
  --color-secondary-light: #334155;
  --color-light: #f8fafc;
  --color-gray: #64748b;
  --color-gray-light: #e5e7eb;
  --color-white: #ffffff;
  --color-accent: #ffc759; /* Using primary as accent */

  --font-family-base: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --container-width: 1140px;
  --container-padding: 1.5rem;

  --border-radius: 0.75rem; /* 12px */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 8px 20px rgba(255, 199, 89, 0.3);
  --shadow-lg: 0 15px 35px rgba(255, 199, 89, 0.4);
  
  --transition-base: all 0.3s ease-in-out;
}

/* ------------------- */
/* 2. Base & Reset Styles */
/* ------------------- */
*, *::before, *::after {
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family-base);
  line-height: var(--line-height-base);
  color: var(--color-secondary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* Prevents gray tap highlight on iOS */
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-secondary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ------------------- */
/* 3. Utility Classes */
/* ------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray);
  margin-left: auto;
  margin-right: auto;
}

.primary-button, .secondary-button {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.primary-button {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.primary-button:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-button {
  background-color: var(--color-light);
  color: var(--color-secondary);
  border-color: var(--color-gray-light);
}

.secondary-button:hover {
  background-color: var(--color-gray-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);}

/* ------------------- */
/* 4. Navbar */
/* ------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}

.navbar.scrolled {
  border-bottom-color: var(--color-gray-light);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo .logo {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-link.cta-button {
  padding: 0.75rem 1.5rem;
}
.nav-link.cta-button::after {
  display: none;
}

.mobile-menu-toggle {
  height: fit-content;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
    position: fixed; /* Keep close button fixed on screen */
    top: 2rem;       /* Position from top of viewport */
    right: 1.5rem;   /* Position from right of viewport */
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px;
  transition: var(--transition-base);
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--color-secondary);
  background-color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-social-proof p {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

.hero-image {
  max-width: 450px;
  width: 100%; /* Ensures image scales down correctly */
  height: auto;
}

/* ------------------- */
/* 6. Sections General */
/* ------------------- */
section {
  padding: 6rem 0;
}

/* ------------------- */
/* 7. Problem & Solution Sections */
/* ------------------- */
.problem-stats, .solution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item, .solution-card {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.stat-item:hover, .solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-gray);
}

.solution-section {
  background-color: var(--color-light);
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.solution-card h3 {
  margin-bottom: 1rem;
}

/* ------------------- */
/* 8. How It Works Section */
/* ------------------- */
.steps-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 39px; /* Aligns with center of step-number */
  width: 2px;
  background-color: var(--color-gray-light);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  border: 5px solid var(--color-light);
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* ------------------- */
/* 9. Features Section */
/* ------------------- */
.features-section {
  background-color: var(--color-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-base);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
}

/* ------------------- */
/* 10. FAQ Section */
/* ------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 199, 89, 0.5);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.faq-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--color-light);
  transition: all 0.3s ease;
  position: relative;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background-color: var(--color-primary);
  transform: rotate(45deg);
}

.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after {
  background-color: var(--color-white);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.faq-answer > div, .faq-answer > p {
  overflow: hidden;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-gray);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ------------------- */
/* 11. CTA Section */
/* ------------------- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1e293b 100%);
  color: var(--color-white);
  padding: 5rem 0;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.cta-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 0.2rem;
  height: 60vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #1e293b 100%);
  color: var(--color-white);

  text-align: center;
  margin: 0 auto;

}


.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 199, 89, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 212, 138, 0.08) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}




/* For mobile, make sure form elements stack properly */
@media (max-width: 768px) {
  .newsletter-form .form-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .newsletter-form input[type="email"] {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
  }
  
  .newsletter-form button[type="submit"] {
    width: 100%;
    max-width: 400px;
  }
}

.cta-title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: #cbd5e1;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-secondary-light);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-size: 1rem;
  transition: var(--transition-base);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-gray);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 199, 89, 0.3);
}

.form-disclaimer {
  font-size: 0.875rem;
  color: var(--color-gray);
  opacity: 0.8;
}

/* ------------------- */
/* 12. Footer */
/* ------------------- */
.footer {
  background-color: var(--color-light);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.footer-about .footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--color-gray);
}
.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--color-gray);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ------------------- */
/* 13. Responsive Design (Mobile-First) */
/* ------------------- */

/* Tablets and smaller */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    margin: auto;
  }
  .hero-image-container {
    order: -1;
    margin-bottom: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-social-proof {
    justify-content: center;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }

section {
    padding: 4rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }
.hero-image{
    margin: 0; /* Corrected from 'none' */
    width: 80%; /* Adjust size for mobile */
    max-width: 350px;
  }
  .container > .hero-content {
    margin: 0; /* Corrected from 'none' */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-link {
    font-size: 1.75rem;
    font-weight: 600;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu-toggle.active {
    position: fixed;
    top: 2rem;
    right: 1.5rem;
  }
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  body.menu-open {
    overflow: hidden;
    height: 100dvh;
  }

  .steps-container::before {
    left: 24px;
  }
  .step {
    gap: 1.5rem;
  }
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .newsletter-form .form-group {
    flex-direction: column;
  }
  .newsletter-form input[type="email"]  {
    margin: auto;
    width: 85%;
    margin-bottom: 1rem;
  }
 .form-group > button {
    width: 85%;
    margin: auto;
  }

  .footer-content, .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .footer-links {
    justify-content: center;
  }
}