@property --g2-1-x-position { syntax: "<percentage>"; inherits: false; initial-value: 87.96875%; }
@property --g2-1-y-position { syntax: "<percentage>"; inherits: false; initial-value: 91.13%; }
@property --g2-2-x-position { syntax: "<percentage>"; inherits: false; initial-value: 13.4%; }
@property --g2-2-y-position { syntax: "<percentage>"; inherits: false; initial-value: 82.73%; }

.hero-aurora {
  --g2-1-x-position: 87.96875%;
  --g2-1-y-position: 91.13%;
  --g2-2-x-position: 13.4%;
  --g2-2-y-position: 82.73%;
  min-height: 760px;
  border-bottom-right-radius: clamp(110px, 14vw, 240px);
  background:
    radial-gradient(54% 72% at 0% 0%, #ffffff 42%, transparent 100%),
    radial-gradient(48% 68% at var(--g2-2-x-position) var(--g2-2-y-position), rgba(253, 232, 130, 0.24) 0%, transparent 72%),
    radial-gradient(42% 62% at var(--g2-1-x-position) var(--g2-1-y-position), rgba(109, 181, 201, 0.18) 0%, transparent 74%),
    #ffffff;
  animation: heroGlow 18s ease-in-out infinite;
}

.hero-aurora.is-scroll-paused {
  animation-play-state: paused;
}

.hero-aurora::after {
  content: "";
  position: absolute;
  right: -260px;
  bottom: -520px;
  width: 776px;
  height: 1312px;
  border-radius: 50%;
  background: #016E8D;
  opacity: 0.08;
  filter: blur(210px);
  backdrop-filter: blur(664px);
  -webkit-backdrop-filter: blur(664px);
  transform: rotate(-46.93deg);
  pointer-events: none;
  z-index: 0;
}

.hero-shell {
  padding-top: 180px;
  padding-bottom: 54px;
}

.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(500px, 1.06fr);
  align-items: start;
  gap: clamp(44px, 4.7vw, 88px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

@keyframes heroGlow {
  50% {
    --g2-1-x-position: 15%;
    --g2-1-y-position: 15%;
    --g2-2-x-position: 61.21%;
    --g2-2-y-position: 13.75%;
  }
}

/* Title & Desc */
.hero-title {
  max-width: 820px;
  width: 100%;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 110%;
  letter-spacing: 0;
  color: #334155;
  opacity: 1;
}

.hero-title__ai {
  color: #016E8D;
}

.hero-desc {
  width: 100%;
  max-width: none;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0%;
  color: #475569;
  opacity: 1;
}

/* Slider */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  justify-self: end;
  transform: translateX(clamp(4px, 0.6vw, 10px));
  --hero-slider-edge-offset: 5.45%;
}

.hero-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
  background: transparent;
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  scroll-snap-align: start;
  width: 100%;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.hero-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1688 / 1100;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transform-origin: center;
}

.hero-store-link {
  position: absolute;
  z-index: 6;
  display: block;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-store-link:hover,
.hero-store-link:focus,
.hero-store-link:focus-visible,
.hero-store-link:active,
.hero-store-link:visited {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hero-store-link--appstore {
  left: 11.4%;
  top: 48.8%;
  width: 20.4%;
  height: 8.8%;
}

.hero-store-link--playstore {
  left: 34.4%;
  top: 48.8%;
  width: 20.4%;
  height: 8.8%;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(1, 110, 141, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0px 6px 18px rgba(15, 23, 42, 0.12);
  color: #016E8D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-slider-nav--prev {
  left: -10px;
}

.hero-slider-nav--next {
  right: -10px;
}

.hero-slider-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 17%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-50%);
  box-shadow: 0px 8px 20px rgba(15, 23, 42, 0.08);
}

.hero-slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-slider-dot.is-active {
  width: 8px;
  background: #0EA5D7;
}

/* Buttons wrapper */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

/* Button: Jadwalkan Demo Gratis */
.hero-btn-primary-lg {
  width: 261px;
  height: 48px;
  border-radius: 12px;
  background: #F7B60C;
  border: 2px solid transparent;
  box-shadow: 0px 2px 6px 0px #EBAD004D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 0;
  text-transform: capitalize;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-primary-lg:hover {
  background: #E9AA00;
  color: #ffffff;
}

.hero-btn-primary-lg:focus {
  outline: none;
  box-shadow:
    0px 2px 6px 0px #EBAD004D,
    0 0 0 3px rgba(247, 182, 12, 0.28);
}

.hero-btn-primary-lg .hero-btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Button: Lihat Produk */
.hero-btn-outline-lg {
  width: 154px;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid #016E8D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 0;
  text-transform: capitalize;
  color: #016E8D;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-outline-lg:hover {
  background: rgba(1, 110, 141, 0.08);
}

.hero-btn-outline-lg:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 110, 141, 0.18);
}

/* Stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  margin-top: 83px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(34px, 4.2vw, 76px);
}

.hero-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.hero-stat-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-stat-icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.hero-stat-text {
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 110%;
  letter-spacing: 0;
  color: #64748B;
}

.hero-stat-text span {
  display: inline-block;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #64748B;
}

/* ======================
   MOBILE ONLY HERO FIXES
   ====================== */
@media (max-width: 1024px) {
  .hero-aurora {
    animation: none;
    min-height: auto !important;
  }

  .hero-aurora::after {
    display: none;
  }

  .hero-shell {
    padding-top: 126px !important;
    padding-bottom: 56px !important;
  }

  .hero-main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-copy {
    gap: 20px !important;
  }

  .hero-copy .flex.flex-col.w-full.items-start.gap-5 > img {
    width: 150px !important;
    height: auto !important;
  }

  .hero-title {
    max-width: 100% !important;
    font-size: 40px !important;
    line-height: 110% !important;
  }

  .hero-title span {
    white-space: normal !important;
  }

  .hero-desc {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .hero-desc span {
    white-space: normal !important;
  }

  .hero-slider {
    max-width: 100% !important;
    justify-self: stretch !important;
    transform: none !important;
  }

  .hero-slider-track,
  .hero-slide {
    border-radius: 16px !important;
  }

  .hero-slider-nav {
    width: 32px !important;
    height: 32px !important;
  }

  .hero-slider-nav--prev {
    left: -16px !important;
  }

  .hero-slider-nav--next {
    right: -16px !important;
  }

  .hero-slider-dots {
    bottom: 15% !important;
    gap: 6px !important;
    padding: 6px 8px !important;
  }

  .hero-slider-dot {
    width: 7px !important;
    height: 7px !important;
  }

  /* tombol mobile tetap sejajar */
  .hero-buttons {
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .hero-btn-primary-lg {
    width: auto !important;
    min-width: 210px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  .hero-btn-outline-lg {
    width: auto !important;
    min-width: 126px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }

  .hero-btn-primary-lg .hero-btn-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  .hero-stats-bar {
    margin-top: 18px !important;
    padding-bottom: 28px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .hero-stat-item {
    align-items: flex-start !important;
  }

  .hero-stat-text {
    font-size: 18px !important;
    line-height: 110% !important;
  }

  .hero-stat-text span {
    font-size: 16px !important;
    line-height: 140% !important;
  }
}
