/* =============================================================
   hero.css — bagian pembuka + ilustrasi HP dengan kubus low-poly.
   ============================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero__text { display: grid; gap: 18px; justify-items: start; }

.hero__eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--peach);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  color: var(--navy-deep);
}
.hero__title span {
  background: linear-gradient(transparent 62%, var(--mustard) 62%);
}

.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }

/* Ilustrasi HP 9:16 */
.hero__visual { display: grid; place-items: center; }
.phone {
  width: min(260px, 70vw);
  aspect-ratio: 9 / 16;
  background: var(--navy-deep);
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow), 18px 18px 0 var(--mustard);
  transform: rotate(3deg);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 40%, var(--peach), #eab89a);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.phone__label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.7;
}

.phone__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kubus low-poly berputar (dipakai juga di placeholder video) */
.cube {
  width: 90px;
  height: 90px;
  background: conic-gradient(from 30deg, var(--navy) 0 33%, var(--mustard) 0 66%, #2f4a92 0);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: spin 6s linear infinite;
}
.cube--small { width: 54px; height: 54px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Di HP: teks + tombol WA duluan (langsung terlihat tanpa scroll), ilustrasi di bawahnya */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text { justify-items: stretch; }
  .hero__eyebrow { justify-self: start; }
  /* Dua tombol ditumpuk, lebar penuh, tinggi sama */
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .phone { width: min(220px, 58vw); }
}
