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

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

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

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --void: #04060c;
  --ink: #eef4ff;
  --muted: #8b97ad;
  --cyan: #5eead4;
  --violet: #818cf8;
  --amber: #fbbf24;
  --line: rgba(94, 234, 212, 0.16);
  --hud: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Syne", "Segoe UI", system-ui, sans-serif;
}

*,
*::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: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

canvas#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.noise,
.floor,
.aurora,
.vignette,
.scan,
.cursor-glow,
.frame {
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.floor {
  position: fixed;
  left: -12%;
  right: -12%;
  bottom: -22%;
  height: 58%;
  z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: perspective(720px) rotateX(64deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 86%);
}

.aurora {
  position: fixed;
  inset: -20% -10% auto;
  height: 70%;
  z-index: 1;
  background:
    radial-gradient(42% 52% at 50% 8%, rgba(94, 234, 212, 0.14), transparent 70%),
    radial-gradient(28% 40% at 16% 22%, rgba(129, 140, 248, 0.12), transparent 70%),
    radial-gradient(30% 42% at 84% 18%, rgba(45, 212, 191, 0.08), transparent 70%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 8rem 2rem var(--void);
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.is-pointer .cursor-glow {
  opacity: 1;
}

.frame {
  position: fixed;
  inset: 14px;
  z-index: 6;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(94, 234, 212, 0.45);
}

.corner.tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.corner.tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.corner.bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.corner.br {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.hud {
  position: fixed;
  z-index: 7;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--hud);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud.top {
  top: 28px;
}

.hud.bottom {
  bottom: 26px;
}

.hud-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hud-cluster.metrics {
  gap: 1.35rem;
  flex-shrink: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}

.hud-label {
  color: var(--ink);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 4.2rem;
}

.metric .k {
  color: rgba(139, 151, 173, 0.72);
  font-size: 0.58rem;
}

.metric .v {
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  z-index: 5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7.5rem 1.4rem 8.5rem;
}

.hero > * {
  min-width: 0;
}

.orb {
  position: absolute;
  width: min(34rem, 78vw);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.55;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.12);
  mask-image: conic-gradient(from 0deg, transparent 0 62%, #000 78%, transparent 92%);
  animation: spin 18s linear infinite;
}

.orb-ring.delay {
  inset: 8%;
  border-color: rgba(129, 140, 248, 0.16);
  animation-duration: 26s;
  animation-direction: reverse;
}

.eyebrow {
  margin: 0 0 1.15rem;
  max-width: min(36rem, 100%);
  padding: 0 0.4rem;
  font-family: var(--hud);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: beat 2.4s ease-in-out infinite;
}

.pip.warn {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.wordmark {
  margin: 0;
  max-width: 100%;
  font-weight: 800;
  font-size: min(4.6rem, calc((100vw - 3.5rem) / 11));
  letter-spacing: 0.05em;
  line-height: 0.92;
  text-indent: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f5fbff;
  text-shadow:
    0 0 28px rgba(94, 234, 212, 0.28),
    0 0 64px rgba(129, 140, 248, 0.16);
}

.lost-title {
  font-size: min(4.6rem, 22vw);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.tagline {
  margin: 1.25rem 0 0;
  align-self: stretch;
  width: 100%;
  max-width: 36rem;
  padding: 0 0.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #d7e4f7;
}

.lede {
  margin: 0.75rem 0 0;
  align-self: stretch;
  width: 100%;
  max-width: 34rem;
  padding: 0 0.8rem;
  font-family: var(--hud);
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  margin-top: 1.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(4, 6, 12, 0.45);
  backdrop-filter: blur(8px);
  font-family: var(--hud);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status.link {
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.status.link:hover,
.status.link:focus-visible {
  border-color: rgba(94, 234, 212, 0.7);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.12);
  outline: none;
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: beat 1.8s ease-in-out infinite;
}

.boot {
  position: fixed;
  z-index: 7;
  left: 28px;
  bottom: 58px;
  width: min(24rem, calc(100vw - 3.2rem));
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid rgba(94, 234, 212, 0.14);
  background: rgba(4, 6, 12, 0.42);
  backdrop-filter: blur(10px);
  font-family: var(--hud);
  color: var(--muted);
}

.boot-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.7);
}

.boot pre {
  margin: 0;
  min-height: 6.4em;
  font-family: inherit;
  font-size: 0.68rem;
  line-height: 1.65;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
  color: #b7c4d8;
}

.boot pre::after {
  content: "▍";
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.noscript {
  position: fixed;
  inset: auto 0 5.5rem;
  z-index: 8;
  text-align: center;
  font-family: var(--hud);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

body[data-mode="lost"] .aurora {
  background:
    radial-gradient(42% 52% at 50% 8%, rgba(251, 191, 36, 0.08), transparent 70%),
    radial-gradient(28% 40% at 16% 22%, rgba(129, 140, 248, 0.1), transparent 70%);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .hide-sm {
    display: none;
  }

  .hud {
    left: 18px;
    right: 18px;
  }

  .hud.top {
    top: 20px;
  }

  .hud.bottom {
    bottom: 18px;
  }

  .frame {
    inset: 10px;
  }

  .boot {
    left: 18px;
    right: 18px;
    width: auto;
    bottom: 48px;
  }

  .hud-cluster.metrics {
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6.4rem 1.1rem 11.5rem;
    width: 100%;
  }

  .wide-only {
    display: none;
  }

  .hud {
    letter-spacing: 0.1em;
    font-size: 0.62rem;
  }

  body:not([data-mode="lost"]) .hud-cluster.metrics {
    display: none;
  }

  .wordmark {
    font-size: calc((100vw - 2.8rem) / 13.2);
    letter-spacing: 0.03em;
    text-indent: 0;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.6rem;
  }

  .tagline,
  .lede {
    align-self: stretch;
    width: auto;
    max-width: none;
  }

  .lede {
    letter-spacing: 0.03em;
  }

  .boot {
    padding: 0.6rem 0.7rem;
  }

  .boot pre {
    min-height: 5.2em;
    font-size: 0.62rem;
  }

  .metric {
    min-width: 0;
  }
}

@media (max-height: 700px) {
  .boot {
    display: none;
  }

  .hero {
    padding-bottom: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-ring,
  .pip,
  .led,
  .boot pre::after {
    animation: none;
  }

  .cursor-glow {
    display: none;
  }
}
