/* ═══════════════ VARIABLES ═══════════════ */
:root {
    --pink: #e94f8a;
    --pink-glow: rgba(233, 79, 138, 0.4);
    --violet: #7b2d8e;
    --violet-deep: #2d1b4e;
    --bg-dark: #1a1a2e;
    --bg-card: #2a2a3e;
    --bg-card-hover: #333350;
    --text: #e0d6e8;
    --text-dim: #8a7d9b;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-title: 'Georgia', 'Times New Roman', serif;
    --container: 1100px;
}

/* ═══════════════ RESET ═══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--pink); text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════ HERO ═══════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(45, 27, 78, 0.8) 50%, rgba(26, 26, 46, 0.9) 100%),
        url('../images/BANNIERE_NIMORIA.png') center center / cover no-repeat;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-logo {
    width: clamp(150px, 25vw, 280px);
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px rgba(233, 79, 138, 0.4));
    animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow:
        0 0 20px var(--pink-glow),
        0 0 60px rgba(123, 45, 142, 0.3),
        0 0 100px rgba(233, 79, 138, 0.15);
    animation: glow-pulse 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-dim);
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Server status widget */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    background: rgba(42, 42, 62, 0.7);
    border: 1px solid rgba(233, 79, 138, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}

.server-status.online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.server-status.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* CTA buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--pink);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--pink);
}

.btn-primary:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 0 20px var(--pink-glow), 0 0 40px rgba(233, 79, 138, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--pink);
    color: var(--pink);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    color: var(--text-dim);
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

/* ═══════════════ SECTIONS (common) ═══════════════ */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px var(--pink-glow);
}

.section-desc {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ═══════════════ FEATURES ═══════════════ */
#features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(45, 27, 78, 0.3) 50%, var(--bg-dark) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(233, 79, 138, 0.3);
    box-shadow: 0 0 30px rgba(233, 79, 138, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--pink);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ═══════════════ CLASSES ═══════════════ */
#classes {
    background: var(--bg-dark);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 79, 138, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.class-icon {
    margin-bottom: 0.75rem;
}

.class-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.class-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ═══════════════ SHOP ═══════════════ */
#shop {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(45, 27, 78, 0.3) 50%, var(--bg-dark) 100%);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.shop-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 79, 138, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.shop-card--featured {
    border: 2px solid var(--pink);
    background: linear-gradient(180deg, rgba(233, 79, 138, 0.1) 0%, var(--bg-card) 30%);
    transform: scale(1.05);
}

.shop-card--featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 12px 50px rgba(233, 79, 138, 0.3);
}

.shop-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--violet);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-card--featured .shop-badge {
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.shop-name {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #fff;
    margin: 1rem 0 0.5rem;
}

.shop-card[data-tier="vip"] .shop-name { color: #22c55e; }
.shop-card[data-tier="mvp"] .shop-name { color: #06b6d4; }
.shop-card[data-tier="elite"] .shop-name { color: #eab308; }

.shop-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 1.5rem;
}

.shop-card--featured .shop-price {
    text-shadow: 0 0 20px var(--pink-glow);
}

.shop-perks {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.shop-perks li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.shop-perks li:last-child {
    border-bottom: none;
}

.shop-perks li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--pink);
    font-size: 0.8rem;
}

.btn-shop {
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--pink);
    color: var(--pink);
}

.btn-shop:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 0 25px var(--pink-glow);
}

.btn-shop--featured {
    background: var(--pink);
    color: #fff;
}

.btn-shop--featured:hover {
    background: #fff;
    color: var(--pink);
    border-color: #fff;
}

.shop-more {
    text-align: center;
    margin-top: 1rem;
}

/* ═══════════════ MAP ═══════════════ */
#map {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(45, 27, 78, 0.2) 100%);
}

.map-frame {
    position: relative;
    border: 3px solid var(--violet);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow:
        0 0 30px rgba(123, 45, 142, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.map-runes {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.rune {
    position: absolute;
    font-size: 1.5rem;
    color: var(--violet);
    opacity: 0.6;
    animation: rune-glow 3s ease-in-out infinite;
}
.rune-tl { top: 8px; left: 12px; }
.rune-tr { top: 8px; right: 12px; animation-delay: 0.8s; }
.rune-bl { bottom: 50px; left: 12px; animation-delay: 1.6s; }
.rune-br { bottom: 50px; right: 12px; animation-delay: 2.4s; }

.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}

.map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-card);
    color: var(--text-dim);
    z-index: 1;
    transition: opacity 0.5s;
}

.map-fallback.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-fullscreen-btn {
    display: flex;
    justify-content: center;
    margin: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ═══════════════ LAUNCHER ═══════════════ */
#launcher {
    background: var(--bg-dark);
    padding: 80px 0;
}

.launcher-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.launcher-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.launcher-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.launcher-feature:hover {
    transform: translateX(4px);
    border-color: rgba(139, 92, 246, 0.4);
}
.launcher-feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.launcher-feature strong {
    display: block;
    margin-bottom: 4px;
    color: white;
    font-size: 1rem;
}
.launcher-feature p {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin: 0;
}

.launcher-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.launcher-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.launcher-note {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 16px;
}
.launcher-version {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 8px;
    opacity: 0.7;
}

.btn-launcher {
    background: linear-gradient(135deg, #8B5CF6, #EC4899) !important;
    color: white !important;
    border: none !important;
}
.btn-launcher:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .launcher-content {
        grid-template-columns: 1fr;
    }
    .launcher-download {
        padding: 24px;
    }
}

/* ═══════════════ STAFF ═══════════════ */
#staff {
    background: var(--bg-dark);
    text-align: center;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 200px;
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-4px);
}

.staff-avatar-wrap {
    position: relative;
    width: 128px;
    height: 128px;
}

.staff-aura {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.4) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

.staff-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 12px;
    border: 3px solid var(--violet);
    z-index: 1;
}

.staff-name {
    font-size: 1.3rem;
    color: #fff;
}

.staff-role {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.staff-role--creator {
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff;
}

/* ═══════════════ FOOTER ═══════════════ */
#footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
}

.footer-ip-btn {
    background: none;
    border: 1px solid rgba(233, 79, 138, 0.3);
    color: var(--pink);
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.footer-ip-btn:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 0 15px var(--pink-glow);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* ═══════════════ TOAST ═══════════════ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--pink);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 100;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ═══════════════ SCROLL ANIMATIONS ═══════════════ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

.classes-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.classes-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.classes-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.classes-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.classes-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }
.classes-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.48s; }

/* ═══════════════ KEYFRAMES ═══════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes rune-glow {
    0%, 100% { opacity: 0.3; text-shadow: 0 0 8px var(--violet); }
    50% { opacity: 0.9; text-shadow: 0 0 20px var(--pink); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
    section { padding: 3rem 0; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .class-card {
        padding: 1.25rem 1rem;
    }

    .class-icon svg {
        width: 40px;
        height: 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .classes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
