/* ======== BASE STYLES & RESET ======== */
:root {
    --primary-color: #00ffcc; /* Neon Teal/Cyan Accent */
    --secondary-color: #3a3f51; /* Dark Slate/Purple Base */
    --bg-dark: #121217; /* Deep Space Background */
    --text-light: #e4e6eb;
    --card-bg: #1c1c24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4dffdd; /* Slightly brighter on hover */
}

/* ======== NAVIGATION BAR ======== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 18, 23, 0.9); /* Semi-transparent dark background */
    border-bottom: 1px solid #2a2a3b;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
}

.logo span {
    color: var(--primary-color); /* Highlight the dot */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav li a {
    font-weight: 400;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.2s;
}

nav li a.active, nav li a:hover {
    color: var(--primary-color);
    /* Небольшой эффект подчеркивания/подъема */
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, to right, var(--primary-color));
}

.invite-cta button {
    cursor: pointer;
}

/* ======== BUTTONS & FORM ELEMENTS ======== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark); /* Dark text on bright background */
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    /* Градиентный эффект для главного CTA */
    background: linear-gradient(90deg, var(--primary-color) 0%, #00e6ff 100%);
    color: #121217;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4);
}

.btn-large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.6);
}


/* ======== HERO SECTION ======== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 5%;
    min-height: 70vh; /* Занимает много места */
    background-image: radial-gradient(at 50% 15%, rgba(0, 255, 204, 0.05) 0%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    text-shadow: 0 3px 10px rgba(0, 255, 204, 0.1);
}

#subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cta-group input[type="email"] {
    padding: 0.9rem 1.5rem;
    border: 2px solid #3a3f51;
    background-color: #121217;
    color: var(--text-light);
    border-radius: 6px;
    width: 300px;
            outline: none;
}

.cta-group input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}


/* ======== FOOTER & UTILITIES ======== */
footer {
    padding: 40px 5%;
    background-color: #121217;
    text-align: center;
    border-top: 1px solid #2a2a3b;
}

.footer-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.footer-content a {
    color: #666;
    text-transform: uppercase;
    padding: 0 10px;
}
.footer-content a:hover {
    color: var(--primary-color);
}

/* ======== PAGE HIDE STATE (ЗАЩИТА) ======== */
.restricted-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
    text-align: center;
    padding: 20px;
}

.restricted-view h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ff3b30; /* Красный для ошибки */
}

.restricted-view p {
    font-size: 1.2rem;
    color: #9a8d7c;
    margin-bottom: 2rem;
}

/* Медиазапросы для адаптивности */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    #subtitle {
        font-size: 1.1rem;
    }
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    .cta-group input[type="email"] {
        width: 90%;
        max-width: 350px;
    }
    .btn-large {
        width: 90%;
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 2%;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    #subtitle {
        font-size: 1rem;
    }
     .cta-group {
        flex-direction: column;
        gap: 8px;
    }
    .btn-large, .cta-group input[type="email"] {
        width: 100%;
    }
}