*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(125, 211, 252, 0.12), transparent 20%),
    linear-gradient(180deg, var(--kp-bg) 0%, #030b1d 100%);
  color: var(--kp-text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  color: var(--kp-accent-soft);
}

main {
  position: relative;
  z-index: 2;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.noise,
.orb {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.noise {
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.orb-a,
.orb-b {
  filter: blur(90px);
}

.orb-a {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
  transform: translate(-10%, -15%);
}

.orb-b {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 60%);
  transform: translate(55%, 15%);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--container));
  }
}