:root {
    --primary: #2ecc71; /* Emerald */
    --primary-glow: rgba(46, 204, 113, 0.4);
    --secondary: #f1c40f; /* Gold */
    --accent: #3498db; /* Diamond */
    --dark: #0a0a0b;
    --dark-surface: #121214;
    --text: #ffffff;
    --text-muted: #a0a0a5;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Glass Navbar */
.glass-nav {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 11, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text);
}

.server-status-pill {
    background: var(--glass);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1.5rem;
    background: var(--glass);
    padding: 0.25rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
}

.lang-btn:hover:not(.active) {
    color: var(--text);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/hero-bg.png') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 11, 0.5) 0%, rgba(10, 10, 11, 0.95) 100%);
}

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #efeff2; /* Brighter than muted */
    max-width: 600px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Copy IP Button Special */
#copy-ip {
    flex-direction: column;
    padding: 0.75rem 2rem;
    line-height: 1.2;
}
/* Specs Page Styles */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.spec-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.spec-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.spec-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.system-description {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.system-description h2 {
    margin-bottom: 1.5rem;
}

.system-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.ip-text {
    font-size: 1.1rem;
}

.copy-hint {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Section styling */
.section {
    padding: 8rem 0;
}

.section-dark {
    background: var(--dark-surface);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Join Steps */
.join-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.step {
    flex: 1;
    max-width: 250px;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 3rem !important;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-left: 1px solid var(--glass-border);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list a {
        font-size: 1.5rem;
    }

    /* Animation for hamburger */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-grid, .features-grid, .join-steps {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .join-steps {
        gap: 2rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Lore & Rules Specific Styles */
.lore-hero {
    height: 60vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lore-content {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.lore-text.glass {
    max-width: 900px !important;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    padding: 3rem;
    background: rgba(10, 10, 11, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    text-align: left;
}

.lore-text h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.lore-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Fix join button alignment */
.join-btn-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.hero-subtitle {
    margin-bottom: 2rem !important;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-accent {
    color: var(--primary);
    font-weight: 800;
}

/* Unified Ad Wrapper */
.ad-wrapper {
    margin: 4rem auto;
    max-width: 900px; /* Matches .lore-text.glass */
    width: 100%;
}

.ad-wrapper .glass {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.ad-content {
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Sticky Ad */
.sticky-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-ad.visible {
    transform: translateX(0);
}

.sticky-ad .glass {
    padding: 1rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-ad-close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .sticky-ad {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}



