:root {
  --void: #0d0d0d;
  --phosphor: #84b095;
  --phosphor-dim: #689f7d;
  --phosphor-soft: rgba(132, 176, 149, 0.78);
  --scan: rgba(132, 176, 149, 0.035);
  --ink: #f2f2f2;
  --ink-dim: #9a9a9a;
}

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

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

body {
  min-height: 100dvh;
  overflow: hidden;
  font-family: Manrope, "Segoe UI", sans-serif;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(13, 13, 13, 0.2) 0%, rgba(13, 13, 13, 0.78) 70%, rgba(13, 13, 13, 0.94) 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      var(--scan) 2px,
      var(--scan) 3px
    );
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 52rem;
  animation: rise 1.1s ease-out both;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: Silkscreen, monospace;
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--ink);
  animation: brand-in 1.2s ease-out both;
}

.line {
  margin: 0 0 1rem;
  min-height: 1.4em;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.line::after {
  content: "▮";
  margin-left: 0.15em;
  color: var(--phosphor);
  animation: blink 1s steps(1) infinite;
}

.sub {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--ink-dim);
  animation: rise 1.2s 0.35s ease-out both;
}

.actions {
  animation: rise 1.2s 0.55s ease-out both;
}

.cta {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(242, 242, 242, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: Manrope, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: rgba(132, 176, 149, 0.18);
  border-color: var(--phosphor);
  color: var(--ink);
  outline: none;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.2em;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.04em;
    filter: blur(0);
  }
}

@media (max-width: 640px) {
  .stage {
    align-items: stretch;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .brand,
  .sub,
  .actions {
    animation: none;
  }

  .line::after {
    animation: none;
  }
}
