/* ==================================================================
   HMS Landing Page (Homepage publik "/") — TAHAP 35 (30 Sep 2026)
   Tampilan marketing premium, DIBEDAKAN dari halaman Login/Register:
   - navbar kaca sticky, hero 2 kolom dgn kolase foto melayang (gerak
     acak via static/js/floating-gallery.js, dipindah dari halaman Login)
   - section bertingkat: segmen, fitur, cara kerja, harga, keamanan, FAQ
   Semua warna lewat token theme.css (light/dark ikut otomatis), animasi
   transform/opacity saja. Tidak menyentuh class global theme.css.
   ================================================================== */

.lp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    /* Orb & kartu yg sengaja keluar tepi tidak boleh bikin scroll
       horizontal di HP. `clip` (bukan hidden) supaya navbar sticky tetap jalan. */
    overflow-x: clip;
    padding: 0 6px;
}

/* ---------- Orb cahaya lembut di belakang hero ---------- */
.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--accent), var(--accent-2));
}
.lp-orb.o1 { width: 420px; height: 420px; top: 40px; right: -120px; opacity: 0.20; }
.lp-orb.o2 { width: 300px; height: 300px; top: 360px; left: -140px; opacity: 0.14; }

/* ---------- Navbar kaca ---------- */
.lp-nav {
    position: sticky;
    top: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 18px;
    margin-bottom: 28px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: var(--glass-shadow);
}
.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.lp-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.lp-brand strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.lp-brand small { display: block; font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.lp-nav-links { display: flex; gap: 26px; font-size: 0.88rem; font-weight: 500; }
.lp-nav-links a { color: var(--text-secondary); transition: color var(--transition-smooth); }
.lp-nav-links a:hover { color: var(--accent); }
.lp-nav-cta { display: flex; gap: 8px; align-items: center; }
/* Toggle tema dipindah ke dalam navbar; pill global di base.html
   (.auth-theme-toggle-wrap) disembunyikan KHUSUS di homepage. */
.auth-theme-toggle-wrap { display: none !important; }
.lp-nav-cta .theme-toggle { margin-right: 4px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 560px;
    margin-bottom: 72px;
}
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur-soft);
    margin-bottom: 22px;
}
.lp-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 4.4vw, 3.35rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.lp-hero h1 .lp-grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-hero .lp-lead {
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 28px;
}
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.lp-hero-cta .btn { padding: 12px 22px; }
.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.lp-trust i { color: var(--success); margin-right: 6px; }
.lp-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.lp-stats .stat-value { font-size: 1.6rem; }

/* ---------- Kolase foto melayang ---------- */
.fg-stage {
    position: relative;
    height: 540px;
}
.fg-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    background: var(--glass-bg);
    will-change: transform;
}
.fg-card img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; }
/* Kalau foto gagal dimuat, kartu tetap tampil sebagai kaca bergradien lembut (tanpa teks alt/ikon rusak). */
.fg-card:not(.fg-chip) { background: linear-gradient(135deg, var(--accent-soft), var(--glass-bg-strong)); }
.fg-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
    animation: glassReflection 2.8s ease-in-out 0.8s 1;
    pointer-events: none;
}
.fg-card.s1 { width: 58%; height: 46%; top: 4%;  left: 20%; z-index: 3; }
.fg-card.s2 { width: 38%; height: 30%; top: 0;   left: -2%; z-index: 2; }
.fg-card.s3 { width: 36%; height: 30%; top: 12%; right: -4%; z-index: 2; }
.fg-card.s4 { width: 44%; height: 34%; top: 50%; left: 2%;  z-index: 4; }
.fg-card.s5 { width: 46%; height: 36%; top: 46%; right: 0;  z-index: 3; }
.fg-card.s6 { width: 30%; height: 24%; bottom: -2%; left: 38%; z-index: 5; }

/* Label kaca kecil yg ikut melayang (bukan widget data) */
.fg-card.fg-chip {
    overflow: visible;
    width: auto;
    height: auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 6;
}
.fg-card.fg-chip::after { display: none; }
.fg-card.fg-chip i { color: var(--accent); margin-right: 6px; }
.fg-chip.c1 { top: 44%; left: -6%; }
.fg-chip.c2 { top: 2%;  right: 18%; }
.fg-chip.c3 { bottom: 6%; right: 2%; }

/* ---------- Section umum ---------- */
.lp-section { position: relative; z-index: 1; margin-bottom: 84px; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lp-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.lp-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 12px;
}
.lp-sub { color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* Segmen pengguna */
.lp-segment {
    height: 100%;
    padding: 24px;
    text-align: left;
}
.lp-segment .lp-ico {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.lp-segment h6 { font-weight: 600; margin-bottom: 6px; }
.lp-segment p { color: var(--text-muted); font-size: 0.86rem; margin: 0; line-height: 1.6; }

/* Cara kerja: 3 langkah dgn garis penghubung */
.lp-steps { position: relative; }
.lp-steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}
.lp-step { text-align: center; padding: 0 12px; position: relative; }
.lp-step .lp-num {
    width: 54px; height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(91, 95, 239, 0.28);
}
.lp-step h6 { font-weight: 600; margin-bottom: 6px; }
.lp-step p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; margin: 0; }

/* Kartu harga */
.lp-price { height: 100%; padding: 30px 26px; display: flex; flex-direction: column; }
.lp-price .lp-plan { font-weight: 600; letter-spacing: 0.02em; margin-bottom: 8px; }
.lp-price .lp-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.lp-price .lp-amount small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.lp-price .lp-note { color: var(--text-muted); font-size: 0.84rem; margin: 10px 0 22px; flex: 1; }
.lp-price .lp-ribbon {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 12px;
}

/* Keamanan */
.lp-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.lp-trust-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 22px;
    text-align: center;
}
.lp-trust-item h6 { font-weight: 600; margin-bottom: 4px; }
.lp-trust-item p { color: var(--text-muted); font-size: 0.86rem; margin: 0; line-height: 1.6; }

/* FAQ (details/summary native, tanpa JS) */
.lp-faq { max-width: 820px; margin: 0 auto; }
.lp-faq details {
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 4px;
}
.lp-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: "+";
    color: var(--accent);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform var(--transition-smooth);
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { color: var(--text-secondary); margin: 12px 0 0; line-height: 1.65; font-size: 0.92rem; }

/* CTA penutup */
.lp-cta {
    text-align: center;
    padding: 56px 32px;
    overflow: hidden;
}
.lp-cta h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
    .lp-nav-links { gap: 18px; }
}
@media (max-width: 991px) {
    .lp-nav-links { display: none; }
    .lp-hero { grid-template-columns: 1fr; min-height: 0; gap: 12px; margin-bottom: 56px; }
    .lp-hero-copy { text-align: center; }
    .lp-hero .lp-lead { margin-left: auto; margin-right: auto; }
    .lp-hero-cta, .lp-trust, .lp-stats { justify-content: center; }
    .fg-stage { height: 420px; max-width: 560px; width: 100%; margin: 0 auto; }
    .lp-steps::before { display: none; }
    .lp-step { margin-bottom: 26px; }
}
@media (max-width: 576px) {
    .lp-nav { border-radius: 22px; padding: 8px 8px 8px 12px; top: 8px; }
    .lp-brand small { display: none; }
    .lp-nav-cta .btn { padding: 6px 12px; font-size: 0.78rem; }
    .lp-brand strong { font-size: 0.95rem; }
}
@media (max-width: 400px) {
    .lp-nav-cta .theme-toggle { display: none; }
    .fg-stage { height: 300px; }
    .fg-card.s3, .fg-card.s6, .fg-chip.c2 { display: none; }
    .fg-chip.c1 { left: 0; }
    .lp-section { margin-bottom: 60px; }
    .lp-stats { gap: 22px; }
}

/* Kartu ber-gradient-border di homepage memakai isi kaca yang lebih pekat
   supaya teks abu-abu tetap terbaca (gradient-border bawaan memakai
   --glass-bg yg transparan, sehingga warna aksen tembus terlalu kuat). */
.lp-price.gradient-border,
.lp-cta.gradient-border {
    background-image:
        linear-gradient(var(--glass-bg-strong), var(--glass-bg-strong)),
        linear-gradient(135deg, var(--accent), var(--accent-2));
}
