/* ==========================================================================
   Flamo — Hero landing (layout dua kolom)
   Di-load setelah style inline landing, jadi aturan di sini menimpa yang lama.
   ========================================================================== */

.hx {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 118px 0 72px;
  text-align: left;
}

.hx-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ---------- Kolom kiri ---------- */
.hx-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hx-chip {
  margin-bottom: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.hx-chip:hover { transform: translateY(-1px); }

.hx-h1 {
  margin: 0;
  max-width: none;
  text-align: left;
  font-family: var(--sans);
  font-size: clamp(38px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--t);
  text-wrap: balance;
}

.hx-grad {
  display: inline-block;
  background: linear-gradient(100deg, #ff2a1f 0%, #ff5a1f 40%, #ffb020 70%, #ff5a1f 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hxShine 7s linear infinite;
  padding-bottom: .06em;
}
@keyframes hxShine {
  to { background-position: 220% center; }
}

.hx-sub {
  margin: 22px 0 0;
  max-width: 500px;
  text-align: left;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--t2, #c9b8b0);
}

/* Tombol CTA */
.hx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
  overflow: hidden;
  isolation: isolate;
}
.hx-btn:active { transform: scale(.97); }
.hx-btn:focus-visible { outline: 2px solid var(--g, #ff5a1f); outline-offset: 3px; }

.hx-btn-p {
  color: #140604;
  background: linear-gradient(135deg, #ff2a1f, #ff5a1f 55%, #ffb020);
  box-shadow: 0 10px 30px -8px rgba(255, 90, 31, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hx-btn-p::after {
  /* kilatan cahaya saat hover */
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  z-index: -1;
}
.hx-btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -8px rgba(255, 90, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.hx-btn-p:hover::after { left: 120%; }
.hx-btn-p svg { transition: transform .25s ease; }
.hx-btn-p:hover svg { transform: translateX(4px); }

.hx-btn-s {
  color: var(--t);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hx-btn-s:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, .5);
  background: rgba(255, 90, 31, .08);
}

/* Command bar (copy URL) */
.hx-copy .fl-cmd {
  width: 100%;
  max-width: 560px;
  margin-top: 30px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hx-copy .fl-cmd:hover {
  border-color: rgba(255, 90, 31, .45);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .08);
}

/* Trust pills */
.hx-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hx-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--t2, #c9b8b0);
  transition: border-color .25s ease, color .25s ease;
}
.hx-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g, #ff5a1f);
  box-shadow: 0 0 10px rgba(255, 90, 31, .8);
  flex-shrink: 0;
}
.hx-trust li:hover {
  border-color: rgba(255, 90, 31, .35);
  color: var(--t);
}

/* ---------- Kolom kanan: demo ---------- */
.hx-visual .win {
  max-width: none;
  margin: 0;
}
.hx-visual .win-b {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr);
  min-height: 300px;
}
.hx-visual .col { padding: 12px 8px; }
.hx-visual .req { padding: 14px 14px; font-size: 11.5px; }
.hx-visual .req .u span { font-size: 11px; }
.hx-visual {
  position: relative;
  min-width: 0;
}
.hx-visual::before {
  /* cahaya di belakang demo */
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .32), transparent 72%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}
.hx-visual .stage {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 28px 0;
  perspective: 1400px;
}
.hx-visual .win {
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 90, 31, .12);
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .hx {
    display: block;
    min-height: auto;
    padding: 104px 0 56px;
    text-align: center;
  }
  .hx-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hx-copy {
    align-items: center;
  }
  .hx-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hx-cta {
    justify-content: center;
  }
  .hx-copy .fl-cmd {
    margin-left: auto;
    margin-right: auto;
  }
  .hx-trust {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hx-wrap { padding: 0 18px; }
  .hx-cta { width: 100%; }
  .hx-btn { flex: 1 1 100%; justify-content: center; }
  .hx-visual .stage { padding: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-grad { animation: none; }
  .hx-visual .win { transition: none; }
}

/* ---------- Chip + maskot kecil ---------- */
.hx-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hx-chip-row .hx-chip { margin-bottom: 0; }
.hx-mascot-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
/* Maskot yang disuntik flamo.js ke slot di samping chip */
.hx-mascot-slot #fl-mascot {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0;
  filter: drop-shadow(0 4px 12px rgba(255, 90, 31, .45));
  animation: flFloat 3.2s ease-in-out infinite;
}
@media (max-width: 960px) {
  .hx-chip-row { justify-content: center; }
}

/* ---------- Judul yang berganti-ganti ---------- */
.hx-rot-wrap {
  display: block;
  min-height: 1.1em;
  cursor: pointer;
}
.hx-rot {
  display: inline-block;
  transition: opacity .32s ease, transform .32s ease, filter .32s ease;
}
.hx-rot.out {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
}

/* Titik indikator */
.hx-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.hx-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hx-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
  color: var(--t, #fff4ee);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.hx-arrow:hover { background: rgba(255, 90, 31, .12); border-color: rgba(255, 90, 31, .45); }
.hx-arrow:active { transform: scale(.92); }
.hx-arrow:focus-visible { outline: 2px solid #ff5a1f; outline-offset: 3px; }
.hx-sub { transition: opacity .32s ease, transform .32s ease, filter .32s ease; min-height: 3.2em; }
.hx-sub.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.hx-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease;
}
.hx-dot:hover { background: rgba(255, 90, 31, .6); }
.hx-dot.on {
  width: 26px;
  background: linear-gradient(90deg, #ff2a1f, #ffb020);
}
.hx-dot:focus-visible { outline: 2px solid #ff5a1f; outline-offset: 3px; }

@media (max-width: 960px) {
  .hx-ctrl { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-rot, .hx-dot { transition: none; }
  .hx-mascot-slot #fl-mascot { animation: none; }
}
