:root {
    --bg: #05080f;
    --bg-card: #0d111b;
    --bg-darker: #080b14;
    --primary: #2ecc71;
    --primary-glow: rgba(46, 204, 113, 0.4);
    --text: #ffffff;
    --text-dim: #94a3b8;
    --wa: #25d366;
    --dc: #5865f2;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

nav {
    height: 80px;
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

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

.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 800;
    line-height: 1.2;
}

.tagline {
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: 16px;
}

.status-card {
    background: var(--bg-card);
    max-width: 450px;
    margin: 0 auto 50px;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

#player-count {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.1);
}

#status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

#status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tutorial-grid, .role-grid, .community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-num {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}

.steps-list {
    text-align: left;
    margin: 15px 0;
}

.steps-list ol {
    padding-left: 18px;
}

.steps-list li {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.key-highlight {
    color: var(--primary);
    font-weight: 700;
}

.path-code {
    display: block;
    background: rgba(0,0,0,0.4);
    padding: 8px;
    border-radius: 8px;
    font-size: 11px;
    margin: 5px 0;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
}

.copy-wrapper {
    background: #05080f;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.copy-header {
    background: rgba(255,255,255,0.03);
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.copy-wrapper textarea {
    width: 100%;
    height: 100px;
    background: transparent;
    border: none;
    padding: 15px;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    resize: none;
    outline: none;
    line-height: 1.5;
}

.btn-copy-neon {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy-neon:hover {
    filter: brightness(1.1);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-main {
    background: var(--primary);
    color: #000;
    margin-right: 15px;
}

.btn-sub {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

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

.btn-outline {
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.btn-wa {
    background: var(--wa);
    color: #fff;
    width: 100%;
    margin-top: 15px;
}

.btn-dc {
    background: var(--dc);
    color: #fff;
    width: 100%;
    margin-top: 15px;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--text-dim);
    max-width: 600px;
    margin: 10px auto;
}

.role-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.role-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.command-box {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.command-box p {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.command-box ul {
    list-style: none;
}

.command-box li {
    font-family: monospace;
    font-size: 13px;
    color: #fff;
    margin-bottom: 5px;
}

.scrollable {
    height: 150px;
    overflow-y: auto;
}

.comm-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.wa i { color: var(--wa); }
.dc i { color: var(--dc); }

footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: var(--text-dim);
    font-size: 13px;
}

.footer-credit p {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .status-card {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    .stat-divider {
        width: 80%;
        height: 1px;
    }
    .btn-main {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    .btn-sub {
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.copy-body {
    padding: 15px;
    display: flex;
    align-items: center;
}

.copy-body input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis; /* Agar link panjang terpotong rapi dengan titik-titik */
}

/* Memastikan kartu tutorial memiliki tinggi yang sama agar rapi */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: stretch; /* Membuat semua kartu tingginya sama */
}

.tutorial-card {
    display: flex;
    flex-direction: column;
}

.mt-auto {
    margin-top: auto; /* Memaksa kotak copy selalu berada di paling bawah kartu */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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