/* Meta Network стиль - изящные фиолетовые и белые тона */
:root {
    --meta-gradient: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 75%, #F3E8FF 100%);
    --dark-bg: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 25%, #16213E 50%, #0F0F23 75%, #000000 100%);
    --accent-purple: #8B5CF6;
    --accent-light-purple: #A855F7;
    --accent-pink: #EC4899;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --meta-glow: 0 0 25px rgba(139, 92, 246, 0.5);
    --meta-glow-light: 0 0 20px rgba(168, 85, 247, 0.4);
    --meta-glow-pink: 0 0 20px rgba(236, 72, 153, 0.4);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #0F0F23 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Meta Network изящный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: metaBackgroundShift 20s ease-in-out infinite;
}

@keyframes metaBackgroundShift {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(10px) translateY(-10px);
        opacity: 1;
    }
}

/* Загрузочный экран */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: metaSpin 1s linear infinite;
    position: relative;
    box-shadow: var(--meta-glow);
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-light-purple);
    border-radius: 50%;
    animation: metaSpin 1.5s linear infinite reverse;
    box-shadow: var(--meta-glow-light);
}

@keyframes metaSpin {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes metaTextGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(153, 0, 255, 0.7));
    }
    100% { 
        filter: drop-shadow(0 0 15px rgba(255, 0, 153, 0.6));
    }
}

/* Основной контент */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Хедер */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 24px 32px;
    position: relative;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(var(--meta-glow)) brightness(1.2);
}

.logo:active {
    transform: scale(0.95);
}



.logo-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

/* Основной контент */
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    text-align: center;
}

.welcome-section {
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--meta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: var(--meta-glow);
    animation: metaTextGlow 3s ease-in-out infinite alternate;
}

.welcome-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Discord кнопка */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-light-purple));
    box-shadow: var(--meta-glow);
    transform: translateY(-3px);
}

.discord-btn:active {
    transform: translateY(-1px);
}

.discord-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.discord-btn:hover .discord-icon {
    transform: scale(1.1);
}

/* Подпись */
.footer {
    padding: 32px;
    display: flex;
    justify-content: center;
}

.signature {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.signature:hover {
    color: var(--text-secondary);
    text-shadow: var(--meta-glow);
}

.signature:active {
    animation: signaturePulse 0.3s ease-out;
}

@keyframes signaturePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .header {
        padding: 20px 20px;
        justify-content: center;
    }
    
    .content {
        padding: 0 20px;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .discord-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px;
    }
    
    .content {
        padding: 0 16px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .discord-btn {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .discord-icon {
        width: 20px;
        height: 20px;
    }
}

/* Улучшенная производительность */
.loading-screen,
.main-content {
    will-change: opacity, transform;
}

.logo,
.discord-btn {
    will-change: transform;
}

/* Темная тема для системных элементов */
::selection {
    background: rgba(88, 101, 242, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.7);
}