/* FormBridge Site Custom Styles */

* {
  scroll-behavior: smooth;
}

:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* Stagger animations for cards */
.card-stagger > * {
  animation: slideInUp 0.6s ease-out;
}

.card-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.card-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.card-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.card-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.card-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.card-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Code blocks */
pre {
  background: #1f2937 !important;
  color: #f3f4f6 !important;
  border-radius: 0.5rem;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
}

/* Gradient backgrounds */
.gradient-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Cards hover effect */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Sticky navbar */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

/* Mobile menu */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Form inputs */
input[type="text"],
input[type="email"],
textarea {
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}

.badge-secondary {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #667eea;
  margin-top: 0.5rem;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 1.5rem;
  width: 1px;
  height: calc(100% - 1.5rem);
  background: #e5e7eb;
}

/* Pricing cards */
.pricing-card {
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

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

.pricing-card:hover {
  border-color: #667eea;
}

/* Feature icons */
.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: scale(1);
  }

  .card-stagger > *:nth-child(n) {
    animation-delay: 0s;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success state */
.success-message {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Error state */
.error-message {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 1rem;
}
