/* Custom CSS Variables */
:root {
  --purple-primary: #C4F21D;
  --purple-secondary: #bdd664;
  --purple-dark: #3d4d04;
  --pink-accent: #C4F21D;
  --dark-bg: rgba(0, 0, 0, 0.96);
  --light-gray: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--dark-bg);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 30px 30px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: -1;
}

/* Custom Navbar */
.custom-navbar {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.text-purple {
  color: var(--purple-primary) !important;
}

.nav-link-custom {
  color: var(--light-gray) !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link-custom:hover {
  color: white !important;
}

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

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

/* Custom Buttons */
.btn-purple {
  background: var(--purple-primary);
  border: 1px solid var(--purple-primary);
  color: white;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-purple {
  border: 1px solid var(--purple-primary);
  color: white;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple-primary);
  color: white;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 76px;
}

.hero-content {
  z-index: 10;
  position: relative;
}

.hero-title {
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-light-gray {
  color: var(--light-gray);
}

/* Features Section */
.features-section {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--purple-primary);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

/* How It Works Section */
.how-it-works-section {
  background: rgba(0, 0, 0, 0.2);
}

.step-card {
  position: relative;
  padding: 2rem;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.5rem;
  transition: all 0.3s ease;
}

.step-icon:hover {
  border-color: var(--purple-primary);
  transform: scale(1.1);
}

.step-icon i {
  font-size: 2.5rem;
  color: var(--purple-primary);
}

/* Examples Section */
.examples-section {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.example-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.example-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-primary);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
}

.example-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-content {
  flex: 1;
}

/* Pricing Section */
.pricing-section {
  background: rgba(0, 0, 0, 0.2);
}

.pricing-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--purple-primary);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

.pricing-card.featured {
  border-color: var(--purple-primary);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-primary), var(--pink-accent));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 2rem;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 1rem 0;
}

.currency {
  font-size: 1.5rem;
  color: var(--purple-primary);
  font-weight: 600;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 0.25rem;
}

.period {
  font-size: 1rem;
  color: var(--light-gray);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  backdrop-filter: blur(10px);
}

/* Footer */
.footer-section {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
}

.footer-link {
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: var(--purple-primary) !important;
}

.social-links a {
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--purple-primary) !important;
}

/* Floating Papers */
.floating-paper {
  position: absolute;
  width: 64px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 1;
}

.floating-paper:hover {
  transform: scale(1.1);
}

.floating-paper i {
  color: rgba(139, 92, 246, 0.5);
  font-size: 2rem;
}

/* Robot Animation */
.robot-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 384px;
  height: 384px;
  z-index: 5;
}

.robot-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: robotFloat 4s ease-in-out infinite;
}

.robot-glow {
  position: absolute;
  inset: -16px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  filter: blur(40px);
  animation: robotGlow 4s ease-in-out infinite;
}

.robot-icon {
  font-size: 8rem;
  color: var(--purple-primary);
  z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes robotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes robotGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes floatPaper {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 56px;
  }

  .display-1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .robot-container {
    display: none !important;
  }

  .floating-paper {
    width: 48px;
    height: 60px;
  }

  .floating-paper i {
    font-size: 1.5rem;
  }

  .feature-card,
  .example-card {
    margin-bottom: 1rem;
  }

  .example-card {
    flex-direction: column;
    text-align: center;
  }

  .step-icon {
    width: 80px;
    height: 80px;
  }

  .step-icon i {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 576px) {
  .display-1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .feature-card,
  .step-card,
  .example-card,
  .pricing-card {
    padding: 1.5rem;
  }

  .amount {
    font-size: 2.5rem;
  }
}

/* Canvas Styles */
#sparkles-canvas {
  z-index: 0;
  pointer-events: none;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  position: relative;
  z-index: 2;
}
