/* ═══════════════════════════════════════════
   HYPE Media Indonesia — style.css
═══════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Plus Jakarta Sans', sans-serif; scroll-behavior: smooth; }

/* ── Highlight Stabilo ── */
.highlight {
  background: linear-gradient(0deg, #FFD60A 40%, transparent 40%);
  padding-bottom: 2px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stagger delays ── */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.40s !important; }
.delay-6 { transition-delay: 0.48s !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navbar ── */
#navbar {
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 #E5E5E5;
  backdrop-filter: blur(8px);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFD60A;
  color: #0A0A0A;
  font-weight: 800;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  overflow: hidden;
  animation: cta-glow 2s ease-in-out infinite;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
.btn-primary:hover {
  background: #E6BC00;
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(255, 214, 10, 0.6);
  animation: none;
}
.btn-primary:hover::before {
  animation: none;
}
@keyframes btn-shine {
  0%, 25%  { left: -80%; }
  70%, 100% { left: 150%; }
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 214, 10, 0.35); }
  50%       { box-shadow: 0 6px 30px rgba(255, 214, 10, 0.72); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
  .btn-primary::before { animation: none; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0A0A0A;
  font-weight: 700;
  border-radius: 9999px;
  padding: 13px 28px;
  font-size: 1rem;
  border: 2px solid #0A0A0A;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline:hover {
  background: #0A0A0A;
  color: #FFD60A;
  transform: scale(1.03);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  border-radius: 9999px;
  padding: 14px 28px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-wa:hover {
  background: #1fbc5c;
  transform: scale(1.03);
}

/* ── Service / Case Study Card hover ── */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ── Pricing Card ── */
.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ── Logo marquee ── */
.marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track:hover { animation-play-state: paused; }

/* ── FAQ Accordion ── */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-body.open {
  max-height: 320px;
}
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── Floating WA corner button ── */
.wa-float {
  position: fixed;
  bottom: 90px; /* lifted to not overlap sticky CTA bar */
  right: 20px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.75); }
}

/* ── Sticky CTA Bar (bottom center) ── */
#sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 997;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 480px;
}
#sticky-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta-inner {
  background: #0A0A0A;
  border-radius: 20px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.sticky-cta-text {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}
.sticky-cta-text span {
  color: #FFD60A;
  font-weight: 800;
}
.sticky-cta-btn {
  background: #FFD60A;
  color: #0A0A0A;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sticky-cta-btn:hover {
  background: #E6BC00;
  transform: scale(1.04);
}
.sticky-cta-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sticky-cta-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ── Before/After row ── */
.ba-row { transition: transform 0.2s; }
.ba-row:hover { transform: scale(1.01); }

/* ── Step card ── */
.step-card { transition: transform 0.2s; }
.step-card:hover { transform: translateY(-4px); }

/* ── Mobile nav ── */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Form input ── */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: #0A0A0A;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: #FFD60A; }

/* ── Stat card shine ── */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: skewX(-15deg);
  animation: card-shine 4s ease-in-out infinite;
}
@keyframes card-shine {
  0%        { left: -60%; }
  60%, 100% { left: 130%; }
}

/* ── Hero background gradient ── */
.hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 214, 10, 0.1) 0%, transparent 70%);
}

/* ── Hero creator images float ── */
.creator-float {
  animation: creator-float 4.5s ease-in-out infinite;
}
@keyframes creator-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── Hero floating stat badges ── */
.hero-badge {
  animation: hero-badge-float 3.5s ease-in-out infinite;
}
@keyframes hero-badge-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .creator-float { animation: none; }
  .hero-badge    { animation: none; }
}

/* ── TikTok embed dalam card ── */
.case-study-video {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #000;
}
.case-study-video blockquote.tiktok-embed {
  max-width: 100% !important;
  min-width: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
/* iframe yang di-inject TikTok embed.js */
.case-study-video iframe {
  display: block;
  width: 100% !important;
  border: none;
}

/* ── Growth badge ── */
.growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* ── Section divider pulse ── */
.stat-strip {
  border-left: 3px solid #FFD60A;
  padding-left: 14px;
}

/* ─── Media: hide sticky bar on screens that have nav space ─── */
@media (min-width: 1024px) {
  .wa-float { bottom: 96px; right: 28px; }
  #sticky-cta { max-width: 520px; }
}

/* ══════════════════════════════════════════
   Section gradient backgrounds
══════════════════════════════════════════ */

/* Before / After — ivory hangat kiri atas → putih → biru muda kanan bawah */
.sec-before-after {
  background: linear-gradient(135deg, #fffef0 0%, #ffffff 48%, #f3f8ff 100%);
}

/* Social Proof — abu gelap ke terang */
.sec-social-proof {
  background: linear-gradient(180deg, #e5e5e5 0%, #f4f4f4 100%);
}

/* Studi Kasus — krem kuning atas kiri → putih → kuning pucat bawah kanan */
.sec-studi-kasus {
  background:
    radial-gradient(ellipse 65% 55% at 0% 0%,    #fffce8 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 100% 100%, #fffbe0 0%, transparent 55%),
    #ffffff;
}

/* CTA mid (ink setelah studi kasus) — biru glow dari atas */
.sec-cta-ink-mid {
  background:
    radial-gradient(ellipse 90% 120% at 50% 0%, rgba(59,130,246,0.22) 0%, transparent 58%),
    #0a0a0a;
}

/* Cara Kerja — biru muda atas → putih bersih bawah */
.sec-cara-kerja {
  background: linear-gradient(180deg, #ebf3ff 0%, #f4f8ff 30%, #ffffff 65%);
}

/* Kenapa HYPE — ink, kuning glow kanan atas + biru accent kiri bawah */
.sec-kenapa-hype {
  background:
    radial-gradient(ellipse 70% 65% at 92% 10%, rgba(255,214,10,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 5%  90%, rgba(59,130,246,0.09) 0%, transparent 52%),
    #0a0a0a;
}

/* Paket Harga — putih atas → krem kuning makin hangat ke bawah */
.sec-paket {
  background: linear-gradient(180deg, #ffffff 0%, #fffef5 45%, #fffbe0 100%);
}

/* CTA kuning setelah Paket — gradasi kuning ke amber */
.sec-cta-yellow {
  background: linear-gradient(135deg, #ffe033 0%, #FFD60A 45%, #f4b800 100%);
}

/* FAQ — abu dengan arah diagonal */
.sec-faq {
  background: linear-gradient(155deg, #efefef 0%, #f7f7f7 50%, #e9e9e9 100%);
}

/* Final CTA — ink, dual radial: biru kiri + kuning kanan */
.sec-final-cta {
  background:
    radial-gradient(ellipse 60% 75% at  8% 50%, rgba(59,130,246,0.18) 0%, transparent 56%),
    radial-gradient(ellipse 50% 65% at 92% 50%, rgba(255,214,10,0.11) 0%, transparent 52%),
    #0a0a0a;
}

/* Footer — sangat gelap, glow kuning halus di tengah atas */
.sec-footer {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,214,10,0.05) 0%, transparent 55%),
    #050505;
}
