/* ═══════════════════════════════════════════════
   Base
═══════════════════════════════════════════════ */
body { font-family: 'Inter', sans-serif; }

/* ═══════════════════════════════════════════════
   Navbar — transparent ↔ solid transition
═══════════════════════════════════════════════ */
#navbar {
  transition: background-color 0.4s ease,
              border-color     0.4s ease,
              backdrop-filter  0.4s ease;
}

/* ── Over hero (transparent state) ── */
#navbar .nav-logo-text {
  color: #ffffff;
  transition: color 0.4s ease;
}

#navbar .logo-box {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

#navbar .logo-icon {
  color: #ffffff;
  transition: color 0.4s ease;
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s ease;
}
#navbar .nav-link:hover { color: #ffffff; }

#navbar .nav-cta {
  background-color: #ffffff;
  color: #111827;
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.2s;
}
#navbar .nav-cta:hover { opacity: 0.9; }

/* ── Scrolled / light mode ── */
#navbar.navbar-scrolled {
  background-color: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.navbar-scrolled .nav-logo-text { color: #111827; }

#navbar.navbar-scrolled .logo-box {
  background-color: #111827;
  border-color: transparent;
}

#navbar.navbar-scrolled .logo-icon { color: #ffffff; }

#navbar.navbar-scrolled .nav-link   { color: rgb(107, 114, 128); }
#navbar.navbar-scrolled .nav-link:hover { color: #111827; }

#navbar.navbar-scrolled .nav-cta {
  background-color: #111827;
  color: #ffffff;
}

/* ── Scrolled / dark mode ── */
html.dark #navbar.navbar-scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.dark #navbar.navbar-scrolled .nav-logo-text { color: #ffffff; }

html.dark #navbar.navbar-scrolled .logo-box {
  background-color: #ffffff;
  border-color: transparent;
}

html.dark #navbar.navbar-scrolled .logo-icon { color: #111827; }

html.dark #navbar.navbar-scrolled .nav-link         { color: rgb(156, 163, 175); }
html.dark #navbar.navbar-scrolled .nav-link:hover   { color: #ffffff; }

html.dark #navbar.navbar-scrolled .nav-cta {
  background-color: #ffffff;
  color: #111827;
}

/* ═══════════════════════════════════════════════
   Hero — background + zoom-out animation
═══════════════════════════════════════════════ */
.hero-section {
  /* Dark fallback colour while image loads */
  background-color: #0d0d0d;
}

@keyframes heroZoomOut {
  from { transform: scale(1.14); }
  to   { transform: scale(1.0);  }
}

.hero-bg-image {
  animation: heroZoomOut 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform;
}

/* ═══════════════════════════════════════════════
   Trusted-by logo — staggered blur-fade cycle
   Negative animation-delay is read from --delay
   so each logo starts mid-cycle on page load.
═══════════════════════════════════════════════ */
@keyframes logoFade {
  0%, 100% {
    opacity: 0.15;
    filter: blur(5px);
    transform: scale(0.93);
  }
  18% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
  62% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
  80% {
    opacity: 0.15;
    filter: blur(5px);
    transform: scale(0.93);
  }
}

.logo-item {
  animation: logoFade 5.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: opacity, filter, transform;
}

/* ═══════════════════════════════════════════════
   Sticky scroll — slide transitions
═══════════════════════════════════════════════ */
.feature-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  /* starts at 90%, anchored left — expands rightward as it becomes active */
  transform: scale(0.9) translateX(-4%);
  transform-origin: left center;
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1),
              transform .6s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.feature-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════
   Feature accordion
═══════════════════════════════════════════════ */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}
.acc-item.open .acc-body { max-height: 280px; }

.acc-plus { transition: transform .3s; display: inline-block; }
.acc-item.open .acc-plus { transform: rotate(45deg); }

.acc-progress {
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.acc-item.open .acc-progress { transform: scaleX(1); }

/* ═══════════════════════════════════════════════
   Review marquee rows
═══════════════════════════════════════════════ */
@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.review-marquee-wrap {
  overflow: hidden;
  /* Edge fade masks */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.review-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.review-marquee.scroll-left {
  animation: marquee-left 40s linear infinite;
}
.review-marquee.scroll-right {
  animation: marquee-right 44s linear infinite;
}

/* Pause on hover */
.review-marquee-wrap:hover .review-marquee { animation-play-state: paused; }

/* Individual card */
.review-card {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
html.dark .review-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.review-qq {
  width: 28px;
  height: 21px;
  color: #d0c9be;
  margin-bottom: 16px;
  flex-shrink: 0;
}
html.dark .review-qq { color: rgba(255,255,255,0.12); }

.review-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  flex: 1;
  margin-bottom: 20px;
}
html.dark .review-card p { color: rgba(255,255,255,0.7); }

.review-card hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
html.dark .review-card hr { border-color: rgba(255,255,255,0.08); }

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-author div { display: flex; flex-direction: column; gap: 1px; }
.review-author strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
html.dark .review-author strong { color: #ffffff; }
.review-author span {
  font-size: 12px;
  color: #9ca3af;
}

/* ═══════════════════════════════════════════════
   Testimonial slider
═══════════════════════════════════════════════ */
.tslide {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.tslide.active { opacity: 1; }

/* Quote text cross-fade */
.tquote-fade {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tquote-fade.fading {
  opacity: 0;
  transform: translateY(8px);
}

/* ═══════════════════════════════════════════════
   FAQ — card accordion
═══════════════════════════════════════════════ */
.faq-item {
  background: #E8E3D9;
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.25s ease;
}
html.dark .faq-item {
  background: rgba(255, 255, 255, 0.05);
}
.faq-item.open {
  background: #E1DBD0;
}
html.dark .faq-item.open {
  background: rgba(255, 255, 255, 0.08);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-body { max-height: 200px; }

/* +/× icon swap */
.faq-item .faq-icon-close { display: none; }
.faq-item.open .faq-icon-plus  { display: none; }
.faq-item.open .faq-icon-close { display: inline; }

/* ═══════════════════════════════════════════════
   Pricing + integration cards
═══════════════════════════════════════════════ */
.plan-card { transition: transform .25s, box-shadow .25s; }
.plan-card:hover { transform: translateY(-6px); }

.int-card { transition: transform .2s, box-shadow .2s; }
.int-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

/* ═══════════════════════════════════════════════
   Scrollbar
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 99px; }
html.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); }
