:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  background-color: #020617;
}

.mesh {
  background-image:
    radial-gradient(ellipse 70% 50% at 12% -8%, rgba(147, 51, 234, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(249, 115, 22, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 90%, rgba(79, 70, 229, 0.14), transparent 50%);
}

.grid-fade {
  background-size: 56px 56px;
  background-image:
    linear-gradient(to right, rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
}

.glass {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card {
  background-color: rgb(15 23 42 / 0.78);
  border: 1px solid rgb(168 85 247 / 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgb(249 115 22 / 0.5);
  box-shadow: 0 0 36px rgb(249 115 22 / 0.12), 0 0 48px rgb(147 51 234 / 0.08);
  transform: translateY(-3px);
}

.node-pulse {
  animation: node-pulse 2.8s ease-in-out infinite;
}

.node-pulse-slow {
  animation: node-pulse 3.6s ease-in-out infinite 0.6s;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
