/**
 * =============================================================================
 * FILE / DIREKTORI : public/assets/css/landing.css
 * DESKRIPSI        : Stylesheet khusus landing page (hero, navbar, fitur,
 *                     alur kerja, CTA, footer, modal login) + animasi
 *                     scroll-reveal dan elemen dekoratif. Memakai token warna
 *                     yang sama dengan style.css (navy + emas) agar konsisten
 *                     dengan tampilan aplikasi setelah login.
 * =============================================================================
 */

.landing-body { margin: 0; background: var(--bg); overflow-x: hidden; }

.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }

/* ===================== NAVBAR ===================== */
.lp-nav {
    position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(15,35,64,.06);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.lp-nav.scrolled { box-shadow: 0 4px 20px rgba(15,35,64,.08); }
.lp-nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lp-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--navy-900); }
.lp-logo i { color: var(--gold-500); }
.lp-nav-links { display: flex; gap: 28px; }
.lp-nav-links a { font-size: 14px; font-weight: 600; color: #45526b; position: relative; padding: 4px 0; transition: color .18s var(--ease); }
.lp-nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold-500); transition: width .2s var(--ease); }
.lp-nav-links a:hover { color: var(--navy-900); }
.lp-nav-links a:hover::after { width: 100%; }
.lp-burger { display: none; background: none; border: none; font-size: 20px; color: var(--navy-900); }

/* ===================== HERO ===================== */
.lp-hero { position: relative; overflow: hidden; padding: 70px 24px 60px; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .28; z-index: 0; animation: blobFloat 10s ease-in-out infinite; }
.lp-blob-1 { width: 380px; height: 380px; background: var(--gold-500); top: -120px; right: -80px; }
.lp-blob-2 { width: 280px; height: 280px; background: var(--navy-600); bottom: -100px; left: -60px; animation-delay: 2s; }
.lp-blob-3 { width: 200px; height: 200px; background: #7c9cc4; top: 40%; right: 10%; animation-delay: 4s; }
@keyframes blobFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.06); } }

.lp-hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-100); color: var(--navy-800); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 30px; margin-bottom: 18px; }
.lp-badge i { color: var(--gold-500); }
.lp-hero-text h1 { font-size: 42px; line-height: 1.18; font-weight: 800; color: var(--navy-900); margin: 0 0 18px; letter-spacing: -.5px; }
.lp-highlight { color: var(--gold-500); position: relative; }
.lp-hero-text p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin: 0 0 26px; max-width: 520px; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.lp-hero-stats { display: flex; gap: 34px; }
.lp-hero-stats div { display: flex; flex-direction: column; }
.lp-hero-stats b { font-size: 24px; font-weight: 800; color: var(--navy-900); }
.lp-hero-stats span { font-size: 12px; color: var(--text-muted); }

/* ---- Mock browser window illustration ---- */
.lp-hero-visual { display: flex; justify-content: center; }
.lp-mock-window {
    width: 100%; max-width: 440px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); overflow: hidden; animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.lp-mock-topbar { background: #f1f4f8; padding: 10px 14px; display: flex; gap: 6px; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-dot-red { background: #ff5f57; } .lp-dot-amber { background: #febc2e; } .lp-dot-green { background: #28c840; }
.lp-mock-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-mock-card { display: flex; align-items: center; gap: 12px; background: #f8fafc; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--border); animation: fadeInUp .5s var(--ease) both; }
.lp-mock-card i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.lp-mock-card-a i { background: var(--blue-bg); color: var(--blue); }
.lp-mock-card-b i { background: var(--gold-100); color: var(--gold-500); }
.lp-mock-card-c i { background: var(--green-bg); color: var(--green); }
.lp-mock-card > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lp-mock-line { height: 7px; border-radius: 5px; background: #e2e8f0; display: block; }
.lp-mock-line.w-70 { width: 70%; } .lp-mock-line.w-60 { width: 60%; } .lp-mock-line.w-50 { width: 50%; }
.lp-mock-line.w-40 { width: 40%; } .lp-mock-line.w-30 { width: 30%; }
.lp-mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 70px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--border); padding: 10px 14px; }
.lp-mock-chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); border-radius: 5px 5px 0 0; animation: barGrow 1.1s var(--ease) both; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* ===================== SECTIONS ===================== */
.lp-section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.lp-section-alt { max-width: 100%; background: linear-gradient(180deg, #fff, var(--bg)); }
.lp-section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.lp-section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.lp-section-head h2 { font-size: 30px; font-weight: 800; color: var(--navy-900); margin: 0 0 10px; }
.lp-section-head p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---- Features grid ---- */
.lp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.lp-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.lp-feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; transition: transform .25s var(--ease); }
.lp-feature-card:hover .lp-feature-icon { transform: rotate(-6deg) scale(1.08); }
.lp-feature-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy-900); margin: 0 0 8px; }
.lp-feature-card p { font-size: 13.8px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---- Steps / alur kerja ---- */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.lp-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.lp-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lp-step-num {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--gold-400); font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.lp-step h4 { font-size: 15px; font-weight: 700; color: var(--navy-900); margin: 0 0 8px; }
.lp-step p { font-size: 13.2px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ---- CTA banner ---- */
.lp-cta { background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600)); padding: 70px 24px; text-align: center; position: relative; overflow: hidden; }
.lp-cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.lp-cta h2 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 14px; }
.lp-cta p { color: #cdd8e8; font-size: 15px; margin: 0 0 28px; }

/* ---- Footer ---- */
.lp-footer { padding: 26px 24px; border-top: 1px solid var(--border); background: #fff; }
.lp-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.lp-footer-inner > span:first-child { font-weight: 700; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.lp-footer-inner > span:first-child i { color: var(--gold-500); }
.lp-footer-copy { font-size: 12.5px; color: var(--text-muted); }

/* ===================== LOGIN MODAL ===================== */
.lp-login-box { max-width: 400px; position: relative; padding-top: 30px; }
.lp-modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 9px; border: none;
    background: #f1f4f8; color: #64748b; display: grid; place-items: center; transition: all .16s var(--ease);
}
.lp-modal-close:hover { background: var(--red-bg); color: var(--red); transform: rotate(90deg); }
.lp-login-head { text-align: center; margin-bottom: 22px; }
.lp-login-icon { font-size: 30px; color: var(--gold-500); margin-bottom: 10px; display: block; }
.lp-login-head h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy-900); }
.lp-login-head p { margin: 0; font-size: 12.8px; color: var(--text-muted); }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.lp-features-grid .lp-feature-card:nth-child(2) { transition-delay: .06s; }
.lp-features-grid .lp-feature-card:nth-child(3) { transition-delay: .12s; }
.lp-features-grid .lp-feature-card:nth-child(4) { transition-delay: .18s; }
.lp-features-grid .lp-feature-card:nth-child(5) { transition-delay: .24s; }
.lp-features-grid .lp-feature-card:nth-child(6) { transition-delay: .3s; }
.lp-steps .lp-step:nth-child(2) { transition-delay: .08s; }
.lp-steps .lp-step:nth-child(3) { transition-delay: .16s; }
.lp-steps .lp-step:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .lp-blob, .lp-mock-window, .lp-mock-chart span { animation: none !important; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-hero-visual { order: -1; }
    .lp-hero-text h1 { font-size: 34px; }
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .lp-nav-links { position: fixed; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px;
        box-shadow: var(--shadow); gap: 4px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .22s var(--ease); }
    .lp-nav-links.show { transform: translateY(0); opacity: 1; visibility: visible; }
    .lp-nav-links a { padding: 10px 0; border-bottom: 1px solid #f1f4f8; }
    .lp-burger { display: block; }
    .lp-hero { padding: 46px 18px 46px; }
    .lp-hero-text h1 { font-size: 28px; }
    .lp-hero-stats { gap: 22px; flex-wrap: wrap; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-section { padding: 56px 18px; }
    .lp-cta h2 { font-size: 22px; }
}
