:root {
  --bg: #07080d;
  --bg-elevated: #0d111a;
  --text: #eef2f7;
  --cyan: #22e3ff;
  --cyan-glow: rgba(34, 227, 255, 0.42);
  --cyan-ambient: rgba(34, 227, 255, 0.11);
  --indigo-ambient: rgba(79, 70, 229, 0.08);
  --grid-dot: rgba(255, 255, 255, 0.07);
}

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

html,
body {
  height: 100%;
}

body {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 48%, var(--bg-elevated) 0%, var(--bg) 70%);
  color: var(--text);
  font-family: "Pixelify Sans", ui-monospace, "Cascadia Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
}

::selection {
  background: rgba(34, 227, 255, 0.25);
  color: #ffffff;
}

/* Subtle pixel dot grid fading out toward the edges */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 68% 62% at 50% 50%, #000 18%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 50%, #000 18%, transparent 100%);
}

/* Soft atmospheric glow behind the domain */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 34% at 58% 50%, var(--cyan-ambient) 0%, transparent 70%),
    radial-gradient(ellipse 48% 38% at 38% 52%, var(--indigo-ambient) 0%, transparent 72%);
  animation: ambient-pulse 8s ease-in-out infinite alternate;
}

/* Delicate dark CRT scanline texture */
.bg-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
  opacity: 0.45;
}

.stage {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
}

.domain {
  font-size: clamp(1.75rem, 9.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  user-select: text;
}

.domain .name {
  color: var(--text);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 28px rgba(238, 242, 247, 0.12);
}

.domain .tld {
  color: var(--cyan);
  text-shadow:
    0 2px 0 rgba(0, 26, 36, 0.85),
    0 0 18px var(--cyan-glow),
    0 0 42px rgba(34, 227, 255, 0.2);
}

@keyframes ambient-pulse {
  from {
    opacity: 0.78;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow {
    animation: none;
  }
}
