/* ==============================================
   BASE — MOBILE FIRST (< 768px / portrait)
   ============================================== */

.section.section_hero {
  height: auto;
  min-height: 0;
}

.section.section_hero .hero-rev,
.section.section_hero .glide.glide_hero {
  height: auto;
}

.hero-rev {
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif !important;
}

.hero-rev .glide.glide_hero {
  position: relative;
}

/* override height:100% dari CSS lama */
.hero-rev .glide.glide_hero .glide__track,
.hero-rev .glide.glide_hero .glide__slides,
.hero-rev .glide.glide_hero .glide__slide {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-rev .hero__backgrounds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-rev .hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-rev .hero-rev__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-rev .hero-rev__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
}

/* ---- content ---- */
.hero-rev .hero-rev__content {
  display: grid;
  height: auto;
  padding: 48px 0 0;
  align-items: flex-start;
  gap: 0;
  padding-right: var(--lp-space-screen-x);
  padding-left: var(--lp-space-screen-x);
}

.hero-rev .hero-rev__left {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  margin-bottom: 0;
}

.hero-rev .hero-rev__image--main,
.hero-rev .hero-rev__image--main-mobile {
  pointer-events: none;
}

/* ---- typography ---- */
.hero-rev .hero-rev__title {
  margin: 0;
  color: #202939;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.hero-rev .hero-rev__subtitle {
  margin: 12px 0 0;
  color: #727f96;
  max-width: 100%;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* ---- buttons ---- */
.hero-rev .hero-rev__buttons {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: 10px;
}

.hero-rev .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.hero-rev .hero-cta--primary {
  background: #3954A4;
  color: #ffffff;
  border: 1.5px solid #3954A4;
}

.hero-rev .hero-cta--primary:hover {
  background: #2e4490;
  border-color: #2e4490;
  color: #ffffff;
}

.hero-rev .hero-cta--outline {
  background: #ffffff;
  color: #3954A4;
  border: 1.5px solid #3954A4;
}

.hero-rev .hero-cta--outline:hover {
  background: #eef1f9;
  color: #2e4490;
  border-color: #2e4490;
}

/* ---- images default: in-flow (mobile) ---- */
.hero-rev .hero-rev__image {
  display: block;
  height: auto;
}

.hero-rev .hero-rev__image--main {
  display: none;
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 24px;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  z-index: 4;
}

.hero-rev .hero-rev__image--main-mobile {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 24px;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  z-index: 4;
}

.hero-rev .hero-rev__image--top {
  display: none;
}

/* ---- bullets: ikut flow di mobile ---- */
.hero-rev .hero-rev__bullets {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 20px 0 28px;
}

/* ---- dots ---- */
.glide.glide_hero .glide__bullet {
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
}

.glide.glide_hero .glide__bullet:hover,
.glide.glide_hero .glide__bullet:active {
  border-color: transparent;
}

.glide.glide_hero .glide__bullet>.dot {
  display: block !important;
  width: 32px !important;
  height: 6px !important;
  aspect-ratio: unset !important;
  border-radius: 0 !important;
  background-color: #B3BBD9 !important;
  border: 1.5px solid #B3BBD9;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.glide.glide_hero .glide__bullet--active>.dot {
  border-radius: 0 !important;
  background: #4C68B9 !important;
  background-color: #4C68B9 !important;
  border-color: #4C68B9;
}

/* ---- slide colours ---- */
.hero-rev .hero-rev__item.is-slide-1 .hero-rev__title {
  color: #1f2937;
}

.hero-rev .hero-rev__item.is-slide-1 .hero-rev__subtitle {
  color: #727f96;
}

.hero-rev .hero-rev__item.is-slide-2 .hero-rev__title {
  color: #1f2937;
}

.hero-rev .hero-rev__item.is-slide-2 .hero-rev__image--main-mobile {
  margin-bottom: 32px;
}

.hero-rev .hero-rev__item.is-slide-2 .hero-rev__title-accent {
  color: #E95525;
}

.hero-rev .hero-rev__item.is-slide-2 .hero-rev__subtitle {
  color: #727f96;
}

.hero-rev .hero-rev__item.is-slide-3 .hero-rev__title {
  color: #1f2937;
}

.hero-rev .hero-rev__item.is-slide-3 .hero-rev__subtitle {
  color: #727f96;
}


/* ==============================================
   MOBILE LANDSCAPE — max-width 767px landscape
   ============================================== */
@media only screen and (max-width: 47.9375rem) and (orientation: landscape) {

  .section.section_hero {
    height: auto;
    min-height: 0;
  }

  .hero-rev .hero-rev__content {
    padding: 36px 0 0;

    padding-right: 0;
    padding-left: 0;
  }

  .hero-rev .hero-rev__title {
    font-size: 22px;
  }

  .hero-rev .hero-rev__subtitle {
    font-size: 12px;
    margin-top: 8px;
  }

  .hero-rev .hero-rev__buttons {
    margin-top: 12px;
  }

  .hero-rev .hero-cta {
    min-height: 34px;
    padding: 7px 14px;
    font-size: 12px;
  }

  /* landscape: gunakan --main, sembunyikan --main-mobile */
  .hero-rev .hero-rev__image--main {
    display: block;
    width: 65%;
    margin-top: 20px;
  }

  .hero-rev .hero-rev__image--main-mobile {
    display: none;
  }
}


/* ==============================================
   TABLET — 768px – 1023px (images tetap in-flow)
   ============================================== */
@media only screen and (min-width: 48rem) and (max-width: 63.9375rem) {

  .hero-rev .hero-rev__left {
    text-align: center;
  }

  .hero-rev .hero-rev__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-rev .hero-cta {
    width: auto;
    max-width: none;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 14px;
  }

  .hero-rev .hero-rev__content {
    padding: 48px 0 0;
    align-items: flex-start;
  }

  .hero-rev .hero-rev__left {
    max-width: 100%;
  }

  .hero-rev .hero-rev__texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-rev .hero-rev__title {
    font-size: 32px;
  }

  .hero-rev .hero-rev__subtitle {
    font-size: 15px;
    max-width: 80%;
    margin-top: 12px;
  }

  /* tablet: gunakan --main, sembunyikan --main-mobile */
  .hero-rev .hero-rev__item.is-slide-1 .hero-rev__image--main {
    display: block;
    width: 100%;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__image--main {
    display: block;
    width: 100%;
    margin-bottom: 32px;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__left .hero-rev__title {
    width: 70%;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__left .hero-rev__subtitle {
    width: 58%;
  }

  .hero-rev .hero-rev__image--main-mobile {
    display: none;
  }

  .hero-rev .hero-rev__item.is-slide-3 {
    align-items: end;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__image--main {
    display: block;
    width: 88%;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__left .hero-rev__title {
    width: 60%;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__left .hero-rev__subtitle {
    width: 58%;
  }
}


/* ==============================================
   LAPTOP & DESKTOP — min-width 1024px
   (images mulai jadi absolute mulai sini)
   ============================================== */
@media only screen and (min-width: 64rem) {

  /* section: fixed height */
  .section.section_hero {
    height: 90vh;
    min-height: 520px;
  }

  .section.section_hero .hero-rev,
  .section.section_hero .glide.glide_hero {
    height: 100%;
  }

  .hero-rev .glide.glide_hero .glide__track,
  .hero-rev .glide.glide_hero .glide__slides,
  .hero-rev .glide.glide_hero .glide__slide {
    height: 100%;
  }

  /* Konteks tinggi untuk img absolute — ikut mengecil saat zoom / vh turun */
  .hero-rev .glide.glide_hero .glide__slide.hero-rev__item {
    position: relative;
    min-height: 0;
  }

  .hero-rev .hero-rev__content {
    height: 100%;
    padding: 0;
    align-items: center;
  }

  .hero-rev .hero-rev__left {
    max-width: 440px;
    text-align: left;
    margin-bottom: 14%;
  }

  .hero-rev .hero-rev__title {
    font-size: 40px;
  }

  .hero-rev .hero-rev__subtitle {
    font-size: 15px;
    max-width: 420px;
  }

  .hero-rev .hero-rev__buttons {
    margin-top: 22px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: none;
    justify-content: start;
    gap: 8px;
  }

  .hero-rev .hero-cta {
    min-height: 42px;
    font-size: 15px;
    width: auto;
    max-width: none;
  }

  /* laptop+: tampilkan main, sembunyikan main-mobile */
  .hero-rev .hero-rev__image--main {
    display: block;
  }

  .hero-rev .hero-rev__image--main-mobile {
    display: none;
  }

  /* bullets: absolute */
  .hero-rev .hero-rev__bullets {
    position: absolute;
    bottom: 32px;
    left: max(var(--lp-space-screen-x), calc((100% - var(--lp-container-width)) / 2));
    margin: 0;
  }

  /* SLIDE 1 — tempel bawah kanan (tinggi mengikuti hero → zoom out ikut mengecil) */
  .hero-rev .hero-rev__item.is-slide-1 .hero-rev__image--main {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    width: 86%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    margin-top: 0;
  }

  /* SLIDE 2 */
  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__left {
    max-width: 44%;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__image--main {
    position: absolute;
    left: 43%;
    right: 0;
    top: 10%;
    bottom: 0;
    width: 52%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center top;
    margin: 0;
  }

  /* SLIDE 3 */
  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__image--main {
    position: absolute;
    right: 0;
    bottom: 0;
    top: auto;
    left: auto;
    width: 72%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    margin-top: 0;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__left {
    max-width: 640px;
  }
}


/* ==============================================
   DESKTOP — min-width 1280px
   ============================================== */
@media only screen and (min-width: 80rem) {
  .section.section_hero {
    height: clamp(400px, 92.5vh, 900px);
  }

  .hero-rev .hero-rev__left {
    text-align: left;
    margin-bottom: 12%;
  }

  .hero-rev .hero-rev__title {
    font-size: 50px;
  }

  .hero-rev .hero-rev__subtitle {
    font-size: 16px;
    max-width: 470px;
  }

  .hero-rev .hero-rev__buttons {
    margin-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: none;
    justify-content: start;
    gap: 10px;
  }

  .hero-rev .hero-cta {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    width: auto;
    max-width: none;
  }

  .hero-rev .hero-rev__bullets {
    bottom: 48px;
  }

  .hero-rev .hero-rev__item.is-slide-1 .hero-rev__left {
    max-width: 640px;
  }

  .hero-rev .hero-rev__item.is-slide-1 .hero-rev__image--main {
    width: 76%;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__left {
    max-width: 52%;
  }

  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__image--main {
    top: 8%;
    bottom: 0;
    left: 45%;
    width: 52%;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__left {
    max-width: 720px;
  }

  .hero-rev .hero-rev__item.is-slide-3 .hero-rev__image--main {
    width: 56%;
  }
}

/* ==============================================
   ULTRA WIDE / ZOOM-OUT EKSTREM
   Saat viewport CSS sangat lebar (contoh zoom out ~33%)
   ============================================== */
@media only screen and (min-width: 220rem) {
  .hero-rev .hero-rev__item.is-slide-2 .hero-rev__image--main {
    width: 14%;
    left: 54%;
  }
}

/* ==============================================
   Hero images: masuk dari kanan saat pertama tampil
   ============================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rev-img-enter-from-right {
    from {
      opacity: 0;
      transform: translate3d(72px, 0, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .section.section_hero .hero-rev .hero-rev__image--main,
  .section.section_hero .hero-rev .hero-rev__image--main-mobile {
    animation: hero-rev-img-enter-from-right 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}