/* --- RESET & BASE CONFIG --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- UTILITIES --- */
.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* --- NAVBAR --- */
.navbar {
    background-color: white;
    shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.logo i {
    background-color: #2563eb;
    color: white;
    padding: 8px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* --- HERO SECTION (FLEXBOX AUTO-RESPONSIVE) --- */
.hero {
    display: flex;
    flex-direction: column-reverse; /* HP: Gambar di atas, teks di bawah */
    gap: 40px;
    padding: 60px 0;
    align-items: center;
}

.hero-text {
    text-align: center;
}

.badge {
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-text h1 span {
    color: #2563eb;
}

.hero-text p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Elemen utama pembungkus tombol */
.download-buttons { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  align-items: center; 
}

/* Gaya untuk tombol Play Store */
.btn-playstore {
  display: inline-flex;
  align-items: center;
  background-color: #000000; /* Warna latar belakang hitam khas tombol aplikasi */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
}

/* Pembungkus konten di dalam tombol (Logo & Teks) */
.btn-content {
  display: flex;
  align-items: center; /* Membuat logo dan teks sejajar secara vertikal */
  gap: 10px; /* Jarak antara logo SVG dan teks */
}

/* Mengatur ukuran logo SVG agar proporsional */
.btn-content svg {
  width: 30px;
  height: 30px;
}

/* Memisahkan susunan teks "Temukan di" dan "Google Play" ke atas-bawah */
.text-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left; /* Teks rata kiri */
}

.text-wrapper span {
  font-size: 11px;
}

.text-wrapper strong {
  font-size: 16px;
}

.btn-playstore {
    background-color: #0f172a;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.btn-playstore i { font-size: 1.5rem; }
.btn-playstore span { font-size: 0.75rem; color: #94a3b8; display: block; }
.btn-playstore strong { font-size: 0.9rem; }

/* --- MOCKUP HP --- */
.phone-mockup {
    width: 240px;
    height: 480px;
    background-color: #0f172a;
    border: 8px solid #020617;
    border-radius: 36px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.mockup-screen-top {
    background-color: #2563eb;
    color: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-size: 0.8rem;
}

.mockup-screen-mid {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    flex-grow: 1;
    margin: 15px 0;
    font-size: 0.7rem;
    color: #64748b;
}

.mockup-screen-bottom {
    background-color: #1e293b;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* --- FITUR SECTION (GRID AUTO-RESPONSIVE) --- */
.features {
    background-color: white;
    padding: 8px 0 80px 0;
}

.section-title {
    text-align: center;
    max-width: 500px;
    margin: 60px auto;
}

.section-title h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Otomatis membuat kolom menyesuaikan lebar layar tanpa Media Query pecahan */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s;
}

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

.feature-icon {
    background-color: #dbeafe;
    color: #2563eb;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* --- CTA BANNER --- */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
}

.cta-box h3 { font-size: 1.75rem; margin-bottom: 15px; }
.cta-box p { opacity: 0.9; margin-bottom: 30px; }
.cta-box .btn-white {
    background-color: white;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
}

.footer-col h4 { color: white; margin-bottom: 15px; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; }

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
}


/* ==========================================================================
   BREAKPOINTS (MEDIA QUERIES) UNTUK LAYAR BESAR (TABLET & LAPTOP)
   ========================================================================== */

@media (min-width: 768px) {
    .nav-links { display: flex; }
    
    .hero {
        flex-direction: row; /* Laptop: Teks di kiri, Gambar di kanan */
        justify-content: space-between;
        padding: 100px 0;
    }
    
    .hero-text {
        text-align: left;
        max-width: 50%;
    }
    
    .hero-text h1 { font-size: 3rem; }
    
    .download-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .cta-box {
        text-align: left;
        padding: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cta-box div { max-width: 60%; }
}

/* Menyembunyikan menu link di HP secara default */
@media (max-width: 767px) {
    .nav-links { display: none; }
}
