/* Sobat Skripsi — demo situs geser layanan */
:root {
  --navy: #0C1F4D;
  --kuning: #FFB814;
  --putih: #fff;
  --tinggi-kepala: 76px;
  --tinggi-nav: 92px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #D7263D;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

/* ---------- layar muat ---------- */
.muat {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .02em; transition: opacity .5s;
}
.muat.hilang { opacity: 0; pointer-events: none; }
.muat img { width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 8px; animation: lompat .7s ease-in-out infinite alternate; }
@keyframes lompat { to { transform: translateY(-14px) scaleY(1.04); } }

/* ---------- kepala ---------- */
.kepala {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--tinggi-kepala);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 56px);
  color: var(--ink, #fff); transition: color .6s;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-ikon { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.logo-ikon img { width: 40px; height: 40px; object-fit: contain; }
.logo-teks { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.logo-teks b { font-weight: 900; margin-left: 4px; }
.kepala-tautan { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-weight: 600; font-size: 15px; }
.kepala-tautan > a:not(.tombol-wa) { opacity: .85; }
.kepala-tautan > a:not(.tombol-wa):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.tombol-wa {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  background: #fff; color: var(--warna-tombol, #D7263D); font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18); transition: transform .2s, box-shadow .2s;
}
.tombol-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.tombol-wa svg { width: 22px; height: 22px; }
.tombol-wa.kecil { padding: 10px 18px; font-size: 14px; }
.tombol-wa.kecil svg { width: 18px; height: 18px; }

/* ---------- panggung & slide ---------- */
.panggung { position: fixed; inset: 0; touch-action: pan-y; cursor: grab; }
.panggung.tarik { cursor: grabbing; }
.slide {
  position: absolute; inset: 0; visibility: hidden; overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(60vmax 60vmax at 72% 48%, var(--c1) 0%, transparent 70%),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
}
.slide.aktif { visibility: visible; }
.slide::after { /* butir halus */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.kata {
  position: absolute; left: 50%; top: 50%; white-space: nowrap; pointer-events: none;
  font-size: clamp(110px, 23vw, 430px); font-weight: 900; letter-spacing: -.05em; line-height: 1;
  color: var(--kata, rgba(255,255,255,.13));
}

.isi {
  position: absolute; inset: var(--tinggi-kepala) 0 var(--tinggi-nav) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  padding: 0 clamp(24px, 7vw, 120px); gap: 2vw;
}

/* teks */
.teks { position: relative; z-index: 3; max-width: 560px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.kicker .no { background: #fff; color: var(--c2); border-radius: 999px; padding: 3px 10px; font-weight: 900; }
.judul { margin: 18px 0 16px; font-size: clamp(46px, 6.3vw, 104px); font-weight: 900; line-height: .92; letter-spacing: -.035em; }
.judul .baris { display: block; overflow: hidden; padding-bottom: .06em; }
.judul .baris:nth-child(2) { color: var(--soft); }
.judul .hrf { display: inline-block; will-change: transform; }
.desk { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; opacity: .92; max-width: 480px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid currentColor; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08);
}
.slide[data-gelap] .chip { border-color: rgba(12,31,77,.35); background: rgba(255,255,255,.25); }
.slide[data-gelap] .kicker { background: rgba(255,255,255,.4); }
.aksi { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.harga { font-size: 14px; font-weight: 600; opacity: .9; line-height: 1.35; }
.harga b { display: block; font-size: 20px; font-weight: 900; opacity: 1; }

/* panggung tokoh */
.tokoh { position: relative; height: 100%; max-height: 720px; min-height: 0; display: grid; place-items: center; }
.ruang { position: relative; height: min(100%, 600px); aspect-ratio: .82; }
.alas {
  position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.34), rgba(255,255,255,.08) 62%, transparent 70%);
}
.alas::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35);
  animation: putar 40s linear infinite;
}
@keyframes putar { to { transform: rotate(360deg); } }
.bayang { position: absolute; left: 50%; bottom: 2%; width: 46%; height: 5%; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(10px); }

/* benda melayang */
.benda { position: absolute; z-index: 2; pointer-events: none; left: var(--x); top: var(--y); }
.benda.depan { z-index: 4; }
.benda .par, .benda .apung { display: block; }
.kertas {
  width: 92px; padding: 12px 11px; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.2);
  display: grid; gap: 6px;
}
.kertas i { display: block; height: 6px; border-radius: 3px; background: #DDE2EC; }
.kertas i.w { background: var(--c2); opacity: .75; }
.kertas i.p { width: 60%; }
.kertas.dua { grid-template-columns: 1fr 1fr; width: 110px; }
.kertas.dua i:first-child { grid-column: 1 / -1; height: 9px; background: var(--navy); opacity: .8; }
.pil {
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--c2); font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.pil.gelap { background: var(--navy); color: #fff; }
.bulat {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--c2); display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.bulat svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bulat.kecil { width: 50px; height: 50px; }
.bulat.kecil svg { width: 24px; height: 24px; }
.angka {
  width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 30px; letter-spacing: -.03em; box-shadow: 0 14px 30px rgba(0,0,0,.25); border: 4px solid #fff;
}
.stempel {
  padding: 8px 16px; border: 4px solid #fff; border-radius: 10px; color: #fff; font-weight: 900; font-size: 24px; letter-spacing: .04em;
  background: rgba(0,0,0,.12); backdrop-filter: blur(4px);
}
.kilau svg { width: 34px; height: 34px; fill: #fff; }
.kilau.kecil svg { width: 20px; height: 20px; }
.layar {
  width: 128px; aspect-ratio: 16/10; border-radius: 10px; background: #fff; padding: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.2);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 6px;
}
.layar b { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--c2); width: 70%; }
.layar span { border-radius: 6px; background: #E9ECF3; }
.layar span:last-child { background: linear-gradient(to top, var(--c2) 0 35%, #E9ECF3 35%); }
.catatan {
  width: 104px; padding: 12px; background: #FFE98A; color: var(--navy); font-weight: 800; font-size: 14px; line-height: 1.2;
  box-shadow: 0 12px 24px rgba(0,0,0,.18); border-radius: 4px 4px 4px 18px;
}

/* ---------- panah ---------- */
.panah {
  position: fixed; top: 50%; z-index: 15; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4); color: var(--ink, #fff); transition: background .2s, transform .2s;
}
.panah:hover { background: rgba(255,255,255,.3); transform: scale(1.06); }
.panah svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panah.kiri { left: clamp(10px, 1.6vw, 26px); }
.panah.kanan { right: clamp(10px, 1.6vw, 26px); }

/* ---------- navigasi bawah ---------- */
.navbawah {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; height: var(--tinggi-nav);
  display: flex; justify-content: center; align-items: center; gap: clamp(4px, 1vw, 12px); padding: 0 16px 10px;
  color: var(--ink, #fff); transition: color .6s;
}
.tab { position: relative; padding: 10px 14px 14px; text-align: left; opacity: .62; transition: opacity .25s; min-width: 0; }
.tab:hover, .tab.aktif { opacity: 1; }
.tab .n { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.tab .l { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tab .bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px; background: currentColor; opacity: .25; overflow: hidden; }
.tab .bar i { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; opacity: 1; }
.tab.aktif .bar { opacity: .35; }
.tab.aktif .bar i { opacity: 1; }

/* ---------- petunjuk geser ---------- */
.petunjuk {
  position: fixed; left: 50%; bottom: calc(var(--tinggi-nav) + 8px); z-index: 16; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(0,0,0,.22); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; opacity: 0;
}
.petunjuk svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: usap 1.4s ease-in-out infinite; }
@keyframes usap { 0%,100% { transform: translateX(6px); } 50% { transform: translateX(-6px) rotate(-8deg); } }

/* ---------- HP ---------- */
@media (max-width: 860px) {
  :root { --tinggi-kepala: 64px; --tinggi-nav: 64px; }
  .kepala-tautan > a:not(.tombol-wa) { display: none; }
  .logo-ikon { width: 38px; height: 38px; } .logo-ikon img { width: 34px; height: 34px; }
  .logo-teks { font-size: 17px; }
  .isi { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 0 16px; gap: 0; align-items: stretch; }
  .tokoh { order: 1; max-height: none; }
  .ruang { height: 100%; max-height: 420px; }
  .teks { order: 2; max-width: none; padding-bottom: 6px; }
  .kicker { font-size: 11px; }
  .judul { font-size: clamp(36px, 11vw, 56px); margin: 10px 0 8px; }
  .desk { font-size: 14px; line-height: 1.5; }
  .chips { margin: 10px 0 14px; gap: 6px; }
  .chip { font-size: 12px; padding: 5px 10px; }
  .tombol-wa { padding: 12px 20px; font-size: 15px; }
  .harga { font-size: 12px; } .harga b { font-size: 16px; }
  .kata { font-size: 46vw; top: 34%; }
  .panah { display: none; }
  .navbawah { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 8px 6px; gap: 0; }
  .navbawah::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 8px 10px 12px; }
  .tab .l { font-size: 12px; }
  .tab .bar { left: 10px; right: 10px; }
  .benda { left: clamp(15%, var(--x), 85%); }
  .benda .skala { transform: scale(.68); }
  .petunjuk { bottom: auto; top: 40%; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .desk { display: none; }
}
@media (min-width: 861px) and (max-height: 720px) {
  .judul { font-size: clamp(40px, 5vw, 72px); }
  .desk { font-size: 15px; }
  .chips { margin: 12px 0 18px; }
}
