/* Base Styles */
:root {
  --primary: #FF5678;
  --primary-light: rgba(255, 86, 120, 0.1);
  --primary-dark: #D43D60;
  --secondary: #6C63FF;
  --secondary-light: rgba(108, 99, 255, 0.1);
  --secondary-dark: #4A43C8;
  --dark-bg: #20123A;
  --dark-bg-lighter: #2D1A4A;
  --dark-bg-lightest: #3A2357;
  --text-light: #FFFFFF;
  --text-muted: #C7B8E0;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

section {
  padding: 5rem 0;
  position: relative;
}

.page-wrapper {
  position: relative;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.animated-bg .shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 60% 40% 70% 30% / 30% 70% 30% 70%;
  animation: morph 15s ease-in-out infinite alternate;
}

.shape-1 {
  top: -15%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  animation-duration: 22s;
}

.shape-2 {
  bottom: -15%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: var(--secondary);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.shape-3 {
  top: 40%;
  left: 60%;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  animation-duration: 25s;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 70% 30% / 30% 70% 30% 70%;
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    border-radius: 30% 70% 30% 70% / 60% 40% 70% 30%;
  }
  100% {
    border-radius: 70% 30% 50% 50% / 40% 60% 30% 60%;
    transform: translate(50px, 50px) rotate(15deg);
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background-color: rgba(32, 18, 58, 0.8);
  backdrop-filter: blur(10px);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(32, 18, 58, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  margin-right: 0.75rem;
}

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

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

.nav-link {
  font-weight: 500;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 25px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: -1;
  transition: var(--transition);
}

.btn-primary {
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(255, 86, 120, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 86, 120, 0.5);
  transform: translateY(-3px);
  color: var(--text-light);
}

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

.btn-outline::before {
  opacity: 0;
}

.btn-outline:hover {
  border-color: transparent;
}

.btn-outline:hover::before {
  opacity: 1;
}

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

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  overflow: hidden;
}

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

.hero-content {
  flex: 1;
}

.hero-title {
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

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

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Features Section */
.features {
  background-color: rgba(45, 26, 74, 0.3);
}

.section-heading {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

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

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

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

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

.feature-card:hover::before {
  transform: translateY(0);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works {
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 4rem 0;
}

.step {
  flex: 1;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.step-line {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  z-index: 0;
}

/* Testimonial Section */
.testimonial {
  background-color: rgba(45, 26, 74, 0.3);
  text-align: center;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--dark-bg-lighter);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  box-shadow: var(--card-shadow);
}

.testimonial-quote {
  font-size: 1.3rem;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-family: 'Georgia', serif;
  font-size: 5rem;
  line-height: 0;
  position: absolute;
  color: var(--primary);
  opacity: 0.2;
}

.testimonial-quote::before {
  top: 0.5rem;
  left: -2rem;
}

.testimonial-quote::after {
  bottom: -1rem;
  right: -2rem;
}

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

.author-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta {
  text-align: center;
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: -1;
}

.cta-heading {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

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

.footer-brand {
  max-width: 300px;
}

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

.footer-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: var(--text-muted);
}

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

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step {
    margin-bottom: 3rem;
  }
  
  .step-line {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-brand {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-quote {
    font-size: 1.1rem;
  }
  
  .testimonial-quote::before,
  .testimonial-quote::after {
    font-size: 3rem;
  }
  
  .cta-heading {
    font-size: 2.2rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
}
