/* ═══════════════════════════════════════════════════════════════════════
   motion.css — Animasi scroll, slider hero & polish modern (halaman publik)
   Progressive enhancement: semua efek aktif HANYA jika <html class="js-motion">
   (diset skrip kecil di <head>), sehingga tanpa JS konten tetap tampil penuh.
   Hormati prefers-reduced-motion. Tanpa library eksternal.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --mo-ease: cubic-bezier(.22, .8, .24, 1);       /* easeOutQuart halus */
    --mo-ease-io: cubic-bezier(.65, 0, .35, 1);
    --mo-dur: .7s;
}

/* ── Progress bar scroll di atas halaman ─────────────────────────────── */
.mo-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1000; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #0f62fe, #5b9bff 60%, #F96D01); }

/* ── Header: efek saat di-scroll ─────────────────────────────────────── */
.site-header { transition: box-shadow .35s var(--mo-ease), background .35s var(--mo-ease), height .35s var(--mo-ease); }
.site-header.is-scrolled { box-shadow: 0 8px 28px -12px rgba(11, 15, 26, .22); background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.nav-logo img { transition: transform .35s var(--mo-ease); }
.site-header.is-scrolled .nav-logo img { transform: scale(.92); }

/* ── Reveal saat scroll ──────────────────────────────────────────────── */
.js-motion [data-mo] { opacity: 0; transition: opacity var(--mo-dur) var(--mo-ease), transform var(--mo-dur) var(--mo-ease), filter var(--mo-dur) var(--mo-ease);
    transition-delay: calc(var(--mo-i, 0) * 70ms); will-change: opacity, transform; }
.js-motion [data-mo="up"]    { transform: translate3d(0, 28px, 0); }
.js-motion [data-mo="down"]  { transform: translate3d(0, -24px, 0); }
.js-motion [data-mo="left"]  { transform: translate3d(-36px, 0, 0); }
.js-motion [data-mo="right"] { transform: translate3d(36px, 0, 0); }
.js-motion [data-mo="zoom"]  { transform: scale(.94); }
.js-motion [data-mo="blur"]  { transform: translate3d(0, 18px, 0); filter: blur(8px); }
.js-motion [data-mo].is-in   { opacity: 1; transform: none; filter: none; will-change: auto; }

/* Setelah animasi masuk selesai, atribut data-mo dilepas oleh JS sehingga
   transisi/hover bawaan komponen kembali berlaku penuh. */

/* ── Kartu: hover lebih halus (tanpa mengubah layout) ────────────────── */
.hm-card, .hm-btn, .hm-act { transition-timing-function: var(--mo-ease); }
.hm-btn, .hm-act { position: relative; overflow: hidden; }
.hm-btn::after, .hm-act::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--mo-ease); pointer-events: none; }
.hm-btn:hover::after, .hm-act.primary:hover::after { transform: translateX(120%); }

/* ═════════════════════════ HERO SLIDER ══════════════════════════════ */
.hs { position: relative; overflow: hidden; color: #fff; background: #061140; isolation: isolate; }
.hs-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #061140 0%, #0f62fe 60%, #3b82f6 100%); }
.hs-bg::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 24px 24px; }
.hs-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; pointer-events: none; }
.hs-orb.a { width: 420px; height: 420px; right: -120px; top: -160px; background: #5b9bff; animation: hs-float 14s var(--mo-ease-io) infinite alternate; }
.hs-orb.b { width: 320px; height: 320px; left: -100px; bottom: -140px; background: #F96D01; opacity: .28; animation: hs-float 18s var(--mo-ease-io) infinite alternate-reverse; }
@keyframes hs-float { to { transform: translate3d(-40px, 50px, 0) scale(1.12); } }

.hs-viewport { position: relative; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; transition: height .6s var(--mo-ease); }
.hs-viewport.is-drag { cursor: grabbing; }
.hs-slide { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .9s var(--mo-ease), visibility 0s linear .9s; }
.hs-slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s var(--mo-ease), visibility 0s; z-index: 1; }
.hs .hs-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
    padding-top: 64px; padding-bottom: 96px; min-height: 500px; }

/* Konten tiap slide masuk bertahap (stagger) */
.hs-slide [data-s] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--mo-ease), transform .8s var(--mo-ease); }
.hs-slide.is-active [data-s] { opacity: 1; transform: none; transition-delay: calc(.18s + var(--s, 0) * .09s); }
.hs-slide.is-leaving [data-s] { transition-delay: 0s; }
.hs-slide.is-leaving { position: absolute; }
.hs-slide [data-s="r"] { transform: translate3d(48px, 0, 0) scale(.96); }
.hs-slide.is-active [data-s="r"] { transform: none; }

.hs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hs-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: block; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: hs-pulse 2s infinite; }
@keyframes hs-pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hs h1, .hs h2.hs-title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; }
.hs-lead { font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.65; color: rgba(255, 255, 255, .84); margin: 0 0 26px; max-width: 560px; }
.hs-chips { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chips li { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 600; }
.hs-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 22px; }
.hs-price s { font-size: .95rem; font-weight: 600; opacity: .65; margin-right: 8px; }

/* Slide tanpa gambar: satu kolom, teks tetap nyaman dibaca */
.hs .hs-in.is-solo { grid-template-columns: minmax(0, 820px); }
.hs.hs-single .hs-in { min-height: 0; padding-bottom: 64px; }
.hs-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; }

/* Visual kanan: bingkai gambar dengan Ken Burns + melayang */
.hs-visual { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.hs-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 7s linear; }
.hs-slide.is-active .hs-visual img { transform: scale(1); }
.hs-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 17, 64, .55)); pointer-events: none; }
.hs-visual.contain img { object-fit: contain; padding: 14px; background: rgba(255, 255, 255, .92); }
.hs-slide.is-active .hs-visual { animation: hs-bob 6s var(--mo-ease-io) 1s infinite alternate; }
@keyframes hs-bob { to { transform: translate3d(0, -10px, 0); } }

.hs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hs-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 18px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-stat b { display: block; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-stat span { font-size: .82rem; color: rgba(255, 255, 255, .75); font-weight: 600; }

/* Kontrol: panah + indikator berprogres */
.hs-ui { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; pointer-events: none; }
.hs-ui-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hs-dots { display: flex; gap: 8px; pointer-events: auto; }
.hs-dot { position: relative; width: 38px; height: 28px; background: none; border: 0; padding: 0; cursor: pointer; }
.hs-dot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.hs-dot i { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 100%; border-radius: 4px; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hs-dot.is-done i { transform: scaleX(1); }
.hs-dot.is-active i { animation: hs-fill var(--hs-delay, 6500ms) linear forwards; }
.hs.is-paused .hs-dot.is-active i { animation-play-state: paused; }
.hs.no-auto .hs-dot.is-active i { animation: none; transform: scaleX(1); }
@keyframes hs-fill { to { transform: scaleX(1); } }
.hs-arrows { display: flex; gap: 10px; pointer-events: auto; }
.hs-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, transform .25s var(--mo-ease), color .25s; }
.hs-arrow:hover { background: #fff; color: #0f62fe; transform: scale(1.08); }
.hs-arrow:active { transform: scale(.94); }
.hs-dot:focus-visible, .hs-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
    .hs .hs-in { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; padding-bottom: 92px; min-height: 0; }
    .hs-visual { aspect-ratio: 16 / 10; order: 2; }
    .hs-slide [data-s="r"] { transform: translate3d(0, 28px, 0); }
}
@media (max-width: 600px) {
    .hs-lead { margin-bottom: 20px; }
    .hs-arrow { width: 42px; height: 42px; }
    .hs-arrows { display: none; }                              /* mobile: swipe + indikator (kanan-bawah dipakai tombol WA/email) */
    .hs .hs-in { padding-top: 40px; padding-bottom: 76px; gap: 20px; }
    .hs-visual { aspect-ratio: 16 / 9; }
    .hs-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .hs-stat { padding: 12px 6px; text-align: center; border-radius: 12px; }
    .hs-stat b { font-size: 1.2rem; } .hs-stat span { font-size: .66rem; }
    .hs-dot { width: 30px; }
}

/* ── Aksesibilitas gerak ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .js-motion [data-mo], .hs-slide [data-s], .hs-slide, .hs-visual img { transition: none !important; transform: none !important; filter: none !important; opacity: 1; }
    .hs-slide { opacity: 0; } .hs-slide.is-active { position: relative; opacity: 1; }
    .hs-orb, .hs-eyebrow i, .hs-slide.is-active .hs-visual { animation: none !important; }
    .mo-progress { display: none; }
}
