* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 2rem;
}

/* Логотип с анимацией */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2em;
    margin-bottom: 2rem;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text {
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
}

.logo-dot {
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

.logo-domain {
    color: var(--secondary-color);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Заголовок */
.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    line-height: 1.3;
}

/* Подзаголовок */
.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Лоадер */
.loader {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Частицы фона */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1.5rem;
    }
    
    .title {
        margin-bottom: 0.75rem;
    }
    
    .subtitle {
        margin-bottom: 2rem;
    }
}

/* Улучшенная производительность */
.particle,
.loader-dot,
.logo-dot {
    will-change: transform, opacity;
}

/* Темная тема по умолчанию (уже темная) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-gradient-start: #f1f5f9;
        --bg-gradient-end: #e2e8f0;
        --text-primary: #0f172a;
        --text-secondary: #475569;
    }
}
