html {
    scroll-behavior: smooth;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}

section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    scroll-margin-top: 90px; /* height of header + some spacing */
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a202c;
}

/* =====================
   About Section
===================== */
#about {
    padding: 4rem 3%;
    background-color: #f9fafb;
}

#about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

#about p {
    max-width: 700px;
    margin: 0.5rem auto 1rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    text-align: center;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.about-highlights p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
    position: relative;
}

.about-highlights p::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3b82f6;
    margin: 0.25rem auto 0 auto;
    border-radius: 2px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: center;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.2rem;
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    color: #4b5563;
}

/* =====================
   How It Works Section
===================== */
#how-it-works {
  background: linear-gradient(135deg, #111827, #1e293b);
  color: #e2e8f0;
  padding: 6rem 8%;
  border-radius: 1.5rem;
  margin: 4rem auto;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  transition: background 0.5s ease;
}

#how-it-works h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 3rem;
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.how-it-works-motivation {
    text-align: center;
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.steps-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.steps-carousel {
  position: relative;
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}

.steps-inner {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.step {
  flex: 0 0 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.step h3 {
  color: #3b82f6;
  margin-bottom: 1rem;
  text-align: center;
  margin: 0 auto; /* optional, ensures the text block is centered */
}

.step p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto; /* optional, ensures the text block is centered */
}

button.prev,
button.next {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 2.3rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

button.prev:hover,
button.next:hover {
  color: #3b82f6;
  transform: translateY(-50%) scale(1.1);
}

button.prev {
  left: 1rem;
}

button.next {
  right: 1rem;
}

.steps-image {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  position: relative;
  margin: 0 auto;
}

.steps-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.steps-image img.active {
  opacity: 1;
}

/* Trusted Logos, Performance, Plans, Success Stories, FAQ */
#trusted { text-align: center; padding: 3rem 1rem; background-color: #f3f4f6; border-radius: 1rem; }
#trusted h2 { font-size: 2rem; margin-bottom: 2rem; color: #1f2937; }
.trusted-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.trusted-logos img { max-height: 50px; opacity: 0.75; transition: opacity 0.3s, transform 0.3s; }
.trusted-logos img:hover { opacity: 1; transform: scale(1.1); }

#performance { padding: 3rem 1rem; }
#performance h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: #1f2937; }
.performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; justify-items: center; }
.perf-card { background-color: #fff; border-radius: 1rem; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.perf-card:hover { transform: translateY(-6px); box-shadow: 0 8px 26px rgba(0,0,0,0.1); }
.perf-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #3b82f6; }
.perf-card p { font-size: 1rem; color: #475569; }

#plans { padding: 3rem 1rem; background-color: #f9fafb; border-radius: 1rem; max-width: 1100px; margin: 3rem auto; }
#plans h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; color: #1f2937; }
.plans-table { display: flex; justify-content: center; width: 100%; }
.plans-table table { width: 100%; max-width: 800px; border-collapse: collapse; background: white; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.plans-table th, .plans-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid #e5e7eb; font-weight: 500; color: #1f2937; text-align: center; }
.plans-table th { background-color: #e0e7ff; color: #1e40af; font-size: 1.1rem; font-weight: 700; }
.plans-table tr:hover td { background-color: #f3f4f6; }
.plans-table tr:last-child td { border-bottom: none; }

#success-stories { padding: 3rem 1rem; }
#success-stories h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: #1f2937; }
.success-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.success-card { background-color: #fff; padding: 1.8rem 1.5rem; border-radius: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.success-card:hover { transform: translateY(-6px); box-shadow: 0 8px 26px rgba(0,0,0,0.1); }
.success-card p { font-size: 1rem; font-style: italic; margin-bottom: 1rem; color: #374151; }
.success-card cite { font-weight: 700; color: #1f2937; }

#faq { max-width: 900px; margin: 4rem auto; padding: 0 1rem; }
#faq h2 { text-align: center; font-size: 2.3rem; margin-bottom: 2rem; color: #1f2937; }
.faq-item { background: #fff; border-radius: 0.75rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.3s ease; }
.faq-question { width: 100%; padding: 1rem 1.5rem; text-align: left; font-size: 1.1rem; font-weight: 600; border: none; outline: none; cursor: pointer; background: #f3f4f6; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; transition: background 0.3s; }
.faq-question:hover { background: #e0e7ff; }
.faq-question i { color: #3b82f6; margin-right: 0.5rem; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 1.5rem; background: #f9fafb; }
.faq-item.active .faq-answer { max-height: 500px; padding: 1rem 1.5rem; }
.faq-answer p { color: #4b5563; line-height: 1.6; margin: 0; }

/* Responsive adjustments included above */
@media (max-width: 900px) {
    .steps-layout { flex-direction: column; gap: 2.5rem; padding: 0 2rem; }
    .steps-carousel { flex: 1 1 100%; max-width: 90%; }
    .steps-wrapper { width: 100%; }
    .steps-image { flex: 1 1 100%; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; }
    button.prev { left: 0.5rem; }
    button.next { right: 0.5rem; }
}

@media (max-width: 600px) {
    .about-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .stat { width: 80%; padding: 1rem 1.5rem; }
    #about h2, #about p, .about-highlights p { font-size: smaller; }
    .faq-question { font-size: 1rem; }
    .faq-answer { font-size: 0.95rem; }
}

/* Plans Section Intro */
.plans-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Colored checkmarks and crosses for Free vs Premium table */
.plans-table .check {
    color: #16a34a; /* green */
    font-weight: 700;
    font-size: 1.2rem;
}

.plans-table .cross {
    color: #dc2626; /* red */
    font-weight: 700;
    font-size: 1.2rem;
}

/* Optional: slightly highlight Premium column */
.plans-table td:nth-child(3) {
    background-color: #f0f9ff;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Optional: subtle hover effect on rows */
.plans-table tbody tr:hover td {
    background-color: #e0f2fe;
    transition: background 0.3s;
}

