:root {
    color-scheme: dark;
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #ef4444;
    --accent-2: #3b82f6;
    --accent-3: #fbbf24;
    --border: rgba(148, 163, 184, 0.2);
    --shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 45%), var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Oxanium", "Inter", sans-serif;
    margin: 0 0 0.75rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.bg-noise {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(239, 68, 68, 0.2), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.18), transparent 45%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
    animation: floatGlow 12s ease-in-out infinite;
}

.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.55));
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 48%, #fff 48%, #fff 100%);
    position: relative;
    border: 2px solid #0f172a;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.logo-ball::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #111827;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.site-nav a {
    padding: 0.4rem 0.2rem;
    color: var(--muted);
    font-weight: 500;
    position: relative;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--text);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35), 0 0 20px rgba(59, 130, 246, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.85) 55%, rgba(239, 68, 68, 0.9) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    transform: translateX(-130%);
    transition: transform 0.45s ease;
}

.btn:hover::before {
    transform: translateX(0%);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.3);
}

.hero {
    padding: 5.5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-size: 0.85rem;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.hero-stats div {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    min-width: 120px;
}

.hero-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.75));
    backdrop-filter: blur(16px);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent 60%);
    pointer-events: none;
}

.pokeball {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 47%, #fff 47%, #fff 100%);
    margin-bottom: 1.5rem;
    position: relative;
    border: 5px solid #0f172a;
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.35);
}

.pokeball span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #0f172a;
}

.server-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
}

.server-pill.large {
    padding: 0.8rem 1.4rem;
    font-size: 1.05rem;
}

.copy-btn {
    background: var(--accent-2);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.section {
    padding: 4rem 0;
}

.muted {
    color: var(--muted);
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    padding: 1.6rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.card i {
    font-size: 1.6rem;
    color: var(--accent-3);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.checklist li {
    margin-bottom: 0.5rem;
    padding-left: 1.6rem;
    position: relative;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-3);
}

.cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(59, 130, 246, 0.2));
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.server-highlight {
    background: linear-gradient(140deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.download-list {
    display: grid;
    gap: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.download-item.uploading {
    opacity: 0.75;
}

.download-item.uploading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.35), rgba(239, 68, 68, 0.2));
    opacity: 0.4;
    filter: blur(18px);
    animation: shimmerPulse 6s ease-in-out infinite;
    pointer-events: none;
}

.download-item.uploading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.35);
    border-top-color: rgba(59, 130, 246, 0.9);
    transform: translateY(-50%);
    animation: spinLoader 0.9s linear infinite;
    pointer-events: none;
}

.download-item.uploading .download-action {
    animation: pulseGlow 1.6s ease-in-out infinite;
}

.download-item.uploading .download-size::after {
    content: " • Upload en cours";
    color: rgba(59, 130, 246, 0.9);
}

.download-item:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.btn:disabled {
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
}

.tutorial-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
}

.tutorial-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(12px);
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

code {
    font-family: "Oxanium", monospace;
    font-size: 0.92rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    word-break: break-word;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes shimmerPulse {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes spinLoader {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
        transform: translateY(-1px);
    }
}

.page-hero {
    padding: 4rem 0 2rem;
    background: var(--bg-soft);
    text-align: center;
}

.server-grid,
.download-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.server-card,
.download-card {
    background: var(--bg-card);
    border-radius: 22px;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.server-card.alt,
.download-card.alt {
    background: rgba(15, 23, 42, 0.9);
}

.server-tips div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.info-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(34, 211, 238, 0.1);
    margin-top: 1.5rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    background: #0a0f1e;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: var(--muted);
    display: block;
    margin-bottom: 0.4rem;
}

.footer-bottom {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 1rem 0 0;
        background: var(--bg-card);
        border-radius: 16px;
        padding: 1rem;
        border: 1px solid var(--border);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 4rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .cta-card {
        padding: 2.2rem 1.5rem;
    }
}
