body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f0f8ff;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

header {
  background: linear-gradient(to right, #a6dadf, #c5ebdd);
  color: #2e4e49;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 6px;
  width: 60vw;
  background: #5fa88e;
  border-radius: 3px;
}

footer {
  background: linear-gradient(to right, #a6dadf, #c5ebdd);
  color: #2e4e49;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
  margin-top: 4rem;
}

header h1 {
  margin: 0;
  font-size: 3rem;
}

header p {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

section {
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  color: #4c7c74;
  margin-bottom: 1.5rem;
}

.about, .faq, .reviews, .how-it-works {
  background-color: #eafaf4;
  margin-top: 4rem;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #3d7666;
}

.feature-box p {
  margin-bottom: 1rem;
}

.feature-box button {
  margin-top: auto;
  background-color: #5fa88e;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.cta-buttons {
  text-align: center;
  margin-top: 3rem;
}

.cta-buttons a, .cta-buttons button {
  display: inline-block;
  margin: 0.75rem;
  padding: 1rem 2.5rem;
  background-color: #5fa88e;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-buttons a:hover, .cta-buttons button:hover {
  background-color: #3d7666;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

.how-it-works {
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #5fa88e;
}

.step {
  position: relative;
  margin-left: 70px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step::before {
  content: attr(data-step);
  position: absolute;
  left: -50px;
  top: 0;
  background-color: #5fa88e;
  color: white;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* === Dark Mode === */
.dark-mode {
  background-color: #1c1c1c;
  color: #eee;
}

.dark-mode header, .dark-mode footer {
  background-color: #121212;
  color: #eee;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.dark-mode header h1,
.dark-mode header p,
.dark-mode footer {
  color: #eee;
}

.dark-mode .feature-box,
.dark-mode .about,
.dark-mode .faq,
.dark-mode .reviews,
.dark-mode .how-it-works,
.dark-mode .modal-content {
  background-color: #2d2d2d;
  color: #ccc;
}

.dark-mode .cta-buttons a,
.dark-mode .cta-buttons button,
.dark-mode .btn-primary {
  background-color: #3d7666;
  color: white;
}

.dark-toggle {
  background-color: #5fa88e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  z-index: 1000;
}

.input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.btn-primary {
  background-color: #5fa88e;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  border: none;
}

.top-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}
