/* ===== Animasi hero JDIH (gaya hero BKD Kepahiang) ===== */
.hero-visual{position:relative;min-height:680px;display:flex;align-items:center;justify-content:center;--mx:0;--my:0;}
.hero-visual .orbit{position:absolute;left:50%;top:50%;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);border:1px dashed rgba(255,255,255,.24);border-radius:50%;animation:hvSpin 80s linear infinite;pointer-events:none;}
.hero-visual .orbit.o2{--s:410px;animation-duration:55s;animation-direction:reverse;border-style:solid;border-color:rgba(255,255,255,.12);}
.hero-visual .orbit.o1{--s:590px;}
.hero-visual .orbit i{position:absolute;top:-6px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#7CC4FF;box-shadow:0 0 16px 5px rgba(124,196,255,.75);}
.hero-visual .orbit.o2 i{background:#FFC83D;box-shadow:0 0 16px 5px rgba(255,200,61,.7);top:auto;bottom:-6px;}
.hero-visual .orbit.o1 i.b{top:auto;bottom:18%;left:6%;width:8px;height:8px;background:#5BE49B;box-shadow:0 0 12px 4px rgba(91,228,155,.7);}
@keyframes hvSpin{to{transform:rotate(360deg)}}

/* kartu register di tengah: melayang */
.hero-visual .hero-card{position:relative;z-index:2;width:min(360px,76%);transform:none;animation:hvBob 7s ease-in-out infinite,hvPop .9s cubic-bezier(.2,.8,.2,1) both;}
.hero-visual .hero-card:hover{transform:none;}
@keyframes hvBob{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes hvPop{from{opacity:0;scale:.9;filter:blur(6px)}to{opacity:1;scale:1;filter:none}}

/* chip melayang */
.fchip{position:absolute;z-index:3;display:flex;align-items:center;gap:11px;padding:10px 15px 10px 10px;border-radius:16px;color:#fff;
  background:linear-gradient(135deg,#0B3C7D,#1565C0);border:1px solid rgba(255,255,255,.3);
  box-shadow:0 14px 34px -14px rgba(3,20,50,.55);translate:calc(var(--mx) * var(--k,10) * 1px) calc(var(--my) * var(--k,10) * 1px);
  animation:hvFloat var(--t,6s) ease-in-out var(--dl,0s) infinite,hvChip .8s cubic-bezier(.2,.8,.2,1) var(--en,.4s) both;transition:translate .25s ease-out;}
.fchip .ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#FFC83D,#F29A00);flex:none;}
.fchip .ic svg{width:20px;height:20px;stroke:#3a2600;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.fchip b{display:block;font-size:14px;line-height:1.2;}
.fchip small{display:block;font-size:12px;color:#CFE3F8;margin-top:2px;}
.fchip.white{background:#fff;color:#10243E;border-color:#fff;}
.fchip.white small{color:#4C6179;}
.fchip.white .ic{background:linear-gradient(135deg,#1565C0,#0B3C7D);}
.fchip.white .ic svg{stroke:#fff;}
.fchip.c1{top:6px;right:0;--t:7s;--k:-6;--en:.2s}
.fchip.c2{top:6px;left:-10px;--t:6.2s;--dl:-1.2s;--k:12;--en:.5s}
.fchip.c3{top:46%;right:-58px;margin-top:0;--t:6.8s;--dl:-2.4s;--k:-14;--en:.7s}
.fchip.c4{bottom:6px;left:-10px;--t:7.4s;--dl:-.6s;--k:8;--en:.9s;flex-direction:column;align-items:flex-start;gap:8px;padding:12px 16px}
.fchip.c5{bottom:14px;right:0;--t:5.8s;--dl:-3s;--k:-8;--en:1.1s}
@keyframes hvFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}
@keyframes hvChip{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1}}

/* mini grafik batang */
.minichart{display:flex;align-items:flex-end;gap:6px;height:46px;}
.minichart span{width:9px;border-radius:4px 4px 2px 2px;background:linear-gradient(180deg,#FFC83D,#E08E00);height:var(--h);transform-origin:bottom;animation:hvBar 1s cubic-bezier(.2,.8,.2,1) calc(1.1s + var(--i) * .09s) both,hvBeat 3.6s ease-in-out calc(2.4s + var(--i) * .18s) infinite;}
@keyframes hvBar{from{transform:scaleY(0)}}
@keyframes hvBeat{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.78)}}

/* teks kiri: muncul bertahap */
.hero-new .hero-grid > div:first-child > *{animation:hvUp .8s cubic-bezier(.2,.8,.2,1) both;}
.hero-new .hero-grid > div:first-child > :nth-child(1){animation-delay:.05s}
.hero-new .hero-grid > div:first-child > :nth-child(2){animation-delay:.18s}
.hero-new .hero-grid > div:first-child > :nth-child(3){animation-delay:.32s}
.hero-new .hero-grid > div:first-child > :nth-child(4){animation-delay:.46s}
.hero-new .hero-grid > div:first-child > :nth-child(5){animation-delay:.58s}
.hero-new .hero-grid > div:first-child > :nth-child(6){animation-delay:.7s}
@keyframes hvUp{from{opacity:0;transform:translateY(26px)}}
.hero-new h1 em{background-size:220% 100%;animation:hvShine 5s linear infinite;background-image:linear-gradient(90deg,#FFE3A1,#FFC83D,#fff3cf,#FFC83D,#FFE3A1);}
@keyframes hvShine{to{background-position:-220% 0}}
.hero-new::after{animation:hvDots 24s linear infinite;}
@keyframes hvDots{to{background-position:26px 26px}}
.hero-new .quick-chips a{transition:transform .2s,background .2s}.hero-new .quick-chips a:hover{transform:translateY(-3px);background:rgba(255,255,255,.2)}

@media (max-width:1020px){
.hero-grid{grid-template-columns:minmax(0,1fr)!important}
.hero-grid>*{min-width:0}
.hero-visual{min-height:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px}
.hero-visual .orbit,.fchip.c1,.fchip.c5{display:none}
.hero-visual .hero-card{order:-1;width:100%;max-width:520px;animation:hvPop .9s cubic-bezier(.2,.8,.2,1) both}
.fchip{position:static;translate:none;flex:1 1 calc(50% - 5px);max-width:calc(50% - 5px);min-width:0;padding:9px 11px;gap:9px;margin:0;animation:hvChip .7s cubic-bezier(.2,.8,.2,1) var(--en,.4s) both}
.fchip .ic{width:34px;height:34px}.fchip b{font-size:13px}.fchip small{font-size:11px}
.fchip.c4{flex:1 1 100%;max-width:520px;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 14px}
}
@media (max-width:640px){
.wrap{padding-left:18px;padding-right:18px}
header.main .wrap{gap:10px}
.brand{flex-shrink:1;min-width:0;gap:8px}
.brand img{width:38px;height:38px}
.brand .word{min-width:0}
.brand .word strong{font-size:15px}
.brand .word span{white-space:normal;font-size:10px;letter-spacing:.2px;line-height:1.25}
.header-actions{flex-shrink:0;gap:8px}
.mobile-menu{max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.hero-grid{padding-top:36px;padding-bottom:84px;gap:28px}
.hero-new h1{font-size:2rem;max-width:none}
.hero-new .lead{font-size:15px;line-height:1.65;margin-bottom:22px}
.hero-new .quick-chips a{font-size:13px;padding:8px 14px}
}
@media (prefers-reduced-motion:reduce){.hero-visual *,.hero-visual,.hero-new *{animation:none !important;transition:none !important}.fchip{opacity:1}}
