@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg-space: #02030a;
  --logo-size: clamp(140px, 24vw, 260px);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #0e1230 0%, var(--bg-space) 55%, #000 100%);
  font-family: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  width: clamp(180px, 32vw, 380px);
  height: clamp(180px, 32vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 173, 255, 0.5) 0%, rgba(54, 121, 255, 0.28) 36%, rgba(6, 21, 65, 0) 72%);
  filter: blur(20px);
  transform: translateZ(0);
  animation: logo-glow 4s ease-in-out infinite;
}

.logo {
  width: var(--logo-size);
  height: var(--logo-size);
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 36px rgba(118, 177, 255, 0.3));
  animation: logo-pulse 3.2s ease-in-out infinite;
}

.terminal-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 6vh, 56px);
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
}

.terminal-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
}

.terminal-line {
  margin: 0;
  max-width: min(90vw, 820px);
  color: #d4e6ff;
  text-shadow: 0 0 8px rgba(140, 190, 255, 0.45);
  font-size: clamp(14px, 2vw, 24px);
  letter-spacing: 0.03em;
  white-space: nowrap;
  line-height: 1.25;
  text-align: center;
}

.terminal-line-shifted {
  animation: terminal-lift 0.55s ease forwards;
}

.caret {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.05em;
  animation: caret-blink 0.95s steps(1, end) infinite;
}

.terminal-link {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .terminal-wrap {
    bottom: clamp(14px, 4vh, 28px);
    padding: 0 14px;
  }

  .terminal-block {
    width: 100%;
    align-items: center;
  }

  .terminal-line {
    max-width: 100%;
    font-size: clamp(12px, 3.9vw, 16px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .terminal-link {
    word-break: break-word;
  }
}

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

@keyframes terminal-lift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-0.25em);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
