:root {
    --background: #0b0b12;
    --card-background: #181825;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --discord-color: #5865f2;
    --card-border: #373758;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
}

/* Main container */
.container {
    text-align: center;
    padding: 30px;
}

/* Title */
h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0 0 10px;
}

.glow-title {
    color: var(--text-primary);
    text-transform: lowercase;
    letter-spacing: 0.08em;
}

.glow-title span {
    color: var(--discord-color);
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Animated neon glow for .gg */
@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 5px rgba(88, 101, 242, 0.35),
            0 0 10px rgba(88, 101, 242, 0.25),
            0 0 20px rgba(88, 101, 242, 0.20);
    }

    50% {
        text-shadow:
            0 0 8px rgba(88, 101, 242, 0.85),
            0 0 16px rgba(88, 101, 242, 0.75),
            0 0 30px rgba(88, 101, 242, 0.60),
            0 0 50px rgba(88, 101, 242, 0.45);
    }
}

/* Text */
p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Discord card */
.discord-card {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 40px auto 0;
    padding: 30px;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: var(--card-background);
    color: var(--text-primary);
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.discord-card:hover {
    transform: translateY(-5px);
    border-color: var(--discord-color);
    box-shadow: 0 10px 35px rgba(88, 101, 242, 0.2);
}

.discord-card:focus-visible {
    outline: 2px solid var(--discord-color);
    outline-offset: 4px;
}

/* Discord logo */
.discord-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}

/* Discord card content */
.discord-card h2 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.discord-card p {
    margin: 0;
}

/* Join button */
.join-button {
    display: block;
    margin-top: 24px;
    padding: 14px;
    border-radius: 9px;
    background: var(--discord-color);
    color: var(--text-primary);
    font-weight: bold;

    transition: background 0.2s ease;
}

.discord-card:hover .join-button {
    background: #4752c4;
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 20px;
    }

    .discord-card {
        margin-top: 30px;
        padding: 25px;
    }

    .discord-logo {
        width: 70px;
        height: 70px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .glow-title span {
        animation: none;
        text-shadow: 0 0 12px rgba(88, 101, 242, 0.5);
    }

    .discord-card,
    .join-button {
        transition: none;
    }
}
