/* ==========================================================================
   CUTE, DELIGHTFUL & ADORABLE ANIMATIONS & UI STYLES (ASIS QUALITY)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */

@keyframes cuteFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.2deg);
  }
}

@keyframes cuteFloatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(6px) rotate(-1.2deg);
  }
}

@keyframes cuteWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

@keyframes cuteBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes cuteHandWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  20%, 60% {
    transform: rotate(18deg);
  }
  40%, 80% {
    transform: rotate(-10deg);
  }
}

@keyframes cuteJumpTada {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.18, 0.82) translateY(3px); }
  50% { transform: scale(0.92, 1.14) translateY(-12px) rotate(-4deg); }
  70% { transform: scale(1.04, 0.96) translateY(-4px) rotate(4deg); }
  100% { transform: scale(1) translateY(0) rotate(0deg); }
}

@keyframes cuteTwinkle {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }
}

@keyframes cuteSheenSweep {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@keyframes cuteBubblePop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }
  70% {
    transform: scale(1.05) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   2. HERO CUTE BADGES (DILUAR FOTO - DI KOLOM TEKS)
   -------------------------------------------------------------------------- */

.hero-cute-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.hero-cute-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid rgba(241, 90, 41, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cuteFloat 4s ease-in-out infinite;
}

.hero-cute-pill:nth-child(2) {
  animation: cuteFloatReverse 4.5s ease-in-out infinite 0.4s;
  border-color: rgba(37, 99, 235, 0.2);
}

.hero-cute-pill:nth-child(3) {
  animation: cuteFloat 5s ease-in-out infinite 0.8s;
  border-color: rgba(16, 185, 129, 0.2);
}

.hero-cute-pill:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 22px rgba(241, 90, 41, 0.18);
  border-color: var(--primary);
}

.hero-pill-icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. ISO OVERVIEW SECTION - PROFESSIONAL B2B CARDS
   -------------------------------------------------------------------------- */

.iso-overview {
  background: #f8fafc;
  padding: 84px 0;
  position: relative;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.iso-overview-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.iso-overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid rgba(241, 90, 41, 0.22);
  border-radius: 999px;
  color: #ea580c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.iso-overview-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f15a29;
  box-shadow: 0 0 0 3px rgba(241, 90, 41, 0.18);
}

.iso-overview-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

.iso-overview-sub {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.68;
  margin: 0 auto;
}

.iso-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .iso-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .iso-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.iso-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.iso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, #f15a29, #ea580c);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.iso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(241, 90, 41, 0.06);
  border-color: #cbd5e1;
}

.iso-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.iso-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.iso-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(241, 90, 41, 0.2);
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.iso-card-icon svg {
  width: 24px;
  height: 24px;
}

.iso-card:hover .iso-card-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.iso-card-num {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
  letter-spacing: 0.05em;
  background: #f8fafc;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.iso-card:hover .iso-card-num {
  color: #ea580c;
  border-color: rgba(241, 90, 41, 0.2);
  background: #fff7ed;
}

.iso-card-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.iso-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.62;
  margin: 0 0 20px;
  flex-grow: 1;
}

.iso-card-benefits {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
}

.iso-card-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

.iso-check-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #ea580c;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   4. FLOATING CONTACT & MASCOT (POSISI BENAR, JELAS, TIDAK KETUTUP)
   -------------------------------------------------------------------------- */

.asis-floating-wrapper {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  pointer-events: none;
}

.asis-floating-wrapper > * {
  pointer-events: auto;
}

.asis-floating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bubble Percakapan Lucu */
.asis-buddy-bubble {
  position: relative;
  background: #ffffff;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(241, 90, 41, 0.12);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 230px;
  line-height: 1.45;
  cursor: pointer;
  animation: cuteBubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.asis-buddy-bubble:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(241, 90, 41, 0.25);
}

.asis-buddy-bubble-tail {
  position: absolute;
  right: 24px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-right: 1px solid rgba(241, 90, 41, 0.12);
  border-bottom: 1px solid rgba(241, 90, 41, 0.12);
}

.asis-buddy-bubble-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.asis-buddy-bubble:hover .asis-buddy-bubble-close {
  opacity: 1;
}

.asis-buddy-bubble-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Mascot Avatar */
.asis-buddy-mascot {
  position: relative;
  width: 52px;
  height: 52px;
  cursor: pointer;
  animation: cuteFloat 3.5s ease-in-out infinite;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.2));
  flex-shrink: 0;
}

.asis-buddy-mascot:hover {
  animation-play-state: paused;
  transform: scale(1.15) rotate(4deg);
}

.asis-buddy-mascot.is-jumping {
  animation: cuteJumpTada 0.6s ease forwards !important;
}

.asis-eye {
  transform-origin: center;
  animation: cuteBlink 4s infinite;
}

.asis-hand-wave {
  transform-origin: 20px 48px;
  animation: cuteHandWave 2.4s ease-in-out infinite;
}

.asis-buddy-badge {
  position: absolute;
  top: 0px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f15a29;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(241, 90, 41, 0.6);
  animation: cuteTwinkle 2s infinite;
}

/* Tombol WhatsApp Mengapung yang Nyata, Rapi & Jelas */
.btn-wa-floating {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  overflow: hidden !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease !important;
}

.btn-wa-floating:hover {
  background: #1ebe5b !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6) !important;
}

.btn-wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. HOVER JELLY BOUNCE & SHEEN
   -------------------------------------------------------------------------- */

.logo:hover .logo-mark {
  animation: cuteJumpTada 0.55s ease;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease !important;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(241, 90, 41, 0.35) !important;
}

.btn-primary::after,
.btn-wa-floating::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-wa-floating:hover::after {
  animation: cuteSheenSweep 0.75s ease forwards;
}

/* --------------------------------------------------------------------------
   6. CLICK SPARKLE BURST
   -------------------------------------------------------------------------- */

.cute-click-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 18px;
  line-height: 1;
  user-select: none;
  animation: cuteParticleBurst 0.65s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes cuteParticleBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.25) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx) * 1.3), calc(-50% + var(--dy) * 1.3)) scale(0.3) rotate(calc(var(--rot) * 1.5));
  }
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE (HP & MOBILE)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .asis-floating-wrapper {
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 6px !important;
  }

  /* Sembunyikan bubble otomatis di HP agar tidak menutupi teks artikel */
  .asis-buddy-bubble {
    display: none !important;
  }

  .asis-buddy-bubble.is-mobile-active {
    display: block !important;
    max-width: 200px !important;
    font-size: 0.74rem !important;
    padding: 8px 12px !important;
    margin-bottom: 4px !important;
  }

  .asis-floating-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .asis-buddy-mascot {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  .btn-wa-floating {
    padding: 9px 15px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
    right: auto !important;
    bottom: auto !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
  }

  .btn-wa-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .hero-cute-pills-row {
    margin: 10px 0 18px;
    gap: 6px;
  }

  .hero-cute-pill {
    font-size: 0.74rem;
    padding: 5px 10px;
  }

  .iso-overview {
    padding: 48px 0;
  }

  .iso-overview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .iso-card {
    padding: 22px 18px;
  }
}
