/* ============ WELCOME SCREEN - СТАРТОВАЯ СТРАНИЦА ============ */
/* Современный дизайн 2026 */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Основные переменные для типографики */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* Основной контейнер */

.welcome-screen {
    display: block !important;
    overflow-y: auto;
    overflow-x: hidden !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Стилизация скроллбара */
.welcome-screen::-webkit-scrollbar {
    width: 8px;
}

.welcome-screen::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.welcome-screen::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.welcome-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Анимированный фон */
.welcome-background {
    position: absolute;  /* ← было fixed, стало absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea, #764ba2);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4facfe, #00f2fe);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fa709a, #fee140);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.2;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Основной контент */
.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;  /* ← увеличил верхний отступ с 2rem до 4rem */
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding-bottom: 4rem;
}

/* Hero секция */
.hero-section {
    text-align: center;
    margin-top: 2rem;  /* ← добавить */
    margin-bottom: 4rem;
}

.logo-animation {
    margin-bottom: 1.5rem;
}

.brain-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-badge {
    font-size: 1.2rem;
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--accent-blue);
    font-weight: 500;
}

.welcome-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.welcome-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Vision карточка */
.vision-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vision-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vision-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.vision-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 400;
}

.vision-conclusion {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    font-weight: 500;
}

.vision-conclusion i:first-child {
    margin-right: 0.5rem;
    opacity: 0.5;
}

.vision-conclusion i:last-child {
    margin-left: 0.5rem;
    opacity: 0.5;
}

/* Уровни организации */
.levels-section {
    margin-bottom: 3rem;
}

.levels-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.level-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
}

.level-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.level-card h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.level-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.level-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: monospace;
}

/* Возможности */
.features-section {
    margin-bottom: 3rem;
}

.features-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
    color: var(--accent-blue);
}

.feature-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-info p {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Токен секция */
.token-section {
    margin-bottom: 3rem;
}

.token-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.token-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.token-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.token-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.inline-code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
}

.token-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.token-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 400;
}

/* Футер */
.welcome-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-stats span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .welcome-content {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .vision-title {
        font-size: 1.4rem;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .token-actions {
        flex-direction: column;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.vision-card,
.levels-section,
.features-section,
.token-section,
.welcome-footer {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-section { animation-delay: 0s; }
.vision-card { animation-delay: 0.1s; }
.levels-section { animation-delay: 0.2s; }
.features-section { animation-delay: 0.3s; }
.token-section { animation-delay: 0.4s; }
.welcome-footer { animation-delay: 0.5s; }

/* ============ СТИЛИ ДЛЯ ИКОНОК ============ */
.level-icon i,
.feature-icon i,
.token-icon i,
.vision-icon i {
    font-size: inherit;
    color: inherit;
    display: inline-block;
}

/* Размеры иконок */
.level-icon i {
    font-size: 2.5rem;
}

.feature-icon i {
    font-size: 2rem;
}

.token-icon i {
    font-size: 2.5rem;
}

.vision-icon i {
    font-size: 2rem;
}

/* Убедимся, что Font Awesome загружен */
.fas, .far, .fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ============ ПРИЗЫВЫ (НАЧАЛО И КОНЕЦ) ============ */
.cta-primary,
.cta-secondary {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 28px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Анимация для CTA блоков */
.cta-primary {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.05s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-secondary {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.45s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Для мобильных */
@media (max-width: 768px) {
    .cta-primary,
    .cta-secondary {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* ============ ФОН В СТИЛЕ ОБЛАКА ============ */
.background-viz {
    position: absolute;  /* ← было fixed, стало absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Круги-облака */
.bg-cloud-node {
    position: absolute;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.05));
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: cloudFloat 15s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.1);
}

.node-1 {
    width: 120px;
    height: 120px;
    top: 5%;
    left: 3%;
    animation-delay: 0s;
}

.node-2 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 5%;
    animation-delay: -3s;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.12), rgba(102, 126, 234, 0.04));
}

.node-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 8%;
    animation-delay: -6s;
}

.node-4 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 10%;
    animation-delay: -9s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12), rgba(102, 126, 234, 0.04));
}

.node-5 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 20%;
    animation-delay: -2s;
}

.node-6 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 15%;
    animation-delay: -7s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), rgba(102, 126, 234, 0.03));
}

/* Динамические линии между кругами */
.cloud-line {
    position: absolute;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    height: 1px;
    transform-origin: left center;
    animation: linePulse 3s infinite ease-in-out;
}

.line-1 {
    top: 12%;
    left: 8%;
    width: 25%;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.line-2 {
    top: 25%;
    right: 12%;
    width: 20%;
    transform: rotate(-15deg);
    animation-delay: -1s;
}

.line-3 {
    bottom: 28%;
    left: 15%;
    width: 22%;
    transform: rotate(10deg);
    animation-delay: -2s;
}

.line-4 {
    bottom: 18%;
    right: 18%;
    width: 18%;
    transform: rotate(-8deg);
    animation-delay: -0.5s;
}

.line-5 {
    top: 45%;
    left: 25%;
    width: 15%;
    transform: rotate(45deg);
    animation-delay: -1.5s;
}

.line-6 {
    top: 60%;
    right: 25%;
    width: 20%;
    transform: rotate(-20deg);
    animation-delay: -2.5s;
}

/* Пульсирующие точки на концах линий */
.cloud-line::before,
.cloud-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.5));
    border-radius: 50%;
    top: -2.5px;
    animation: glowPulse 2s infinite;
}

.cloud-line::before {
    left: -3px;
}

.cloud-line::after {
    right: -3px;
    animation-delay: 1s;
}

/* Мелкие частицы (звездная пыль) */
.cloud-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

.particle-1 { top: 8%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 18%; left: 35%; animation-delay: -1s; }
.particle-3 { top: 28%; right: 25%; animation-delay: -2s; }
.particle-4 { top: 38%; left: 45%; animation-delay: -3s; }
.particle-5 { top: 48%; right: 40%; animation-delay: -4s; }
.particle-6 { top: 58%; left: 55%; animation-delay: -5s; }
.particle-7 { top: 68%; right: 55%; animation-delay: -6s; }
.particle-8 { bottom: 15%; left: 20%; animation-delay: -7s; }
.particle-9 { bottom: 25%; right: 30%; animation-delay: -2s; }
.particle-10 { bottom: 35%; left: 70%; animation-delay: -4s; }
.particle-11 { top: 75%; right: 15%; animation-delay: -1s; }
.particle-12 { top: 85%; left: 85%; animation-delay: -3s; }

/* Анимации */
@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateY(-20px) translateX(15px) scale(1.05);
        opacity: 0.6;
    }
    66% {
        transform: translateY(10px) translateX(-10px) scale(0.98);
        opacity: 0.5;
    }
}

@keyframes linePulse {
    0%, 100% {
        opacity: 0.3;
        height: 1px;
    }
    50% {
        opacity: 0.8;
        height: 2px;
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-80px) translateX(40px);
        opacity: 0;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .bg-cloud-node {
        opacity: 0.3;
    }
    
    .cloud-line {
        opacity: 0.2;
    }
    
    .cloud-particle {
        opacity: 0.3;
    }
}

/* ===== СТИЛИ ДЛЯ МОДАЛКИ ПОЛИТИКИ ===== */
.modal-overlay .modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.modal-overlay .modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-overlay .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-overlay .modal-header h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.modal-overlay .modal-header h2 i {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay .modal-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

