:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #12131c;
    --bg-card: rgba(23, 25, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 170, 50, 0.3);
    
    --text-primary: #f5f6fa;
    --text-secondary: #9aa0b4;
    --text-muted: #6b7280;
    
    --accent-gold: #f59e0b;
    --accent-orange: #ea580c;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    
    --glow-gold: rgba(245, 158, 11, 0.18);
    --glow-purple: rgba(139, 92, 246, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background layers */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(234, 88, 12, 0.1) 0%, transparent 45%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5);
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 11, 16, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 10px var(--accent-gold));
}

.logo-accent {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 16px var(--glow-gold);
}

/* Hero */
.hero {
    padding-top: 150px;
    padding-bottom: 70px;
    text-align: center;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin-bottom: 40px;
}

/* IP Card */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.ip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 16px 12px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    max-width: 480px;
    width: 100%;
}

.ip-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    box-shadow: 0 0 28px var(--glow-gold);
    transform: translateY(-2px);
}

.ip-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.ip-address {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.ip-copy-button {
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.ip-card:hover .ip-copy-button {
    background: #fcd34d;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.hero-quick-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.online {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* Status Card */
.server-status-section {
    padding-bottom: 50px;
}

.status-card {
    padding: 24px 32px;
}

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

.status-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-beacon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 14px var(--accent-green);
    display: inline-block;
}

.status-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.status-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-metrics {
    display: flex;
    align-items: center;
    gap: 36px;
}

.metric {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.section {
    padding: 90px 0;
    position: relative;
}

.alt-bg {
    background: linear-gradient(180deg, rgba(18, 19, 28, 0.4) 0%, rgba(10, 11, 16, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.event-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(30, 24, 20, 0.8) 0%, rgba(23, 25, 38, 0.8) 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

.event-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.flame-badge { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.blood-badge { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.quiz-badge { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.autumn-badge { background: rgba(234, 88, 12, 0.15); border: 1px solid rgba(234, 88, 12, 0.3); }

.event-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.event-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.card-footer-pill {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Spheres Grid */
.spheres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sphere-card {
    padding: 26px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sphere-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 0 24px currentColor;
    transition: var(--transition);
}

.sphere-card:hover .sphere-orb {
    transform: scale(1.12);
}

.sphere-strength { background: radial-gradient(circle, #f87171, #dc2626); color: rgba(220, 38, 38, 0.6); }
.sphere-speed { background: radial-gradient(circle, #67e8f9, #0284c7); color: rgba(2, 132, 199, 0.6); }
.sphere-life { background: radial-gradient(circle, #86efac, #16a34a); color: rgba(22, 163, 74, 0.6); }
.sphere-defense { background: radial-gradient(circle, #fde047, #d97706); color: rgba(217, 119, 6, 0.6); }
.sphere-wind { background: radial-gradient(circle, #f472b6, #db2777); color: rgba(219, 39, 119, 0.6); }

.sphere-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sphere-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.sphere-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.sphere-balance-note {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
}

.note-icon {
    font-size: 2.2rem;
}

.note-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 6px;
}

.note-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Bosses */
.bosses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
}

.boss-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.boss-image-placeholder {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.void-bg {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(10, 11, 16, 0.95) 80%);
}

.reaper-bg {
    background: radial-gradient(circle, rgba(234, 88, 12, 0.25) 0%, rgba(10, 11, 16, 0.95) 80%);
}

.boss-badge-type {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.boss-silhouette {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.void-avatar {
    background: radial-gradient(circle, #8b5cf6, #3b0764);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.reaper-avatar {
    background: radial-gradient(circle, #f97316, #7c2d12);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
}

.boss-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.boss-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.boss-location {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 16px;
}

.boss-narrative {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.boss-loot-box {
    margin-top: auto;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loot-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.loot-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Rules */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.rule-card {
    padding: 32px 24px;
    position: relative;
}

.rule-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.rule-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.rule-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Commands */
.commands-list {
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
}

.command-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.command-row:last-child {
    border-bottom: none;
}

.cmd-code {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.cmd-desc {
    flex-grow: 1;
}

.cmd-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.cmd-narrative {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 70px 0 40px 0;
    border-top: 1px solid var(--border-color);
    background: #07080b;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left {
    max-width: 480px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-ip-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-ip-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition);
}

.footer-ip-badge:hover {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.1);
}

.f-ip {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.f-copy {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #181a24;
    border: 1px solid var(--accent-gold);
    padding: 14px 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px var(--glow-gold);
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-metrics {
        width: 100%;
        justify-content: space-between;
    }
    
    .command-row {
        flex-direction: column;
        gap: 10px;
    }
}
