/* Base Styles */
:root {
  --primary: #8E44AD;
  --secondary: #3498DB;
  --accent: #1ABC9C;
  --dark: #34495E;
  --light: #FFFFFF;
  --gray: #F5F7FA;
  --text: #505A68;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--dark);
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-primary:hover {
  background: #9B59B6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(142, 68, 173, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary:hover {
  background: #2980B9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  color: var(--primary);
}

.nav-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggler span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.nav-toggler span:nth-child(1) {
  top: 0px;
}

.nav-toggler span:nth-child(2) {
  top: 9px;
}

.nav-toggler span:nth-child(3) {
  top: 18px;
}

.nav-toggler.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.nav-toggler.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.nav-toggler.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: var(--gray);
  background-image: radial-gradient(#e6e6e6 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--dark);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-visual {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

.pattern {
  position: absolute;
  opacity: 0.1;
  z-index: 0;
}

.pattern-1 {
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
}

.pattern-2 {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
}

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

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

.feature-card {
  background-color: var(--light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-bottom: 4px solid var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* How it Works Section */
.how-it-works {
  background-color: var(--gray);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
  background: var(--primary);
  color: var(--light);
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Testimonial Section */
.testimonials {
  background-color: var(--light);
}

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

.testimonial-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
  font-family: serif;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.testimonial-name {
  font-weight: bold;
  color: var(--dark);
}

.testimonial-stars {
  color: #FFD700;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
  background-color: var(--gray);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
}

.accordion-icon {
  font-size: 1.5rem;
  transition: var(--transition);
  color: var(--primary);
}

.accordion-icon.active {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
  text-align: center;
  padding: 5rem 0;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.2rem;
  margin: 0 auto 2rem;
  max-width: 600px;
  opacity: 0.9;
}

.cta .btn {
  background: var(--light);
  color: var(--primary);
  font-weight: 700;
}

.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: auto;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.footer-description {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--light);
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 5px;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .hero-visual {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggler {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--light);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }

  .btn-large {
    padding: 1rem 2rem;
  }
}
