/* Reset & Pengaturan Dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #020617;
    color: #f8fafc;
    line-height: 1.6;
}

/* Navigasi (Navbar) */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 22px;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #38bdf8;
}

.nav-cta {
    background-color: #38bdf8;
    color: #020617 !important;
    font-weight: 700 !important;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-cta:hover {
    background-color: #0284c7;
    color: #ffffff !important;
}

/* Tombol Hamburger untuk Layar HP */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #334155;
    color: #f8fafc;
    font-size: 20px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Tampilan Responsif Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        border-bottom: 1px solid #1e293b;
        padding: 20px 24px;
        gap: 16px;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }
}


/* BAGIAN 2: HERO SECTION (BANNER UTAMA) */
.hero-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 24px 70px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 820px;
    margin: 0 auto 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: #38bdf8;
}

.hero-subtitle {
    font-size: 17px;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary {
    background-color: #38bdf8;
    color: #020617;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1e293b;
    color: #f8fafc;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid #334155;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #334155;
}

/* Informasi Klien di Bawah Hero ==============*/
.hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 36px;
    border-top: 1px solid #1e293b;
    text-align: left;
}

.info-item {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid #1e293b;
    padding: 18px 20px;
    border-radius: 12px;
}

.info-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
}

.info-item p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Responsif Layar HP untuk Hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* KATALOG PRODUK =================== */
/* BAGIAN 3: KATALOG APLIKASI */
.catalog-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0px 24px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 36px;
}

.catalog-header h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
}

.catalog-header p {
    color: #94a3b8;
    font-size: 15px;
}

/* Tombol Filter Kategori */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #0f172a;
    color: #cbd5e1;
    border: 1px solid #1e293b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #38bdf8;
    color: #020617;
    border-color: #38bdf8;
}

/* Grid Kartu Produk */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.product-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.card-thumb {
    position: relative;
}

.card-thumb img {
    width: 100%;
    //height: 190px;
    object-fit: cover;
    display: block;
    background-color: #1e293b;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(2, 6, 23, 0.85);
    color: #38bdf8;
    border: 1px solid #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.card-content {
    padding: 22px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-content p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

.card-footer {
    padding: 16px 22px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.price-box span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.price-box strong {
    font-size: 17px;
    color: #ffffff;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-demo {
    background-color: #1e293b;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-demo:hover {
    background-color: #334155;
}

.btn-buy {
    background-color: #38bdf8;
    color: #020617;
    border: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-buy:hover {
    background-color: #0284c7;
    color: #ffffff;
}

/* CARA KERJA ================= */
/* BAGIAN 4: CARA KERJA & ALUR PEMBELIAN */
.how-section {
    background-color: rgba(15, 23, 42, 0.5);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    padding: 80px 24px;
}

.how-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-heading p {
    color: #94a3b8;
    font-size: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-weight: 800;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.step-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

/* MODAL CHECKOUT =============== */
/* BAGIAN 5: MODAL FORM CHECKOUT */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.selected-product-box {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.selected-product-box span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.selected-product-box strong {
    display: block;
    font-size: 16px;
    color: #ffffff;
}

.selected-product-box .modal-price {
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background-color: #020617;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #38bdf8;
}

.btn-submit-checkout {
    width: 100%;
    background-color: #38bdf8;
    color: #020617;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

.btn-submit-checkout:hover {
    background-color: #0284c7;
    color: #ffffff;
}

/* BAGIAN 6: HALAMAN INVOICE & AKSES PRODUK ==================*/
.invoice-wrapper {
    max-width: 680px;
    margin: 50px auto;
    padding: 0 20px;
}

.invoice-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.invoice-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 24px;
}

.invoice-top h1 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.invoice-top p {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-paid {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.invoice-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.invoice-details td {
    padding: 12px 0;
    border-bottom: 1px solid #1e293b;
    font-size: 14px;
}

.invoice-details td:first-child {
    color: #94a3b8;
}

.invoice-details td:last-child {
    text-align: right;
    font-weight: 600;
    color: #f8fafc;
}

.invoice-total td {
    border-bottom: none;
    padding-top: 16px;
    font-size: 17px;
}

.invoice-total td:last-child {
    color: #38bdf8;
    font-size: 20px;
    font-weight: 800;
}

/* Kotak Pembayaran (Saat Status Pending) */
.payment-box {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.payment-box p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.btn-pay-sim {
    background-color: #22c55e;
    color: #020617;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-pay-sim:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* Kotak Akses Produk (Saat Status Paid) */
.access-box {
    background-color: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 22px;
}

.access-box h3 {
    font-size: 16px;
    color: #38bdf8;
    margin-bottom: 12px;
}

.license-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #020617;
    border: 1px dashed #38bdf8;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    gap: 10px;
}

.license-display code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.btn-copy {
    background-color: #1e293b;
    color: #cbd5e1;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy:hover {
    background-color: #334155;
    color: #ffffff;
}

.btn-download {
    display: block;
    text-align: center;
    background-color: #38bdf8;
    color: #020617;
    text-decoration: none;
    font-weight: 700;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: #0284c7;
    color: #ffffff;
}

/* BAGIAN 7: HALAMAN CEK INVOICE ====================== */
.track-wrapper {
    max-width: 520px;
    margin: 70px auto;
    padding: 0 20px;
}

.track-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.track-card h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.track-card p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 26px;
    line-height: 1.5;
}

.track-form {
    text-align: left;
}

.track-input {
    width: 100%;
    background-color: #020617;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 0.5px;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.track-input:focus {
    border-color: #38bdf8;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}
