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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: #333;
  background-color: #f7f7f7;
}

/* Main Variables */
:root {
  --primary-color: #7045AF;
  --secondary-color: #FF4D94;
  --dark-color: #2A2A3C;
  --light-color: #f7f7f7;
  --text-color: #333;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --container-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 8px 30px rgba(42, 42, 60, 0.1);
  --transition: all 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

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

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

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo {
  width: 60px;
  height: auto;
  margin-right: 15px;
}

nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
}

nav li {
  margin-left: 25px;
}

nav a {
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(160deg, #ffffff 0%, #f2f2fa 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero h2 {
  font-size: 3rem;
  text-align: left;
  margin-bottom: 25px;
}

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

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--gradient);
  color: white !important;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(112, 69, 175, 0.4);
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(112, 69, 175, 0.5);
}

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

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

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: #f8f9ff;
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--gradient);
  top: 50%;
  right: -40px;
}

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

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background: white;
}

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

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: #f8f9ff;
}

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

.testimonial {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -15px;
  color: rgba(112, 69, 175, 0.1);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

.cta .cta-button {
  background: white;
  color: var(--primary-color) !important;
}

.cta .cta-button:hover {
  background: var(--light-color);
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 30px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo .logo {
  width: 80px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links-column ul {
  list-style-type: none;
  padding: 0;
}

.footer-links-column li {
  margin-bottom: 10px;
}

.footer-links-column a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links-column a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step:not(:last-child)::after {
    width: 3px;
    height: 30px;
    top: auto;
    right: auto;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav li {
    margin: 0 10px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero h2 {
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
    margin-bottom: 30px;
  }
  
  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .feature-card,
  .testimonial {
    padding: 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}
