/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9f9ff;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Variables */
:root {
  --primary-color: #5D3FD3;
  --secondary-color: #9980FA;
  --accent-color: #F8F8FF;
  --text-color: #2C3E50;
  --light-bg: #F9F9FF;
  --dark-bg: #1E1E2E;
  --shadow: 0 4px 6px rgba(93, 63, 211, 0.1);
  --border-radius: 12px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.logo-icon {
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 15px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: var(--primary-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin: 0 auto 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: var(--primary-color);
}

.steps {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 50px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
}

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

.step-content {
  padding-top: 5px;
}

.step-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.cta-center {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: white;
}

.faq h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.faq-item {
  padding: 25px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    gap: 15px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
