/* ─── Variables & Tokens ─── */
:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    
    --dark: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white: #ffffff;
    
    --border: #e2e8f0;
    --border-light: rgba(255, 255, 255, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --max-w: 1200px;
    --nav-height: 80px;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-surface: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate-700);
    background-color: var(--slate-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { 
    color: var(--dark); 
    font-weight: 800; 
    line-height: 1.2; 
    letter-spacing: -0.03em;
}
p { margin-bottom: 1rem; }

/* ─── Layout & Utilities ─── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(26, 86, 219, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(26, 86, 219, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary-light);
}
.btn-outline:hover {
    background: var(--slate-50);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-title {
    line-height: 1.1;
}
.brand-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0;
    text-transform: uppercase;
}
.brand-logo {
    max-height: 38px;
    width: auto;
    border-radius: 6px;
}
.brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(26, 86, 219, 0.3);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-600);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 16px; align-items: center; }

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    background: none;
}

/* ─── Hero Section ─── */
.hero {
    padding: calc(var(--nav-height) + 60px) 0 80px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,86,219,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content { max-width: 540px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(26, 86, 219, 0.15);
}

.hero-title {
    font-size: 2.6rem;
    margin-bottom: 24px;
    line-height: 1.25;
}
.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--slate-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-image-wrap {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}
.hero-image:hover { transform: rotateY(0) rotateX(0) scale(1); }

@keyframes float {
    0% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg) scale(0.95); }
    50% { transform: translateY(-15px) rotateY(-2deg) rotateX(3deg) scale(0.96); }
    100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg) scale(0.95); }
}

.hero-illustration {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Teknik untuk membuat background putih polos menjadi tembus pandang (transparan) di web */
    mix-blend-mode: darken; 
    /* Menggunakan drop-shadow pada gambar transparan agar bayangan mengikuti kontur badan, bukan kotak gambarnya */
    filter: drop-shadow(0 20px 25px rgba(15, 23, 42, 0.15));
    transition: all 0.3s ease;
}
.hero-illustration:hover {
    filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.25));
}

/* ─── Features Section ─── */
.features {
    padding: 100px 0;
    background: var(--slate-50);
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.section-head p {
    color: var(--slate-600);
    font-size: 1.05rem;
}

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

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.fc-icon {
    width: 48px; height: 48px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}
.feature-card:hover .fc-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.fc-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.fc-desc {
    font-size: 0.9rem;
    color: var(--slate-600);
    margin: 0;
}

/* ─── Integrations / Supported Religions Section ─── */
.religions {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.religions-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.religions-title {
    font-size: 1.25rem;
    color: var(--slate-500);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.religions-marquee {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.religions-row {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.religion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--slate-50);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--slate-700);
    transition: all 0.3s ease;
}
.religion-item:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: var(--primary);
    transform: translateY(-2px);
}
.religion-icon { font-size: 1.2rem; }

/* ─── Partner Section ─── */
.partners {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Efek transparan di kiri kanan agar slide terkesan muncul/hilang halus */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    /* Animasi infinite scroll linear */
    animation: scroll-partners 25s linear infinite;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

.partner-logo {
    height: 80px; /* Ukuran paksa seragam yang diperbesar */
    width: 180px;
    object-fit: contain; /* Menjaga aspek rasio logo tidak penyok */
    margin: 0 20px; /* Jarak antar logo dipersempit menjadi total 40px */
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05); /* Sedikit membesar saat dihover */
}

/* Jarak tempuh animasi = (Lebar Logo 180px + margin kiri 20px + margin kanan 20px) x 6 item = 220px * 6 = 1320px */
@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 6)); }
}

/* ─── CTA Section ─── */
.cta {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1600&q=80') center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(26,86,219,0.9) 100%);
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.cta-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 24px;
}
.cta-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

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

/* ─── Footer ─── */
.footer {
    background: var(--dark);
    color: var(--slate-400);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .brand-name { color: var(--white); }
.footer-desc {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a { color: var(--slate-400); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-actions { display: none !important; } /* Sembunyikan permanen di mobile */
    .mobile-toggle { display: block; }

    /* Mobile menu open state */
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--white);
        padding: 16px 24px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        z-index: 999;
        border-top: 1px solid var(--border);
    }

    .nav-menu.mobile-open .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--slate-100);
    }

    .nav-menu.mobile-open li:last-child .nav-link {
        border-bottom: none;
    }

    .nav-actions.mobile-open {
        display: none !important; /* Tetap tersembunyi meski menu terbuka */
    }

    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    
    .hero-title { font-size: 1.9rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-title { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; }
    
    .religions-marquee { gap: 16px; }
    .religions-row { flex-direction: column; gap: 16px; }
    .religion-item { width: 100%; justify-content: center; }
}
