/* Reset & Variables */
:root {
    /* Warna Brand SanPay */
    --primary: #3949ab; 
    --primary-dark: #283593;
    --primary-light: #5c6bc0;
    
    --accent: #ffc107; /* Kuning untuk tombol/badge */
    
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--white); color: var(--text-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: 0.3s; }

/* Utility Classes */
.mt-50 { margin-top: 50px; }

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-link { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 40px; width: auto; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--primary-dark); }

.nav-menu { display: flex; gap: 30px; }
.nav-link { color: var(--text-dark); font-weight: 500; font-size: 15px; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-buttons { display: flex; gap: 15px; align-items: center; }
.btn-login { color: var(--primary); font-weight: 600; }
.btn-register {
    background: var(--primary); color: var(--white);
    padding: 10px 24px; border-radius: 50px; font-weight: 600;
}
.btn-register:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(57, 73, 171, 0.3); }

.menu-toggle { display: none; font-size: 24px; color: var(--text-dark); cursor: pointer; }

/* --- HERO SECTION (ANIMASI GRADIENT) --- */
.hero {
    background: linear-gradient(-45deg, #1a237e, #3949ab, #283593, #5c6bc0);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-container { display: flex; align-items: center; gap: 50px; padding-bottom: 100px; }
.hero-text { flex: 1; z-index: 2; }

.badge-new {
    background: rgba(255, 255, 255, 0.15); color: #ffca28;
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    display: inline-block; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-text h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero-text p { font-size: 18px; color: #e8eaf6; margin-bottom: 35px; line-height: 1.6; }

.hero-cta { display: flex; gap: 15px; margin-bottom: 40px; }

/* Tombol "Masuk Dashboard" */
.btn-primary-alt {
    background: var(--primary); 
    color: var(--white);
    padding: 14px 30px; 
    border-radius: 8px; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    border: 2px solid var(--white); /* Outline putih */
}
.btn-primary-alt:hover { 
    background: var(--primary-dark); 
    box-shadow: 0 4px 12px rgba(57, 73, 171, 0.5); 
    transform: translateY(-2px); 
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.3); color: var(--white);
    padding: 14px 30px; border-radius: 8px; font-weight: 600;
}
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.hero-stats { display: flex; gap: 40px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
/* Angka Statistik Putih */
.stat b { display: block; font-size: 20px; color: var(--white); margin-bottom: 4px; }
.stat span { font-size: 14px; color: #c5cae9; }

.hero-img { flex: 1; text-align: center; z-index: 2; }
/* Animasi Gambar Hero */
.animated-img img { 
    max-width: 80%; 
    border-radius: 20px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.4); 
    border: 4px solid rgba(255,255,255,0.1);
    animation: floatImage 3s ease-in-out infinite; 
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); } 
    100% { transform: translateY(0); }
}

/* Wave Decoration */
.wave-bottom { 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 100%; 
    line-height: 0; 
    transform: translateY(1px); 
}
.wave-bottom path { fill: var(--primary); }

/* --- PARTNERS SECTION BARU --- */
.partners {
    padding: 40px 0;
    background: var(--primary); 
    overflow: hidden; 
}

.section-header-partner {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--white); 
    font-weight: 700;
}

.partner-scroller {
    width: 100%;
    overflow: hidden;
    white-space: nowrap; 
    position: relative;
    /* Efek fade/blur di tepi */
    mask: linear-gradient(to right, 
              rgba(0,0,0,0) 0%, 
              rgba(0,0,0,1) 10%, 
              rgba(0,0,0,1) 90%, 
              rgba(0,0,0,0) 100%);
}

.partner-list {
    display: flex;
    animation: scroll-left 30s linear infinite; 
    padding: 10px 0;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    width: 150px; 
    margin: 0 20px;
    opacity: 1; /* Biarkan opacity penuh */
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item img {
    max-width: 90px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
    /* --- PERUBAHAN DI SINI: FILTER DIHAPUS --- */
    filter: none; 
    /* --------------------------------------- */
    transition: filter 0.3s;
}

.partner-item:hover img {
    filter: none; 
}

.partner-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--white); 
}

/* Keyframe Animasi Scrolling Partner */
@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%); 
    }
}
/* --- END PARTNERS SECTION --- */


/* --- SECTIONS UMUM --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); }


/* --- FEATURES SECTION --- */
.features { padding: 80px 0; background: var(--primary); color: var(--white); }
.features .section-header h2 { color: var(--white); }
.features .section-header p { color: #c5cae9; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card { background: #fff; padding: 30px; border-radius: 16px; border: none; transition: 0.3s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.icon-circle {
    width: 60px; height: 60px; background: #e8eaf6; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; font-size: 20px; color: var(--text-dark); }
.card p { color: var(--text-gray); line-height: 1.6; }


/* --- API BANNER --- */
.api-banner { padding: 80px 0; background: #f8fafc; }

.api-box {
    background: var(--primary-dark);
    border-radius: 16px;
    padding: 50px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--white);
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.api-text h3 { font-size: 28px; margin-bottom: 10px; }
.api-text p { color: #c5cae9; }
.btn-white {
    background: var(--white); color: var(--primary-dark);
    padding: 12px 25px; border-radius: 8px; font-weight: 700;
}
.btn-white:hover { background: var(--accent); color: #000; }


/* --- PAYMENT METHODS SECTION --- */
.payment-methods {
    padding: 80px 0;
    background: var(--primary); 
    color: var(--white);
}

.payment-methods .section-header h2 {
    color: var(--white);
}
.payment-methods .section-header p {
    color: #c5cae9;
}

.method-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white); 
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: center;
}

.method-grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px;
    max-width: 960px;
    margin: 0 auto 40px;
}

.method-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff; 
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.method-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Ukuran logo metode pembayaran (90px x 50px) */
.method-logo {
    max-width: 90px;  
    height: 50px;     
    object-fit: contain; 
    margin-right: 15px;
}

.fee-details {
    text-align: right;
    line-height: 1.4;
}

.fee-title {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.fee-rate {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary); 
}

.fee-min {
    font-size: 11px;
    color: #999;
}

.support-note {
    text-align: center;
    font-size: 14px;
    color: #c5cae9; 
    max-width: 600px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- FOOTER --- */
footer { 
    background: #111827; 
    padding: 70px 0 20px; 
    color: #94a3b8; 
    width: 100%;
    box-sizing: border-box;
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 50px; 
}

.brand-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.brand-wrap img { height: 30px; filter: none; }
.brand-wrap span { font-weight: 700; font-size: 22px; color: #ffffff; }
.footer-brand p { color: #94a3b8; font-size: 14px; line-height: 1.6; max-width: 300px; }

.footer-links h4 { font-size: 16px; margin-bottom: 25px; color: #ffffff; font-weight: 700; }
.footer-links a { display: block; color: #94a3b8; margin-bottom: 12px; font-size: 14px; }
.footer-links a:hover { color: #3949ab; text-decoration: underline; }

.footer-links p { color: #94a3b8; margin-bottom: 12px; font-size: 14px; }

.copyright { 
    text-align: center; 
    padding-top: 25px; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    color: #64748b; 
    font-size: 13px; 
}

/* Responsive */
@media (max-width: 992px) {
    .method-grid-3-columns {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-width: 600px;
    }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    .nav-menu.active { display: flex; }
    .nav-buttons { display: none; } 

    .menu-toggle { display: block; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .api-box { flex-direction: column; text-align: center; gap: 20px; }
    .api-action { margin-top: 10px; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .brand-wrap { justify-content: center; }
    .footer-brand p { margin: 0 auto; }
}