@font-face {
  font-family: 'Geist Mono';
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/geist-mono-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lexend';
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/lexend-bold.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --badge-bg: rgba(148, 163, 184, 0.08);
  --accent: #ff6b35;
  --glow-low: rgba(255, 107, 53, 0.3);
  --glow-high: rgba(255, 107, 53, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --badge-bg: rgba(148, 163, 184, 0.08);
    --accent: #ff8c42;
    --glow-low: rgba(255, 140, 66, 0.4);
    --glow-high: rgba(255, 140, 66, 0.9);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Geist Mono', monospace;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 50vw, 600px);
  height: clamp(320px, 50vw, 600px);
  pointer-events: none;
  z-index: -1;
  background-image: url('../favicon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;
  filter: blur(1px);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.container {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 640px;
}

.badge {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--glow-low);
  border-radius: 999rem;
  background: var(--badge-bg);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

h1 {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
}

.domain-group {
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.domain-part {
  display: inline-block;

  &.subdomain {
    font-family: 'Geist Mono', monospace;
    color: var(--muted);
  }

  &.sld {
    color: var(--text);
  }

  &.tld {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-0.02em);
  }
}

.dot {
  color: var(--text);
  opacity: 0.65;
  margin: 0 0.2em;
}

.badge {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--glow-low);
  border-radius: 999rem;
  background: rgba(148, 163, 184, 0.03);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}
