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

@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/share-tech-mono.woff2") format("woff2");
}

:root {
  --background: #000000;
  --blue: #429fff;
  --green: #66e0b7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
}

body {
  color: #eafff8;
  font-family: "Sixtyfour", monospace;
  overflow: hidden;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(77, 200, 191, 0.075), transparent 35%),
    radial-gradient(circle at 50% 50%, #07100f 0, #010302 43%, #000000 73%);
}

.landing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.82) 100%);
  content: "";
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  width: min(92vw, 1440px);
  text-align: center;
}

.title {
  margin: 0;
  background: linear-gradient(
    105deg,
    var(--blue) 0%,
    #66d6e7 25%,
    var(--green) 50%,
    #66d6e7 75%,
    var(--blue) 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.1rem, 7.1vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
  filter:
    drop-shadow(0 0 0.25rem rgba(103, 210, 220, 0.38))
    drop-shadow(0 0 1.5rem rgba(93, 218, 195, 0.2));
  animation: title-gradient 14s ease-in-out infinite alternate;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  margin: clamp(2.1rem, 5vw, 4.5rem) 0 0;
  color: rgba(210, 255, 242, 0.77);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.8rem, 1.7vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 0.75rem rgba(107, 227, 200, 0.32);
}

.status-label {
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 0.78em;
  height: 1.08em;
  opacity: 1;
  background: #92efd0;
  box-shadow:
    0 0 0.35rem rgba(139, 240, 210, 0.62),
    0 0 1.1rem rgba(101, 223, 193, 0.36);
}

.typing-complete .cursor {
  animation: cursor-pulse 2.1s ease-in-out infinite;
}

.scanlines {
  position: fixed;
  z-index: 5;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(116, 221, 198, 0.035) 3px,
    rgba(116, 221, 198, 0.035) 4px
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.scan-pass {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
      to bottom,
      transparent,
      rgba(117, 234, 207, 0.025) 58%,
      rgba(117, 234, 207, 0.09) 98%,
      transparent
    )
    0 -16vh / 100% 16vh no-repeat;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 58%,
    #000 98%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 58%,
    #000 98%,
    transparent 100%
  );
  -webkit-mask-position: 0 -16vh;
  mask-position: 0 -16vh;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 16vh;
  mask-size: 100% 16vh;
  animation: scan 10s linear infinite;
  pointer-events: none;
}

.bloom-title {
  filter:
    drop-shadow(0 0 0.34rem rgba(166, 255, 233, 0.88))
    drop-shadow(0 0 0.9rem rgba(101, 237, 212, 0.58))
    drop-shadow(0 0 1.55rem rgba(70, 205, 188, 0.28));
}

.bloom-status {
  color: rgba(226, 255, 247, 0.98);
  text-shadow:
    0 0 0.3rem rgba(166, 255, 233, 0.9),
    0 0 0.9rem rgba(101, 237, 212, 0.62),
    0 0 1.5rem rgba(70, 205, 188, 0.3);
}

.bloom-status .cursor {
  box-shadow:
    0 0 0.4rem rgba(166, 255, 233, 0.92),
    0 0 1rem rgba(101, 237, 212, 0.68),
    0 0 1.6rem rgba(70, 205, 188, 0.32);
}

@keyframes cursor-pulse {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

@keyframes title-gradient {
  from {
    background-position: 100% 50%;
  }

  to {
    background-position: 0% 50%;
  }
}

@keyframes scan {
  from {
    background-position: 0 -16vh;
    -webkit-mask-position: 0 -16vh;
    mask-position: 0 -16vh;
  }

  to {
    background-position: 0 116vh;
    -webkit-mask-position: 0 116vh;
    mask-position: 0 116vh;
  }
}

@media (max-width: 640px) {
  .hero {
    width: 88vw;
  }

  .title {
    font-size: clamp(2.1rem, 12vw, 4rem);
    line-height: 1.2;
  }

  .status {
    margin-top: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .title {
    animation: none;
    background-position: 50% 50%;
  }

  .cursor {
    animation: none;
    opacity: 0.88;
  }

  .scan-pass {
    display: none;
  }
}
