/* ==========================================================================
   HIASAN HERO (beranda): bintang + cincin emas dan chip melayang.
   Dimuat setelah rame.css. Hapus file ini (dan link-nya di index.html) untuk mengembalikan hero polos.
   ========================================================================== */

/* ---------- bintang dan cincin emas (di belakang teks, sebagian terpotong tepi layar) ---------- */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco {
  position: absolute;
  display: block;
  animation: deco-float 8s ease-in-out infinite;
}
.deco.star {
  background: var(--ac);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.deco.ring {
  border: 2px solid var(--ac);
  border-radius: 50%;
  opacity: 0.75;
}
.s1 { top: 105px; left: 7%;  width: 34px; height: 34px; }
.s2 { top: 240px; left: 15%; width: 16px; height: 16px; animation-delay: -2s; opacity: 0.7; }
.s3 { top: 95px;  right: 8%; width: 26px; height: 26px; animation-delay: -4s; }
.s4 { top: 275px; right: 4%; width: 14px; height: 14px; animation-delay: -1s; opacity: 0.7; }
.r1 { top: 245px; left: -70px;  width: 160px; height: 160px; animation-delay: -3s; }
.r2 { top: 210px; right: -60px; width: 130px; height: 130px; animation-delay: -5s; border-width: 3px; }
@keyframes deco-float {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- chip kata kunci melayang (hanya layar lebar) ---------- */
.home .main_home {
  position: relative;
}
.hero-chips {
  display: none;
}
@media (min-width: 1200px) {
  .hero-chips {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px 9px 10px;
    font: 600 0.92rem/1 var(--fh, "Outfit", "DM Sans", system-ui, sans-serif);
    color: var(--ink, #14090c);
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(122, 20, 36, 0.12);
    white-space: nowrap;
    transform: rotate(var(--rot, 0deg));
    animation: chip-float 7s ease-in-out infinite;
  }
  .chip i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    color: var(--mr);
    background: var(--panel, #f8f1f2);
    border-radius: 50%;
  }
  .chip.c1 { top: 160px; left: 1%;  --rot: -4deg; }
  .chip.c2 { top: 295px; left: 5%;  --rot: 3deg;  animation-delay: -2.5s; }
  .chip.c3 { top: 140px; right: 1%; --rot: 4deg;  animation-delay: -4s; }
  .chip.c4 { top: 280px; right: 6%; --rot: -3deg; animation-delay: -1.5s; }
  @keyframes chip-float {
    0%,
    100% {
      transform: rotate(var(--rot, 0deg)) translateY(0);
    }
    50% {
      transform: rotate(var(--rot, 0deg)) translateY(-10px);
    }
  }
}

/* ---------- layar kecil: hiasan lebih kecil dan lebih samar agar tidak mengganggu teks ---------- */
@media (max-width: 767px) {
  .s1 { top: 84px;  left: 6%;  width: 22px; height: 22px; }
  .s2 { top: 150px; left: 3%;  width: 12px; height: 12px; }
  .s3 { top: 78px;  right: 8%; width: 18px; height: 18px; }
  .s4 { top: 190px; right: 4%; width: 11px; height: 11px; }
  .r1 { top: 170px; left: -60px;  width: 110px; height: 110px; opacity: 0.45; }
  .r2 { top: 100px; right: -55px; width: 100px; height: 100px; opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .deco,
  .chip {
    animation: none;
  }
}

/* ---------- teks rumus fisika acak di belakang hero ---------- */
.hero-formulas {
  position: absolute;
  inset: 0;
}
.fx {
  position: absolute;
  font-family: "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--mr);
  opacity: 0.11;
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
  user-select: none;
}
@media (max-width: 767px) {
  .fx { opacity: 0.08; font-size: 0.85rem !important; }
}
