:root {
  --void: #05070c;
  --panel: #0b1220;
  --line: rgba(94, 234, 212, 0.16);
  --ice: #e8f4ff;
  --muted: #8aa0b8;
  --signal: #3ee0c5;
  --signal-soft: rgba(62, 224, 197, 0.18);
}

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

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100svh;
  background:
    radial-gradient(900px 480px at 50% 120%, var(--signal-soft), transparent 58%),
    radial-gradient(700px 360px at 12% 0%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--void);
  color: var(--ice);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  opacity: 0.7;
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(5, 7, 12, 0.18) 3px,
    rgba(5, 7, 12, 0.18) 4px
  );
  animation: scan 8s linear infinite;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 180px rgba(5, 7, 12, 0.72);
}

.frame {
  pointer-events: none;
  position: fixed;
  inset: 1.25rem;
  z-index: 2;
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--signal);
  border-style: solid;
  border-width: 0;
  opacity: 0.7;
}

.corner-tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}

.corner-tr {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.corner-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.stage {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  line-height: 0.9;
}

.title-lead {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

.title-accent {
  color: var(--ice);
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-shadow: 0 0 40px rgba(62, 224, 197, 0.18);
}

.message {
  max-width: 28rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.progress {
  overflow: hidden;
  width: min(220px, 56vw);
  height: 2px;
  margin-top: 2.4rem;
  background: rgba(138, 160, 184, 0.18);
}

.progress span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: load 2.2s ease-in-out infinite;
}

.credit {
  position: fixed;
  bottom: 1.6rem;
  z-index: 3;
  color: rgba(138, 160, 184, 0.62);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.app-version {
  pointer-events: none;
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 3;
  color: rgba(138, 160, 184, 0.5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  user-select: none;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes load {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes scan {
  0% {
    transform: translateY(-8%);
  }
  100% {
    transform: translateY(8%);
  }
}

@media (max-width: 640px) {
  .frame {
    inset: 0.85rem;
  }

  .title-lead {
    letter-spacing: 0.28em;
  }

  .app-version {
    right: 0.9rem;
  }
}
