/* --- CSS Reset & Global Styling --- */
:root {
    --primary-color: #38A169; /* Hijau Utama Veriv.id */
    --secondary-color: #D6F6E5; /* Hijau Mint Lembut untuk Background */
    --dark-text: #1F2937;
    --light-text: #6B7280;
    --bg-light: #FAFAF9;
    --shadow-light: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: white;
    line-height: 1.6;
    /* FIX: Tambahkan padding untuk header fixed */
    padding-top: 80px; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s;
}

/* --- Navigation Bar (Glassmorphism & Fixed) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* FIX: Ubah position ke fixed */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 80px;
    z-index: 100; /* Selalu di atas */
    background-color: transparent; 
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

/* Kunci: Efek Glassmorphism saat discroll */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 80px; /* Sedikit menyusut saat scroll */
}

.logo img {
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 120px;
    overflow: hidden;
}

.background-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color) 0%, rgba(255, 255, 255, 0) 65%);
    z-index: -1;
    clip-path: ellipse(150% 100% at 50% 0%); 
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.main-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.main-title strong {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #2e8b57;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.downloads-stat {
    margin-top: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* --- Hero Visual (Mockup) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.certificate-mockup {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    width: 350px;
    padding: 30px;
    text-align: center;
    border: 1px solid #E5E7EB;
    transform: rotate(5deg) translateY(20px); 
    z-index: 5;
}

.mockup-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mockup-content p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.qr-code-placeholder {
    width: 120px;
    height: 120px;
    background-color: #F3F4F6;
    border: 2px dashed var(--primary-color);
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--light-text);
    border-radius: 5px;
}

.verification-link {
    font-weight: 600;
}

/* --- Trusted By Section --- */
.trusted-by {
    text-align: center;
    padding: 50px 0 80px 0;
    border-top: 1px solid #F3F4F6;
    background-color: var(--bg-light);
}

.trusted-by p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.logo-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-list span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-list span:hover {
    opacity: 1;
    color: var(--dark-text);
}

/* --- Section 2: Statistik/Fakta Cepat --- */
.stats-section {
    padding: 100px 0;
    background-color: white;
}

.stats-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.stats-content {
    flex: 1;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    max-width: 500px;
}

.stat-item {
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-description {
    font-size: 1rem;
    color: var(--light-text);
}

.stats-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.stats-image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 400px;
    background-color: #F3F4F6;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 0.9rem;
    border: 2px solid #E5E7EB;
}

/* --- Section 3: FAQ / Control Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.faq-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.faq-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.faq-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 450px;
    background-color: #E5E7EB;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

.faq-content {
    flex: 1;
    max-width: 600px;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.see-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 1rem;
}

.see-more:hover {
    text-decoration: underline;
}

.faq-list {
    border-top: 1px solid #D1D5DB;
}

.faq-item {
    display: flex; 
    flex-wrap: wrap; 
    padding: 20px 0;
    border-bottom: 1px solid #D1D5DB;
    align-items: baseline;
}

.faq-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
    line-height: 1.4;
    width: 30px; 
    flex-shrink: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1; 
    margin-bottom: 5px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--light-text);
    padding-left: 45px; 
    width: 100%; 
}

/* --- Section 4: CTA Akhir --- */
.cta-bottom-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.cta-box {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-large {
    padding: 18px 35px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.cta-buttons-bottom .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-buttons-bottom .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.cta-buttons-bottom .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons-bottom .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--dark-text);
    color: white;
    font-size: 0.85rem;
}

/* --- Offcanvas Menu Styling --- */
.menu-toggle {
    display: none; 
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px; 
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    padding: 20px;
}

.offcanvas-menu.open {
    transform: translateX(0);
}

.close-menu {
    background: none;
    border: none;
    font-size: 2.5rem;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    color: var(--dark-text);
}

.offcanvas-links {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.offcanvas-links a {
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid #F3F4F6;
}

.offcanvas-links a:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.offcanvas-links .btn-login {
    margin-top: 10px;
    padding: 12px;
}

.full-width {
    width: 100%;
}

/* --- FIX RESPONSIVENESS (Mobile Layout) --- */
@media (max-width: 1024px) {
    
    header {
        padding: 15px 24px;
    }

    /* FIX: Sembunyikan navigasi desktop dan tampilkan tombol menu */
    nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    
    .container {
        padding: 0 24px;
    }
    
    body {
        /* FIX: Sesuaikan padding-top untuk header yang lebih kecil di mobile */
        padding-top: 60px;
    }
    
    header.scrolled {
        padding: 10px 24px; /* Sesuaikan padding scrolled untuk mobile */
    }


    /* FIX: Hero Section Tumpuk Vertikal dan Rata Tengah */
    .hero-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }
    
    .hero-section .container {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        order: 2; 
        margin-top: 20px;
    }

    .hero-visual {
        order: 1; 
    }

    .main-title {
        font-size: 2.2rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column; 
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%; 
    }

    .certificate-mockup {
        width: 90%; 
        max-width: 350px;
        transform: none; 
    }

    /* FIX: Statistik Section Tumpuk Vertikal dan Rata Tengah */
    .stats-section {
        padding: 60px 0;
    }
    .stats-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-title {
        font-size: 2rem;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .stat-item {
        width: 100%; 
        text-align: center;
    }

    .stats-image-placeholder {
        height: 200px;
    }

    /* FIX: FAQ Section Tumpuk Vertikal dan Perbaikan Item */
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-layout {
        flex-direction: column-reverse; 
        gap: 30px;
    }
    
    .faq-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .see-more {
        display: block;
        text-align: center;
    }
    
    /* Perbaikan Item FAQ */
    .faq-item {
        flex-direction: column; 
        align-items: flex-start;
    }
    
    .faq-number {
        margin-right: 0;
        width: auto;
        margin-bottom: 5px;
        display: block;
    }

    .faq-question {
        font-size: 1rem;
        width: 100%;
        margin-left: 0;
    }
    
    .faq-answer {
        padding-left: 0;
        margin-top: 5px;
    }
    
    /* Trusted By Section */
    .logo-list {
        gap: 20px;
    }
    
    /* CTA Bottom */
    .cta-bottom-section {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons-bottom {
        flex-direction: column; 
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
    }
}
/* --- Styling Khusus Halaman Verifikasi --- */
.verification-page {
    padding: 80px 0;
    min-height: 80vh; /* Agar konten tidak terlalu pendek */
    background-color: var(--bg-light);
}

.verification-container {
    max-width: 800px;
}

.verification-form-box {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin: 40px auto;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group .btn {
    padding: 15px 30px;
    font-size: 1rem;
    white-space: nowrap; /* Cegah tombol melipat */
}

.scan-text {
    text-align: center;
    color: var(--light-text);
    margin: 20px 0;
}

.qr-scanner-placeholder {
    text-align: center;
    padding: 30px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.qr-scanner-placeholder:hover {
    border-color: var(--primary-color);
}

.qr-scanner-placeholder p {
    margin-top: 10px;
    color: var(--light-text);
}


/* Area Hasil Verifikasi */
.result-box {
    margin-top: 40px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.5s ease;
}

.result-box.hidden {
    display: none;
}

.result-box.verified {
    background-color: var(--secondary-color); /* Latar belakang hijau lembut */
    border: 2px solid var(--primary-color);
}

.result-box.failed {
    background-color: #FEE2E2; /* Latar belakang merah lembut */
    border: 2px solid #DC2626;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.verified-text {
    color: var(--primary-color);
}

.failed-text {
    color: #DC2626; /* Merah */
}

.result-box p {
    margin-bottom: 15px;
}

/* --- Media Query Khusus Verifikasi --- */
@media (max-width: 600px) {
    .verification-page {
        padding: 40px 0;
    }
    
    .verification-form-box {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column; /* Tumpuk input dan tombol di mobile */
    }
    
    .input-group input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .input-group .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .result-title {
        font-size: 1.4rem;
    }
}
/* --- Styling Modal (Pop-up) --- */
.modal {
    position: fixed;
    z-index: 1001; /* Harus di atas semua konten dan navbar (z-index: 100) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay gelap */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px; /* Lebar maksimum modal */
    position: relative;
    animation: fadeIn 0.3s;
}

.close-modal-btn {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: var(--dark-text);
    text-decoration: none;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Animasi sederhana untuk modal */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Penyesuaian Tombol Scanner */
.full-width {
    width: 100%;
}

/* Modifikasi untuk memastikan pemindai terlihat baik di mobile */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
}