/* Global Resets and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa; /* Slightly off-white for a softer look */
  color: #212529; /* Darker grey for better readability */
  line-height: 1.7;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3 {
  color: #1f2937; /* A slightly softer black for headings */
  margin-bottom: 0.75em;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 700; text-align: center; }
h3 { font-size: 1.4rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: #495057; /* Medium grey for paragraph text */
}

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Header */
header {
  background-color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: #3b82f6;
}
.tagline {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  color: #6c757d;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #eef2ff, #f8f9fa 70%); /* Subtle gradient */
  padding: 5rem 0;
  text-align: center;
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto 1rem;
}
.hero p {
  font-size: 1.15rem;
  margin: 1rem auto 2.5rem;
  max-width: 650px;
  color: #4b5563;
}

/* CTA Form (reusing your improved styles) */
.cta-form {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center; /* Vertically align items */
  gap: 0.75rem; /* Increased gap slightly */
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  padding: 0.9rem 1.2rem; /* Slightly larger padding */
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  max-width: 320px; /* Increased max-width */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cta-form input[type="email"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}
.cta-form button {
  background: #3b82f6;
  color: white;
  padding: 0.9rem 1.8rem; /* Matched padding y, increased x */
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cta-form button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Features Section (using your improved styles and enhancing) */
.features {
  padding: 4rem 0;
  background-color: #ffffff;
}
.features h2 {
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-item {
  background: #f9fafb; /* Light background for cards */
  padding: 2.5rem 2rem; /* More padding */
  border-radius: 12px; /* Softer radius */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.feature-item img {
  width: 64px; /* Original size was 96, then 64 in your CSS. Sticking to 64px. */
  height: 64px;
  margin-bottom: 1.5rem;
}
.feature-item h3 {
  font-size: 1.3rem; /* Slightly larger */
  color: #111827;
  margin-bottom: 0.75rem;
}
.feature-item p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background-color: #eef2ff; /* Light blue accent background */
}
.how-it-works h2 {
  margin-bottom: 3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.step-item {
  text-align: center;
  padding: 1.5rem;
}
.step-number {
  width: 50px;
  height: 50px;
  background-color: #3b82f6;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}
.step-item h3 {
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
  background-color: #ffffff;
  padding: 4rem 0;
}
.testimonials h2 {
  margin-bottom: 1rem;
}
.testimonial-intro {
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.1rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-card {
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #3b82f6; /* Accent border */
}
.testimonial-card p {
  font-style: italic;
  color: #374151;
  margin-bottom: 1.5rem; /* More space before author */
  font-size: 1.05rem; /* Slightly larger quote text */
}
.testimonial-card p::before {
  content: '“';
  font-size: 2.5rem;
  color: #3b82f6;
  margin-right: 0.2em;
  line-height: 0;
}
.testimonial-card h4 {
  margin-top: 1rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
}

/* Final CTA Section */
.final-cta {
    background: #3b82f6;
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}
.final-cta h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.final-cta p {
    color: #e0e7ff; /* Lighter shade for paragraph */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.cta-button-large {
    background: #ffffff;
    color: #3b82f6;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.cta-button-large:hover {
    background-color: #f0f0f0; /* Lighter background on hover */
    color: #2563eb;
    transform: translateY(-3px);
    text-decoration: none;
}


/* Footer */
footer {
  background-color: #1f2937;
  color: #adb5bd;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}
footer p {
  margin-bottom: 0.5rem;
  color: #adb5bd;
}
footer a {
  color: #e0e7ff; /* Lighter link color for dark background */
}
footer a:hover {
  color: #ffffff;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.2rem; }

  .hero { padding: 3rem 0; }
  .hero h1 { max-width: 95%; }
  .hero p { font-size: 1rem; max-width: 90%; }

  .cta-form input[type="email"], .cta-form button {
    width: 90%;
    max-width: none; /* Allow full width on small screens */
  }
  .cta-form button {
    padding: 0.9rem 1.5rem;
  }

  .feature-grid, .steps-grid, .testimonial-grid {
    grid-template-columns: 1fr; /* Stack items on smaller screens */
    gap: 1.5rem;
  }
  
  .feature-item, .testimonial-card {
    padding: 1.5rem;
  }

  .logo { font-size: 1.8rem; }
  .tagline { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }

    .cta-form { gap: 0.5rem; }
    .cta-form input[type="email"] { font-size: 0.9rem; padding: 0.8rem 1rem; }
    .cta-form button { font-size: 0.9rem; padding: 0.8rem 1.2rem; }

    .final-cta h2 { font-size: 1.6rem; }
    .final-cta p { font-size: 1rem; }
    .cta-button-large { font-size: 1rem; padding: 0.8rem 2rem; }
}