/* Base Variables & Settings */
:root {
  --primary: #6c5ce7;
  --secondary: #e84393;
  --dark: #2d3436;
  --light: #ffffff;
  --background: #f9f9f9;
  --text: #333333;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --card-shadow: 0 10px 30px rgba(108, 92, 231, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

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

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

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

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

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

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

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

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

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-size: 1rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 6rem 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background-color: transparent;
}

.header.scrolled {
  background-color: var(--light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand svg {
  width: 40px;
  height: 40px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  border: none;
  box-shadow: 0 4px 15px rgba(232, 67, 147, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 67, 147, 0.5);
  color: var(--light);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(232, 67, 147, 0.05) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 50px;
  left: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  width: 50%;
}

.hero-text {
  margin-bottom: 2rem;
}

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

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
}

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

.feature-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
}

.feature-icon {
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
  color: var(--primary);
}

.feature-title {
  margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
  background-color: var(--background);
  position: relative;
}

.steps {
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-weight: 700;
  font-size: 1.5rem;
}

.step-title {
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
  background: var(--gradient);
  padding: 4rem 0;
  color: var(--light);
  text-align: center;
  border-radius: 12px;
  margin: 4rem auto;
  max-width: 90%;
}

.cta h2 {
  color: var(--light);
  margin-bottom: 1.5rem;
}

.cta h2:after {
  background: var(--light);
  left: 50%;
  transform: translateX(-50%);
}

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

.btn-light {
  background: var(--light);
  color: var(--primary);
  border: none;
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

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

.footer-logo svg {
  width: 35px;
  height: 35px;
}

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

.footer-description {
  max-width: 400px;
  margin-bottom: 2rem;
}

.footer-heading {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--light);
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    width: 100%;
    text-align: center;
  }
  
  h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-image {
    display: none;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
  }
}
