:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --border: #1f1f23;
  --text: #e7e7ea;
  --muted: #6b6b74;
  --accent: #00e5a0;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* subtle grid background. The drift moves it exactly one 48px tile per loop,
   so the repeat is seamless. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  pointer-events: none;
  animation: grid-drift 36s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

/* faint glow, breathing slowly */
body::after {
  content: "";
  position: fixed;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.domain {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: title-glow 7s ease-in-out infinite;
}

/* A slow highlight on the name only — the .dev suffix opts out below. */
@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(0, 229, 160, 0); }
  50%      { text-shadow: 0 0 22px rgba(0, 229, 160, 0.4); }
}

.domain .tld {
  color: var(--muted);
  text-shadow: none;
}

.sub {
  margin-top: 0.9rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

.status-text {
  color: var(--accent);
}

footer {
  position: fixed;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  z-index: 1;
}

/* Everything above is decorative motion; none of it carries information, so
   it all stops for anyone who asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .domain,
  .dot::before {
    animation: none;
  }
}
