:root {
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;

  --bg: #04070a;
  --green: #39ff88;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  overflow: hidden;
  color: var(--green);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* CRT screen effect: scanlines + darkened vignette over the whole page,
   as if the site were being viewed through an old monitor. */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0.2) 2px,
      rgba(0, 0, 0, 0.2) 3px
    ),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
  animation: scan-shift 8s linear infinite;
}

@keyframes scan-shift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 4px, 0 0; }
}

/* Console text anchored to the top-left corner, as in a real
   borderless terminal window filling the screen. */
.console-log {
  position: absolute;
  z-index: 1;
  top: clamp(20px, 6vh, 56px);
  left: clamp(20px, 6vw, 56px);
  right: 20px;
  max-width: min(640px, 86vw);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(57, 255, 136, 0.55);
  transition: opacity 0.7s ease;
}

.console-log.fade-out {
  opacity: 0;
  pointer-events: none;
}

.console-line--bright {
  color: rgba(234, 255, 242, 0.9);
}

.hero-line {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.domain-wrap {
  position: relative;
}

/* Light source hidden behind a horizontal edge beneath the text,
   bleeding upward so the domain name looks lit from behind. */
.glow-edge {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: min(60vw, 560px);
  height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 60% 100% at 50% 100%,
    rgba(57, 255, 136, 0.55) 0%,
    rgba(57, 255, 136, 0.22) 35%,
    rgba(57, 255, 136, 0.06) 60%,
    transparent 80%
  );
  filter: blur(18px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

.glow-edge::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 255, 136, 0.7) 50%,
    transparent
  );
  filter: blur(0.5px);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.75;
    filter: blur(18px);
  }
  50% {
    opacity: 1;
    filter: blur(22px);
  }
}

.domain {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 4.4rem);
  letter-spacing: 0.03em;
  color: #eafff2;
  text-shadow:
    0 0 6px rgba(57, 255, 136, 0.85),
    0 0 18px rgba(57, 255, 136, 0.55),
    0 0 40px rgba(57, 255, 136, 0.35),
    0 0 80px rgba(57, 255, 136, 0.2);
  animation: flicker 4s ease-in-out infinite;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1s steps(1) infinite;
  margin-left: 0.08em;
}

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

@keyframes flicker {
  0%, 100% { text-shadow:
    0 0 6px rgba(57, 255, 136, 0.85),
    0 0 18px rgba(57, 255, 136, 0.55),
    0 0 40px rgba(57, 255, 136, 0.35),
    0 0 80px rgba(57, 255, 136, 0.2);
  }
  50% { text-shadow:
    0 0 8px rgba(57, 255, 136, 1),
    0 0 22px rgba(57, 255, 136, 0.7),
    0 0 50px rgba(57, 255, 136, 0.45),
    0 0 100px rgba(57, 255, 136, 0.28);
  }
}
