/* ── LAYOUT ── */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* ── SUBTLE BG GLOW ── */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, hsl(var(--primary) / 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── HERO ── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

/* Logo wrapper with pulsing glow */
.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.3) 0%, hsl(var(--primary) / 0.08) 50%, transparent 75%);
    pointer-events: none;
    animation: logo-pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes logo-pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.hero-logo {
    position: relative;
    width: 180px;
    height: auto;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: hsl(var(--primary));
    margin-bottom: 1.1rem;
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: hsl(var(--primary));
}

.hero-description {
    max-width: 560px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

/* ── GAP ── */
.divider {
    margin: 1.5rem auto;
}

/* ── INVITE SECTION ── */
.invite-card {
    max-width: 520px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 2rem 2.5rem;
}

.invite-card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: hsl(var(--card-foreground));
}

.invite-card p {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.65;
}

.btn-discord {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.4rem;
    background: var(--discord);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.12s ease;
}

.btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    position: relative;
    z-index: 1;
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 2rem 2.25rem 2.25rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.modal-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: hsl(var(--card-foreground));
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    flex-shrink: 0;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.modal-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.65;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition:
        background 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    text-align: center;
}

.modal-btn-link {
    display: block;
    text-align: center;
    padding: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}

.modal-btn-link:hover {
    color: hsl(var(--foreground));
}

.modal-btn-discord {
    background: var(--discord);
    color: #fff;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}

.modal-btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.4);
}
