
/* ============ UI/UX enhancements ============ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-sky));
  z-index: 400; transition: width .1s linear;
}

/* Rotating hero word */
.rotating-word { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.rotating-word.word-out { opacity: 0; transform: translateY(-12px); }
.rotating-word.word-in { animation: wordIn .4s ease; }
@keyframes wordIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Back to top */
.back-to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.2rem;
  box-shadow: 0 10px 26px rgba(11,18,32,.3);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--blue); }

/* Newsletter */
.newsletter-form {
  display: flex; margin-top: 1.2rem; max-width: 300px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; overflow: hidden;
}
.newsletter-form input {
  flex: 1; border: 0; background: rgba(255,255,255,.07); color: #fff;
  padding: .65rem 1.1rem; font-size: .85rem; outline: none; min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form button {
  border: 0; background: var(--blue); color: #fff; padding: 0 1.1rem;
  cursor: pointer; font-size: 1rem; transition: background .2s;
}
.newsletter-form button:hover { background: var(--blue-light); }
.newsletter-status { font-size: .8rem; margin-top: .5rem; min-height: 1em; }

/* Header nav mobile toggle for sub-pages: keep white when not scrolled on home */
@media (max-width: 640px) {
  .back-to-top { left: 12px; bottom: 12px; }
}

/* Powered by Clutch */
.powered-by { margin-top: .8rem; color: var(--slate); font-size: .85rem; }
.powered-by strong { color: var(--blue); font-family: var(--font-head); }

/* Who we help — path CTAs */
.help-cta {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  padding: .65rem 1.4rem; border-radius: 999px;
  transition: background .25s ease, border .25s ease;
}
.help-cta:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* Client logo marquee */
.client-marquee { overflow: hidden; position: relative; padding: .5rem 0; }
.client-marquee::before, .client-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.client-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.client-marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.client-track { display: flex; gap: 1rem; width: max-content; animation: marquee 30s linear infinite; }
.client-track:hover { animation-play-state: paused; }

/* Insights band */
.insights-band { background: #fff; }
.insights-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  background: radial-gradient(800px 400px at 90% -20%, #1e3a8a 0%, transparent 60%), var(--navy);
  border-radius: 26px; padding: 3.5rem 3rem; color: #fff;
}
.insights-inner h2 { color: #fff; margin-bottom: .8rem; }
.insights-inner .eyebrow { color: var(--blue-sky); }
.insights-text > p { color: rgba(255,255,255,.75); margin-bottom: 1.6rem; }
.insights-stats { display: flex; gap: 2.2rem; margin-bottom: 2rem; }
.insights-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--blue-sky); }
.insights-stats span { font-size: .82rem; color: rgba(255,255,255,.65); }
.insights-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 2.2rem 2rem;
}
.insights-card h3 { color: #fff; margin-bottom: .5rem; }
.insights-card > p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1.3rem; }
.insights-form { display: flex; gap: .6rem; }
.insights-form input {
  flex: 1; min-width: 0; padding: .8rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; font-size: .9rem; outline: none;
}
.insights-form input::placeholder { color: rgba(255,255,255,.45); }
.insights-form input:focus { border-color: var(--blue-sky); }
.insights-form .btn { border: 0; white-space: nowrap; }
.insights-note { font-size: .76rem; color: rgba(255,255,255,.5); }

@media (max-width: 1024px) {
  .insights-inner { grid-template-columns: 1fr; padding: 2.5rem 2rem; }
}
@media (max-width: 640px) {
  .insights-form { flex-direction: column; }
  .insights-stats { gap: 1.4rem; }
}
