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

:root {
  --primary: #8E44AD;
  --primary-light: #A569BD;
  --primary-dark: #7D3C98;
  --accent: #ECF0F1;
  --text: #2C3E50;
  --background: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Header */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease;
}

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

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

.logo-svg {
  width: 40px;
  height: 40px;
}

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

.accent {
  color: var(--primary);
}

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

.nav-menu a {
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
#hero {
  padding: 12rem 0 6rem;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(155, 89, 182, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(142, 68, 173, 0.05);
  z-index: -1;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(142, 68, 173, 0.05);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 3rem;
}

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

.cta-button {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
}

.hero-image {
  margin-top: 2rem;
  text-align: center;
}

/* About Section */
#about {
  padding: 5rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
}

/* Features Section */
#features {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.03) 0%, rgba(155, 89, 182, 0.05) 100%);
}

#features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

#features h2:after {
  left: 50%;
  transform: translateX(-50%);
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin: 0 auto 1.5rem;
}

/* How It Works Section */
#how-it-works {
  padding: 5rem 0;
  background: var(--white);
}

#how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
}

#how-it-works h2:after {
  left: 50%;
  transform: translateX(-50%);
}

.steps {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.step {
  display: flex;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 2rem;
  flex-shrink: 0;
}

.step-content {
  position: relative;
}

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

/* FAQ Section */
#faq {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.03) 0%, rgba(155, 89, 182, 0.05) 100%);
}

#faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

#faq h2:after {
  left: 50%;
  transform: translateX(-50%);
}

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

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--text);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-logo-text p {
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.footer-tagline {
  opacity: 0.7;
  font-size: 0.9rem;
  font-weight: normal !important;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.link-column h4 {
  margin-bottom: 1.2rem;
  color: var(--primary-light);
}

.link-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-column a {
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.link-column a:hover {
  opacity: 1;
  color: var(--primary-light);
}

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

/* Mobile Responsiveness */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .nav-menu.active {
    max-height: 300px;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .step {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}
