/* ================== HERO / ПЕРВЫЙ ЭКРАН ================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0 0 120px;
    background:
        linear-gradient(180deg, rgba(26, 18, 12, 0.55) 0%, rgba(26, 18, 12, 0.85) 70%, var(--ink) 100%),
        url('../../images/font-bg.jpg') center center / cover no-repeat;
    background-color: var(--ink);
    isolation: isolate;
    overflow: hidden;
}

/* Тёплое золотое свечение слева */
.hero::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 1100px;
    max-height: 1100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 60%);
    filter: blur(64px);
    pointer-events: none;
    z-index: 0;
    animation: auroraFloat 22s ease-in-out infinite;
}

.hero .fog-layer {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(180, 130, 70, 0.20), transparent 60%);
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
    animation: auroraFloat 26s ease-in-out infinite reverse;
}

/* ================== ШАПКА / NAV ================== */
.header {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(0) !important;
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 18px;
    z-index: 9999;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: linear-gradient(180deg, rgba(10, 12, 20, 0.85), rgba(5, 6, 10, 0.85));
    border-color: var(--line-2);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ================== ЛОГО (текст) ================== */
.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin-left: 6px;
    padding: 6px 14px 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Аватар-кружок перед названием */
.logo-text::before {
    content: "L";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(244, 228, 188, 0.85), rgba(212, 175, 55, 0.55) 60%, transparent 80%),
        linear-gradient(135deg, var(--ink-3), var(--ink));
    border: 1px solid var(--line-2);
    color: var(--accent-3);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.40),
        0 0 18px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(244, 228, 188, 0.18);
}

.logo-text .logo-g {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    font-size: 0.8em;
    line-height: 1;
    margin-left: -1px;
    transform: translateY(3px);
}

.logo-text:hover {
    opacity: 0.92;
}

/* ================== НАВИГАЦИЯ ================== */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    font-family: var(--font-sans);
}

.nav a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px var(--line);
}

.nav a::after {
    display: none;
}

/* ================== USER MENU (как «Let's talk →») ================== */
.user-menu {
    position: relative;
    margin-left: 8px;
}

.user-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-button:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.user-button i:first-child {
    font-size: 13px;
    color: var(--accent);
}

.user-button i:last-child {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.user-menu:hover .user-button i:last-child {
    transform: rotate(180deg);
}

/* ================== ВЫПАДАЮЩЕЕ МЕНЮ ================== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: linear-gradient(180deg, rgba(20, 22, 30, 0.95), rgba(10, 12, 20, 0.95));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 6px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 10000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.dropdown-item.logout {
    color: #ff8b9c;
}

.dropdown-item.logout:hover {
    background: rgba(220, 110, 90, 0.18);
    color: #ff5cae;
}

.dropdown-item i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

/* ================== ОНЛАЙН СЧЁТЧИК ================== */
.online-counter-widget {
    position: fixed;
    top: 96px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.25s ease;
    font-family: var(--font-mono);
}

.online-counter-widget:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border-color: var(--line-2);
}

.online-dot {
    font-size: 7px;
    color: #4ade80;
    filter: drop-shadow(0 0 6px #4ade80);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.online-count {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    min-width: 22px;
    text-align: center;
}

.online-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ================== HERO КОНТЕНТ ================== */
.content {
    position: relative;
    z-index: 2;
    padding: 160px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "Available for new projects"-style бейдж над заголовком — оборачиваем существующий логотип */
.hero-logo {
    width: 200px;
    max-width: 60vw;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 28px;
    filter:
        drop-shadow(0 0 24px rgba(212, 175, 55, 0.55))
        drop-shadow(0 0 48px rgba(180, 130, 70, 0.30));
}

/* ================== ПОДЗАГОЛОВОК (используется как главный display-заголовок) ================== */
.subtitle {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.05;
    letter-spacing: 0.005em;
    font-weight: 700;
    color: var(--accent-3);
    max-width: 980px;
    margin: 0 auto 28px;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.7),
        0 0 28px rgba(212, 175, 55, 0.18);
    background: linear-gradient(180deg, #fff8e6 0%, #e8d5a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* "здесь" в фиолето-циан градиенте */
.subtitle::after {
    content: "";
    display: block;
    width: 1px;
    height: 0;
}

/* ================== ОПИСАНИЕ ПОД ЗАГОЛОВКОМ — добавим через ::after на actions, или через html nothing. */
/* Поскольку HTML не редактируем, мы превращаем сам subtitle в крупный display-заголовок */

/* ================== БЛОК CTA ================== */
.actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 4px 0 36px;
    padding: 0;
}

/* ================== DISCORD КНОПКА ================== */
.discord {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 0 18px rgba(88, 101, 242, 0.45);
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.discord i {
    font-size: 20px;
    color: #fff;
}

.discord:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 26px rgba(88, 101, 242, 0.7);
    filter: brightness(1.06);
}

/* ================== СКРОЛЛ ВНИЗ (минималистично) ================== */
.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 3;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    animation: floatScroll 2.4s ease-in-out infinite;
    opacity: 0.85;
}

.scroll-down:hover {
    color: #fff;
    opacity: 1;
}

.scroll-circle {
    width: 28px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line-2);
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.scroll-circle::before {
    display: none;
}

.scroll-arrow {
    width: 4px;
    height: 8px;
    border: none;
    background: linear-gradient(180deg, var(--accent-3), transparent);
    border-radius: 2px;
    display: block;
    transform: none;
    margin: 0;
    animation: scrollDot 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(244, 228, 188, 0.8));
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(16px); opacity: 0; }
    61% { transform: translateY(-2px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 900px) {
    .header {
        width: calc(100% - 16px);
        top: 8px !important;
        height: 56px;
        padding: 0 8px 0 10px;
    }

    .logo-text {
        font-size: 16px;
        padding: 4px 8px 4px 4px;
    }

    .logo-text::before {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .nav {
        gap: 0;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .user-button {
        padding: 7px 12px;
        font-size: 12px;
    }

    .content {
        padding: 140px 16px 60px;
    }

    .online-counter-widget {
        top: 84px;
        right: 12px;
    }
}
