@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
}

:root {
  --void: #050506;
  --ink: #e8eef6;
  --dim: #6b7380;
  --ice: #9ecbff;
  --line: rgba(158, 203, 255, 0.14);
}

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

html,
body {
  height: 100%;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(42% 55% at 50% 0%, rgba(158, 203, 255, 0.16), transparent 70%),
    radial-gradient(28% 40% at 18% 20%, rgba(120, 90, 255, 0.08), transparent 70%),
    radial-gradient(28% 40% at 82% 18%, rgba(80, 200, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grid {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 62%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 12rem 4rem var(--void);
  pointer-events: none;
  z-index: 1;
}

.center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 6rem;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 9vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 0.95;
  text-indent: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(158, 203, 255, 0.28);
}

.pulse {
  position: absolute;
  bottom: 2.1rem;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--ice);
  animation: beat 2.8s ease-in-out infinite;
  z-index: 2;
}

@keyframes beat {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    opacity: 0.7;
  }
}
