:root {
  --bg: #050505;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, 0.12);
  --glow: rgba(255, 255, 255, 0.06);
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.45;
}

.bg-orb {
  position: fixed;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.lang {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  z-index: 10;
}

.lang button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang button:hover { color: var(--fg); }

.lang button.is-active {
  color: var(--bg);
  background: var(--fg);
}

main {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  text-align: center;
}

h1 {
  font-family: "IBM Plex Mono", monospace;
      font-size: clamp(1.75rem, 6vw, 2.5rem);
      font-weight: 500;
      line-height: 1.2;
      margin: 0 0 1.25rem;
      letter-spacing: 0.06em;
    }

.lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.lead strong {
  color: var(--fg);
  font-weight: 600;
}

.site-link {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  color: var(--fg);
  text-decoration: none;
  padding: 1.1rem 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  max-width: 100%;
}

.site-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-link-url {
  display: block;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  word-break: break-all;
}

.site-link-hint {
  display: block;
  margin-top: 0.45rem;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.redirect {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.redirect .sec {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.redirect-now {
  font-size: 0.85rem;
}

.redirect-now a {
  color: var(--fg);
  text-underline-offset: 0.2em;
}

footer {
  position: fixed;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  z-index: 1;
}

[data-lang] { display: none; }
html[lang="ru"] [data-lang="ru"],
html[lang="en"] [data-lang="en"] { display: revert; }
