html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Inter", system-ui, sans-serif;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

/* Navbar */
#navbar {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
#navbar.scrolled {
  box-shadow: 0 8px 30px -12px rgba(16, 19, 25, 0.18);
}

/* Mobile menu */
#mobileMenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
#mobileMenu.open {
  max-height: 560px;
  opacity: 1;
}

/* Hamburger */
.burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}
.burger span + span {
  margin-top: 5px;
}
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Image zoom */
.zoom-wrap {
  overflow: hidden;
}
.zoom-wrap img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.zoom-wrap:hover img {
  transform: scale(1.06);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.1s ease,
    transform 6s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-dot.active {
  background: #fff;
  width: 26px;
}

/* Badge Populer — warna polos (tanpa gradient) */
.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}
.badge-popular::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  animation: softPulse 2.4s ease-in-out infinite;
}
.card-popular {
  border-color: rgba(37, 99, 235, 0.45) !important;
}

/* FAQ */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
details .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
details[open] .faq-body {
  max-height: 400px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd2dd;
  border-radius: 999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #2a3040;
}

/* Scroll progress bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #2563eb;
  z-index: 60;
  width: 0%;
  transition: width 0.12s linear;
}

/* Back to top */
#backToTop {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Exit modal */
#exitModal {
  display: none;
}
#exitModal.open {
  display: flex;
}

/* Comparison table scroll on mobile */
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp-wrap::-webkit-scrollbar {
  height: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-slide {
    transition: opacity 0.01ms !important;
  }
}
