* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a; 
    color: #f3f4f6; 
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 700;
    color: white;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
button { cursor: pointer; border: none; font-family: 'Kanit', sans-serif; }

:root {
    --red: #dc2626;
    --red-hover: #b91c1c;
    --dark: #121212;
    --gray: #2a2a2a;
}

nav {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
}

.logo-box {
    background-color: var(--red);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-btn {
    background: none;
    color: #aaa;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-btn:hover { color: white; }
.nav-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--red);
    transition: 0.3s;
}
.nav-btn:hover::after { width: 100%; }

.discord-btn {
    background-color: #5865F2;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.discord-btn:hover { background-color: #4752c4; transform: translateY(-2px); }

main { padding-top: 80px; }

.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    margin-bottom: 20px;
    border-left: 5px solid var(--red);
    padding-left: 15px;
    font-size: 30px;
}

.hero {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.7), #0a0a0a), url('https://images.unsplash.com/photo-1607016284318-d1355374897c?q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 60px; margin-bottom: 10px; text-shadow: 0 0 20px var(--red); }
.hero p { font-size: 20px; color: #ccc; max-width: 600px; margin-bottom: 30px; }

.btn-red {
    background-color: var(--red);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
}
.btn-red:hover { background-color: var(--red-hover); box-shadow: 0 0 20px rgba(220,38,38,0.4); }

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    background: rgba(255,255,255,0.05);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background-color: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--red); }

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content { padding: 20px; }

.card-desc { color:#888; margin: 10px 0; }

.tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    color: #aaa;
}
.tag-active { color: var(--red); }

.launcher-box {
    background: linear-gradient(135deg, var(--gray), #1a1a1a);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.launcher-logo {
    width: 150px;
    height: 150px;
    background: #000;
    border: 3px solid var(--red);
    border-radius: 20px;
    display: flex;             
    justify-content: center;   
    align-items: center;       
    overflow: hidden;          
    padding: 0;                
    box-shadow: 0 0 30px rgba(220,38,38,0.3);
}

.launcher-logo img {
    width: 100%;      
    height: 100%;  
    object-fit: cover;  
}

.version-text { color: #aaa; margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.step-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--red);
    font-weight: bold;
    margin-bottom: 15px;
}
.step-desc { color:#888; font-size:14px; }

footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .nav-links, .discord-btn { display: none; } 
    .hero h1 { font-size: 40px; }
    .launcher-box { flex-direction: column; text-align: center; }
}

.discord-profile {
    background-color: #111214; 
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    max-width: 340px;
    width: 100%;
    margin: 0 auto; 
    text-align: left;
}

.discord-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.discord-banner {
    height: 60px;
    background-color: var(--red); 
    width: 100%;
}

.discord-avatar-box {
    position: absolute;
    top: 15px; 
    left: 16px;
}

.discord-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #111214; 
    background-color: #111214;
    object-fit: cover;
}

.discord-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background-color: #23a559; 
    border: 3px solid #111214;
    border-radius: 50%;
}

.discord-body {
    padding: 40px 16px 16px 16px; 
    background-color: #111214;
}

.discord-name {
    font-size: 20px;
    font-weight: 600;
    color: #f2f3f5;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discord-username {
    font-size: 14px;
    color: #b9bbbe;
    font-weight: 400;
    margin-bottom: 15px;
}

.discord-divider {
    height: 1px;
    background-color: #2f3136;
    margin: 10px 0;
}

.discord-role-header {
    font-size: 12px;
    font-weight: 700;
    color: #b9bbbe;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.discord-role-tag {
    display: inline-flex;
    align-items: center;
    background-color: #292b2f; /* สีพื้น Role */
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #e0e0e0;
    gap: 6px;
}

.role-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #99aab5; /* สีเทา default */
}

.dot-owner { background-color: var(--red); }
.dot-staff { background-color: #5865F2; }