:root {
    --bg-main: #0b0d12;
    --bg-card: #141720;
    --bg-card-hover: #1c212e;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --discord-color: #5865f2;
    --discord-hover: #4752c4;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-color: #262c3a;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 13, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background-color: rgba(20, 23, 32, 0.4);
    border-radius: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, rgba(11, 13, 18, 1) 70%);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.badge-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.ip-text {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: bold;
}

.version-tag {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-discord {
    background-color: var(--discord-color);
    color: #fff;
}

.btn-discord:hover {
    background-color: var(--discord-hover);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background-color: var(--bg-card-hover);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Rules */
.rules-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 2.5rem;
    border-radius: 10px;
}

.rules-list {
    padding-left: 1.2rem;
}

.rules-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.rules-list strong {
    color: var(--text-primary);
}

/* How to Join */
.join-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.join-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.join-instructions {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Discord Section */
.discord-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.discord-card h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.discord-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.discord-link {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--discord-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--accent);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.8rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}
