:root {
    /* Branding colors - Space / Cosmic Theme */
    --primary: #00d2ff; /* Bright Cyan */
    --secondary: #3a7bd5; /* Deep Nebula Blue */
    --discord: #5865F2; /* Standard Discord Color */
    --bg-color: #090a0f;
    --text-main: #ffffff;
    --text-muted: #8c909c;
}

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

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

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    width: 90%;
    background: rgba(10, 10, 15, 0.45);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.08);
    animation: fadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.server-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

#serverName {
    font-family: 'Rajdhani', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
    line-height: 1.1;
}

.server-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4); 
    border: 2px solid var(--secondary);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.tagline span {
    color: var(--secondary);
    font-weight: 700;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap; 
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05),
                0 0 20px rgba(0, 255, 255, 0.15);
    min-width: 140px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.countdown-label {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: transparent;
    border: 2px solid var(--discord);
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--discord);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-discord:hover {
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.8);
    transform: translateY(-4px);
    color: white;
    border-color: var(--discord);
}

.btn-discord:hover:before {
    left: 0;
}

.discord-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.newsletter-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.newsletter-btn {
    background: rgba(255, 0, 255, 0.1);
    color: white;
    border: 1px solid var(--primary);
    padding: 0 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.newsletter-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.newsletter-msg {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
    color: var(--text-muted);
}
.newsletter-msg.success { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
.newsletter-msg.error { color: #ff3333; text-shadow: 0 0 5px #ff3333; }

footer {
    margin-top: 5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    font-weight: 700;
    font-size: 0.65rem;
}

.footer-right {
    font-size: 0.65rem;
}

.credit {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.4);
}

@media (max-width: 768px) {
    #serverName { font-size: 3.5rem; }
    .server-icon { width: 50px; height: 50px; border-width: 1px; }
    .server-title-container { gap: 1rem; }
    .countdown-container { gap: 1rem; }
    .countdown-value { font-size: 3rem; min-width: 100px; padding: 0.8rem 1.2rem; }
    .content-wrapper { padding: 2rem 1rem; }
}
