/* ═══════════════════════════════════════════
   HOSTY EFFECTS — Premium interactive layer
   GSAP ScrollTrigger + Vanilla enhancements
   No content changes, only motion & interactivity
   ═══════════════════════════════════════════ */

/* ── GSAP OVERRIDES: hide elements before GSAP inits ── */
.gsap-ready .section-title,
.gsap-ready .section-sub,
.gsap-ready .section-tag {
  visibility: visible;
}

/* ── TEXT REVEAL ── */
.tr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.tr-word-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* ── ENHANCED CARD HOVERS ── */
.pain-card,
.feature-card,
.usecase-card,
.control-item,
.step-card,
.ba-card,
.roi-card,
.deep-card,
.data-card,
.booking-card,
.setup-path,
.why-item,
.trust-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease;
}

.pain-card:hover,
.feature-card:hover,
.usecase-card:hover,
.data-card:hover,
.booking-card:hover,
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 245, 160, 0.08), 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--border);
}

.setup-path:hover,
.roi-card:hover,
.deep-card:hover,
.ba-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 245, 160, 0.06), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.trust-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(45, 245, 160, 0.1);
}

/* ── TILT CARD 3D (applied via JS) ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card > * {
  transform: translateZ(20px);
}

/* ── MAGNETIC BUTTON ── */
.btn-magnetic {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease;
}

/* ── ENHANCED BUTTON GLOW ON HOVER ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 1;
}

/* ── HERO ORB PARALLAX (smoother) ── */
.hero-orb1, .hero-orb2 {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ── SECTION DIVIDER GLOW ── */
.divider {
  position: relative;
  overflow: visible;
}
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 2px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FAQ SMOOTH OPEN ── */
.faq-item {
  overflow: hidden;
}
.faq-item .faq-a-inner {
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}

/* ── CURSOR GLOW (desktop only) ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 245, 160, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: left, top;
}

/* ── CHAT DEMO ENHANCED TRANSITION ── */
#chat-scenario {
  transition: opacity 0.15s ease;
}

/* ── PROOF ITEMS / METRICS COUNTER GLOW ── */
.proof-val, .result-val, .trust-val, .metric-val {
  transition: text-shadow 0.3s ease;
}
.proof-val.counted,
.result-val.counted,
.trust-val.counted,
.metric-val.counted {
  text-shadow: 0 0 20px rgba(45, 245, 160, 0.3);
}

/* ── NAV SCROLL SHRINK ── */
nav {
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease,
              background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
nav.nav-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── ANNOUNCE BAR SLIDE ── */
.announce-bar {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ── TRUST BANNER MARQUEE ── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-banner-inner.marquee-enabled {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.trust-banner {
  overflow: hidden;
}

/* ── DEMO LANG TAGS FLOAT ── */
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.demo-lang-tag {
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.demo-lang-tag:hover {
  background: var(--accent);
  color: #0a0e0d;
  transform: translateY(-3px) !important;
}

/* ── QR FLOW STEP HOVER ── */
.qr-flow-step {
  transition: transform 0.3s ease, background 0.3s ease;
}
.qr-flow-step:hover {
  transform: translateX(4px);
  background: var(--accent-dim);
}

/* ── SETUP STEP NUMBER PULSE ── */
.setup-steps .snum {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.setup-steps li:hover .snum {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(45, 245, 160, 0.3);
}

/* ── PMS LOGO HOVER ── */
.pms-logo {
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pms-logo:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CHAT LABEL ENHANCED ── */
.chat-label {
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── CONTROL ITEM ICON GLOW ── */
.control-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.control-item:hover .control-icon {
  transform: scale(1.1);
}

/* ── PRICING BLOCK HIGHLIGHT GLOW ── */
.tier-popular {
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.tier-popular:hover {
  box-shadow: 0 0 40px rgba(45, 245, 160, 0.12), 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

/* ── ICO (hotels.html feature icons) ── */
.ico {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .ico {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(45, 245, 160, 0.2);
}

/* ── STICKY CTA SLIDE ── */
.sticky-cta {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.hidden-cta {
  transform: translateY(100%);
}

/* ── LIGHT MODE ADJUSTMENTS ── */
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(26, 160, 106, 0.03) 0%, transparent 70%);
}
[data-theme="light"] .pain-card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .usecase-card:hover {
  box-shadow: 0 12px 40px rgba(26, 160, 106, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .trust-card:hover {
  box-shadow: 0 8px 32px rgba(26, 160, 106, 0.1);
}
[data-theme="light"] nav.nav-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .proof-val.counted,
[data-theme="light"] .result-val.counted,
[data-theme="light"] .trust-val.counted,
[data-theme="light"] .metric-val.counted {
  text-shadow: 0 0 20px rgba(26, 160, 106, 0.2);
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(45, 245, 160, 0.6));
  z-index: 10000;
  pointer-events: none;
  transition: none;
}

/* ── TYPING INDICATOR ── */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  border-radius: 12px 12px 12px 3px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── FAQ SMOOTH ACCORDION ── */
.faq-item .faq-a-inner {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease 0.05s,
              padding 0.3s ease;
}
.faq-item[open] .faq-a-inner {
  opacity: 1;
}
.faq-arrow {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.faq-item[open] .faq-arrow {
  transform: rotate(45deg);
}

/* ── ACTIVE NAV LINK ── */
.nav-link.nav-active {
  color: var(--accent) !important;
  background: var(--accent-dim2);
}

/* ── CHAT CARD GLOW PULSE ── */
@keyframes chatGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 245, 160, 0); }
  50% { box-shadow: 0 0 30px 8px rgba(45, 245, 160, 0.08); }
}
.chat-card-glow {
  animation: chatGlowPulse 3s ease-in-out infinite;
}

/* ── BUTTON CLICK RIPPLE ── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* ── ANNOUNCE BAR SLIDE ── */
.announce-bar {
  transform: translateY(-100%);
  opacity: 0;
}
.announce-bar.announce-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ── FOUNDER CLIP-PATH REVEAL ── */
.founder-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.founder-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* ── LIGHT MODE: SCROLL PROGRESS ── */
[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, var(--accent), rgba(26, 160, 106, 0.6));
}
[data-theme="light"] .chat-card-glow {
  animation-name: chatGlowPulseLight;
}
@keyframes chatGlowPulseLight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 160, 106, 0); }
  50% { box-shadow: 0 0 30px 8px rgba(26, 160, 106, 0.06); }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-glow { display: none; }
  .trust-banner-inner.marquee-enabled { animation: none; }
  .chat-card-glow { animation: none; }
  .scroll-progress { display: none; }
}
