:root {
    --bg: #050505;
    --panel: rgba(12, 12, 14, 0.72);
    --panel-strong: rgba(18, 18, 20, 0.9);
    --text: #f4f4f5;
    --muted: rgba(244, 244, 245, 0.64);
    --soft: rgba(244, 244, 245, 0.42);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --banner-image: url("https://i.postimg.cc/YSQZ387P/file-00000000f7807207a3961927146751a8.png");
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a,
button {
    font: inherit;
}

.discord-page {
    min-height: 100vh;
    isolation: isolate;
}

.discord-hero {
    position: relative;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.discord-bg,
.discord-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.discord-bg {
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.58), #050505 82%),
        radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.12), transparent 30%),
        var(--banner-image) center / cover no-repeat;
    transform: scale(1.02);
}

.discord-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

.discord-noise {
    z-index: -2;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px);
    background-size: 34px 34px, 46px 46px;
}

.home-pill {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.36);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    animation: dropIn 0.7s ease both;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-pill img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
}

.home-pill:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.hero-shell {
    width: min(1120px, 100%);
    margin: auto;
    padding: 76px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 74px);
}

.hero-content {
    animation: riseIn 0.8s ease 0.08s both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f4f4f5;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
    animation: pulse 1.9s ease-in-out infinite;
}

h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3rem, 7.2vw, 6.25rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 850;
    text-wrap: balance;
}

.hero-desc {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.8;
}

.discord-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
}

.discord-stats div {
    padding: 15px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.discord-stats strong,
.discord-stats span {
    display: block;
}

.discord-stats strong {
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    letter-spacing: -0.03em;
}

.discord-stats span {
    margin-top: 4px;
    color: var(--soft);
    font-size: 0.82rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.join-btn,
.copy-btn {
    min-height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.join-btn {
    min-width: 178px;
    color: #050505;
    background: #f7f7f7;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(255, 255, 255, 0.12);
}

.join-btn svg {
    width: 20px;
    height: 20px;
}

.copy-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.join-btn:hover,
.copy-btn:hover {
    transform: translateY(-2px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.join-btn.is-joining {
    pointer-events: none;
    opacity: 0.72;
}

.safe-note {
    display: none;
}

.discord-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    animation: floatCard 0.85s ease 0.16s both, softFloat 6s ease-in-out 1.2s infinite;
}

.card-banner {
    min-height: 190px;
    background:
        linear-gradient(180deg, transparent 40%, rgba(8, 8, 9, 0.86)),
        var(--banner-image) center / cover no-repeat;
}

.card-body {
    padding: 22px;
}

.server-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.server-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.server-row h2 {
    margin: 0;
    font-size: clamp(1.18rem, 3vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.server-subtitle {
    margin: 6px 0 0;
    color: var(--soft);
    font-size: 0.9rem;
}

.status-grid {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.status-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.status-grid strong,
.status-grid span {
    display: block;
}

.status-grid strong {
    font-size: 0.95rem;
}

.status-grid span {
    margin-top: 4px;
    color: var(--soft);
    font-size: 0.88rem;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatCard {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes softFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .discord-hero {
        padding: 14px;
    }

    .home-pill {
        top: 12px;
        left: 12px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        padding: 56px 0 34px;
    }

    .discord-card {
        order: -1;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
        animation-name: floatCard;
    }

    .card-banner {
        min-height: 160px;
    }
}

@media (max-width: 520px) {
    .discord-nav {
        border-radius: 18px;
        padding: 10px;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .nav-home {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: clamp(2.55rem, 16vw, 4.2rem);
    }

    .hero-desc {
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .discord-stats {
        grid-template-columns: 1fr;
    }

    .join-btn,
    .copy-btn {
        width: 100%;
    }

    .discord-card {
        border-radius: 26px;
    }

    .card-body {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
