/* Base styles and CSS reset */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f7e0c1;
  --background: #f8fafc;
  --text: #1e293b;
  --dark-bg: #0f172a;
  --dark-text: #e2e8f0;
  --video-aspect-ratio: calc(810 / 1458);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

/* Dark mode styles */
html.dark body {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
}

.dark .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.dark .nav-links a {
  color: var(--dark-text);
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.dark .theme-toggle {
  color: var(--dark-text);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  position: relative;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  z-index: 2;
}

.gradient-text {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary);
  max-width: 600px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .cta-secondary {
  border-color: var(--dark-text);
  color: var(--dark-text);
}

.cta-secondary:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 8rem 2rem;
  background: #f8fafc;
}

.dark .features {
  background: #1e293b;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.dark .feature-card {
  background: #0f172a;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dark .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.dark .feature-card h3 {
  color: var(--dark-text);
}

.feature-card p {
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Introduction Section */
.introduction {
  padding: 8rem 2rem;
  background: var(--background);
  text-align: center;
}

.dark .introduction {
  background: var(--dark-bg);
}

.introduction h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text);
}

.dark .introduction h2 {
  color: var(--dark-text);
}

.interactive-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dark .step-card {
  background: #1e293b;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dark .step-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon i {
  font-size: 1.5rem;
  color: white;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.dark .step-content h3 {
  color: var(--dark-text);
}

.step-content p {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.step-preview {
  height: 160px;
  background: #f8fafc;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.dark .step-preview {
  background: #0f172a;
}

/* Step Animations */
.template-preview-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

.form-animation {
  position: absolute;
  width: 80%;
  height: 12px;
  background: var(--primary);
  opacity: 0.2;
  border-radius: 6px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  animation: progress 3s infinite;
}

.ai-animation {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: bounce 2s infinite;
}

.export-animation {
  position: absolute;
  width: 40px;
  height: 50px;
  border: 3px solid var(--primary);
  border-radius: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes progress {
  0% { width: 0; left: 10%; }
  50% { width: 80%; left: 10%; }
  100% { width: 0; left: 90%; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Templates Section */
.templates {
  padding: 8rem 2rem;
  background: white;
}

.dark .templates {
  background: #0f172a;
}

.templates h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.template-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.template-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.dark .template-card {
  background: #1e293b;
}

.template-card:hover {
  transform: translateY(-5px);
}

.template-preview {
  height: 400px;
  background: #f8fafc;
  position: relative;
}

.coming-soon .template-preview {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.dark .coming-soon .template-preview {
  background: linear-gradient(135deg, #1e293b, #2d3748);
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 1.5rem;
  gap: 1rem;
}

.coming-soon-overlay i {
  font-size: 3rem;
  opacity: 0.8;
}

.template-card h3 {
  padding: 1rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--text);
}

.dark .template-card h3 {
  color: var(--dark-text);
}

.use-template {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.use-template:hover {
  background: var(--primary-dark);
}

.coming-soon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f1f5f9;
  color: var(--secondary);
  font-weight: 500;
}

.dark .coming-soon-badge {
  background: #2d3748;
}

/* CTA Section */
.cta-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: #1e293b;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--dark-text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }

  .gradient-text {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons a,
  .cta-buttons button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-video {
    width: 100%;
    aspect-ratio: 1458/810;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .template-slider {
    padding: 1rem;
  }

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

  .nav-links {
    gap: 1rem;
  }

  .nav-content {
    padding: 0 1rem;
  }

  .interactive-steps {
    grid-template-columns: 1fr;
  }
}