/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #fff;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
}

.logo span {
  color: #6c5ce7;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #6c5ce7;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #6c5ce7;
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #6c5ce7;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background: #5b4bd6;
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: #6c5ce7;
}

.btn-outline:hover {
  background: #6c5ce7;
  color: #fff;
}

.nav-btn {
  padding: 10px 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef1ff 100%);
  text-align: center;
  padding: 100px 20px 120px;
}

.badge {
  display: inline-block;
  background: #ecebff;
  color: #6c5ce7;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 25px;
}

.hero h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #1a1a2e;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 550px;
  margin: 0 auto 35px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section common */
section {
  padding: 90px 60px;
  scroll-margin-top: 80px;
}

section h2 {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 55px;
  color: #1a1a2e;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #fafaff;
  border: 1px solid #eee;
  padding: 35px 25px;
  border-radius: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(108,92,231,0.15);
  border-color: #6c5ce7;
}

.feature-card .icon {
  font-size: 34px;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.feature-card p {
  color: #666;
  font-size: 15px;
}

/* How It Works */
.how-it-works {
  background: #fafaff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  text-align: center;
}

.step-number {
  width: 55px;
  height: 55px;
  background: #6c5ce7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  color: #666;
  font-size: 15px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.price-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.price-card.featured {
  border-color: #6c5ce7;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(108,92,231,0.15);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #6c5ce7;
  color: #fff;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.price-card .price {
  font-size: 38px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.price-card .price span {
  font-size: 15px;
  font-weight: 500;
  color: #888;
}

.price-card > p {
  color: #666;
  font-size: 14px;
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  color: #444;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.plan-features li::before {
  content: "✓ ";
  color: #6c5ce7;
  font-weight: 800;
}

/* FAQ Accordion */
.faq {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
}

.faq-question span {
  transition: transform 0.3s;
  color: #6c5ce7;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #666;
  margin-top: 10px;
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: #ccc;
  text-align: center;
  padding: 40px 20px;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 15px 25px;
  }

  section {
    padding: 60px 25px;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  nav#nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  nav#nav.active {
    display: flex;
  }

  nav#nav ul {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 15px;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
/* Stats Section */
.stats {
  background: #6c5ce7;
  color: #fff;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
  padding: 60px 20px;
}

.stats p {
  color: #fff;
  font-size: 15px;
  margin-top: 5px;
  opacity: 0.9;
}

.counter {
  font-size: 40px;
  font-weight: 800;
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
  font-weight: 600;
}

.save-tag {
  background: #e8fdf0;
  color: #16a34a;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 5px;
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 30px;
  transition: 0.3s;
}

.slider-toggle::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider-toggle {
  background: #6c5ce7;
}

input:checked + .slider-toggle::before {
  transform: translateX(24px);
}

/* Testimonials Slider */
.testimonials {
  background: #fafaff;
  text-align: center;
}

.t-slider {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100px;
}

.t-slide {
  display: none;
  font-size: 18px;
  font-style: italic;
  color: #333;
}

.t-slide.active {
  display: block;
}

.t-slide h4 {
  margin-top: 15px;
  font-style: normal;
  color: #6c5ce7;
  font-size: 15px;
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.t-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

.t-dots .dot.active {
  background: #6c5ce7;
}

/* Scroll Spy */
nav ul li a.active-link {
  color: #6c5ce7;
  border-bottom: 2px solid #6c5ce7;
}

/* Newsletter */
.newsletter {
  margin-top: 20px;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.newsletter input {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  width: 220px;
}

.newsletter button {
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

#formMsg {
  margin-top: 10px;
  font-size: 14px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}