:root {
    --bg-color: #08050d;
    --surface-color: #161021;
    --primary-accent: #c4b5d6;
    --brand-color: #b338ff;
    --brand-dark: #7a26b3;
    --brand-glow: rgba(179, 56, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #8e859e;
    --font-tactical: 'Chakra Petch', sans-serif;
    --font-data: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: var(--font-body); 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    overflow-x: hidden; 
    width: 100%; 
}

h1, h2, h3, h4, .tactical-font { 
    font-family: var(--font-tactical); 
    letter-spacing: 1px; 
}

.data-font { 
    font-family: var(--font-data) !important; 
    letter-spacing: 1px; 
}

hr { 
    display: none; 
}

nav {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 20px 50px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(8, 5, 13, 0.95); 
    backdrop-filter: blur(10px);
    z-index: 100; 
    border-bottom: 1px solid rgba(179, 56, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 45px; 
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a { 
    color: var(--primary-accent); 
    text-decoration: none; 
    margin-left: 35px; 
    font-weight: 600; 
    font-size: 16px; 
    transition: 0.3s; 
    font-family: var(--font-tactical); 
    text-transform: uppercase; 
}

.nav-links a:hover { 
    color: var(--brand-color); 
    text-shadow: 0 0 10px var(--brand-glow); 
}

#hero {
    min-height: 100vh;
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    position: relative; 
    text-align: center; 
    background-color: var(--bg-color); 
    overflow: hidden;
    padding: 100px 20px 60px;
}

#hero::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-color: var(--brand-color);
    opacity: 0.15;
    z-index: 0; 
    -webkit-mask-image: url('https://i.imgur.com/TrYAiLC.png');
    mask-image: url('https://i.imgur.com/TrYAiLC.png');
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center;
    mask-position: center;
}

#tactical-canvas { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
    opacity: 0.8; 
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 85%);
}

#hero::before, 
#tactical-canvas {
    transform: translateY(86px);
}

#hero::after {
    content: ''; 
    position: absolute; 
    bottom: -5px; 
    left: 0; 
    width: 100%; 
    height: 45%;
    background: linear-gradient(to bottom, rgba(8, 5, 13, 0) 0%, var(--bg-color) 70%, var(--bg-color) 100%);
    z-index: 2; 
    pointer-events: none;
}

.hero-content {
    background: rgba(8, 5, 13, 0.75); 
    padding: 50px; 
    border-radius: 4px; 
    border: none; 
    backdrop-filter: blur(10px); 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); 
    z-index: 3;
    max-width: 850px; 
    width: 90%; 
    margin: 0 auto;
}

.subtitle { 
    font-size: 2.1rem; 
    font-weight: 600; 
    color: var(--brand-color); 
    margin-bottom: 25px; 
    letter-spacing: 2px; 
    min-height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}

#terminal-text::after {
    content: '_';
    font-weight: bold;
    color: var(--brand-color);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p { 
    font-size: 1.15rem; 
    color: var(--primary-accent); 
    max-width: 700px; 
    line-height: 1.6; 
    margin: 0 auto 35px auto; 
}

.btn { 
    padding: 15px 40px; 
    border: 2px solid var(--brand-color); 
    color: var(--brand-color); 
    font-size: 18px; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    transition: 0.3s; 
    display: inline-block; 
    background: rgba(179, 56, 255, 0.05); 
}

.btn:hover { 
    background: var(--brand-color); 
    color: #000; 
    box-shadow: 0 0 20px var(--brand-glow); 
}

.section { 
    padding: 80px 20px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.content-wrap {
    background-color: rgba(22, 16, 33, 0.6);
    border: 1px solid rgba(179, 56, 255, 0.15); 
    border-radius: 4px; 
    padding: 60px 40px; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto;
}

.content-wrap.no-bg { 
    background: transparent; 
    border: none; 
    padding-bottom: 20px; 
}

.section-title { 
    font-size: 3.2rem; 
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 50px; 
    text-transform: uppercase; 
}

.section-title span { 
    color: var(--brand-color); 
    text-shadow: 0 0 10px var(--brand-glow); 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 80px; 
    height: 3px; 
    background: var(--brand-color); 
    margin: 15px auto 0; 
    box-shadow: 0 0 10px var(--brand-glow); 
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.about-text p { 
    margin-bottom: 20px; 
    line-height: 1.8; 
    color: var(--primary-accent); 
    font-size: 1.1rem; 
}

.stat-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
} 

.stat-box { 
    background: var(--surface-color); 
    padding: 25px; 
    border: none; 
    border-left: 3px solid var(--brand-color); 
}

.stat-number, #players-total, #gs-count, #gs1-players, #gs2-players { 
    font-size: 2.2rem; 
    color: var(--brand-color); 
    line-height: 1; 
    font-weight: 700; 
}

.stat-label { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-top: 8px; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.server-list.stacked { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    width: 100%; 
}

.server-card {
    background: var(--surface-color); 
    padding: 30px 40px;
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: all 0.3s ease; 
    width: 100%;
    border: none;
    border-left: 6px solid var(--brand-color); 
}

.server-card::before { 
    display: none; 
}

.server-list.stacked .server-card:hover { 
    transform: translateY(-4px); 
    background: #1c1429; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 
}

.server-status { 
    position: absolute; 
    top: 25px; 
    left: 40px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13px; 
    font-weight: 700; 
    color: #4CAF50; 
}

.status-dot { 
    width: 10px; 
    height: 10px; 
    background: #4CAF50; 
    border-radius: 50%; 
}

.status-dot.pulsing { 
    animation: pulse 1.5s infinite; 
}

.server-card h3 { 
    font-size: 1.7rem; 
    font-weight: 600; 
    margin: 15px 0 10px 0; 
    padding-top: 20px; 
    color: var(--text-main); 
    line-height: 1.2; 
    word-break: break-word; 
    text-transform: uppercase; 
}

.server-details { 
    list-style: none; 
    margin-top: auto; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding-top: 15px; 
}

.server-details li { 
    color: var(--primary-accent); 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    font-size: 1.1rem; 
    font-family: var(--font-tactical); 
    font-weight: 600; 
}

.server-details span { 
    color: var(--brand-color); 
    margin-left: 15px; 
    font-size: 1.1rem; 
    font-weight: 700 !important; 
}

#ts-count {
    font-size: 1.4rem !important;
}

.server-list:not(.stacked) { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.util-center-content h3 { 
    text-align: center; 
    width: 100%; 
}

.discord-big-number-layout { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 30px 0; 
}

.discord-online-count-big-number { 
    font-size: 9rem; 
    color: var(--brand-color); 
    line-height: 1; 
    text-shadow: 0 0 25px var(--brand-glow); 
}

.discord-online-text { 
    font-size: 1.3rem; 
    color: var(--text-muted); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
}

.join-ip { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid var(--brand-dark); 
    color: var(--brand-color); 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-top: 15px; 
    text-decoration: none; 
}

.join-ip:hover { 
    background: var(--brand-color); 
    color: #000; 
    box-shadow: 0 0 15px var(--brand-glow); 
}

.join-ip.text-faded {
    color: transparent !important;
}

.ts-tree-container { 
    background: rgba(0, 0, 0, 0.3); 
    padding: 15px; 
    border-radius: 4px; 
    margin-bottom: 20px; 
    max-height: 180px; 
    overflow-y: auto; 
    margin-top: auto; 
    font-size: 0.95rem; 
    border: 1px solid rgba(179, 56, 255, 0.1); 
}

#ts-tree-root { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.ts-channel { 
    color: var(--brand-color); 
    font-weight: 700; 
    margin-top: 8px; 
}

.ts-user { 
    color: var(--primary-accent); 
    padding-left: 15px; 
    font-size: 0.9rem; 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

footer { 
    background: var(--bg-color); 
    text-align: center; 
    padding: 60px 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

section#servers { 
    padding-bottom: 20px; 
}

section#discord-section { 
    padding-top: 20px; 
}

@media (max-width: 1000px) { 
    .about-grid { grid-template-columns: 1fr; }
    .server-list:not(.stacked) { grid-template-columns: 1fr; }
    .discord-online-count-big-number { font-size: 7rem; }
    nav { flex-direction: column; padding: 15px 20px; gap: 15px; }
    .nav-links a { margin: 0 15px; }
}

@media (max-width: 650px) {
    nav { padding: 15px 10px; }
    .nav-logo { height: 35px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .nav-links a { margin: 0 8px; font-size: 13px; }
    #hero::before {
        opacity: 0.20; 
        -webkit-mask-size: cover;
        mask-size: cover;
        -webkit-mask-position: 53% 22%; 
        mask-position: 53% 22%;
    }
    #tactical-canvas {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 95%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 95%);
    }
    #hero::before, 
    #tactical-canvas {
        transform: translateY(66px);
    }
    #hero::after {
        height: 50%;
        background: linear-gradient(to bottom, rgba(8, 5, 13, 0) 0%, var(--bg-color) 80%, var(--bg-color) 100%);
    }
    .hero-content { 
        padding: 35px 20px; 
        width: 92%; 
        background: rgba(8, 5, 13, 0.45); 
    }
    .subtitle { font-size: 1.4rem; flex-wrap: wrap; text-align: center; height: auto; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    .btn { padding: 12px 25px; font-size: 15px; }
    .section { padding: 50px 15px; }
    .content-wrap { padding: 40px 20px; border: 1px solid rgba(179, 56, 255, 0.15); }
    .section-title { font-size: 2.2rem; margin-bottom: 35px; }
    .stat-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-box { padding: 20px; text-align: center; border-left: 4px solid var(--brand-color); }
    .server-card { padding: 20px; border-left-width: 4px; }
    .server-status { top: 15px; left: 20px; font-size: 11px; }
    .server-card h3 { font-size: 1.4rem; padding-top: 25px; }
    .server-details li { font-size: 0.95rem; justify-content: space-between; }
    .server-details span { font-size: 0.95rem; margin-left: 0; }
    .discord-online-count-big-number { font-size: 5rem; }
    .discord-online-text { font-size: 1rem; letter-spacing: 2px; }
    .discord-big-number-layout { padding: 15px 0; }
}

@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        justify-content: flex-start;
        padding-top: 120px;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}
