/* Главная страница: абстрактный фон с летящими доменами */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    overflow: hidden;
    font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #fff;
    background: radial-gradient(120% 90% at 50% 40%, #3a2380 0%, #24134f 45%, #140a2e 100%);
}

/* Мягкие цветные пятна, медленно плавают */
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; will-change: transform; }
.glow-a { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: #7c4dff; animation: drift-a 26s ease-in-out infinite alternate; }
.glow-b { width: 38vmax; height: 38vmax; right: -10vmax; bottom: -14vmax; background: #b25fd6; animation: drift-b 32s ease-in-out infinite alternate; }
.glow-c { width: 26vmax; height: 26vmax; left: 42%; top: 55%; background: #5b6cff; opacity: .35; animation: drift-c 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16vmax, -10vmax) scale(.9); } }
@keyframes drift-c { to { transform: translate(-22vmax, -18vmax) scale(1.3); } }

#space { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.top { position: fixed; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
    padding: 22px clamp(18px, 4vw, 48px); }
.brand { font-size: 20px; font-weight: 600; letter-spacing: .02em; color: #fff; text-decoration: none; }
.login { padding: 10px 26px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500;
    text-decoration: none; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .2s, border-color .2s, transform .2s; }
.login:hover { background: rgba(255, 255, 255, .2); border-color: #fff; transform: translateY(-1px); }
.login:focus-visible, .brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.stage { position: fixed; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; pointer-events: none; }
.morph { margin: 0; font-size: clamp(20px, 6.2vw, 84px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap;
    text-shadow: 0 0 40px rgba(124, 77, 255, .8), 0 0 90px rgba(124, 77, 255, .5); }
.morph .tld { color: #c9b3ff; }
.morph .noise { color: rgba(255, 255, 255, .35); }

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