/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(to bottom, rgb(240, 253, 244), rgb(239, 246, 255));
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #22c55e;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: white;
  color: #374151;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-block;
  padding: 1.25rem 3rem;
  background-color: white;
  color: #059669;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.2);
}

.btn-cta:hover {
  background-color: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.3);
}

/* Status badge styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-normal {
  background-color: #dcfce7;
  color: #166534;
}

.status-observation {
  background-color: #fef9c3;
  color: #854d0e;
}

.status-alert {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Technology badge styles */
.tech-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
}

/* Workflow Container */
.workflow-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 4xl;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .workflow-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Workflow Step */
.workflow-step {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
  padding: 2rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  text-align: center;
}

.workflow-step.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delays */
.workflow-step[data-step="1"].visible {
  transition-delay: 0.1s;
}

.workflow-step[data-step="2"].visible {
  transition-delay: 0.3s;
}

.workflow-step[data-step="3"].visible {
  transition-delay: 0.5s;
}

/* Step Circle */
.step-circle {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Step Icon */
.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/* Step Title */
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

/* Step Description */
.step-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Connector lines between workflow steps (desktop only) */
@media (min-width: 768px) {
  .workflow-step[data-step="1"]::after,
  .workflow-step[data-step="2"]::after {
    content: '→';
    position: absolute;
    top: 3rem;
    right: -2rem;
    font-size: 2rem;
    color: #d1d5db;
    font-weight: 300;
  }
}

/* Fade-in animation for sections on scroll */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-cta {
    width: 100%;
    text-align: center;
  }

  .workflow-container {
    gap: 2rem;
  }

  .step-title {
    font-size: 1.125rem;
  }
}

/* Hover effects for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
}
