html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero canvas */
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Feature card hover */
.feature-card { transition: box-shadow 0.25s, transform 0.25s; }
.feature-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.1); transform: translateY(-2px); }

/* Pricing card highlight ring */
.pricing-highlight { box-shadow: 0 0 0 2px #2563eb, 0 16px 48px rgba(37,99,235,0.15); }

/* Supplier demo */
.supplier-card { transition: all 0.4s cubic-bezier(.4,0,.2,1); }
.supplier-card.winner { box-shadow: 0 0 0 2px #2563eb; }
.score-bar-fill { width: 0%; transition: width 0.8s cubic-bezier(.4,0,.2,1); }

/* Nav link underline */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: #2563eb; transition: width 0.25s; }
.nav-link:hover::after { width: 100%; }

/* Step connector line */
.step-line { flex: 1; height: 2px; background: linear-gradient(90deg, #bfdbfe, #eff6ff); margin: 0 12px; }

/* Modal */
#modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
#modal-overlay.open { opacity: 1; pointer-events: all; }
#modal-box {
  background: #fff; border-radius: 1.25rem; padding: 2rem;
  width: 100%; max-width: 440px; box-shadow: 0 24px 64px rgba(15,23,42,0.18);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
#modal-overlay.open #modal-box { transform: none; }
