html {
  scroll-behavior: smooth;
}
body {
  background-color: #0b0a09;
  color: #fafaf9;
  overflow-x: hidden;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.05); }
}
.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}
.animate-pulse-glow {
  animation: pulseGlow 3.6s ease-in-out infinite;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #141210;
}
::-webkit-scrollbar-thumb {
  background: #38302a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}
/* =============== ELEGAN & ANIMASI =============== */
button { cursor: pointer; }
section { scroll-margin-top: 72px; }
:root { --emas: #f3d08a; --garis: rgba(243,208,138,.18); }
body { background-image: radial-gradient(60% 40% at 85% 0%, rgba(234,88,12,.14), transparent 70%), radial-gradient(50% 35% at 0% 55%, rgba(185,28,28,.12), transparent 70%); }
h1, h2 { letter-spacing: -.025em; }
header { border-color: var(--garis) !important; }
h1 span { background-image: linear-gradient(90deg,#f3d08a,#fb923c,#ef4444,#fb923c,#f3d08a) !important; background-size: 250% 100%; animation: kilau 6s linear infinite; }
@keyframes kilau { to { background-position: 250% 0; } }
.rounded-3xl { border-color: var(--garis); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 50px -30px rgba(0,0,0,.8); }
#kemasan-logo .rounded-3xl { transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease; }
#kemasan-logo .rounded-3xl:hover { transform: translateY(-8px); border-color: rgba(243,208,138,.5); box-shadow: 0 24px 50px -20px rgba(234,88,12,.45); }
.foto-hero { height: 15rem; }
.foto-kartu { height: 13rem; transition: transform .7s ease; }
.foto-box { background: #fff; }
#kemasan-logo .rounded-3xl:hover .foto-kartu { transform: scale(1.06); }
.foto-hero { animation: zoomPelan 9s ease-in-out infinite alternate; }
@keyframes zoomPelan { to { transform: scale(1.09); } }
.sauce-btn, .preset-sauce-btn { transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.sauce-btn:hover, .preset-sauce-btn:hover { transform: translateY(-3px); }
button:active, a:active { scale: .96; }

a[href="#pesan-sosis"].inline-flex, #addBuiltToCartBtn, #submitOrderBtn { position: relative; overflow: hidden; border-radius: 999px; }
a[href="#pesan-sosis"].inline-flex::after, #addBuiltToCartBtn::after, #submitOrderBtn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent); transform: translateX(-130%) skewX(-20deg); animation: sapu 3.6s ease-in-out infinite; }
@keyframes sapu { 55%, 100% { transform: translateX(380%) skewX(-20deg); } }

/* bara api naik di bagian pembuka */
.bara { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bara i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px 2px #ea580c; opacity: 0; animation: naikBara 7s linear infinite; }
@keyframes naikBara { 10% { opacity: .9; } 100% { transform: translate(40px,-620px) scale(.3); opacity: 0; } }

.animate-float-slow[data-logo-slot] { width: 11rem; height: 11rem; }
/* intro logo */
#intro { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 45%, #3b160c, #0b0a09 65%); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
#intro.selesai { opacity: 0; visibility: hidden; transform: scale(1.15); pointer-events: none; }
#intro .logo { position: relative; width: 170px; height: 170px; animation: logoMasuk 1.1s cubic-bezier(.2,.9,.25,1.3) both; }
#intro .logo::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 3px solid transparent; border-top-color: #f97316; border-right-color: #f3d08a; animation: putar 1.2s linear infinite; }
#intro p { font-weight: 800; letter-spacing: .3em; font-size: 13px; color: var(--emas); }
@keyframes logoMasuk { from { opacity: 0; transform: scale(.2) rotate(-180deg); } }
@keyframes putar { to { transform: rotate(360deg); } }

.muncul { opacity: 0; translate: 0 36px; transition: opacity .8s ease, translate .8s ease; }
.muncul.tampak { opacity: 1; translate: 0 0; }
.terbang { position: fixed; z-index: 60; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; pointer-events: none; border: 2px solid var(--emas); }
#navCartBadge.goyang { animation: goyang .5s ease; }
@keyframes goyang { 40% { transform: scale(1.7); } }
@media (max-width: 640px) {
  header { backdrop-filter: none; }
  header a span.block:last-child { display: none; }
  .foto-hero { height: 13rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bara, #intro { display: none; } }

/* =============== TAMPILAN TAMBAHAN =============== */
#progres { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 45; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg,#f3d08a,#f97316,#dc2626); }
.pita { overflow: hidden; padding: 13px 0; background: linear-gradient(90deg,#b91c1c,#ea580c,#b91c1c); box-shadow: 0 12px 34px -14px rgba(234,88,12,.7); }
.pita div { display: flex; width: max-content; animation: jalan 28s linear infinite; }
.pita span { white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff7ed; }
.pita b { margin: 0 26px; }
@keyframes jalan { to { transform: translateX(-50%); } }

section span.uppercase.tracking-widest { display: inline-flex; align-items: center; gap: 10px; color: var(--emas); }
section span.uppercase.tracking-widest::before { content: ''; width: 30px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f97316); }

#top .lg\:col-span-5 > div { border-color: rgba(243,208,138,.4); box-shadow: 0 0 80px -20px rgba(234,88,12,.65); }
#pesan-sosis .rounded-3xl, #checkout .rounded-3xl { background: linear-gradient(165deg, #221c18, #131110); }
.sauce-btn.border-amber-400 { box-shadow: 0 10px 26px -12px rgba(251,191,36,.7); }
#builderTotalPrice, #summaryGrandTotal { font-size: 1.3rem; }
input, select, textarea { transition: border-color .25s, box-shadow .25s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(249,115,22,.16); }

#dok { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(4,1fr); border-radius: 22px; background: rgba(20,16,14,.96); border: 1px solid var(--garis); box-shadow: 0 12px 34px rgba(0,0,0,.6); }
#dok a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0; font-size: 11px; font-weight: 700; color: #a8a29e; }
#dok a span { font-size: 18px; }
#dok a.aktif { color: var(--emas); }
@media (min-width: 768px) { #dok { display: none; } }
@media (max-width: 767px) {
  body { padding-bottom: 84px; }
  input, select, textarea { font-size: 16px !important; }
  #toastBanner { bottom: 92px; width: max-content; max-width: 92vw; }
}
@media (prefers-reduced-motion: reduce) { .pita div { animation: none !important; flex-wrap: wrap; width: auto; } }


/* =============== RINGAN (performa HP & PC) =============== */
/* glow tanpa filter blur (blur besar + animasi = berat), tampilannya sama */
.glow-a, .animate-pulse-glow { filter: none !important; background: radial-gradient(circle, rgba(234,88,12,.34), transparent 68%) !important; will-change: transform, opacity; }
.glow-b { filter: none !important; background: radial-gradient(circle, rgba(185,28,28,.24), transparent 68%) !important; }
.pita div, .foto-hero { will-change: transform; }
.bara i { will-change: transform, opacity; }
/* bagian bawah baru dirender saat mendekati layar */
#kemasan-logo, #checkout, footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }
/* animasi berhenti otomatis saat di luar layar */
.jeda, .jeda *, .jeda *::before, .jeda *::after, .jeda::before, .jeda::after { animation-play-state: paused !important; }
.terbang { will-change: transform; }

/* =============== KEREN TAMBAHAN =============== */
/* bingkai api berputar di kartu hero (hanya transform, ringan) */
#top .lg\:col-span-5 > div { position: relative; overflow: hidden; isolation: isolate; }
#top .lg\:col-span-5 > div::before { content: ''; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; z-index: -2; background: conic-gradient(from 0deg, transparent 0 60%, #dc2626 74%, #f97316 84%, #f3d08a 92%, transparent 100%); transform: translate(-50%,-50%) rotate(0deg); animation: bingkai 7s linear infinite; will-change: transform; }
#top .lg\:col-span-5 > div::after { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: calc(1.5rem - 2px); background: linear-gradient(to bottom, #1c1815, #141210); }
@keyframes bingkai { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* cincin putus-putus emas mengelilingi logo hero */
.animate-float-slow[data-logo-slot] { position: relative; }
.animate-float-slow[data-logo-slot]::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed rgba(243,208,138,.5); animation: putar 16s linear infinite; pointer-events: none; }

/* sorotan mengikuti kursor di kartu (PC) */
#pesan-sosis .rounded-3xl, #kemasan-logo .rounded-3xl, #checkout .rounded-3xl { position: relative; }
#pesan-sosis .rounded-3xl::before, #kemasan-logo .rounded-3xl::before, #checkout .rounded-3xl::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(249,115,22,.13), transparent 62%); }
@media (hover: hover) { #pesan-sosis .rounded-3xl:hover::before, #kemasan-logo .rounded-3xl:hover::before, #checkout .rounded-3xl:hover::before { opacity: 1; } }

/* garis api bawah header saat halaman di-scroll */
header { box-shadow: 0 1px 0 rgba(243,208,138,.08), 0 14px 30px -24px rgba(234,88,12,.5); }

/* tanda tangan owner */
.owner { position: relative; margin: 34px auto 0; padding-top: 26px; text-align: center; }
.owner::before { content: ''; position: absolute; top: 0; left: 50%; width: min(320px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #f3d08a, #f97316, #f3d08a, transparent); }
.owner-api { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 0 12px; font-size: 18px; background: #0b0a09; animation: floatSlow 3s ease-in-out infinite; }
.owner-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #a8a29e; }
.owner-nama { margin-top: 2px; font-size: 2.6rem; line-height: 1.1; font-weight: 700; background-image: linear-gradient(90deg,#f3d08a,#fb923c,#ef4444,#fb923c,#f3d08a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: kilau 6s linear infinite; }
.owner-hak { margin-top: 8px; font-size: 11px; color: #78716c; }
@media (max-width: 767px) { footer { padding-bottom: 12px; } }
