/* Creativerse Studios — hero 3D "Satu Ide Menjadi Sistem".
   Selektor `.gl` aktif hanya bila <html class="gl"> (diputuskan skrip kecil di <head> home.blade.php, sebelum render).
   Tanpa `.gl` (tanpa WebGL / hemat data / gerak berkurang) hero tampil statis dengan gradasi merek dan daftar tahap ada di #process.
   Memakai variabel tema situs (--color-*) dengan nilai cadangan agar berdiri sendiri. */

/* ---------- dasar: hero statis (tanpa WebGL) ---------- */
.hero3d { position: relative; color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(135deg, rgba(0,196,180,.9), rgba(26,74,110,.9)), var(--color-bg, #F2F2F7); }
[data-theme="dark"] .hero3d { background: linear-gradient(135deg, rgba(0,196,180,.8), rgba(26,74,110,.8)), var(--color-bg, #05090F); }
.hero3d-in { position: relative; width: 100%; }
.hero3d-in::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.4) 1px, transparent 0); background-size: 40px 40px; }
.jr-canvas, .hero-shade, .jr, .jr-cue { display: none; }
.jr-wrap { position: relative; z-index: 2; max-width: 80rem; margin: 0 auto; padding: 7rem 1rem 5rem; }
@media (min-width: 640px) { .jr-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .jr-wrap { padding-left: 2rem; padding-right: 2rem; } }
.hero3d .txt { max-width: 48rem; }
.jr-badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; padding: .375rem 1rem; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 500;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.jr-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: jr-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes jr-pulse { 50% { opacity: .35; } }
.hero3d h1 { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.hero3d h1 em { font-style: normal; }
.hero3d .lead { max-width: 36rem; margin: 0 0 2.5rem; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.82); }
.hero3d .cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.jr-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 1.5rem; border-radius: 1rem; font-size: 17px; line-height: 1.3; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform .2s ease, background .2s ease; }
.jr-btn:active { transform: scale(.97); }
.jr-btn-p { background: #fff; color: var(--color-brand-navy, #1A4A6E); box-shadow: var(--shadow-float, 0 8px 32px rgba(0,0,0,.16)); }
.jr-btn-g { color: #fff; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); }
.jr-btn-g:hover { background: rgba(255,255,255,.24); }
.hero3d .proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.88); }
.hero3d .proof li { position: relative; padding-left: 22px; }
.hero3d .proof li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: #00C4B4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hero3d-wave { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; width: 100%; height: clamp(24px, 4.2vw, 64px); display: block; pointer-events: none; }
.hero3d-wave path { fill: var(--color-bg, #F2F2F7); }

/* ---------- hero 3D (html.gl): ide menempuh 6 perhentian, kamera mengikuti scroll ---------- */
.gl .hero3d { display: block; height: 760vh; height: 760svh; min-height: 0; overflow: visible; background: none; }
.gl .hero3d-in { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: center; overflow: hidden; overflow: clip;
    background: radial-gradient(60% 55% at 72% 46%, rgba(0,196,180,.16), transparent 70%), radial-gradient(45% 45% at 6% 88%, rgba(74,159,208,.16), transparent 70%), #061a2e; }
.gl .hero3d-in::before { display: none; }
.gl .jr-canvas { display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease .1s; }
.gl .jr-canvas.on { opacity: 1; }
.gl .hero-shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6,26,46,.96) 0%, rgba(6,26,46,.88) 34%, rgba(6,26,46,.5) 52%, rgba(6,26,46,0) 70%);
    opacity: calc(.35 + .65 * var(--intro, 1)); }
.gl .hero3d-in > .jr-wrap { width: 100%; padding-top: 36px; padding-bottom: 0; }
.gl .hero3d .txt { max-width: 40rem; opacity: var(--intro, 1); transform: translateY(calc((1 - var(--intro, 1)) * -46px)); will-change: opacity, transform; }
.gl .hero3d h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; }
.gl .hero3d h1 em { background: linear-gradient(135deg, #00D4C2, #5fb4e6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.gl .hero3d.past .txt { pointer-events: none; }
.gl .hero3d.past .txt a, .gl .hero3d.past .txt .proof { visibility: hidden; }
/* menu atas: pita kaca agar terbaca di atas adegan gelap (aturan tema situs hanya memberi kaca setelah scroll) */
.gl nav.fixed { background: var(--color-surface, rgba(255,255,255,.72)); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }

/* kartu langkah */
.gl .jr { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.gl .jr .jr-wrap { position: relative; height: 100%; padding-top: 0; padding-bottom: 0; }
.jr-card { position: absolute; left: 14px; top: 50%; width: min(440px, calc(100% - 40px)); padding: 22px 24px 20px; border-radius: 22px; color: #eaf6fb;
    border-top: 4px solid var(--c, #00C4B4); border-left: 1px solid rgba(160,220,235,.22); border-right: 1px solid rgba(160,220,235,.22); border-bottom: 1px solid rgba(160,220,235,.22);
    background: rgba(6,26,46,.82); box-shadow: 0 26px 54px -22px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 24px)); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.jr-card.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition-delay: 0s; pointer-events: auto; }
.jr-step { display: block; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--c, #00C4B4); }
.jr-t { display: block; margin-top: 6px; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.jr-card p { margin: 10px 0 0; color: #bcd3df; font-size: 1rem; line-height: 1.55; }
.jr-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 15px 7px 11px; border-radius: 99px; font-size: 13.5px; line-height: 1.3; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.08); border: 1.5px solid var(--c, #00C4B4); }
.jr-chip::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--c, #00C4B4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.jr-end .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jr-end .jr-btn { padding: .75rem 1.25rem; font-size: 16px; }
.jr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.jr-stats li { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(160,220,235,.18); }
.jr-stats b { display: block; font-size: 1.55rem; line-height: 1.1; font-weight: 800; color: #7fe0d4; font-variant-numeric: tabular-nums; }
.jr-stats span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #bcd3df; }

/* titik navigasi & petunjuk gulir */
.jr-dots { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; pointer-events: auto; }
.jr-dot { position: relative; width: 16px; height: 16px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid rgba(234,246,251,.5); background: rgba(6,26,46,.5);
    transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.jr-dot.on { background: var(--c, #00C4B4); border-color: var(--c, #00C4B4); transform: scale(1.3); }
.jr-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.jr-dot::before { content: attr(data-k); position: absolute; right: 26px; top: 50%; transform: translateY(-50%); padding: 4px 10px; border-radius: 8px; white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff;
    background: rgba(6,26,46,.92); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.jr-dot:hover::before, .jr-dot:focus-visible::before { opacity: 1; }
.gl .jr-cue { display: block; position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; text-align: center; color: #a9c4d3; font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: var(--intro, 1); pointer-events: none; text-shadow: 0 1px 10px rgba(6,26,46,.95); }
.jr-cue::after { content: ""; display: block; width: 2px; height: 26px; margin: 8px auto 0; background: linear-gradient(#00C4B4, transparent); animation: jrcue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes jrcue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* daftar tahap: terlihat bila tanpa WebGL; dengan WebGL hanya untuk pembaca layar/mesin pencari */
.jr-static { padding: 5rem 0; }
.jr-list-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .jr-list-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .jr-list-wrap { padding: 0 2rem; } }
.jr-list-head { margin-bottom: 3.5rem; text-align: center; }
.jr-list-head h2 { margin: 0 0 .75rem; font-size: 28px; line-height: 34px; font-weight: 700; }
.jr-list-head p { max-width: 36rem; margin: 0 auto; font-size: 16px; line-height: 21px; color: var(--color-label-2, rgba(60,60,67,.6)); }
.jr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.jr-list li { position: relative; padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--c);
    background: var(--color-surface, rgba(255,255,255,.72)); box-shadow: var(--shadow-card, 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06)); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.jr-list .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--c); color: #06222c; font-size: 15px; font-weight: 800; }
.jr-list h3 { margin: 14px 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; }
.jr-list p { margin: 0; font-size: 15px; line-height: 20px; color: var(--color-label-2, rgba(60,60,67,.6)); }
.jr-list .jr-list-t { margin-bottom: 8px; font-weight: 600; color: var(--color-label, #0A0A0F); }
.jr-list .b { display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--c); font-size: 12.5px; line-height: 1.3; font-weight: 700; }
.sr-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gl .jr-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1024px) { .jr-card { left: 32px; } }
@media (max-width: 860px) {
    .hero3d .lead { font-size: 16px; }
    .gl .hero3d-in { align-items: flex-start; }
    .gl .hero3d-in > .jr-wrap { padding-top: 92px; }
    .gl .hero-shade { background: linear-gradient(180deg, rgba(6,26,46,.94) 0%, rgba(6,26,46,.72) 40%, rgba(6,26,46,0) 70%); opacity: var(--intro, 1); }
    .gl .hero3d h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); margin: 10px 0 14px; }
    .gl .hero3d .lead { font-size: .98rem; margin-bottom: 0; }
    .gl .hero3d .cta-row { margin-top: 20px; gap: 10px; }
    .gl .hero3d .cta-row .jr-btn { padding: .8rem 1.1rem; font-size: 16px; }
    .gl .hero3d .proof { display: none; }
    .jr-card { top: auto; bottom: 54px; left: 14px; width: calc(100% - 28px); padding: 16px 18px 15px; transform: translateY(24px); }
    .jr-card.on { transform: none; }
    .jr-t { font-size: 1.35rem; }
    .jr-card p { font-size: .92rem; margin-top: 8px; }
    .jr-chip { margin-top: 10px; }
    .jr-stats { gap: 8px; margin-top: 10px; }
    .jr-stats b { font-size: 1.25rem; }
    .jr-end .cta-row { margin-top: 12px; }
    .jr-dots { right: auto; left: 50%; top: auto; bottom: 18px; transform: translateX(-50%); flex-direction: row; gap: 14px; }
    .jr-dot::before { display: none; }
    .gl .jr-cue { bottom: 60px; }
    .jr-in button[aria-label="Scroll to top"] { display: none !important; }      /* tombol ke-atas mengambang menimpa tombol di kartu; tak berguna di dalam hero */
}
@media (prefers-reduced-motion: reduce) { .jr-pulse, .jr-cue::after { animation: none; } .jr-card { transition: none; } }
