*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #080a12;
    --bg2: #0b0d17;
    --surface: #111425;
    --surface-light: #181c33;
    --emerald: #50fa7b;
    --emerald-dim: rgba(80,250,123,0.12);
    --purple: #bd93f9;
    --purple-deep: #6c5ce7;
    --purple-glow: rgba(108,92,231,0.3);
    --cyan: #8be9fd;
    --pink: #ff79c6;
    --green: #50fa7b;
    --red: #ff5555;
    --yellow: #f1fa8c;
    --orange: #ffb86c;
    --blue: #5865f2;
    --text: #f8f8f2;
    --muted: #9da5b8;
    --dim: #5a6078;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.12);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --pixel: 'Silkscreen', cursive;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 9999;
    background: linear-gradient(90deg, var(--purple-deep), var(--purple), var(--cyan), var(--emerald), var(--purple-deep));
    background-size: 300% 100%;
    animation: top-bar-flow 4s linear infinite;
}
@keyframes top-bar-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

::selection { background: rgba(189,147,249,0.35); color: #fff; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ---- Particles Canvas ---- */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---- Cursor Glow ---- */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(189,147,249,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ---- Noise overlay ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
}

/* ---- Section Tags ---- */
.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border: 1px solid var(--emerald-dim);
    border-radius: 100px;
    margin-bottom: 20px;
    background: rgba(80,250,123,0.04);
}
.text-gradient {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
.navbar.scrolled {
    background: rgba(8,10,18,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar.scrolled .nav-inner { padding: 12px 24px; }

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 36px; height: 36px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 10px var(--purple-glow));
    animation: logo-float 3s ease-in-out infinite;
}
.footer-logo-img {
    width: 24px; height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(0 2px 8px var(--purple-glow));
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}
.nav-links a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--dim);
    padding: 7px 16px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--purple); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.ip-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px 8px 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    color: inherit;
}
.ip-btn:hover {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(108,92,231,0.15);
}
.ip-btn code { font-family: var(--mono); font-size: 0.78rem; color: var(--purple); }
.ip-btn-label { font-size: 0.65rem; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
@media (min-width: 769px) { .ip-btn { display: flex; } }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('mc-bg.jpg') center center / cover no-repeat;
    animation: ken-burns 25s ease-in-out infinite alternate;
}
/* Cinematic dark overlay + vignette for readability */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(8,10,18,0.6) 100%),
        linear-gradient(180deg,
            rgba(8,10,18,0.35) 0%,
            rgba(8,10,18,0.15) 40%,
            rgba(8,10,18,0.25) 70%,
            rgba(8,10,18,0.8) 100%);
    z-index: 1;
}
/* Color-grade tint to match site palette */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(108,92,231,0.12) 0%,
        transparent 50%,
        rgba(80,250,123,0.06) 100%);
    mix-blend-mode: color;
    z-index: 2;
}
@keyframes ken-burns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* ---- MC Stars ---- */
.mc-stars {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image:
        radial-gradient(2px 2px at 10% 8%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 25% 5%, #ffe8b0 50%, transparent 50%),
        radial-gradient(1px 1px at 40% 12%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 55% 3%, #c8d8ff 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 10%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 85% 7%, #ffe8b0 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 18%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 32% 22%, #c8d8ff 50%, transparent 50%),
        radial-gradient(2px 2px at 48% 15%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 62% 20%, #ffe8b0 50%, transparent 50%),
        radial-gradient(1px 1px at 78% 16%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 92% 14%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 5% 28%, #c8d8ff 50%, transparent 50%),
        radial-gradient(1px 1px at 20% 32%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 38% 26%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 52% 30%, #ffe8b0 50%, transparent 50%),
        radial-gradient(1px 1px at 66% 25%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 28%, #c8d8ff 50%, transparent 50%),
        radial-gradient(1px 1px at 95% 22%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 8% 35%, #fff 50%, transparent 50%),
        radial-gradient(2px 2px at 44% 38%, #ffe8b0 50%, transparent 50%),
        radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 50%),
        radial-gradient(1px 1px at 88% 36%, #c8d8ff 50%, transparent 50%);
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
}

/* ---- MC Moon ---- */
.mc-moon {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 80px;
    height: 80px;
    z-index: 3;
    opacity: 0.5;
    background: #e8e0c8;
    border-radius: 0;
    /* Pixel moon — 4 steps */
    clip-path: polygon(
        12.5% 0%, 87.5% 0%,
        100% 12.5%, 100% 87.5%,
        87.5% 100%, 12.5% 100%,
        0% 87.5%, 0% 12.5%
    );
    box-shadow:
        0 0 40px rgba(232,224,200,0.3),
        0 0 100px rgba(232,224,200,0.15),
        inset -10px -5px 0 rgba(180,170,140,0.4);
    animation: moon-float 12s ease-in-out infinite;
}
.mc-moon::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    top: 20px; left: 25px;
    background: rgba(200,190,160,0.5);
    border-radius: 50%;
    box-shadow:
        22px 15px 0 8px rgba(200,190,160,0.3),
        -8px 28px 0 4px rgba(200,190,160,0.4);
}
@keyframes moon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- MC Pixel Clouds ---- */
.mc-cloud {
    position: absolute;
    z-index: 3;
    opacity: 0.08;
    /* Pixel cloud shape using box-shadows on a small square */
}
.mc-cloud::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: #fff;
    box-shadow:
        16px 0 #fff, 32px 0 #fff, 48px 0 #fff, 64px 0 #fff,
        -16px 16px #fff, 0 16px #fff, 16px 16px #fff, 32px 16px #fff,
        48px 16px #fff, 64px 16px #fff, 80px 16px #fff;
}
.mc-cloud-1 {
    top: 18%;
    left: 8%;
    transform: scale(2.5);
    animation: cloud-drift 60s linear infinite;
}
.mc-cloud-2 {
    top: 25%;
    left: 45%;
    transform: scale(3);
    opacity: 0.06;
    animation: cloud-drift 80s linear infinite;
    animation-delay: -20s;
}
.mc-cloud-3 {
    top: 14%;
    left: 75%;
    transform: scale(2);
    opacity: 0.07;
    animation: cloud-drift 70s linear infinite;
    animation-delay: -40s;
}
@keyframes cloud-drift {
    0% { transform: scale(var(--s, 2.5)) translateX(0); }
    100% { transform: scale(var(--s, 2.5)) translateX(300px); }
}
.mc-cloud-1 { --s: 2.5; }
.mc-cloud-2 { --s: 3; }
.mc-cloud-3 { --s: 2; }

/* ---- MC Floating Blocks ---- */
.mc-blocks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.mc-float-block {
    position: absolute;
    image-rendering: pixelated;
    border-radius: 2px;
}
@keyframes block-float {
    0%   { transform: translateY(0)   rotate(0deg); }
    25%  { transform: translateY(-20px) rotate(8deg); }
    50%  { transform: translateY(-35px) rotate(-3deg); }
    75%  { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0)   rotate(0deg); }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 2;
}
.hero-glow-1 {
    width: 600px; height: 600px;
    top: -15%; left: 15%;
    background: rgba(108,92,231,0.2);
    animation: glow1 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
    width: 400px; height: 400px;
    bottom: 0%; right: 10%;
    background: rgba(80,250,123,0.08);
    animation: glow2 10s ease-in-out infinite alternate;
}
.hero-glow-3 {
    width: 300px; height: 300px;
    top: 30%; right: 30%;
    background: rgba(139,233,253,0.06);
    animation: glow3 12s ease-in-out infinite alternate;
}
@keyframes glow1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(40px, -30px) scale(1.15); opacity: 0.7; }
}
@keyframes glow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -20px) scale(1.1); }
}
@keyframes glow3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.04; }
    100% { transform: translate(20px, 30px) scale(1.2); opacity: 0.08; }
}

.hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(to top, var(--bg) 10%, rgba(8,10,18,0.7) 50%, transparent);
    z-index: 3;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 680px;
}
.hero-inner > * {
    opacity: 0;
    animation: hero-stagger 0.8s ease-out forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.7s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.9s; }
@keyframes hero-stagger {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-enter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(80,250,123,0.06);
    border: 1px solid rgba(80,250,123,0.12);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: 36px;
    animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(80,250,123,0); }
    50% { box-shadow: 0 0 20px rgba(80,250,123,0.1); }
}
.status-dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { margin-bottom: 24px; }
.hero-sub {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hero-name {
    display: block;
    font-family: var(--pixel);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--purple) 40%, var(--cyan) 70%, var(--emerald) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(108,92,231,0.35)) drop-shadow(0 0 80px rgba(80,250,123,0.15));
    position: relative;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 30px var(--purple-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: btn-shine 3s ease-in-out infinite;
}
@keyframes btn-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(108,92,231,0.4);
}
.btn-primary svg { opacity: 0.85; }

.btn-copy-ip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.ip-pulse {
    position: absolute;
    left: 16px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: blink 2s ease-in-out infinite;
}
.btn-copy-ip code {
    font-family: var(--mono);
    font-size: 0.84rem;
    color: var(--purple);
    margin-left: 10px;
}
.btn-copy-ip:hover {
    border-color: var(--purple);
    box-shadow: 0 0 24px rgba(108,92,231,0.15);
    transform: translateY(-2px);
}
.copy-label { font-size: 0.7rem; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.hero-scroll-hint {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: hint-fade 2s ease-in-out infinite;
}
@keyframes hint-fade { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
.scroll-arrow {
    width: 16px; height: 16px;
    border-right: 2px solid var(--dim);
    border-bottom: 2px solid var(--dim);
    transform: rotate(45deg);
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: rotate(45deg) translate(0,0); }
    50% { transform: rotate(45deg) translate(3px,3px); }
}

/* ---- About ---- */
.about { padding: 120px 0 80px; position: relative; z-index: 1; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}
.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #fff;
}
.about-text p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}
.about-text strong { color: var(--emerald); }
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}
.stat {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.stat::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(189,147,249,0.06) 0%, transparent 60%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.stat:hover::after { opacity: 1; }
.stat:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 20px rgba(108,92,231,0.1);
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.74rem;
    color: var(--dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Servers ---- */
.servers {
    padding: 100px 0;
    background: var(--bg2);
    position: relative;
    z-index: 1;
}
.servers::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-deep), transparent);
}
.servers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.servers-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 4px;
}
.servers-intro { color: var(--dim); font-size: 0.88rem; }
.servers-intro strong { color: var(--muted); }
.servers-legend { display: flex; gap: 16px; }
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--dim);
    font-weight: 500;
}
.legend-item .dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-item.running .dot { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.legend-item.stopped .dot { background: var(--red); }

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.server-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.server-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dim), transparent);
    transition: background 0.3s;
}
.server-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(189,147,249,0.06) 0%, transparent 60%);
    transition: opacity 0.3s;
    pointer-events: none;
}
.server-card:hover::after { opacity: 1; }
.server-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.server-card.online::before {
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}
.server-card.online { border-color: rgba(80,250,123,0.12); }
.server-card.online::after {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(80,250,123,0.05) 0%, transparent 60%);
}
.server-card.online:hover {
    box-shadow: 0 8px 40px rgba(80,250,123,0.1);
    border-color: rgba(80,250,123,0.25);
}
.server-card.offline::before {
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}
.server-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}
.server-icon {
    width: 48px; height: 48px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: background 0.3s;
}
.server-card.online .server-icon {
    background: rgba(80,250,123,0.06);
    border-color: rgba(80,250,123,0.12);
}
.server-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.server-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.server-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.server-state.running { color: var(--emerald); background: rgba(80,250,123,0.08); }
.server-state.starting { color: var(--yellow); background: rgba(241,250,140,0.08); }
.server-state.stopping { color: var(--yellow); background: rgba(241,250,140,0.08); }
.server-state.stopped { color: var(--red); background: rgba(255,85,85,0.08); }
.server-state.offline { color: var(--red); background: rgba(255,85,85,0.06); }
.server-state .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.server-state.running .dot {
    box-shadow: 0 0 6px currentColor;
    animation: blink 2s ease-in-out infinite;
}

.servers-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 16px;
    text-align: center;
    min-height: 1.2em;
}

/* Skeleton */
.server-card.skeleton { pointer-events: none; }
.skel-line {
    height: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 12px;
    animation: skel-pulse 1.5s ease-in-out infinite;
}
.skel-line.w60 { width: 60%; }
.skel-line.w80 { width: 80%; }
@keyframes skel-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ---- Rules ---- */
.rules { padding: 100px 0; position: relative; z-index: 1; }
.rules-wrap { max-width: 640px; }
.rules-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #fff;
}
.rules-header p {
    color: var(--dim);
    font-size: 0.88rem;
    margin-bottom: 28px;
}
.rules-list {
    list-style: none;
    counter-reset: rule;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rules-list li {
    counter-increment: rule;
    padding: 20px 24px;
    background: var(--surface);
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
    border-left: 3px solid var(--border);
    transition: all 0.3s;
}
.rules-list li:nth-child(1) { transition-delay: 0.05s; }
.rules-list li:nth-child(2) { transition-delay: 0.1s; }
.rules-list li:nth-child(3) { transition-delay: 0.15s; }
.rules-list li:nth-child(4) { transition-delay: 0.2s; }
.rules-list li:nth-child(5) { transition-delay: 0.25s; }
.rules-list li:first-child { border-radius: 12px 12px 0 0; }
.rules-list li:last-child { border-radius: 0 0 12px 12px; }
.rules-list li:hover {
    border-left-color: var(--purple);
    background: var(--surface-light);
    transform: translateX(4px);
}
.rules-list li::before {
    content: counter(rule) ". ";
    color: var(--purple);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.rules-list li strong { color: var(--text); font-weight: 700; }

/* ---- Discord ---- */
.discord-section {
    padding: 100px 0;
    background: var(--bg2);
    position: relative;
    z-index: 1;
}
.discord-box {
    padding: 60px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.discord-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}
.discord-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.discord-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.discord-orb-1 {
    width: 300px; height: 300px;
    top: -30%; right: -10%;
    background: rgba(88,101,242,0.12);
    animation: glow1 8s ease-in-out infinite alternate;
}
.discord-orb-2 {
    width: 200px; height: 200px;
    bottom: -20%; left: -5%;
    background: rgba(189,147,249,0.08);
    animation: glow2 10s ease-in-out infinite alternate;
}
.discord-content { position: relative; z-index: 1; }
.discord-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.discord-content p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(88,101,242,0.25);
}
.btn-discord:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 36px rgba(88,101,242,0.35);
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}
.footer-left p {
    color: var(--dim);
    font-size: 0.82rem;
    max-width: 300px;
    line-height: 1.6;
}
.footer-right { text-align: right; }
.footer-ip {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--purple);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block;
    margin-bottom: 14px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.82rem; color: var(--dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { font-size: 0.75rem; color: var(--dim); text-align: center; }

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px; right: 24px;
    padding: 14px 22px;
    background: var(--surface-light);
    border: 1px solid var(--emerald-dim);
    color: var(--emerald);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 2s forwards;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* ---- Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(189,147,249,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(189,147,249,0.3); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: rgba(8,10,18,0.97);
        backdrop-filter: blur(20px);
        padding: 12px 24px 16px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-stats { flex-direction: row; }
    .stat { flex: 1; align-items: center; text-align: center; }
    .servers-grid { grid-template-columns: 1fr 1fr; }
    .servers-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
    .servers-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .about-stats { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-right { text-align: left; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
    .discord-box { padding: 40px 24px; }
    .hero-name { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; }
}