@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================= SPLASH SCREEN ================= */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s;
}

.logo-g {
    font-size: 6rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-blue);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    animation: pulseLogo 1.5s infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.8)); -webkit-text-stroke: 2px var(--accent-purple); }
}

/* ================= CONTAINER SEAMLESS ================= */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Backgound Glowing Effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.top-glow {
    top: -50px; left: -50px;
    width: 250px; height: 250px;
    background: rgba(59, 130, 246, 0.5);
}
.center-glow {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: rgba(168, 85, 247, 0.3);
}

/* ================= HEADER ================= */
.header { text-align: center; margin-bottom: 3rem; }
.header h1 {
    font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.header p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }

/* ================= BUTTONS ================= */
.main-buttons { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 4rem; }
.btn-modern {
    width: 100%;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Blokir seleksi klik tahan */
    user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.btn-modern::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}
.btn-modern:hover::before { left: 100%; }
.btn-modern:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255,255,255,0.02);
}
.icon-glow-blue { color: #60a5fa; text-shadow: 0 0 10px rgba(96,165,250,0.5); }
.icon-glow-purple { color: #c084fc; text-shadow: 0 0 10px rgba(192,132,252,0.5); }

/* ================= STATS (3-Tier Layout) ================= */
.stats-grid { text-align: center; position: relative; }
.stat-item { padding: 1.5rem 0; }
.stat-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 2px; color: #64748b; margin-bottom: 0.5rem; font-weight: 600;
}
.stat-value { font-size: 2.5rem; font-weight: 800; line-height: 1; }

.tier-1 .stat-value { font-size: 3.5rem; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.2); }
.tier-2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin: 1rem 0; }
.text-blue { color: #60a5fa; text-shadow: 0 0 20px rgba(96,165,250,0.3); }
.text-purple { color: #c084fc; text-shadow: 0 0 20px rgba(192,132,252,0.3); }
.text-gradient { background: linear-gradient(to right, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ================= FOOTER ================= */
.footer { margin-top: auto; padding-top: 4rem; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; }
.social-links a {
    color: var(--text-muted); font-size: 1.6rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #fff; transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 5px 10px rgba(255,255,255,0.3));
}
.copyright { color: #334155; font-size: 0.75rem; }

/* ================= TOAST ================= */
#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.modern-toast {
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 14px 28px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: toastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, toastExit 0.4s ease 2.6s forwards;
}
@keyframes toastEnter { from { opacity: 0; transform: translateY(-30px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastExit { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-30px) scale(0.9); } }

/* ================= SCROLL ANIMATIONS ================= */
.hidden-el { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hidden-el.show { opacity: 1; transform: translateY(0); }
