/* ============ Base ============ */
:root {
  line-height: 1.5;
  font-weight: 400;
}

#root, body {
  margin: 0;
  padding: 0;
}

html, body {
  overflow-anchor: none;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: #fff;
}

/* ============ Marquee (logo slider) ============ */
@keyframes scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.animate-scroll-up {
  animation: scroll-up 10s linear infinite;
  animation-play-state: running;
}
.review-group:hover .animate-scroll-up {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll linear infinite;
}
.marquee-viewport {
  overflow: hidden;
  width: 100%;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

/* ============ Scrollbars ============ */
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
  width: 0; height: 0; display: none;
}
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #55A99D, #007665);
  border-radius: 999px;
}
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #007665 #e4f7f4;
}

/* ============ Reveal animations (replace Framer Motion) ============ */
/* Fade in from bottom */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.network-map-arc {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
}
.network-map-pin {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
}
.network-map-ready .network-map-arc {
  animation: networkMapArc 1s ease forwards;
  animation-delay: var(--map-delay);
}
.network-map-ready .network-map-pin {
  animation: networkMapPin 1.1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--map-delay);
}
@keyframes networkMapArc {
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes networkMapPin {
  from { opacity: 0; transform: translateY(10px) rotateX(-120deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Delay helpers (in ms via inline style transition-delay, but classes for common values) */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ============ Card flip (Hero / StartAChat mini cards) ============ */
@keyframes cardFlipY {
  0% { transform: rotateY(0) translateY(0) scale(1); }
  50% { transform: rotateY(180deg) translateY(-8px) scale(1.05); }
  100% { transform: rotateY(360deg) translateY(0) scale(1); }
}
@keyframes cardFlipX {
  0% { transform: rotateX(0) translateY(0) scale(1); }
  50% { transform: rotateX(180deg) translateY(-8px) scale(1.05); }
  100% { transform: rotateX(360deg) translateY(0) scale(1); }
}
.card-flip-y {
  animation: cardFlipY 2.3s cubic-bezier(0.25,0.1,0.25,1) infinite;
  animation-play-state: running;
  transform-style: preserve-3d;
  transform-origin: center center;
}
.card-flip-x {
  animation: cardFlipX 2.2s cubic-bezier(0.25,0.1,0.25,1) infinite;
  transform-style: preserve-3d;
  transform-origin: center center;
}
.card-flip-delay-0 { animation-delay: 0s; }
.card-flip-delay-1 { animation-delay: 1.5s; }
.card-flip-delay-2 { animation-delay: 3s; }

/* Climb-in image (Hero card3) */
.climb-img {
  transform: translateY(100%) scale(0.96);
  transition: transform 1s ease-out;
}
.climb-img.is-visible {
  transform: translateY(0) scale(1.2);
}

/* Pulsing glow behind CTA button */
@keyframes pulseGlow {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}
.pulse-glow {
  animation: pulseGlow 1.5s ease-in-out infinite;
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse-scale {
  animation: pulseScale 1.5s ease-in-out infinite;
}

/* Animated hover button (AnimatedButton.jsx equivalent) */
.anim-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.anim-btn .anim-btn-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease-out;
}
.anim-btn:hover .anim-btn-bg {
  transform: scaleX(1);
}
.anim-btn .anim-btn-label {
  position: relative;
  z-index: 10;
  transition: color .2s ease;
}

/* Floating badges (StartAChat card 2) */
@keyframes floatBadge {
  0%, 100% { transform: rotate(0) translateX(0) scale(1); }
  33% { transform: rotate(3deg) translateX(5px) scale(1.03); }
  66% { transform: rotate(-3deg) translateX(-5px) scale(0.99); }
}
.float-badge {
  animation: floatBadge 3s ease-in-out infinite;
}

/* ============ Card carousel ============ */
.carousel-card {
  width: 320px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.carousel-card.is-center {
  opacity: 1;
}
.carousel-card.is-center .carousel-cta {
  cursor: pointer;
}
.carousel-card:not(.is-center) .carousel-cta {
  pointer-events: none;
  opacity: .7;
}
#carousel-track {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.testi-viewport {
  height: 340px;
}
.testi-track {
  min-height: 320px;
  will-change: transform;
}
.testi-card {
  min-height: 320px;
  flex: 0 0 auto;
}
.testi-card > div {
  min-height: 320px;
}
.faq-media {
  min-height: 360px;
}
.faq-media img {
  display: block;
  min-height: 360px;
}
@media (min-width: 640px) {
  .carousel-card { width: 380px; }
}
@media (min-width: 1024px) {
  .carousel-card { width: 420px; }
  .testi-viewport,
  .testi-track,
  .testi-card,
  .testi-card > div {
    min-height: 340px;
    height: 340px;
  }
  .faq-media {
    position: relative;
    min-height: 0;
    height: 100%;
  }
  .faq-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    height: 100%;
  }
  .faq-desktop-overlay {
    position: absolute;
    top: 50%;
    left: 1.5625rem;
    right: 1.5625rem;
    z-index: 1;
    transform: translateY(-50%);
  }
}

/* Floating drift animations (BusinessAPI logo & phone) */
@keyframes floatDrift {
  0%,100% { transform: rotate(0) translateX(0) scale(1); }
  33% { transform: rotate(4deg) translateX(6px) scale(1.04); }
  66% { transform: rotate(-4deg) translateX(-6px) scale(0.98); }
}
.float-drift {
  animation: floatDrift 3.4s ease-in-out infinite;
}
@keyframes floatDriftPhone {
  0%,100% { transform: rotate(0) translateX(0) scale(1); }
  33% { transform: rotate(2.5deg) translateX(8px) scale(1.02); }
  66% { transform: rotate(-2.5deg) translateX(-8px) scale(0.99); }
}
.float-drift-phone {
  animation: floatDriftPhone 4.5s ease-in-out infinite;
}

/* Floating cards (LaptopImage.jsx) */
@keyframes floatCard {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-10px) scale(1); }
  40% { transform: translateY(0) scale(1); }
  60% { transform: translateY(10px) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.float-card {
  animation: floatCard 6s ease-in-out infinite;
}

/* Fonts */
.font-outfit { font-family: 'Outfit', system-ui, sans-serif; }
.font-inter { font-family: 'Inter', system-ui, sans-serif; }

.powerful-whatsapp-section {
  overflow-x: clip;
}