:root {
  --void: #0b0716;
  --phosphor: #eadcff;
  --lavender: #b89bff;
  --violet: #7b3fe4;
  --magenta: #d35cff;
  --dim: #8f7fb8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #2a1552 0%, var(--void) 70%);
  color: var(--phosphor);
  font-family: "Fira Code", ui-monospace, Menlo, monospace;
}

body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }

#screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Scanlines and a faint flicker over everything, text included, so the words sit on the tube with the shader. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  animation: flicker 5s infinite steps(1);
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 0.86; }
  42% { opacity: 1; }
  77% { opacity: 0.93; }
}

.terminal {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
  text-shadow:
    -1px 0 rgba(255, 80, 210, 0.45),
    1px 0 rgba(90, 200, 255, 0.35),
    0 0 10px rgba(184, 155, 255, 0.55),
    0 0 28px rgba(123, 63, 228, 0.45);
}

.boot {
  margin: 0 0 28px;
  min-height: 4.8em;
  font: 400 14px/1.6 "Fira Code", ui-monospace, monospace;
  color: var(--dim);
  text-align: left;
  white-space: pre-wrap;
}

.boot .ok { color: var(--lavender); }

.cursor { color: var(--lavender); animation: blink 1.05s infinite steps(1); }
@keyframes blink { 50% { opacity: 0; } }

.sigil {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  filter: drop-shadow(0 0 18px rgba(184, 155, 255, 0.55)) drop-shadow(0 0 48px rgba(123, 63, 228, 0.5));
  animation: hover 6s ease-in-out infinite;
}

@keyframes hover { 50% { transform: translateY(-6px); } }

h1 {
  margin: 22px 0 10px;
  font: 600 clamp(44px, 9vw, 84px)/1 "Cinzel", Georgia, serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f6efff;
}

.tagline {
  margin: 0 0 36px;
  max-width: 40ch;
  text-wrap: balance;
  font-size: clamp(14px, 2.4vw, 17px);
  line-height: 1.6;
  color: var(--phosphor);
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 15px 28px;
  border: 1px solid var(--lavender);
  border-radius: 4px;
  background: rgba(40, 18, 82, 0.55);
  color: #fff;
  font: 500 17px/1 "Fira Code", ui-monospace, monospace;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(123, 63, 228, 0.35), 0 0 22px rgba(123, 63, 228, 0.55), inset 0 0 18px rgba(184, 155, 255, 0.18);
  transition: box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.download:hover, .download:focus-visible {
  background: rgba(70, 30, 140, 0.7);
  box-shadow: 0 0 0 1px var(--magenta), 0 0 34px rgba(211, 92, 255, 0.75), inset 0 0 22px rgba(211, 92, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.download .glyph { color: var(--magenta); }

.meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  body::after, .cursor, .sigil { animation: none; }
}
