/*
 * Bagian beranda di bawah hero: angka & pelanggan, kategori produk, mesin unggulan, proses,
 * dukungan, dan ajakan ke sales. Markup: derie26/resources/views/page/index-redesign.blade.php.
 * Desain FigCraft "heavypack-landing-hero-swiper" → "Desktop — Landing 1440" (2 Des 2026).
 *
 * Semua kelas berawalan .hp-bd supaya tidak bertabrakan dengan heavypack-redesign/masterpiece.css.
 */

.hp-bd {
    --bd-tinta: #1c1d20;
    --bd-teks: #55585e;
    --bd-redup: #6b6e74;
    --bd-oranye: #ff6600;
    --bd-oranye-teks: #c2540a;
    --bd-krem: #f5f3ef;
    --bd-garis: #ebe7e1;
    --bd-radius: 16px;
    padding: 96px 0;
    background: #fff;
    color: var(--bd-tinta);
}

.hp-bd,
.hp-bd *,
.hp-bd *::before,
.hp-bd *::after { box-sizing: border-box; }

.hp-bd--krem { background: var(--bd-krem); }

.hp-bd--gelap {
    --bd-teks: #b9bcc2;
    --bd-oranye-teks: #ff7a1f;
    background: #1c1d20;
    color: #fff;
}

.hp-bd :where(h2, h3, p, ul, ol, figure) { margin: 0; }
.hp-bd :where(ul, ol) { padding: 0; list-style: none; }

.hp-bd__wadah {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
}

/* Kepala bagian: kicker + judul di kiri, penjelasan di kanan. */
.hp-bd__kepala {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-bottom: 48px;
}

.hp-bd__kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--bd-oranye-teks);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hp-bd__kicker::before {
    content: "";
    flex: none;
    width: 34px;
    height: 2px;
    background: currentColor;
}

.hp-bd__judul {
    max-width: 640px;
    color: inherit;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: .98;
    text-transform: uppercase;
    text-wrap: balance;
}

.hp-bd__intro {
    flex: none;
    max-width: 380px;
    color: var(--bd-teks);
    font-size: 16px;
    line-height: 1.65;
}

.hp-bd__tautan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--bd-oranye-teks);
    font-size: 15px;
    font-weight: 700;
}

.hp-bd__tautan i { font-size: 12px; transition: transform .2s ease; }
.hp-bd__tautan:hover i { transform: translateX(3px); }

.hp-bd a:focus-visible,
.hp-bd button:focus-visible {
    outline: 3px solid var(--bd-oranye);
    outline-offset: 3px;
}

/* Tombol persegi (konsultasi, sales) dan tombol garis (lihat semua mesin). */
.hp-bd-tombol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 4px;
    background: var(--bd-oranye);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hp-bd-tombol i { font-size: 12px; }
.hp-bd-tombol:hover { background: #e65c00; color: #fff; transform: translate(-1px, -1px); box-shadow: 7px 7px 0 rgba(0, 0, 0, .22); }

.hp-bd-tombol--putih { background: #fff; box-shadow: 6px 6px 0 rgba(28, 29, 32, .16); color: var(--bd-tinta); }
.hp-bd-tombol--putih i { color: var(--bd-oranye); }
.hp-bd-tombol--putih:hover { background: #fff; color: var(--bd-tinta); box-shadow: 7px 7px 0 rgba(28, 29, 32, .22); }

.hp-bd-tombol--garis {
    min-height: 50px;
    border: 1.5px solid #cfccc6;
    background: transparent;
    box-shadow: none;
    color: var(--bd-tinta);
}

.hp-bd-tombol--garis i { color: var(--bd-oranye); }
.hp-bd-tombol--garis:hover { border-color: var(--bd-tinta); background: transparent; color: var(--bd-tinta); box-shadow: none; }

/* ---------- 1. Angka & pelanggan ---------- */

.hp-bd-angka {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hp-bd-angka li {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 30px;
    border: 1px solid var(--bd-garis);
    border-radius: var(--bd-radius);
    background: #f8f7f5;
}

.hp-bd-angka li::before {
    content: "";
    width: 32px;
    height: 3px;
    margin-bottom: 22px;
    background: var(--bd-oranye);
}

.hp-bd-angka strong {
    font-size: clamp(40px, 3.6vw, 52px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
}

.hp-bd-angka strong span { color: var(--bd-oranye); }

.hp-bd-angka b {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
}

.hp-bd-angka small {
    margin-top: 10px;
    color: var(--bd-redup);
    font-size: 14px;
    line-height: 1.55;
}

.hp-bd-klien { margin-top: 56px; }

.hp-bd-klien__judul {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--bd-redup);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hp-bd-klien__judul::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bd-garis);
}

.hp-bd-klien__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.hp-bd-klien__grid li {
    display: grid;
    place-items: center;
    height: 92px;
    padding: 14px 18px;
    border: 1px solid var(--bd-garis);
    border-radius: 12px;
    background: #fff;
}

.hp-bd-klien__grid li[hidden] { display: none; }

.hp-bd-klien__grid img {
    width: auto;
    max-width: min(100%, 130px);
    max-height: 56px;
    object-fit: contain;
}

.hp-bd-klien__grid .hp-bd-klien__lagi {
    padding: 0;
    border-color: #ffd9bf;
    background: #fff1e6;
}

.hp-bd-klien__lagi button {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    color: #b24a00;
    cursor: pointer;
}

.hp-bd-klien__lagi strong { font-size: 26px; font-weight: 900; line-height: 1; }
.hp-bd-klien__lagi button > span { display: grid; justify-items: center; gap: 6px; }
.hp-bd-klien__lagi small { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.hp-bd-klien__lagi small i { font-size: 11px; }
.hp-bd-klien__lagi button:hover { background: #ffe6d3; }
.hp-bd-klien__lagi [data-saat="buka"],
.hp-bd-klien__lagi [aria-expanded="true"] [data-saat="tutup"] { display: none; }
.hp-bd-klien__lagi [aria-expanded="true"] [data-saat="buka"] { display: grid; }

/* ---------- 2. Kategori produk ---------- */

.hp-bd-kategori__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hp-bd-kartu a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bd-garis);
    border-radius: var(--bd-radius);
    background: #fff;
    color: var(--bd-tinta);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hp-bd-kartu a:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28, 29, 32, .1); color: var(--bd-tinta); }

.hp-bd-kartu__media {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: #ece9e4;
}

.hp-bd-kartu__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hp-bd-kartu a:hover .hp-bd-kartu__media img { transform: scale(1.04); }

.hp-bd-kartu__isi {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px 26px;
}

.hp-bd-kartu__label,
.hp-bd-produk__kategori {
    color: var(--bd-oranye-teks);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hp-bd-kartu h3 {
    margin-top: 10px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.hp-bd-kartu__teks {
    margin-top: 10px;
    color: var(--bd-redup);
    font-size: 14.5px;
    line-height: 1.55;
}

.hp-bd-kartu__aksi,
.hp-bd-produk__aksi {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    font-weight: 700;
}

.hp-bd-kartu__aksi i { color: var(--bd-oranye); font-size: 12px; transition: transform .2s ease; }
.hp-bd-kartu a:hover .hp-bd-kartu__aksi i { transform: translateX(3px); }

/* ---------- 3. Mesin unggulan ---------- */

.hp-bd-tab {
    display: inline-flex;
    flex: none;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #f1efeb;
}

.hp-bd-tab button {
    min-height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #3b3d42;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.hp-bd-tab button:hover { color: var(--bd-tinta); background: rgba(28, 29, 32, .06); }
.hp-bd-tab button.is-active { background: var(--bd-tinta); color: #fff; }

.hp-bd-mesin__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.hp-bd-mesin__kosong { color: var(--bd-redup); }

.hp-bd-produk {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bd-garis);
    border-radius: var(--bd-radius);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hp-bd-produk:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28, 29, 32, .1); }

.hp-bd-produk__media {
    position: relative;
    aspect-ratio: 6 / 5;
    background: #f3f2ef;
}

.hp-bd-produk__media img {
    width: 100%;
    height: 100%;
    padding: 34px 22px 14px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .5s ease;
}

.hp-bd-produk:hover .hp-bd-produk__media img { transform: scale(1.04); }

.hp-bd-produk__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
}

.hp-bd-produk__isi {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 20px 20px;
}

.hp-bd-produk h3 {
    margin-top: 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Satu tautan menutupi seluruh kartu (pola "stretched link"). */
.hp-bd-produk h3 a { color: inherit; }
.hp-bd-produk h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.hp-bd-produk h3 a:focus-visible { outline: none; }
.hp-bd-produk:has(h3 a:focus-visible) { outline: 3px solid var(--bd-oranye); outline-offset: 3px; }

.hp-bd-produk__teks {
    margin-top: 8px;
    color: var(--bd-redup);
    font-size: 15px;
    line-height: 1.45;
}

.hp-bd-produk__aksi { justify-content: space-between; }

.hp-bd-produk__aksi span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bd-oranye);
    color: #fff;
    font-size: 12px;
    transition: transform .2s ease;
}

.hp-bd-produk:hover .hp-bd-produk__aksi span { transform: translateX(3px); }

.hp-bd-mesin__semua {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ---------- 4. Proses (gelap) ---------- */

.hp-bd-proses__grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.hp-bd-proses__teks {
    margin: 24px 0 28px;
    color: var(--bd-teks);
    font-size: 16px;
    line-height: 1.65;
}

.hp-bd-proses__langkah {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hp-bd-proses__langkah li {
    padding: 30px 28px 32px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--bd-radius);
    background: #26272b;
}

.hp-bd-proses__langkah span {
    display: block;
    color: var(--bd-oranye);
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1;
}

.hp-bd-proses__langkah h3 {
    margin-top: 22px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.hp-bd-proses__langkah p {
    margin-top: 14px;
    color: #a9acb2;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- 5. Dukungan ---------- */

.hp-bd-dukungan__grid {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}

.hp-bd-dukungan__foto {
    position: relative;
    display: grid;
    place-items: end center;
    aspect-ratio: 25 / 26;
    overflow: hidden;
    padding: 40px 24px 0;
    border-radius: 24px;
    background: var(--bd-oranye);
    isolation: isolate;
}

/* Lingkaran putus-putus di belakang mesin. */
.hp-bd-dukungan__foto::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    z-index: -1;
    width: 76%;
    aspect-ratio: 1;
    border: 1.5px dashed rgba(255, 255, 255, .55);
    border-radius: 50%;
    transform: translateX(-50%);
}

.hp-bd-dukungan__foto img {
    width: 82%;
    margin-bottom: 76px;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18));
}

.hp-bd-dukungan__foto figcaption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 14px;
    padding: 16px 22px;
    border-radius: 12px;
    background: #1c1d20;
    color: #fff;
}

.hp-bd-dukungan__foto figcaption::before {
    content: "";
    grid-row: span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
}

.hp-bd-dukungan__foto strong { font-size: 15px; font-weight: 700; }
.hp-bd-dukungan__foto small { color: #c4c7cc; font-size: 13px; }

.hp-bd-dukungan__isi > p:not(.hp-bd__kicker) {
    max-width: 500px;
    margin-top: 24px;
    color: var(--bd-teks);
    font-size: 16px;
    line-height: 1.65;
}

.hp-bd-dukungan__kartu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.hp-bd-dukungan__kartu a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 22px 24px;
    border: 1px solid var(--bd-garis);
    border-radius: 14px;
    background: #fff;
    color: var(--bd-tinta);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hp-bd-dukungan__kartu a:hover { border-color: #ffc59e; box-shadow: 0 12px 28px rgba(28, 29, 32, .08); transform: translateY(-2px); color: var(--bd-tinta); }

.hp-bd-dukungan__kartu span {
    color: var(--bd-oranye);
    font-size: 16px;
    font-weight: 900;
}

.hp-bd-dukungan__kartu svg {
    position: absolute;
    top: 26px;
    right: 24px;
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.hp-bd-dukungan__kartu a:hover svg { transform: translate(2px, -2px); color: var(--bd-oranye); }

.hp-bd-dukungan__kartu strong {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
}

.hp-bd-dukungan__kartu small {
    margin-top: 6px;
    color: var(--bd-redup);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- 6. Ajakan ke sales (oranye) ---------- */

.hp-bd-ajakan {
    --bd-oranye-teks: var(--bd-tinta);
    padding: 88px 0;
    background: #f26100;
}

.hp-bd-ajakan__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 64px;
}

.hp-bd-ajakan .hp-bd__judul { max-width: 700px; font-size: clamp(32px, 3.6vw, 52px); }

.hp-bd-ajakan__aksi { flex: none; max-width: 360px; }
.hp-bd-ajakan__aksi p { margin-bottom: 24px; font-size: 16px; line-height: 1.65; }

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
    .hp-bd { padding: 80px 0; }
    .hp-bd__kepala { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
    .hp-bd__intro { max-width: 560px; }
    .hp-bd-angka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-bd-klien__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hp-bd-kategori__grid,
    .hp-bd-mesin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-bd-proses__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hp-bd-proses__intro { max-width: 560px; }
    .hp-bd-dukungan__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hp-bd-dukungan__foto { width: min(100%, 500px); }
    .hp-bd-ajakan__grid { flex-direction: column; align-items: flex-start; }
}

/* ---------- HP ---------- */

@media (max-width: 760px) {
    .hp-bd { padding: 64px 0; }
    .hp-bd__wadah { width: calc(100% - 40px); }
    .hp-bd__judul { font-size: clamp(28px, 8.4vw, 34px); }
    .hp-bd__intro { font-size: 15px; }

    .hp-bd-angka { gap: 12px; }
    .hp-bd-angka li { padding: 20px 18px 22px; border-radius: 14px; }
    .hp-bd-angka li::before { margin-bottom: 16px; }
    .hp-bd-angka strong { font-size: 34px; }
    .hp-bd-angka b { margin-top: 12px; font-size: 15px; }
    .hp-bd-angka small { font-size: 13px; }

    .hp-bd-klien { margin-top: 44px; }
    .hp-bd-klien__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .hp-bd-klien__grid li { height: 72px; padding: 10px 12px; }
    .hp-bd-klien__grid img { max-height: 44px; }
    .hp-bd-klien__lagi strong { font-size: 20px; }
    .hp-bd-klien__lagi small { font-size: 12.5px; }

    /* Kartu kategori & mesin digeser ke samping, kartu berikutnya mengintip. */
    .hp-bd-kategori__grid,
    .hp-bd-mesin__grid {
        display: flex;
        gap: 14px;
        margin-inline: -20px;
        padding: 4px 20px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hp-bd-kategori__grid::-webkit-scrollbar,
    .hp-bd-mesin__grid::-webkit-scrollbar { display: none; }

    .hp-bd-kategori__grid > li,
    .hp-bd-mesin__grid > li { flex: 0 0 78%; scroll-snap-align: start; }

    .hp-bd-kartu__isi { padding: 20px 18px 22px; }
    .hp-bd-kartu h3,
    .hp-bd-produk h3 { font-size: 19px; }

    .hp-bd-tab { width: 100%; }
    .hp-bd-tab button { flex: 1; padding: 0 10px; font-size: 14px; }

    .hp-bd-mesin__semua { margin-top: 28px; }
    .hp-bd-mesin__semua .hp-bd-tombol { width: 100%; }

    .hp-bd-proses__langkah { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hp-bd-proses__langkah li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 6px 18px;
        padding: 22px 20px;
    }
    .hp-bd-proses__langkah span { grid-row: span 2; font-size: 30px; }
    .hp-bd-proses__langkah h3 { margin-top: 0; font-size: 17px; }
    .hp-bd-proses__langkah p { margin-top: 0; }
    .hp-bd-proses__intro .hp-bd-tombol { width: 100%; }

    .hp-bd-dukungan__foto { padding-top: 28px; border-radius: 20px; }
    .hp-bd-dukungan__foto img { margin-bottom: 84px; }
    .hp-bd-dukungan__foto figcaption { right: 16px; bottom: 16px; left: 16px; padding: 14px 16px; }
    .hp-bd-dukungan__kartu { gap: 12px; margin-top: 28px; }
    .hp-bd-dukungan__kartu a { padding: 20px 16px; }
    .hp-bd-dukungan__kartu svg { top: 22px; right: 16px; }
    .hp-bd-dukungan__kartu strong { margin-top: 14px; font-size: 15.5px; }
    .hp-bd-dukungan__kartu small { font-size: 13px; }

    .hp-bd-ajakan { padding: 64px 0; }
    .hp-bd-ajakan .hp-bd__judul { font-size: clamp(30px, 8.8vw, 36px); }
    .hp-bd-ajakan__aksi { max-width: none; width: 100%; }
    .hp-bd-ajakan__aksi .hp-bd-tombol { width: 100%; }
}

@media (max-width: 420px) {
    .hp-bd-dukungan__kartu { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-bd *,
    .hp-bd *::before,
    .hp-bd *::after { transition: none !important; }
    .hp-bd-kartu a:hover,
    .hp-bd-produk:hover,
    .hp-bd-dukungan__kartu a:hover,
    .hp-bd-tombol:hover { transform: none; }
    .hp-bd a:hover img { transform: none !important; }
}

/* ---------- Gerak (js/heavypack-beranda.js) ----------
   Satu motif: barang berjalan di lini produksi, dari kiri ke kanan. Keadaan "tunggu" hanya dipasang
   oleh skrip pada bagian yang masih di bawah layar; tanpa skrip semuanya di keadaan akhir. */

/* overflow-x: clip: kartu yang sedang masuk dari kanan tidak membuat halaman bisa digeser ke samping. */
.hp-bd { --bd-servo: cubic-bezier(.2, .8, .2, 1); overflow-x: clip; }

/* Kartu masuk dari kanan bergantian, seperti produk masuk ke conveyor. */
.hp-bd [data-gerak] {
    transition: opacity .45s ease, transform .75s var(--bd-servo);
    transition-delay: calc(var(--urut, 0) * var(--jeda-urut, 80ms));
}

.hp-bd [data-gerak="tunggu"] { opacity: 0; transform: translateX(56px); }

/* Angka berhitung; garis oranye kecil di atasnya ikut memanjang. */
.hp-bd-angka strong { font-variant-numeric: tabular-nums; }
.hp-bd-angka li::before {
    transform-origin: left center;
    transition: transform 1s var(--bd-servo);
    transition-delay: calc(var(--urut, 0) * 120ms);
}
.hp-bd-angka[data-hitung="tunggu"] li::before { transform: scaleX(0); }

/* Lini produksi di "Mulai dari produk Anda": sabuk oranye di tepi atas tiap langkah, satu kemasan
   berjalan di atasnya, langkah menyala saat kemasan lewat. Keadaan akhir: sabuk penuh, angka oranye. */
.hp-bd-proses__langkah { position: relative; }
.hp-bd-proses__langkah li { position: relative; overflow: hidden; }
.hp-bd-proses__langkah li:nth-child(2) { --k: 1; }
.hp-bd-proses__langkah li:nth-child(3) { --k: 2; }

.hp-bd-proses__langkah li::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--bd-oranye);
    transform-origin: left center;
}

.hp-bd-proses__langkah span { transform-origin: left center; }

/* Kemasan: kotak putih dengan garis segel oranye. Hanya terlihat selama lini berjalan. */
.hp-bd-proses__langkah::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    background: linear-gradient(#fff 0 28%, var(--bd-oranye) 28% 44%, #fff 44%);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .3), 0 0 24px 6px rgba(255, 102, 0, .5);
    opacity: 0;
    pointer-events: none;
}

.hp-bd-proses__langkah[data-lini="tunggu"] li::before { transform: scaleX(0); }
.hp-bd-proses__langkah[data-lini="tunggu"] span { color: rgba(255, 255, 255, .16); }
.hp-bd-proses__langkah[data-lini="tunggu"] h3,
.hp-bd-proses__langkah[data-lini="tunggu"] p { opacity: .35; }

.hp-bd-proses__langkah[data-lini="jalan"]::after { animation: hp-bd-kemasan 2.4s linear both; }
.hp-bd-proses__langkah[data-lini="jalan"] li { animation: hp-bd-stasiun 1.2s ease calc(var(--k, 0) * .8s) both; }
.hp-bd-proses__langkah[data-lini="jalan"] li::before { animation: hp-bd-sabuk .8s linear calc(var(--k, 0) * .8s) both; }
.hp-bd-proses__langkah[data-lini="jalan"] span { animation: hp-bd-stempel .55s var(--bd-servo) calc(var(--k, 0) * .8s + .1s) both; }
.hp-bd-proses__langkah[data-lini="jalan"] h3,
.hp-bd-proses__langkah[data-lini="jalan"] p { animation: hp-bd-nyala .6s ease calc(var(--k, 0) * .8s + .2s) both; }

@keyframes hp-bd-kemasan {
    0% { left: 0; opacity: 0; }
    5%, 90% { opacity: 1; }
    100% { left: calc(100% - 17px); opacity: 0; }
}

@keyframes hp-bd-sabuk {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes hp-bd-stasiun {
    0%, 100% { border-color: rgba(255, 255, 255, .09); box-shadow: none; }
    30% { border-color: rgba(255, 102, 0, .75); box-shadow: 0 0 0 1px rgba(255, 102, 0, .3), 0 22px 44px -18px rgba(255, 102, 0, .55); }
}

@keyframes hp-bd-stempel {
    0% { color: rgba(255, 255, 255, .16); transform: scale(.8); }
    55% { color: var(--bd-oranye); transform: scale(1.14); }
    100% { color: var(--bd-oranye); transform: scale(1); }
}

@keyframes hp-bd-nyala {
    from { opacity: .35; }
    to { opacity: 1; }
}

/* HP: langkah bertumpuk, jadi sabuk di tepi kiri dan kemasan berjalan dari atas ke bawah. */
@media (max-width: 760px) {
    .hp-bd-proses__langkah li::before { right: auto; bottom: 0; width: 3px; height: auto; transform-origin: center top; }
    .hp-bd-proses__langkah::after { top: 0; left: -7px; }
    .hp-bd-proses__langkah[data-lini="tunggu"] li::before { transform: scaleY(0); }
    .hp-bd-proses__langkah[data-lini="jalan"]::after { animation-name: hp-bd-kemasan-tegak; }
    .hp-bd-proses__langkah[data-lini="jalan"] li::before { animation-name: hp-bd-sabuk-tegak; }
}

@keyframes hp-bd-kemasan-tegak {
    0% { top: 0; opacity: 0; }
    5%, 90% { opacity: 1; }
    100% { top: calc(100% - 17px); opacity: 0; }
}

@keyframes hp-bd-sabuk-tegak {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* ---------- Heavypack Industries: rak Industries sebagai satu lini pabrik ----------
   Sabuk conveyor di atas stasiun (di tablet/HP di kiri). Tiap stasiun = satu kelompok mesin.
   Tanpa JS sabuk penuh dan semua titik menyala; dengan JS satu barang berjalan dari stasiun ke
   stasiun (--p = posisi barang 0..1 di sabuk, diisi js/heavypack-beranda.js). */

/* Garis kisi tipis seperti denah lantai pabrik. */
.hp-bd-industri {
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-position: center top;
    background-size: 40px 40px;
}

.hp-bd-industri__aksi { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hp-bd-industri .hp-bd-tombol--garis { border-color: rgba(255, 255, 255, .28); color: #fff; }
.hp-bd-industri .hp-bd-tombol--garis:hover { border-color: #fff; color: #fff; }

.hp-bd-industri__lini { position: relative; padding-top: 48px; }

.hp-bd-industri__sabuk {
    --p: 1;
    position: absolute;
    top: 23px;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, .14);
}

.hp-bd-industri__terisi {
    position: absolute;
    inset: 0;
    background: var(--bd-oranye);
    transform: scaleX(var(--p));
    transform-origin: left center;
}

/* Barang yang berjalan: kotak putih, ikonnya berganti di tiap stasiun. */
.hp-bd-industri__barang {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(var(--p) * 100%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, .28), 0 10px 30px rgba(255, 102, 0, .45);
    color: var(--bd-oranye);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .45s ease;
}

.hp-bd-industri__barang svg { display: none; width: 26px; height: 26px; }
.hp-bd-industri__barang svg.is-aktif { display: block; animation: hp-bd-pop .4s var(--bd-servo); }
[data-lini-industri="jalan"] .hp-bd-industri__barang { opacity: 1; }

@keyframes hp-bd-pop {
    from { opacity: 0; transform: scale(.4) rotate(-14deg); }
    to { opacity: 1; transform: none; }
}

.hp-bd-industri__stasiun {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 20px;
}

.hp-bd-industri__stasiun > li { position: relative; display: flex; }

/* Titik stasiun di sabuk (tepat di atas tengah kartu). */
.hp-bd-industri__titik {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bd-oranye);
    box-shadow: 0 0 0 4px #1c1d20, 0 0 0 5px rgba(255, 102, 0, .55);
    transform: translate(-50%, -50%);
    transition: background-color .3s ease, box-shadow .3s ease;
}

[data-lini-industri="tunggu"] .hp-bd-industri__titik,
[data-lini-industri="jalan"] li:not(.is-nyala) .hp-bd-industri__titik {
    background: #3b3c42;
    box-shadow: 0 0 0 4px #1c1d20, 0 0 0 5px rgba(255, 255, 255, .16);
}

[data-lini-industri="jalan"] li.is-nyala > a { animation: hp-bd-stasiun 1.2s ease; }

.hp-bd-industri__stasiun a {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--bd-radius);
    background: #26272b;
    color: #fff;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hp-bd-industri__stasiun a:hover { border-color: rgba(255, 102, 0, .55); box-shadow: 0 18px 36px rgba(0, 0, 0, .35); color: #fff; transform: translateY(-4px); }

/* Foto mesin (latar putih) di pelat terang; multiply membuat putihnya menyatu dengan pelat. */
.hp-bd-industri__foto {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 16px;
    background: #f1efeb;
}

.hp-bd-industri__foto img { width: 100%; height: 100%; mix-blend-mode: multiply; object-fit: contain; transition: transform .5s ease; }
.hp-bd-industri__stasiun a:hover .hp-bd-industri__foto img { transform: scale(1.05); }

.hp-bd-industri__badan { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.hp-bd-industri__no { color: var(--bd-oranye); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.hp-bd-industri__stasiun h3 { margin-top: 8px; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.25; }
.hp-bd-industri__jumlah { margin-top: 14px; color: #a9acb2; font-size: 14px; }
.hp-bd-industri__jumlah strong { margin-right: 4px; color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }

.hp-bd-industri__jenis {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: #8d9097;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-bd-industri__lihat { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--bd-oranye-teks); font-size: 14px; font-weight: 700; }
.hp-bd-industri__lihat i { font-size: 12px; transition: transform .2s ease; }
.hp-bd-industri__stasiun a:hover .hp-bd-industri__lihat i { transform: translateX(3px); }

/* Tablet & HP: stasiun bertumpuk, sabuk tegak di kiri, barang berjalan dari atas ke bawah. */
@media (max-width: 1023px) {
    .hp-bd-industri__lini { padding-top: 0; padding-left: 40px; }
    .hp-bd-industri__sabuk { top: 0; right: auto; bottom: 0; left: 15px; width: 2px; height: auto; }
    .hp-bd-industri__terisi { transform: scaleY(var(--p)); transform-origin: center top; }
    .hp-bd-industri__barang { top: calc(var(--p) * 100%); left: 50%; width: 38px; height: 38px; border-radius: 10px; }
    .hp-bd-industri__barang svg { width: 22px; height: 22px; }
    .hp-bd-industri__stasiun { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hp-bd-industri__titik { top: 50%; left: -24px; }
    .hp-bd-industri__stasiun a { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); }
    .hp-bd-industri__foto { height: 100%; min-height: 150px; aspect-ratio: auto; }
}

@media (max-width: 760px) {
    .hp-bd-industri__aksi .hp-bd-tombol { width: 100%; }
    .hp-bd-industri__stasiun a { grid-template-columns: 108px minmax(0, 1fr); }
    .hp-bd-industri__foto { min-height: 0; padding: 10px; }
    .hp-bd-industri__badan { padding: 14px 14px 16px; }
    .hp-bd-industri__stasiun h3 { margin-top: 4px; font-size: 16px; }
    .hp-bd-industri__jumlah { margin-top: 8px; font-size: 13px; }
    .hp-bd-industri__jumlah strong { font-size: 22px; }
    .hp-bd-industri__jenis { margin-top: 6px; font-size: 12px; }
    .hp-bd-industri__lihat { padding-top: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-bd-industri__stasiun a:hover { transform: none; }
}
