*{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: sticky;
    top: 0;
    z-index: 2000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-menu a:hover{
    color: green;
    transform: scale(1.05);
}

.nav-menu a{
    display: inline-block;
    text-decoration: none;
    color: black;
    transition:0.3s, color 0.3s;
}

.btn{
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.logo img{
    width: 130px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.nav-actions{
    display: flex;
    gap: 10px;
}

.btn-login{
    background-color: white;
    color: green;
    border:1px solid green;
    transition: 0.3s;
}

.btn-login:hover{
    transform: scale(1.05);
    background-color: green;
    color: white;
}

.btn-daftar{
    background-color: green;
    color: white;
    transition: 0.3s;
}

.btn-daftar:hover{
    transform: scale(1.05);
    background-color: darkgreen;
}

.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 80px;
    gap: 40px;
    background: linear-gradient(135deg, #f8fff9, #ffffff);
    transition: margin-top 0.3s ease;
}

.hero-content{
    flex: 1.5;
}

.hero-content .btn-daftar{
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.hero-content h1{
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 15px;
    font-weight: 800;
}

.hero-content h1 span{
    display: block;
    color: green;
}

.hero-content p{
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px;
    margin: 20px 0 30px;
}

.hero-image{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img{
    width: 100%;
    height: auto;
    max-width: 500px;
}

.menu-toggle{
    display: none;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.features{
    display: flex;
    gap: 20px;
    padding: 60px 80px;
    background: #f7f7f7;
}

.feature-card{
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-card h3{
    margin-top: 0;
    color: green;
}

.feature-card p{
    line-height: 1.6;
}

.promo{
    padding: 80px;
    text-align: center;
    background: green;
    color: white;
}

.promo-content{
    max-width: 1200px;
    margin: 0 auto;
}

.promo-image{
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 25px auto 0;
    object-fit: contain;
}

.promo h2{
    font-size: 40px;
    margin: 0 0 20px;
}

.promo p{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.promo .btn-daftar{
    background: white;
    color: green;
}


.footer{
    padding: 40px 80px;
    background: #111;
    color: white;
    text-align: center;
}

.footer-logo{
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links{
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-links a{
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover{
    color: green;
}

.footer p{
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px){

    nav{
        padding: 14px 16px;
        gap: 8px;
    }

    .logo img{
        width: 105px;
        height: 46px;
    }

    .btn{
        padding: 10px 16px;
    }

    .menu-toggle{
        display: block;
        margin-left: auto;
        border: none;
        background: transparent;
        font-size: 24px;
        cursor: pointer;
        padding: 6px;
    }

    .nav-menu,
    .nav-actions{
        display: none;
    }

    .nav-menu.active{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        margin: 0;
        padding: 20px;

        background: white;
        box-shadow: 0 10px 25px rgba(0,0,0,0.10);
        z-index: 1999;
    }

    .nav-actions.active{
        display: flex;
        gap: 10px;

        position: absolute;
        top: calc(100% + 120px);
        left: 20px;

        z-index: 2000;
    }

    .hero{
        flex-direction: column;
        min-height: auto;
        padding: 40px 20px 20px;
        margin-top: 0px;
        gap: 20px;
        text-align: center;
    }

    body.menu-open .hero{
    margin-top: 180px;
    }

    .hero-content{
        width: 100%;
    }

    .hero-content h1{
        font-size: 36px;
    }

    .hero-content p{
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image{
        width: 100%;
    }

    .hero-image img{
        width: 88%;
        max-width: 350px;
        margin: 0 auto;
    }

    .features{
        flex-direction: column;
        padding: 40px 20px;
    }

    .promo{
    padding: 50px 20px;
}

.promo h2{
    font-size: 30px;
}

.promo-content{
    width: 100%;
    max-width: 100%;
}

.promo-image{
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto 0;
}

    .footer{
    padding: 40px 20px;
}

.footer-links{
    flex-direction: column;
    gap: 12px;
}

}