
/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;

    overflow-x: hidden;
    overflow-y: hidden; /* FIX: hilangkan scrollbar desktop */
}

/* =========================
   BODY
========================= */

body {
    padding: 5px;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: 100%;
    height: calc(100vh - 10px); /* FIX: stabil full layar */

    border: 1px solid #24ff68;
    border-radius: 24px;

    box-shadow:
        0 0 8px #24ff68,
        0 0 20px rgba(36,255,104,.35);

    display: flex;
    flex-direction: column;

    overflow: hidden; /* tetap aman */
}

/* =========================
   NAVBAR
========================= */

.navbar {
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    flex-shrink: 0; /* FIX: cegah layout turun */
}

/* LOGO */
.logo img {
    height: 58px;
}

/* =========================
   MENU DESKTOP
========================= */

.menu {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav-link {
    background: none;
    border: none;

    color: #fff;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    position: relative;
}

.nav-link.active {
    color: #4cff73;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 100%;
    height: 3px;

    border-radius: 50px;
    background: #4cff73;
}

/* =========================
   NAV RIGHT
========================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    height: 42px;
    padding: 0 18px;

    border: 1px solid #24ff68;
    border-radius: 12px;

    background: transparent;
    color: #fff;

    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
}

/* =========================
   CONTENT
========================= */

#content-area {
    flex: 1;

    padding: 0 25px 20px;

    overflow: hidden; /* FIX: cegah scroll dalam container */
}

/* PAGE SYSTEM */
.page {
    display: none;
    height: 100%;
}

.page.active-page {
    display: block;
}

/* =========================
   HERO (FIX ALIGN + NO CUT)
========================= */

.hero-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;

    height: calc(100vh - 92px - 10px); /* FIX: anti kepotong */
    gap: 10px;
}

/* LEFT */
.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 850px;
    object-fit: contain;
}

/* RIGHT */
.hero-right h1 {
    font-size: 44px;
    line-height: 1.2;
    color: #fff;
}

.hero-right .green {
    color: #4cff73;
}

.hero-right p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
    color: #d0d0d0;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 18px;
    display: flex;
    gap: 14px;
}

.primary-btn,
.secondary-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    cursor: pointer;
}

.primary-btn {
    background: #4cff73;
    border: none;
    color: #000;
    font-weight: 600;
}

.secondary-btn {
    background: transparent;
    border: 1px solid #24ff68;
    color: #fff;
}

/* STATS */
.stats-box {
    margin-top: 16px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    padding: 14px;
    border-radius: 16px;

    border: 1px solid rgba(76,255,115,.15);
    background: rgba(76,255,115,.03);
}

.stat {
    text-align: center;
}

.stat h3 {
    color: #fff;
}

.stat span {
    font-size: 11px;
    color: #ccc;
}


/* =========================
   RESPONSIVE FIX MOBILE FINAL
========================= */

@media (max-width: 768px) {

    body {
        padding: 5px;
    }

    .navbar {
        padding: 0 18px;
    }

    /* MENU MOBILE */
    .menu {
        position: absolute;
        top: 92px;
        left: 10px;
        right: 10px;

        display: none;
        flex-direction: column;
        gap: 16px;

        padding: 18px;

        background: rgba(0,0,0,0.95);
        border: 1px solid #24ff68;
        border-radius: 16px;

        z-index: 9999;
    }

    .menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* =========================
       HERO FIX MOBILE (INI INTI FIX)
    ========================= */

    #content-area {
        padding: 0 15px 10px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        /* 🔥 INI YANG NAIKIN HERO KE ATAS */
        align-content: start;
        justify-content: center;

        gap: 10px;

        /* jangan paksa full height */
        height: auto;

        text-align: center;
    }

    .hero-left {
        margin-top: -10px; /* naik sedikit biar dekat navbar */
    }

    .hero-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-right {
        margin-top: -10px; /* 🔥 naikkan teks hero */
    }

    .hero-right h1 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-right p {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* STATS FIX - jangan sampai hilang */
    .stats-box {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 12px;
    }
}