/* ================================
   ROOT & GLOBAL - MINIMALIS & PREMIUM
================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --primary:#0f172a;
    --accent:#2563eb;
    --soft:#f8fafc;
    --text:#0f172a;
    --muted:#64748b;
    --radius:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif; /* font minimalis global */
}

html, body {
    overflow-x: hidden;
}

body{
    background:#ffffff;
    color:var(--text);
    line-height:1.7;
    padding-top:120px;
    padding-bottom:70px;
    font-weight:400; /* normal */
}

/* Container */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* Section spacing */
section{
    padding:70px 0;
}

/* Headings - tegas tapi elegan */
h1, h2, h3, h4, h5, h6 {
    font-family:'Poppins', sans-serif;
    font-weight:600;
    margin-bottom:0.5em;
}

/* Teks tebal / tombol */
strong, b, .btn-demo-sticky, .btn-demo-sticky, .btn-wa-sticky {
    font-family:'Poppins', sans-serif;
    font-weight:500;
}

/* Tombol kebalikan dari btn-demo-sticky */
.btn-white-reverse {
    background: #ffffff;        /* default putih */
    color: #1E3A8A;            /* teks navy */
    border: 2px solid #1E3A8A; /* border navy */
    border-radius: 8px;
    padding: 10px 18px;
    font-weight:500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-white-reverse:hover {
    background: #1E3A8A;       /* hover navy */
    color: #ffffff;            /* teks putih */
    transform: translateY(-2px);
}

/* Small text / muted */
small, .muted, .tagline {
    font-family:'Poppins', sans-serif;
    font-weight:300;
}

/* ================================
   NAVBAR
================================ */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid #eee;
    z-index:9999;
    padding:10px 0;
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    height:100%;
}

/* Logo */

.logo-wrap{
    position:relative;
    display:flex;
    align-items:center;
}

.logo-img{
    height:140px;
    position:absolute;
    top:50%;
    left:0;
    transform:translateY(-35%);
    z-index:2;
    filter:drop-shadow(0 15px 30px rgba(0,0,0,0.12));
}

.logo-text{
    font-size:27px;
    font-weight:600;
    margin-left:150px;
}

.logo-text span{
    color:var(--accent);
}

.tagline{
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:1.2px;
    color:#94a3b8;
    margin-top:3px;
}

/* Demo Button Area */

.nav-demo{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.nav-demo small{
    margin-top:4px;
    font-size:12px;
    color:#666;
}

/* ================================
   BUTTONS
================================ */

.btn-demo-sticky{
    background:var(--accent);
    color:white;
    padding:15px 30px;
    border-radius:40px;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.btn-demo-sticky:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(37,99,235,0.35);
}

.btn-outline{
    border:1px solid var(--accent);
    color:var(--accent);
    padding:15px 30px;
    border-radius:40px;
    text-decoration:none;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

/* ================================
   HERO
================================ */

.hero{
    position:relative;
    padding-top:150px;
    background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}

.hero-grid{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    gap:60px;
}

.hero h1{
    font-size:44px;
    font-weight:700;
    line-height:1.2;
}

.hero p{
    margin-top:25px;
    color:var(--muted);
    max-width:550px;
}

.hero-buttons{
    margin-top:40px;
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

/* Mockup */

.mockup{
    background:linear-gradient(145deg,#ffffff,#f1f5f9);
    padding:60px 40px;
    border-radius:24px;
    box-shadow:0 30px 60px rgba(0,0,0,0.08);
    display:flex;
    justify-content:center;
    align-items:center;
}

.mockup img{
    width:100%;
    max-width:480px;
    border-radius:14px;
    border:1px solid #ddd;
    transition:transform .4s ease;
}

.mobile{
    background:linear-gradient(145deg,#ffffff,#f1f5f9);
    padding:60px 40px;
    border-radius:24px;
    box-shadow:0 30px 60px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column; /* tambahkan ini */
    justify-content:center;
    align-items:center;
    text-align:center; /* biar teks rata tengah */
}

.mobile img{
    width:70%;
    max-width:480px;
    border-radius:14px;
    border:1px solid #ddd;
}

.mockup:hover img{
    transform:scale(1.03);
}

/* ================================
   FEATURES
================================ */

.features-section{
    background:#f5f7fa;
}

.section-title{
    text-align:center;
}

.section-title h2{
    font-size:32px;
}

.section-title p{
    margin-top:15px;
    color:var(--muted);
}

.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.05);
    transition:.3s;
    margin-top:20px;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    margin-bottom:15px;
}

.card p{
    color:var(--muted);
}

.mini-cta{
    margin-top:30px;
    text-align:center;
    font-weight:600;
    font-size:11px;
}

/* ================================
   SCREENSHOT
================================ */

.screenshot{
    background:var(--soft);
}

.screenshot-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.screenshot-text h2{
    font-size:32px;
}

.screenshot-text p{
    margin-top:20px;
    color:var(--muted);
}

/* ================================
   COMPARISON
================================ */

/* Info scroll hanya muncul di HP (max-width 768px) */
.scroll-hint-mobile {
    font-size:12px;
    color:#64748b;
    margin:5px 0 10px;
    display:none;  /* default disembunyikan */
}

@media(max-width:768px){
    .scroll-hint-mobile {
        display:block;
		text-align:right;
    }
}

.comparison-table{
    overflow-x:auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll di iOS */
}

.comparison-table table{
    min-width:800px;
}

.comparison-table th,
.comparison-table td{
    padding:18px;
    text-align:center;
    border:1px solid #eee;
    font-size:14px;
}

.comparison-table th{
    background:#f8fafc;
    font-weight:600;
}

.comparison-table td:first-child{
    text-align:left;
    font-weight:500;
    background:#f8fafc;
}

.check{color:#16a34a;font-weight:700;}
.cross{color:#dc2626;font-weight:700;}
.warn{color:#f59e0b;font-weight:700;}

/* ================================
   PRICING
================================ */

.pricing-grid{
    margin-top:70px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}

.pricing-card{
    padding:50px;
    border-radius:var(--radius);
    border:1px solid #eee;
}

.highlight{
    border:2px solid var(--accent);
}

.starting-price{
    font-size:14px;
    color:var(--muted);
    margin-bottom:8px;
}

.main-price{
    font-size:33px;
    font-weight:700;
    color:var(--accent);
    margin-bottom:5px;
}

.price-note{
    font-size:13px;
    color:var(--muted);
    margin-bottom:15px;
}

.price-scale{
    background:#f1f5f9;
    padding:15px;
    border-radius:12px;
    font-size:13px;
    color:#334155;
    margin-top:15px;
}

.small{
    font-size:14px;
    color:var(--muted);
}

.bonus{
    background:#ecfdf5;
    color:#047857;
    padding:12px 18px;
    border-radius:12px;
    font-size:14px;
    margin:15px 0;
    font-weight:500;
}

/* ================================
   FAQ
================================ */

.faq-item{
    margin-bottom:30px;
}

/* ================================
   FOOTER
================================ */

footer{
    background:var(--soft);
    text-align:center;
    padding:40px 20px 90px;
    margin-top:80px;
    border-top:1px solid rgba(255,255,255,0.08);
    font-size:14px;
    color:var(--muted);
}

footer small{
    display:block;
    margin-top:10px;
    font-size:13px;
    opacity:0.8;
}

footer i{
    margin:0 4px;
}

/* ================================
   STICKY CTA
================================ */

.sticky-cta{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;          /* pakai ini, jangan width:100% */
    background: #0d1b2a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    box-sizing: border-box;  /* WAJIB */
}

.sticky-cta a{
    background:#25D366;
    color:#fff;
    padding:10px 16px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}

.sticky-text{
    font-size:12px;
}

.sticky-buttons{
    display:flex;
    gap:10px;
    align-items:center;
}

/* Tombol demo sticky - navy premium */
.btn-demo-sticky{
    background:#1E3A8A !important;  /* navy premium */
    color:#ffffff !important;        /* teks putih */
    padding:10px 22px !important;    /* samakan dengan WA */
    font-size:14px !important;       /* samakan dengan WA */
    border-radius:8px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    text-decoration:none;
}

.btn-demo-sticky:hover{
    background:#ffffff !important;
    color:#1E3A8A !important;
    transform:translateY(-2px);
}

.btn-wa-sticky{
    background:#25D366;
    color:#fff;
    padding:10px 16px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    white-space:nowrap;
}

/* ================================
   UTILITIES
================================ */

.swal2-container{
    z-index:99999 !important;
}

.btn-simulasi{
    background:#2c3e50;
    color:#fff;
    padding:12px 20px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.btn-simulasi:hover{
    opacity:.9;
}

/* ================================
   ANIMATION
================================ */

@keyframes fadeIn{
    from{transform:translateY(-20px);opacity:0;}
    to{transform:translateY(0);opacity:1;}
}

/* ================================
   RESPONSIVE
================================ */

@media(max-width:992px){
    .hero-grid,
    .screenshot-grid{
        grid-template-columns:1fr;
    }

	.hero{padding-top:150px;}
    .hero{text-align:center;}
    .hero p{margin:auto;}
}

@media(max-width:768px){

    body{padding-top:90px;}

    .features{grid-template-columns:1fr;}

    .nav-wrapper{
        flex-direction:column;
        align-items:center;
        gap:12px;
        padding:10px 0;
    }

    .logo-text{display:none;}
    .logo-img{
        position:relative;
        height:70px;
        transform:none;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

    .hero-buttons a{
        width:80%;
        text-align:center;
    }

    .sticky-cta{
        flex-direction:column;
        gap:8px;
        text-align:center;
    }

    .sticky-buttons{
        width:100%;
        justify-content:center;
    }

    .btn-demo-sticky,
    .btn-wa-sticky{
        flex:1;
        text-align:center;
    }

    .sticky-cta a{
        width:100%;
        text-align:center;
    }

    .main-price{
        font-size:25px;
    }

    .nav-demo {
		transition: all 0.4s ease; /* smooth transition */
    }

    .nav-demo.hidden {
      opacity: 0;
      transform: translateY(-20px);
      pointer-events: none;
    }

    /* Hide tombol demo di navbar saat scroll */
    .nav-demo.hide-on-scroll {
        display: none !important; /* sembunyikan & hilangkan space */
		opacity: 0;             /* memudar */
		transform: translateY(-20px); /* naik sedikit */
		pointer-events: none;   /* agar tidak bisa diklik */
		height: 0;              /* hilangkan space */
		margin: 0;              /* hapus margin */
		padding: 0;             /* hapus padding */
    }

    .nav-wrapper {
        padding: 10px 0; /* bisa kecilkan padding agar navbar lebih compact */
    }

	.nav-demo {
		transition: all 0.4s ease; /* smooth transition */
	}

}
