@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "HelveticaNeue";
    src: url("../fonts/HelveticaNeue.ttc") format("truetype-collection");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --bg: #0b0d12;
    --bg-soft: #0f1219;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --accent: #22d3ee;
    --text: #e6e7ea;
    --muted: #9ca3af;
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 40px rgba(99, 102, 241, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", "HelveticaNeue", system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -80px;
    right: -80px;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-2);
    top: 40%;
    right: 10%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 70%);
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: min(1200px, 90%);
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: rgba(88, 101, 242, 0.35);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 14px 22px;
    font-size: 1rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.hero {
    min-height: 100vh;
    padding-top: 110px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 20px;
    width: min(1200px, 90%);
    margin: 0 auto;
    position: relative;
    text-align: center;
    justify-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(99, 102, 241, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-wordmark {
    width: min(420px, 80%);
    margin: 0 auto 10px;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.45));
}

.title-accent {
    display: block;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 28px auto;
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: 22px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.copied-text {
    display: none;
}

.btn.copied .ip-text {
    display: none;
}

.btn.copied .copied-text {
    display: inline;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.6s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 10px); }
}

.section {
    padding: 100px 0;
}

.page-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    margin: 12px 0;
}

.page-hero p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

.page-section {
    padding: 80px 0;
}

.page-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.page-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
}

.page-card h3 {
    margin-bottom: 10px;
}

.page-card p {
    color: var(--muted);
}

.highlight-card {
    padding: 32px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-align: center;
}

.highlight-card ul {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 10px;
    color: var(--text);
}

.highlight-card li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.support-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 18px 0 8px;
    flex-wrap: wrap;
}

.support-note {
    color: var(--muted);
}

.team-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card {
    padding: 22px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.55);
}

.team-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 14px;
}

.team-avatar {
    width: 104px;
    height: 104px;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.25);
}

.team-meta h3 {
    margin: 0;
    line-height: 1.1;
}

.team-meta {
    text-align: center;
}

.team-role {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.team-bio {
    color: var(--muted);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.section-desc {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.gamemode-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tab-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.tab-status.live {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.tab-status.soon {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
}

.tab-icon img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gamemode-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.gamemode-panel {
    display: none;
    gap: 30px;
    align-items: center;
}

.gamemode-panel.active {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.panel-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mode-icon-large {
    font-size: 4rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge.live {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-badge.soon {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.panel-desc,
.panel-subdesc {
    color: var(--muted);
    margin-bottom: 14px;
}

.feature-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
}

.features-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    margin-bottom: 12px;
}

.community-content {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.discord-features {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.discord-feature {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--card);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.btn-discord-large {
    background: #5865f2;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-discord-large:hover {
    background: #4752c4;
}

.server-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.server-icon {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #22c55e;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.server-stat {
    text-align: center;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--muted);
}

.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(15, 18, 25, 0.6);
}

.footer-content {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.2fr 1.8fr;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-col h4 {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-ip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(22, 163, 74, 0.2);
    color: #22c55e;
    border: 1px solid rgba(22, 163, 74, 0.4);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .gamemode-panel.active {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .community-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-menu {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        background: rgba(11, 13, 18, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
        transform: translateY(-100%);
        transition: transform 0.3s ease, top 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.open {
        top: 70px;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
