* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette ZYRANEX -- inspirée du logo doré */
    --bg: #1a0f08;
    --bg-alt: #261a10;
    --bg-deep: #120a05;
    --line: #3a2818;
    --line-strong: #5a3a22;
    --text: #fff5dc;
    --text-dim: #c9a878;
    --gold: #ffcc33;
    --gold-light: #ffe082;
    --gold-deep: #f5a623;
    --orange: #e87f1a;
    --brown: #4a1f0a;
    --brown-deep: #2b1003;
    --accent: #ffcc33;
    --accent-2: #ff8a1f;
    --ok: #8bc34a;
    --warn: #ffaa00;
    --err: #ff5555;
    --pix: "Press Start 2P", monospace;
    --mono: "VT323", "IBM Plex Mono", Consolas, monospace;

    /* Arrondis modernes */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(
            ellipse 80% 60% at 50% -10%,
            rgba(255, 204, 51, 0.18) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 90% 100%,
            rgba(232, 127, 26, 0.12) 0%,
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 204, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 51, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: 0;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ----- HEADER ----- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 10, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

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

.brand-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 204, 51, 0.35));
}

.brand-text {
    font-family: var(--pix);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--brown-deep);
}

nav {
    display: flex;
    gap: 4px;
}

nav a {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--text-dim);
    padding: 10px 14px;
    border: 2px solid transparent;
    border-radius: var(--r-md);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
    letter-spacing: 1.5px;
}

nav a:hover {
    color: var(--gold-light);
    border-color: rgba(255, 204, 51, 0.5);
    background: rgba(255, 204, 51, 0.08);
    transform: translateY(-1px);
}

nav a.active {
    color: var(--brown-deep);
    background: var(--gold);
    border-color: var(--gold-deep);
    box-shadow: 0 2px 0 var(--brown);
}

/* ----- HERO ----- */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    animation: heroLogoIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
    width: 100%;
    max-width: 720px;
    height: auto;
    filter: drop-shadow(0 8px 0 rgba(74, 31, 10, 0.6))
        drop-shadow(0 14px 40px rgba(255, 204, 51, 0.35));
    animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.kicker {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 22px;
    letter-spacing: 2.5px;
    min-height: 14px;
    text-align: center;
}

.kicker .caret {
    display: inline-block;
    margin-left: 2px;
    animation: caretBlink 0.9s steps(2) infinite;
}

@keyframes caretBlink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.hero-tagline {
    font-family: var(--pix);
    font-size: 16px;
    color: var(--gold-light);
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 3px 3px 0 var(--brown-deep);
}

.hero-text {
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--text-dim);
    font-size: 22px;
    text-align: center;
}

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

/* ----- BUTTONS ----- */
.pix-btn {
    font-family: var(--pix);
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 16px 24px;
    color: var(--text);
    background: var(--bg-alt);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 4px 0 var(--brown-deep);
    text-transform: uppercase;
}

.pix-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 6px 0 var(--brown-deep);
}

.pix-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--brown-deep);
}

.pix-btn-primary {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--brown-deep);
    border-color: var(--brown);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 4px 0 var(--brown);
}

.pix-btn-primary:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--brown-deep);
    border-color: var(--brown);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 6px 0 var(--brown);
}

.pix-btn-primary:active {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 1px 0 var(--brown);
}

.pix-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.pix-btn:hover::before {
    left: 130%;
}

/* ----- IP / DISCORD BAR ----- */
.ip-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.info-bar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 2px solid var(--line-strong);
    background: rgba(38, 26, 16, 0.6);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    margin: 0 auto;
}

.info-label {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.info-value {
    font-family: var(--mono);
    font-size: 22px;
    color: var(--text);
}

.copy-btn {
    font-family: var(--pix);
    font-size: 9px;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-sm);
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 204, 51, 0.05);
}

.copy-btn.copied {
    border-color: var(--ok);
    color: var(--ok);
    background: rgba(139, 195, 74, 0.08);
}

/* ----- SECTIONS ----- */
.section {
    padding: 80px 0;
    position: relative;
}

.section + .section {
    border-top: 2px solid var(--line);
}

.section-alt {
    background: rgba(38, 26, 16, 0.4);
}

.section-title {
    font-family: var(--pix);
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--line-strong);
    text-shadow: 2px 2px 0 var(--brown-deep);
}

/* ----- FEATURE GRID ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--orange) 50%,
        var(--gold) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 204, 51, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-num {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold-deep);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}

.feature-card h3 {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 19px;
    line-height: 1.6;
}

/* ----- STATUS PANEL ----- */
.status-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.status-label {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.status-value {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--ok);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px var(--bg-alt),
        0 0 0 4px var(--ok),
        0 0 10px var(--ok);
    animation: blink 1.6s ease-in-out infinite;
}

.dot-warn {
    background: var(--warn);
    box-shadow:
        0 0 0 2px var(--bg-alt),
        0 0 0 4px var(--warn),
        0 0 10px var(--warn);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ----- DISCORD SECTION ----- */
.discord-section {
    text-align: center;
}

.discord-text {
    max-width: 580px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: 22px;
}

/* ----- FOOTER ----- */
footer {
    border-top: 2px solid var(--line);
    padding: 26px 0;
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-meta {
    color: var(--gold);
}

/* ----- CREDITS ----- */
.hero-sm {
    padding: 80px 0 50px;
}

.hero-title {
    font-family: var(--pix);
    font-size: 48px;
    line-height: 1.1;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-align: center;
    text-shadow:
        4px 4px 0 var(--brown),
        8px 8px 0 var(--brown-deep);
    animation: titleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes titleIn {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.credit-card {
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    position: relative;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.credit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--line-strong);
    transition:
        background 0.25s ease,
        width 0.25s ease;
}

.credit-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 204, 51, 0.2);
}

.credit-card:hover::before {
    background: var(--gold);
    width: 10px;
}

.credit-role {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    margin-left: 8px;
}

.credit-name {
    font-family: var(--mono);
    font-size: 26px;
    color: var(--gold-light);
    margin-bottom: 6px;
    margin-left: 8px;
    word-break: break-word;
}

.credit-tag {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--gold);
    margin-left: 8px;
}

.credit-link {
    margin-top: 14px;
    margin-left: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    color: var(--text-dim);
    transition:
        color 0.25s ease,
        transform 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-link-label {
    font-family: var(--pix);
    font-size: 9px;
    letter-spacing: 1.5px;
}

a.credit-card:hover .credit-link {
    color: var(--gold);
    transform: translateX(4px);
}

.credit-owner {
    border-color: var(--gold);
}

.credit-owner::before {
    background: var(--gold);
}

.credit-owner .credit-role {
    color: var(--gold);
}

.credit-dev::before {
    background: var(--orange);
}

.credit-dev .credit-role {
    color: var(--orange);
}

.credit-dev:hover {
    border-color: var(--orange);
}

.credit-dev:hover::before {
    background: var(--orange);
}

.credits-thanks {
    margin-top: 56px;
    padding: 32px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-lg);
    text-align: center;
    background: rgba(38, 26, 16, 0.4);
}

.credits-thanks p {
    color: var(--text-dim);
    font-size: 22px;
    margin-bottom: 20px;
}

.credits-thanks strong {
    color: var(--gold-light);
    font-weight: normal;
    background: rgba(255, 204, 51, 0.15);
    padding: 3px 10px;
    border-radius: var(--r-sm);
}

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reveal:nth-child(1) {
    transition-delay: 0s;
}
.feature-card.reveal:nth-child(2) {
    transition-delay: 0.08s;
}
.feature-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
}
.feature-card.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.hero-text,
.hero-actions,
.info-bar {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text {
    animation-delay: 0.3s;
}
.hero-actions {
    animation-delay: 0.45s;
}
.info-bar {
    animation-delay: 0.6s;
}

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

/* ----- MAINTENANCE PAGE ----- */
.maintenance-body {
    overflow-x: hidden;
}

.maintenance-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 204, 51, 0.02) 0px,
        rgba(255, 204, 51, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 2;
}

.maintenance-hero {
    padding: 80px 0 90px;
}

.maintenance-title {
    font-size: 56px;
    color: var(--gold);
}

.maintenance-title-alt {
    display: block;
    color: var(--orange);
    text-shadow:
        4px 4px 0 var(--brown),
        8px 8px 0 var(--brown-deep);
}

.maintenance-panel {
    margin: 12px auto 36px;
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
    max-width: 720px;
}

.maintenance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 2px dashed var(--line-strong);
}

.maintenance-value {
    color: var(--warn);
}

.loading-dots {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.dot-anim {
    display: inline-block;
    animation: dotPulse 1.2s steps(2) infinite;
}

.dot-anim:nth-child(1) {
    animation-delay: 0s;
}
.dot-anim:nth-child(2) {
    animation-delay: 0.3s;
}
.dot-anim:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0.15;
    }
}

.maintenance-log {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text-dim);
    background: var(--bg-deep);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 18px 20px;
    line-height: 1.7;
}

.maintenance-log p {
    opacity: 0;
    animation: logIn 0.3s ease forwards;
}

.maintenance-log p:nth-child(1) {
    animation-delay: 0.2s;
}
.maintenance-log p:nth-child(2) {
    animation-delay: 0.7s;
}
.maintenance-log p:nth-child(3) {
    animation-delay: 1.2s;
}
.maintenance-log p:nth-child(4) {
    animation-delay: 1.7s;
}
.maintenance-log p:nth-child(5) {
    animation-delay: 2.2s;
}

.log-err {
    color: var(--err);
}

.log-ok {
    color: var(--ok);
}

@keyframes logIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- BADGES / CHIPS ----- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    padding: 8px 14px;
    background: rgba(255, 204, 51, 0.08);
    border: 1px solid rgba(255, 204, 51, 0.3);
    border-radius: var(--r-pill);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.chip-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: blink 1.6s ease-in-out infinite;
}

.chip-wrap {
    display: flex;
    justify-content: center;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 760px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
        padding: 14px 20px;
    }

    .brand-logo {
        height: 32px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-logo {
        max-width: 92%;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-text {
        font-size: 19px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
        text-shadow:
            3px 3px 0 var(--brown),
            6px 6px 0 var(--brown-deep);
    }

    .maintenance-title {
        font-size: 36px;
    }

    .maintenance-title-alt {
        text-shadow:
            3px 3px 0 var(--brown),
            6px 6px 0 var(--brown-deep);
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 14px;
    }

    .info-value {
        font-size: 18px;
    }

    .maintenance-hero {
        padding: 50px 0 60px;
    }

    .maintenance-panel {
        padding: 20px;
    }

    .maintenance-log {
        font-size: 16px;
        padding: 14px 16px;
    }
}
