/* Base Variables */
:root {
  --primary: #8833FF;
  --primary-light: #a970ff;
  --primary-dark: #6620cc;
  --secondary: #FF9500;
  --secondary-light: #FFB347;
  --accent: #00E1D9;
  --dark: #0F0A19;
  --dark-medium: #1A1325;
  --dark-light: #2D2241;
  --text: #F8F7FC;
  --text-muted: #B0A8C0;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow-sm: 0 2px 10px rgba(136, 51, 255, 0.1);
  --shadow-md: 0 5px 20px rgba(136, 51, 255, 0.15);
  --shadow-lg: 0 10px 30px rgba(136, 51, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

ul {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-muted);
}

/* Background Elements */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.05;
  pointer-events: none;
  background: 
    repeating-linear-gradient(
      0deg,
      var(--primary-light) 0,
      var(--primary-light) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      90deg,
      var(--primary-light) 0,
      var(--primary-light) 1px,
      transparent 1px,
      transparent 30px
    );
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
}

.glow-2 {
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: var(--secondary);
  filter: blur(150px);
  opacity: 0.1;
}

.glow-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.05;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.btn-primary:hover:before {
  width: 100%;
}

.btn-large {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text);
  transform: translateY(-3px);
}

/* Header & Navigation */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: rgba(15, 10, 25, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(15, 10, 25, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.logo-icon {
  margin-right: 0.5rem;
  display: flex;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  margin-right: 2rem;
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 6rem 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(136, 51, 255, 0.1);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

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

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

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

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

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

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

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

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  z-index: -1;
  opacity: 0.8;
}

/* Features Section */
.features {
  background-color: var(--dark-medium);
}

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

.feature-card {
  background-color: var(--dark-light);
  border-radius: 15px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
}

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

.feature-desc {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* How It Works */
.how-works-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.step-card::after {
  content: '';
  position: absolute;
  top: 70px;
  left: 35px;
  width: 2px;
  height: calc(100% + 5rem);
  background: var(--primary-light);
  opacity: 0.2;
}

.step-card:last-child::after {
  display: none;
}

.step-number {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 2rem;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 1rem;
}

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

.step-desc {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Testimonial Section */
.testimonials {
  background-color: var(--dark-medium);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--dark-light);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: 'Georgia', serif;
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.1;
  line-height: 0;
}

.testimonial-content {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

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

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

.stars {
  display: flex;
  color: var(--secondary);
  margin-top: 0.5rem;
}

/* CTA Section */
.cta {
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(136, 51, 255, 0.05) 0%, rgba(255, 149, 0, 0.05) 100%);
  z-index: -1;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

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

.cta-desc {
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--dark-medium);
  padding: 5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about h3 {
  margin-bottom: 1.5rem;
}

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

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-image {
    width: 40%;
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-card::after {
    display: none;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .nav-list {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .nav-link {
    font-size: 1.5rem;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-eyebrow {
    font-size: 0.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Animation Keyframes */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pulse {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotate-glow {
  animation: rotateGlow 30s linear infinite;
}
