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

body {
    background-color: #020204;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- ЧИСТЫЙ ХАЙ-ТЕК ФОН --- */
.viewport-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 40%),
        #020204;
}

/* Интерактивный холст для снега */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none'/%3e%3cfilter id='noise'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3e%3c/svg%3e");
    pointer-events: none;
}

/* Оболочка */
.main-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

/* Навигация */
.top-navbar {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Зона логотипа */
.brand-logo-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.brand-logo-zone:hover {
    opacity: 0.8;
}

.custom-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.brand-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.brand-title span {
    font-weight: 400;
    opacity: 0.5;
}

.nav-links-group {
    display: flex;
    gap: 36px;
}

.navigation-item {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666668;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navigation-item svg {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.navigation-item:hover, .navigation-item.active {
    color: #ffffff;
}

.navigation-item:hover svg, .navigation-item.active svg {
    opacity: 1;
}

/* Блок кнопок справа (Дискорд + Логин) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Кнопка Логин в шапке */
.login-button {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Дискорд */
.action-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #88888c;
    text-decoration: none;
    transition: all 0.25s ease;
}

.action-button-icon:hover {
    color: #5865F2;
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.08);
    transform: translateY(-1px);
}

/* Контент */
.hero-layout {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-bottom: 60px;
}

.hero-content-left {
    max-width: 580px;
    position: relative;
    z-index: 5;
}

.release-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #88888c;
    margin-bottom: 28px;
}

h1 {
    font-size: 68px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 24px;
}

h1 strong {
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
}

.hero-description {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 44px;
}

/* Кнопки */
.controls-wrapper {
    display: flex;
    gap: 14px;
}

.interactive-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 10px; 
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.action-primary {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.action-primary:hover {
    background-color: #e5e5e8;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.action-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Задний текстовый план */
.hero-graphic-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    pointer-events: none;
}

.background-typography-art {
    font-size: 110px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -5px;
    text-transform: uppercase;
    text-align: right;
    opacity: 0.04;
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    transform: rotate(-3deg);
}

/* ========================================= */
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА           */
/* ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    display: flex;
    width: 800px;
    height: 480px;
    background: #111114;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Левая часть (КАРТИНКА ЗДЕСЬ) */
.modal-left {
    flex: 1;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    /* === СЮДА ВСТАВЬ СВОЮ КАРТИНКУ === */
    background-image: 
        linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%),
        url('https://i.postimg.cc/mD8zQxV6/minecraft-bg.jpg'); 
    /* ================================= */

    background-size: cover;
    background-position: center;
}

.modal-left-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.modal-dots {
    display: flex;
    gap: 8px;
}

.modal-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.modal-dots .dot.active {
    background: #ffffff;
}

/* Правая часть (форма) */
.modal-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.modal-header p {
    font-size: 13px;
    color: #888;
    margin-bottom: 40px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.input-group input::placeholder {
    color: #555;
}

.input-group .eye-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
}

.auth-submit-btn {
    margin-top: 15px;
    background: linear-gradient(90deg, #6b4cff, #885cff);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
}

.auth-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.modal-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.modal-footer a:hover {
    opacity: 0.8;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px; /* Это добавит отступ между кнопкой Логин и Дискордом */
}

.login-button {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
/* Адаптив для мобилок */
@media (max-width: 992px) {
    .main-container { padding: 0 24px; }
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-graphic-right { display: none; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .controls-wrapper { justify-content: center; }
    h1 { font-size: 50px; }
    .top-navbar { height: 90px; }
    
    .modal-content {
        flex-direction: column;
        width: 90%;
        height: auto;
    }
    .modal-left {
        padding: 30px;
        min-height: 200px;
    }
    .modal-right {
        padding: 40px 30px;
    }
}
