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

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: transform .7s cubic-bezier(.21,1,.21,1), opacity .7s ease; }

/* Sticky header blur + scrolled state */
.topbar {
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.topbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
  border-bottom-color: transparent;
}

/* Hero blobs */
.hero-bg {
  position: relative;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}
.hero-bg::before {
  width: 480px; height: 480px;
  top: -20%; left: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(255,122,0,.28), rgba(255,122,0,0));
  animation: floaty 14s ease-in-out infinite;
}
.hero-bg::after {
  width: 480px; height: 480px;
  bottom: -30%; right: -10%;
  background: radial-gradient(circle at 70% 70%, rgba(122,0,25,.25), rgba(122,0,25,0));
  animation: floaty 18s ease-in-out infinite;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
  background-size: 800px 104px;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Form validation styles */
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-input.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
