/* RESET & BASE VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #f4f6f8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --primary-green: #10b981;
    --primary-green-hover: #059669;
    
    /* Gradient Backgrounds */
    --grad-green: linear-gradient(135deg, #e8fbf0 0%, #ffffff 100%);
    --grad-yellow: linear-gradient(135deg, #fff8e6 0%, #ffffff 100%);
    --grad-blue: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 0 20px 40px 20px;
}


/* ======== NAVBAR & MENU (DESKTOP) ======== */
.navbar {
    max-width: 1200px;
    margin: 20px auto 40px auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: transparent;
    position: relative; 
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    z-index: 2;
}

/* Wajib Sembunyi di Desktop */
.mobile-toggle {
    display: none !important; 
}

/* Wrapper Baru: Di desktop tidak terlihat efeknya (tembus pandang ke flex parent) */
.nav-wrapper {
    display: contents; 
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav-right {
    z-index: 2;
    display: flex;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.04); 
}

.nav-item.active {
    background-color: #e8fbf0;
    color: var(--primary-green);
}

.nav-item.login-btn {
    background-color: var(--text-dark);
    color: #ffffff;
}

.nav-item.login-btn:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-item.logout-btn {
    background-color: #ef4444;
    color: #ffffff;
}

.nav-item.logout-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

/* ======== BENTO GRID SYSTEM ======== */
.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(180px, auto);
}

.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }


/* ======== SQUIRCLE CARD STYLING ======== */
.card {
    position: relative;
    background-color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.03));
    border-radius: 36px;
    
    -webkit-mask-box-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0C11 0 0 11 0 50C0 89 11 100 50 100C89 100 100 89 100 50C100 11 89 0 50 0Z'/%3E%3C/svg%3E") 45 stretch;
    mask-border: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0C11 0 0 11 0 50C0 89 11 100 50 100C89 100 100 89 100 50C100 11 89 0 50 0Z'/%3E%3C/svg%3E") 45 fill stretch;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.9), 
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
    border-radius: inherit;
    z-index: 10;
}

.card:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.06));
}

.bg-pastel-green { background: var(--grad-green); }
.bg-pastel-yellow { background: var(--grad-yellow); }
.bg-pastel-blue { background: var(--grad-blue); }


/* ======== TYPOGRAPHY ======== */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }


/* ======== UI ELEMENTS ======== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
    background-color: var(--primary-green); 
    color: white; 
    margin-bottom: 24px;
}

.tag { font-size: 0.85rem; color: var(--primary-green); font-weight: 600; margin-top: auto; padding-top: 24px; }

.icon-wrapper {
    font-size: 2rem; margin-bottom: 20px; background: #ffffff;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    border-radius: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.feature-list {
    list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; color: var(--text-dark); }


/* ======== BUTTONS ======== */
.btn-primary {
    display: inline-block; background-color: var(--primary-green); color: #ffffff;
    text-decoration: none; padding: 16px 32px; border-radius: 2rem;
    font-weight: 600; font-size: 1.1rem; margin-top: 32px; align-self: flex-start;
    transition: background-color 0.2s ease; border: none; cursor: pointer; z-index: 2;
}
.btn-primary:hover { background-color: var(--primary-green-hover); }

.btn-secondary {
    display: inline-block; background-color: #ffffff; color: var(--text-dark);
    text-decoration: none; padding: 16px 32px; border-radius: 2rem;
    font-weight: 600; font-size: 1.1rem; margin-top: 16px; border: 1px solid #e2e8f0;
    text-align: center; transition: background-color 0.2s; z-index: 2;
}
.btn-secondary:hover { background-color: #f8fafc; }


/* ======== SECTIONS ======== */
.hero-card, .cta-card { text-align: center; align-items: center; padding: 60px 40px; }
.hero-card h1 { max-width: 800px; }
.hero-card p { max-width: 600px; margin: 0 auto; }
.hero-card .badge, .hero-card .btn-primary, .cta-content .btn-primary { align-self: center; }

.cta-content { max-width: 700px; margin: 0 auto; }
.divider { height: 1px; background-color: rgba(0,0,0,0.05); margin: 40px 0; width: 100%; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: auto; padding-top: 20px; }
.step-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 1.5rem; padding: 24px; position: relative; z-index: 2;}
.step-number { background: var(--text-dark); color: #ffffff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; margin-bottom: 16px; }
.step-item p { font-size: 0.95rem; line-height: 1.5; }


/* ======== AUTHENTICATION FORMS ======== */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.auth-card { width: 100%; max-width: 450px; padding: 40px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 2; position: relative;}
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.form-group input { padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 1rem; font-family: inherit; font-size: 1rem; transition: border-color 0.2s; background: #fafafa; }
.form-group input:focus { outline: none; border-color: var(--primary-green); background: #ffffff; }


/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .bento-container { grid-template-columns: repeat(2, 1fr); }
    .col-span-3 { grid-column: span 2; }
    .hero-card h1 { font-size: 2.5rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bento-container { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3 { grid-column: span 1; }
    .hero-card h1 { font-size: 2rem; }
    .card { padding: 30px; border-radius: 2rem; }
    
    /* NAVBAR MOBILE: Tetap satu baris */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 0 !important;
        position: relative !important;
    }
    
    .mobile-toggle {
        display: flex !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-dark) !important;
        padding: 8px !important;
        margin-right: -8px !important;
        z-index: 100 !important;
    }

    /* Sembunyikan wrapper by default di HP */
    .nav-wrapper {
        display: none !important;
    }

    /* ======== DROPDOWN OVERLAY RAMPING ======== */
    /* Saat navbar aktif, wrapper muncul sebagai dropdown melayang */
    .navbar.active .nav-wrapper {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important; /* Pas di bawah navbar */
        right: 0 !important;  /* Rata dengan kanan layar */
        background: #ffffff !important;
        padding: 8px !important; /* PADDING RAMPING */
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
        border: 1px solid #f1f5f9 !important;
        z-index: 1000 !important;
        min-width: 180px !important; /* Ukuran presisi */
        animation: slideInDown 0.2s ease forwards;
    }

    /* Reset format flex anak-anaknya di dalam dropdown */
    .navbar.active .nav-links,
    .navbar.active .nav-right {
        display: flex !important;
        position: static !important;
        transform: none !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important;
        padding: 0 !important;
    }

    /* Styling tiap teks menu agar rapi */
    .navbar.active .nav-item {
        width: 100% !important;
        text-align: left !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
    }

    /* Pemisah halus untuk tombol Login */
    .navbar.active .nav-right {
        margin-top: 4px !important;
        padding-top: 8px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .navbar.active .login-btn {
        text-align: center !important;
        justify-content: center !important;
        border-radius: 14px !important;
    }
}

/* ANIMASI HALUS DROPDOWN */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   FOOTER SECTION
========================================== */
.footer {
    margin-top: 60px;
    padding: 40px 0 24px 0;
    border-top: 1px solid rgba(0,0,0,0.05); /* Garis batas tipis */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.social-pill svg {
    transition: transform 0.2s ease;
}

.social-pill:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-color: #cbd5e1;
}

.social-pill:hover svg {
    transform: scale(1.1);
}

/* Penyesuaian Footer untuk HP */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column-reverse; /* Hak cipta pindah ke bawah di HP */
        text-align: center;
        justify-content: center;
        padding-bottom: 20px;
    }
    .footer-socials {
        justify-content: center;
        margin-bottom: 12px;
    }
}