/* ================= CSS VARIABLES & RESET ================= */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #e0e7ff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --warning: #f59e0b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-warning { color: var(--warning); }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

/* ================= TYPOGRAPHY & BUTTONS ================= */
h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

/* ================= HEADER & NAVBAR ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
}

.brand-logo img {
    height: 40px;
    width: auto;
}

.brand-logo strong {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Sembunyikan toggle burger menu di Desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; 
}

.playstore-link {
    display: inline-flex;
}

.hero-stats {
    display: flex;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #cbd5e1;
    flex-wrap: wrap; 
}

.stat-item {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-item strong {
    font-size: 18px;
    color: var(--text-dark);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-frame {
    width: 280px;
    height: 580px;
    background-color: #000;
    border-radius: 40px;
    border: 10px solid #1e293b;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 2;
}

.mockup-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: -1;
}

.mockup-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    white-space: nowrap; 
}

.card-1 {
    top: 20%;
    left: -40px;
    color: #10b981;
}

.card-2 {
    bottom: 25%;
    right: -30px;
    animation-delay: 2s;
    color: #2563eb;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ================= FEATURES SECTION ================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-inline: auto;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= HOW IT WORKS ================= */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.step-box {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    border: 4px solid var(--bg-light);
}

.step-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin: 30px 0 20px 0;
}

.step-box h3 { margin-bottom: 10px; font-size: 20px; }
.step-box p { color: var(--text-muted); font-size: 14px; }

.step-line {
    flex: 0.5;
    height: 2px;
    background: dashed 2px #cbd5e1;
}

/* ================= CTA SECTION ================= */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    opacity: 0.9;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--text-dark);
    color: white;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
    max-width: 300px;
}

.footer-logo {
    color: white;
}

.footer-logo strong {
    color: #60a5fa;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word; 
}

.footer-contact i {
    color: #60a5fa;
    flex-shrink: 0; 
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet & Layar Menengah */
@media (max-width: 992px) {
    .hero { padding-top: 130px; }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 42px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
    .step-line { display: none; }
    .step-box {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p { margin: 20px auto 0 auto; }
    .footer-contact ul li { justify-content: center; }
    .cta-box { padding: 60px 30px; }
}

/* Handphone & Layar Kecil (UPDATE PENTING UNTUK BURGER MENU) */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    
    /* Tombol Burger Muncul */
    .menu-toggle {
        display: block;
    }
    
    /* Tombol download di navbar disembunyikan agar bersih */
    .nav-action {
        display: none; 
    }
    
    /* Menu Navigasi disulap jadi Dropdown vertikal */
    .nav-menu {
        position: absolute;
        top: 80px; 
        left: -100%; /* Sembunyi di luar layar sebelah kiri */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease-in-out;
        gap: 20px;
        /* PENTING: Mencegah flexbox ditimpa rule lain */
        display: flex !important; 
    }
    
    /* Class .active memunculkan menu ke layar */
    .nav-menu.active {
        left: 0; 
    }

    .brand-logo { font-size: 20px; }
    .hero { padding-top: 110px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-cta {
        flex-direction: column; 
        gap: 15px;
    }
    .playstore-badge { margin-left: 0; }
    .mockup-frame {
        width: 240px;
        height: 500px;
    }
    .floating-card { display: none; }
    .section-title h2 { font-size: 28px; }
    .cta-box h2 { font-size: 28px; }
    .cta-box p { font-size: 16px; }
    .btn-large {
        font-size: 16px;
        padding: 14px 24px;
        width: 100%; 
    }
}