:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: inter, ui-sans-serif, system-ui, -apple-system;
  background: #30CBF5;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(1200px 800px at 80% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 20% 80%, rgba(255, 255, 255, 0.12), transparent 55%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 8px);
  mix-blend-mode: screen;
  animation: electric-flicker 6s ease-in-out infinite;
}

body::after {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.25;
  animation: scanline 2.5s linear infinite;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: end;
  text-align: right;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: lowercase;
}

.cursor {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.15em;
  background: currentColor;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: cursor-blink 1.5s steps(1, end) infinite;
}

@keyframes electric-flicker {
  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-1%);
  }
  65% {
    opacity: 0.5;
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(10%);
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
