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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
}

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

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 15px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #334155;
}

.btn-outline:hover {
  background: #334155;
  color: white;
  border-color: #475569;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e293b;
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: #667eea;
}

.nav-logo svg {
  color: #667eea;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #3b82f6;
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    #0a0a0a;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-title {
  font-size: 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.automation-demo {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(15, 23, 42, 0.8);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  backdrop-filter: blur(10px);
}

.demo-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.demo-step.active {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.demo-arrow {
  color: #667eea;
  animation: pulse 2s infinite;
}

/* Stats Section */
.stats {
  background: #0f172a;
  padding: 80px 0;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: #3b82f6;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  color: #94a3b8;
  font-weight: 500;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #3b82f6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #334155;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  color: #667eea;
  margin-bottom: 24px;
}

.service-card h3 {
  margin-bottom: 16px;
  color: #ffffff;
}

.service-card p {
  margin-bottom: 24px;
  color: #94a3b8;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  color: #cbd5e1;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* How It Works Section */
.how-it-works {
  padding: 120px 0;
  background: #0f172a;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 16px;
}

.step p {
  color: #94a3b8;
}

/* Case Studies Section */
.case-studies {
  padding: 120px 0;
}

.case-studies-grid {
  display: grid;
  gap: 40px;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
}

.case-study-before,
.case-study-after {
  text-align: center;
}

.case-study-before h4,
.case-study-after h4 {
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.case-study-arrow {
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.metric.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.metric.positive {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Demo Section */
.demo-section {
  padding: 120px 0;
  background: #0f172a;
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.demo-form {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
}

.demo-form h3 {
  margin-bottom: 32px;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.demo-form textarea {
  min-height: 120px;
  resize: vertical;
}

.demo-workflow {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
}

.demo-workflow h3 {
  margin-bottom: 32px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.workflow-step.active {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  opacity: 1;
}

.workflow-step.completed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  opacity: 1;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #334155;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.workflow-step.active .step-icon {
  background: #3b82f6;
}

.workflow-step.completed .step-icon {
  background: #10b981;
}

.step-status {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.3s ease;
}

.workflow-step.active .step-status {
  background: #667eea;
  animation: pulse 2s infinite;
}

.workflow-step.completed .step-status {
  background: #10b981;
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.testimonial {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
  position: relative;
}

.testimonial-content {
  margin-bottom: 32px;
}

.testimonial-content p {
  font-size: 1.125rem;
  color: #e2e8f0;
  font-style: italic;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
}

.author-title {
  color: #94a3b8;
  font-size: 0.875rem;
}

.testimonial-note {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  color: #64748b;
  background: #1e293b;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
  background: #0f172a;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: #334155;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  border-color: #667eea;
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  margin-bottom: 16px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 32px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-card li {
  color: #cbd5e1;
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.pricing-note {
  text-align: center;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
}

.pricing-note a {
  color: #667eea;
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%),
    #0a0a0a;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
}

/* Footer */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: #ffffff;
  margin-bottom: 20px;
}

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

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 32px;
  text-align: center;
  color: #64748b;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .automation-demo {
    flex-direction: column;
    gap: 20px;
  }

  .demo-arrow {
    transform: rotate(90deg);
  }

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

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

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

  .case-study {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .case-study-arrow {
    transform: rotate(90deg);
  }

  .demo-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .automation-demo {
    padding: 20px;
  }

  .service-card,
  .demo-form,
  .demo-workflow,
  .testimonial,
  .pricing-card {
    padding: 24px;
  }
}