html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header scroll state */
#site-header.scrolled {
  box-shadow: 0 4px 24px -8px rgba(122, 108, 214, 0.18);
}

/* Hero background */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #eef2ff 0%, transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, #bfe0ff 0%, transparent 70%);
  animation: float-slow 16s ease-in-out infinite;
}

.orb-2 {
  width: 380px;
  height: 380px;
  top: 60px;
  right: -120px;
  background: radial-gradient(circle, #dcd0f9 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite reverse;
}

.orb-3 {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: 40%;
  background: radial-gradient(circle, #c9e6ff 0%, transparent 70%);
  animation: float-slow 24s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 99, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 99, 217, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 20%, transparent 80%);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Module cards subtle top accent on hover */
.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #94cffd, #c4b6ef);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.module-card:hover::before {
  transform: scaleX(1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f7f6fd;
}

::-webkit-scrollbar-thumb {
  background: #c4b6ef;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a68ce5;
}
