:root {
    --primary: #6366f1;
    --primary-strong: #4338ca;
    --secondary: #ec4899;
    --surface: rgba(6, 8, 16, 0.78);
    --surface-strong: rgba(10, 13, 24, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f8fafc;
    --text-dim: rgba(248, 250, 252, 0.68);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    background-color: #05070e;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img,
svg {
    display: block;
}

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 10, 20, 0.28) 0%, rgba(7, 11, 20, 0.42) 100%),
        url("../images/hero-bg.png") center / cover no-repeat;
    backdrop-filter: blur(3px);
}

.site-shell {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px;
    background: rgba(7, 10, 18, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    font-size: 1.2rem;
    font-weight: 900;
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.glow-text {
    background: linear-gradient(90deg, #fff 0%, #a5b4fc 55%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dim);
}

.nav-links a:hover {
    color: #818cf8;
}

.page-main {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.hero-section,
.content-section {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 96px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    background: rgba(99, 102, 241, 0.08);
    color: #c7d2fe;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 28px;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-title span {
    color: #818cf8;
}

.hero-copy {
    max-width: 720px;
    margin: 0 0 48px;
    color: var(--text-dim);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 100%);
    box-shadow: 0 20px 40px rgba(67, 56, 202, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-strong) 0%, #7c3aed 100%);
}

.content-section {
    padding: 96px 0 0;
}

.status-grid,
.stats-grid {
    display: grid;
    gap: 32px;
}

.status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.glass-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.glass-panel:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.status-card {
    padding: 40px;
}

.status-card::after {
    content: "";
    position: absolute;
    top: -36px;
    right: -36px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.status-card.java::after {
    background: rgba(99, 102, 241, 0.18);
}

.status-card.bedrock::after {
    background: rgba(236, 72, 153, 0.18);
}

.card-header,
.server-row,
.voter-row,
.voter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.server-row {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.primary {
    color: #818cf8;
}

.eyebrow.secondary {
    color: #f472b6;
}

.card-title,
.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 900;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 800;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.status-badge.offline {
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
}

.online-dot {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s infinite;
}

.timer {
    margin: 28px 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.server-address {
    color: #c7d2fe;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
}

.copy-btn {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.stat-card {
    padding: 32px;
    width: min(100%, 760px);
    text-align: center;
}

.stat-card.tertiary {
    border-top: 4px solid #ec4899;
}

.stat-icon.tertiary {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 16px;
    color: #f472b6;
}

.stat-label {
    margin: 0 0 8px;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
}

.stat-subtitle {
    margin-top: 8px;
    font-weight: 700;
}

.server-info {
    color: rgba(248, 250, 252, 0.82);
    font-size: 0.85rem;
    line-height: 1.65;
}

.site-footer {
    margin-top: 96px;
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(248, 250, 252, 0.42);
    text-align: center;
    font-size: 0.9rem;
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 1200px) {
    .site-nav {
        padding: 16px 24px;
    }

    .page-main {
        width: min(calc(100% - 40px), var(--container));
    }

    .hero-title {
        font-size: clamp(2.8rem, 9vw, 5.6rem);
    }
}

@media (max-width: 960px) {
    .site-nav,
    .card-header,
    .server-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }

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

    .site-nav {
        padding: 16px 20px;
    }

    .page-main,
    .site-shell {
        width: min(calc(100% - 32px), var(--container));
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body {
        background-color: #05070e;
    }

    .page-overlay {
        background:
            linear-gradient(180deg, rgba(6, 10, 20, 0.24) 0%, rgba(7, 11, 20, 0.4) 100%),
            url("../images/hero-bg.png") center top / cover no-repeat;
    }

    .site-nav {
        gap: 14px;
    }

    .brand-text {
        font-size: 1.35rem;
    }

    .site-nav > .btn {
        width: 100%;
        min-height: 50px;
        padding: 0 20px;
    }

    .page-main {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero-section {
        min-height: auto;
        padding-top: 132px;
        padding-bottom: 48px;
        align-items: flex-start;
        text-align: left;
    }

    .badge {
        font-size: 0.72rem;
        padding: 0.65rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 13vw, 3.4rem);
        margin-bottom: 20px;
    }

    .hero-copy {
        margin-bottom: 32px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        justify-content: stretch;
    }

    .content-section {
        padding-top: 64px;
    }

    .status-card,
    .stat-card {
        padding: 22px;
    }

    .timer {
        margin: 22px 0;
        font-size: clamp(1.7rem, 9vw, 2.2rem);
    }

    .server-row {
        padding: 14px;
    }

    .site-footer {
        margin-top: 72px;
        padding: 36px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
