/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ================= BODY ================= */
body {
    position: relative;
    background-color: #eef6d8;
    overflow-x: hidden;
    color: #2e4f2f;
}

/* ================= PARALLAX PATTERN ================= */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background-image: url("../asset/bg.png");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* BACK LAYER */
body::before {
    background-size: 340px 340px;
    opacity: 0.18;
    animation: driftSlow 120s linear infinite;
    transform: translate3d(-120px, -80px, 0);
}

/* FRONT LAYER */
body::after {
    background-size: 220px 220px;
    opacity: 0.28;
    animation: driftFast 60s linear infinite;
    transform: translate3d(90px, 140px, 0);
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    backdrop-filter: blur(12px);
    background: rgba(247,255,232,.85);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-brand img {
    width: 34px;
}

.nav-brand span {
    font-size: 16px;
    color: #2e4f2f;
}

/* LINKS */
.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #2e4f2f;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #4caf50;
    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* TOGGLE */
.nav-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* ================= MAIN ================= */
#main-site {
    position: relative;
    z-index: 1;
    padding: 120px 20px 60px; /* offset navbar */
}

/* BACKDROP FOR CONTENT */
#main-site::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: rgba(247,255,232,.85);
    z-index: -1;
}

/* ================= LOADING SCREEN ================= */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #eef6d8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity .6s ease;
    overflow: hidden;
}

/* LOADING PARALLAX */
#loading-screen::before,
#loading-screen::after {
    content: "";
    position: absolute;
    inset: -30%;
    background-image: url("../asset/bg.png");
    background-repeat: repeat;
    pointer-events: none;
}

/* LOADING BACK */
#loading-screen::before {
    background-size: 300px 300px;
    opacity: 0.22;
    animation: driftSlow 90s linear infinite;
    transform: translate3d(-100px, -60px, 0);
}

/* LOADING FRONT */
#loading-screen::after {
    background-size: 200px 200px;
    opacity: 0.32;
    animation: driftFast 45s linear infinite;
    transform: translate3d(80px, 120px, 0);
}

/* LOADING CONTENT */
#loading-screen * {
    position: relative;
    z-index: 1;
}

.loading-logo {
    width: 150px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-title {
    margin-top: 18px;
    font-size: 22px;
}

.loading-sub {
    margin-top: 12px;
    font-size: 14px;
    opacity: .75;
}

/* ================= PROGRESS BAR ================= */
.progress-wrapper {
    width: 320px;
    height: 14px;
    margin-top: 24px;
    border-radius: 30px;
    background: rgba(255,255,255,.65);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 30px;
    background: linear-gradient(120deg,#d4b96a,#4caf50,#d4b96a);
    background-size: 220% 100%;
    animation: wave 1.6s linear infinite;
}

/* ================= HERO ================= */
.hero {
    text-align: center;
    max-width: 900px;
    margin: auto;
    animation: fadeUp 1s ease forwards;
}

.hero-logo { width: 160px; }

.hero h1 {
    font-size: 54px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.hero p {
    margin-top: 16px;
    font-size: 18px;
    opacity: .85;
}

/* ================= STATS ================= */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
    max-width: 900px;
    margin: 60px auto;
}

.stat-card {
    background: rgba(255,255,255,.9);
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(0,0,0,.08);
}

/* ================= CONTENT ================= */
.content {
    max-width: 900px;
    margin: 80px auto;
}

.content.alt {
    background: rgba(255,255,255,.9);
    padding: 40px;
    border-radius: 28px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 64px;
        right: 20px;
        background: rgba(247,255,232,.95);
        border-radius: 14px;
        flex-direction: column;
        gap: 16px;
        padding: 16px 22px;
        display: none;
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }

    .nav-links.show { display: flex; }
    .nav-toggle { display: block; }

    /* MOBILE PATTERN DENSITY */
    body::before {
        background-size: 520px 520px;
        opacity: 0.14;
        animation-duration: 180s;
    }

    body::after {
        background-size: 380px 380px;
        opacity: 0.18;
        animation-duration: 120s;
    }

    .hero h1 { font-size: 40px; }
    .hero-logo { width: 130px; }
}

/* ================= ANIMATIONS ================= */
@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wave {
    to { background-position: 220% 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes driftSlow {
    from { transform: translate3d(-120px,-80px,0); }
    to   { transform: translate3d(120px,80px,0); }
}

@keyframes driftFast {
    from { transform: translate3d(80px,120px,0); }
    to   { transform: translate3d(-80px,-120px,0); }
}

/* ================= HOLDERS TABLE ================= */
.holders-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.holders-table thead {
    background: rgba(76,175,80,.12);
}

.holders-table th,
.holders-table td {
    padding: 14px 16px;
    font-size: 14px;
    text-align: left;
}

.holders-table th {
    font-weight: 600;
    opacity: .7;
}

.holders-table tbody tr {
    border-top: 1px solid rgba(0,0,0,.05);
}

.holders-table tbody tr:hover {
    background: rgba(76,175,80,.06);
}

.holders-table td:nth-child(1) {
    width: 50px;
    font-weight: 600;
}

.holders-table td:nth-child(2) {
    font-family: monospace;
}

@media (max-width: 600px) {
    .holders-table th,
    .holders-table td {
        font-size: 13px;
        padding: 12px;
    }
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  /* kunci zoom gesture tambahan */
  html, body {
    touch-action: pan-y;
    overscroll-behavior: none;
  }

  /* NAVBAR FIX */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
  }

  /* JARAK KONTEN DARI NAVBAR */
  #main-site {
    padding-top: 90px;
  }

}
