:root {
    --primary-bg: #0D0D0D;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --accent: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Image Logic */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.6)),
                url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: bgZoom 20s infinite alternate ease-in-out;
}

@keyframes bgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Glass Container */
.container {
    position: relative;
    padding: 4rem;
    max-width: 800px;
    width: 95%;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1.5s ease-out;
    z-index: 10;
}

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

.logo-img {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: fadeIn 2s ease-out;
}

.logo-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.4rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.coming-soon {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1.2rem;
    color: var(--accent);
    margin: 5rem 0;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2),
                 0 0 40px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    position: relative;
}

.community-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem auto 2rem;
    max-width: 600px;
}

.invite-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1.5px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.invite-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.invite-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0099e6;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.google-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

/* Countdown Styles */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-out;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-value {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--text-secondary);
}

/* Signup Form Styles */
.signup-container {
    margin: 3rem auto 1rem;
    max-width: 500px;
}

.signup-form {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.signup-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 400;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.signup-btn {
    background: var(--accent);
    color: var(--primary-bg);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.signup-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 1.2rem;
    transition: all 0.3s ease;
}

.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 4rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05rem;
    animation: fadeInBlur 3s ease-in;
}

@keyframes fadeInBlur {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 2rem 1rem;
        flex-direction: column;
    }
    
    .container {
        padding: 2rem;
        width: 90%;
        aspect-ratio: 1 / 1.1;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .logo-img { max-width: 150px; margin-bottom: 1rem; }
    .logo-tagline { font-size: 0.6rem; letter-spacing: 0.15rem; margin-bottom: 1.5rem; }
    .coming-soon { font-size: 1.5rem; letter-spacing: 0.3rem; margin: 1.5rem 0; white-space: normal; }
    .community-container { gap: 0.8rem; margin: 1rem auto; }
    .invite-card { padding: 0.8rem; border-radius: 12px; }
    .invite-text { font-size: 0.75rem; margin-bottom: 0.6rem; }
    .btn { padding: 8px 16px; font-size: 0.75rem; gap: 6px; }
    .social-links { gap: 1.5rem; margin-top: 1.5rem; }
    .social-links a { font-size: 1.2rem; }
    
    footer {
        position: relative;
        bottom: auto;
        margin-top: 1.5rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    body { padding: 1.5rem 0.8rem; }
    
    .container {
        padding: 1.5rem;
        width: 92%;
        aspect-ratio: 1 / 1.15;
    }
    
    .logo-img { max-width: 120px; }
    .logo-tagline { font-size: 0.5rem; letter-spacing: 0.1rem; margin-bottom: 1rem; }
    .coming-soon { font-size: 1.2rem; letter-spacing: 0.2rem; margin: 1rem 0; }
    .community-container { gap: 0.6rem; margin: 0.8rem auto; }
    .invite-card { padding: 0.6rem; }
    .invite-text { font-size: 0.65rem; margin-bottom: 0.5rem; line-height: 1.4; }
    .btn { padding: 6px 12px; font-size: 0.65rem; width: 100%; border-radius: 8px; }
    .social-links { gap: 1rem; margin-top: 1rem; }
    .social-links a { font-size: 1rem; }
}