
/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #08060f;
    --surface:   #100d1a;
    --violet:    #6d28d9;
    --violet2:   #7c3aed;
    --gold:      #f59e0b;
    --gold2:     #fbbf24;
    --magenta:   #c026d3;
    --frost:     #f0e6ff;
    --muted:     #7c6f99;
    --border:    rgba(109,40,217,.25);

    --radius: 18px;
    --font-display: 'Cinzel', serif;
    --font-body:    'Inter', sans-serif;
}

html {
    overflow-x: hidden;
}
body {
    background: var(--bg);
    color: var(--frost);
    font-family: var(--font-body);
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

/* ── Background atmosphere ──────────────────────────────────── */
.page-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 0%,   rgba(109,40,217,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 85% 100%,  rgba(192,38,211,.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 50%,   rgba(245,158,11,.05) 0%, transparent 60%);
}
.page-bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 15%, rgba(255,255,255,.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,.4) 0%, transparent 100%);
    background-size: 400px 400px;
    opacity: .6;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    gap: 28px;
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--frost) 40%, var(--gold2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.6;
}

.server-status {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(245,158,11,.3);
    background: rgba(245,158,11,.08);
    color: var(--gold2);
}
.server-status.online {
    border-color: rgba(74,222,128,.4);
    background: rgba(74,222,128,.08);
    color: #4ade80;
}
.server-status.offline {
    border-color: rgba(248,113,113,.4);
    background: rgba(248,113,113,.08);
    color: #f87171;
}

.hero-discord a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--violet), var(--violet2));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(109,40,217,.4);
    transition: transform .2s, box-shadow .2s;
}
.hero-discord a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(109,40,217,.55);
}

/* ── Floating chest ─────────────────────────────────────────── */
.floating-chest {
    position: fixed !important;
    top: auto !important;
    right: 24px;
    bottom: 24px;
    left: auto !important;
    height: auto !important;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 300px;
    background: linear-gradient(160deg, rgba(16,13,26,.97) 0%, rgba(24,18,40,.95) 100%);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 100px;
    padding: 12px 22px 12px 14px;
    text-decoration: none;
    box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 40px -15px var(--gold);
    transition: transform .25s, box-shadow .25s;
    animation: chestFloat 3s ease-in-out infinite;
    opacity: 1;
    transform: none;
}
.floating-chest:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.6), 0 0 50px -10px var(--gold);
}
@keyframes chestFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.floating-chest-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--gold));
}
.floating-chest-text { display: flex; flex-direction: column; line-height: 1.3; }
.floating-chest-mini {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.floating-chest-text strong {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--frost);
}
.floating-chest-text small {
    font-size: 11px;
    color: var(--gold2);
}

/* ── Info section ───────────────────────────────────────────── */
.info-section {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 24px 96px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.info-box {
    background: linear-gradient(160deg, rgba(16,13,26,.95) 0%, rgba(24,18,40,.9) 100%);
    border: 1px solid rgba(109,40,217,.2);
    border-radius: var(--radius);
    padding: 28px 26px;
    backdrop-filter: blur(8px);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.info-box:hover {
    transform: translateY(-4px);
    border-color: var(--violet2);
    box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 40px -15px var(--violet2);
}
.info-box h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold2);
    margin-bottom: 14px;
    letter-spacing: .02em;
}
.info-box p {
    font-size: 14px;
    color: rgba(240,230,255,.75);
    line-height: 1.8;
}

/* fade-in reveal, orchestrated on load/scroll */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.show { opacity: 1; transform: none; }

@media (max-width: 640px) {
    .info-section { grid-template-columns: 1fr; }
    .floating-chest { right: 14px; bottom: 14px; padding: 10px 16px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
