/* Landing page styles - loaded after critical CSS */
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }

/* Logo enhancements */
.hero-brand-link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hero-brand-link:hover {
  opacity: 0.95;
}

.hero-brand-link .logo-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-brand-link:hover .logo-wrapper {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.hero-brand-link .hero-logo {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 991px) {
  .hero-brand-link .hero-logo { width: 52px; height: 52px; }
  .hero-brand-link .logo-wrapper { padding: 8px; }
}

@media (max-width: 767px) {
  .hero-brand-link .hero-logo { width: 44px; height: 44px; }
  .hero-brand-link .logo-wrapper { padding: 7px; }
  .hero-brand-link { justify-content: center; margin-bottom: 1.5rem !important; }
  .hero-brand-link .h5 { font-size: 1.1rem; }
}

/* Text color enhancements for accessibility */
.text-muted { color: #4b5563 !important; }
.lead { color: #4b5563; }

/* Enhanced button styles */
.btn-light {
  background-color: #ffffff;
  color: #1a56db;
  border: 1px solid #ffffff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  background-color: #f0f6ff;
  border-color: #f0f6ff;
  color: #1e429f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  color: #ffffff;
  border: 2px solid #ffffff;
  background-color: transparent;
  box-shadow: none;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

/* Card animations with depth */
.landing-card {
  border-radius: 12px;
  border: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  background: #ffffff;
}

.landing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(149, 157, 165, 0.3);
}

.landing-card .card-title {
  color: #111827; /* higher contrast heading */
  font-weight: 600;
}

.landing-card .card-text {
  color: #374151; /* higher contrast body */
}

/* Section spacing and backgrounds */
.landing-value-props,
.landing-workflow,
.landing-social-proof,
.landing-cta {
  scroll-margin-top: 80px;
}

.landing-value-props {
  background-color: #f0f6ff;
}

.landing-workflow {
  background-color: #ffffff;
}

.landing-social-proof {
  background-color: #f0f6ff;
}

.landing-cta {
  background-color: transparent;
}

/* Workflow Steps - Hybrid Flexbox (Desktop) + Grid (Mobile) */

/* Desktop: Flexbox with flexible connectors */
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  flex-wrap: nowrap;
}

.workflow-step {
  flex: 0 0 19%;
  padding: 0 4px;
  min-width: 0;
  text-align: center;
}

.workflow-connector {
  flex: 1 1 auto;
  min-width: 12px;
  height: 3px;
  background: linear-gradient(90deg, #e0e7ff 0%, #c7d2fe 50%, #e0e7ff 100%);
  border-radius: 2px;
  margin: 0 2px;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 auto 10px;
  flex-shrink: 0;
}

.workflow-step h6 {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #1f2937;
  line-height: 1.2;
}

.workflow-step small {
  font-size: 0.7rem;
  color: #6b7280;
  display: block;
  line-height: 1.3;
}

/* Tablet: Reduce spacing */
@media (max-width: 1024px) {
  .workflow-step {
    flex: 0 0 18%;
    padding: 0 3px;
  }
  
  .workflow-connector {
    min-width: 10px;
    margin: 0 1px;
  }
  
  .step-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0 auto 8px;
  }
  
  .workflow-step h6 { font-size: 0.75rem; }
  .workflow-step small { font-size: 0.65rem; }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .workflow-step {
    flex: 0 0 100%;
    padding: 0;
    width: 100%;
  }
  
  .workflow-connector {
    display: none;
  }
  
  .step-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0 auto 8px;
  }
  
  .workflow-step h6 { 
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .workflow-step small { font-size: 0.7rem; }
}

/* Heading styles */
h2, h5, h6 {
  color: #1f2937;
}

.display-4, .display-5, .display-6 {
  color: inherit;
}

/* Text utilities */
.text-white-80 { color: rgba(255, 255, 255, 0.8); }
.text-white-90 { color: rgba(255, 255, 255, 0.9); }
.text-white-95 { color: rgba(255, 255, 255, 0.95); }

/* Fade-in animation for sections */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive image optimization */
img[loading="lazy"] {
  background: #f0f6ff;
}

/* Keep logo/hero images visually transparent (no placeholder bg) */
.hero-illustration[loading="lazy"],
.brand-mark[loading="lazy"] {
  background: transparent !important;
}

/* Link styles */
a { 
  transition: color 0.2s ease, text-decoration 0.2s ease;
  color: #1a56db;
}

a:hover {
  color: #1e429f;
  text-decoration: underline;
}

/* Smooth scroll behavior */
html { scroll-behavior: smooth; }

/* Stat card enhancements */
.stat-card {
  background: #ffffff;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
}

.stat-number {
  color: #1a56db;
  font-weight: 700;
}

.stat-label {
  color: #4b5563;
  font-weight: 500;
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Print styles */
@media print {
  .landing-cta { display: none; }
  .landing-hero, .landing-workflow { background: white; }
}

/* Dark mode styles removed to preserve consistent landing colors.
   If you want to reintroduce dark-mode, add scoped rules carefully.
*/
