/* =========================================================
   SyncReach – landing page styles (Bootstrap 5 overrides)
   ========================================================= */

:root {
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-400: #60a5fa;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #fff;
  --green: #22c55e;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(37, 99, 235, .10), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(37, 99, 235, .18), 0 6px 16px rgba(15, 23, 42, .06);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
a { text-decoration: none; }
::selection { background: var(--blue-100); color: var(--blue-600); }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: 8px; }

/* ---------- Utilities ---------- */
.grad-text {
  background: linear-gradient(95deg, #2563eb 10%, #3b82f6 55%, #6366f1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-pad { padding: 100px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--blue-600); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }

/* Buttons */
.btn-sr {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 0; border-radius: 12px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-sr::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-sr:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .38); color: #fff; }
.btn-sr:hover::after { transform: translateX(120%); }
.btn-sr:active { transform: translateY(0); }

.btn-ghost {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; font-weight: 600;
  transition: transform .25s var(--ease), border-color .25s, color .25s, box-shadow .25s;
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transform-origin: 0 50%; transform: scaleX(0); z-index: 2000;
}

/* ---------- Navbar ---------- */
.sr-nav { padding: 14px 0; transition: background .3s, box-shadow .3s, padding .3s; }
.sr-nav.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 23, 42, .05);
  padding: 9px 0;
}
.sr-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.nav-pill {
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 2px;
  backdrop-filter: blur(8px);
}
.nav-pill .nav-link {
  color: var(--muted); font-size: .84rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-pill .nav-link:hover { color: var(--blue-600); }
.nav-pill .nav-link.active { background: var(--blue-100); color: var(--blue-600); }

@media (max-width: 991.98px) {
  .sr-nav .navbar-collapse {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    margin-top: 12px; padding: 14px; box-shadow: var(--shadow-md);
  }
  .nav-pill { flex-direction: column; border: 0; background: none; margin-bottom: 12px; }
  .nav-pill .nav-link { padding: 10px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 90px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(96, 165, 250, .28), transparent 60%),
    radial-gradient(800px 420px at 0% 0%, rgba(147, 197, 253, .30), transparent 60%),
    linear-gradient(180deg, #e8f1ff 0%, #f6faff 70%, #fff 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; will-change: transform; }
.blob-a { width: 340px; height: 340px; background: #93c5fd; top: 60px; right: 6%; }
.blob-b { width: 260px; height: 260px; background: #c7d2fe; bottom: -40px; left: 4%; }

.hero .eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 22px; }
.hl { position: relative; display: inline-block; }
.hl-line { position: absolute; left: 0; bottom: -6px; width: 100%; height: 10px; color: #93c5fd; -webkit-text-fill-color: initial; }
.hl-line path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: 1.08rem; line-height: 1.75; max-width: 540px; margin-bottom: 30px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 30px 0 0; padding: 0; font-size: .86rem; font-weight: 600; color: var(--muted); }
.trust-row i { color: var(--blue); margin-right: 6px; }

/* Hero load-in sequence (one orchestrated moment) */
html.js .hero-in { opacity: 0; transform: translateY(22px); animation: heroIn .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * .11s + .1s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Hero dashboard visual */
.hero-visual { position: relative; padding: 24px 10px 30px; }
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transition: transform .2s ease-out; will-change: transform;
}
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.dash-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.dash-bar span:nth-child(1) { background: #fca5a5; } .dash-bar span:nth-child(2) { background: #fde68a; } .dash-bar span:nth-child(3) { background: #86efac; }
.dash-bar em { margin-left: 12px; font-style: normal; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; }
.dash-body { padding: 22px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dash-head h6 { font-size: 1.05rem; margin: 0 0 4px; }
.dash-head p { font-size: .78rem; color: var(--muted); margin: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #15803d; background: #dcfce7; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.kpi { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 12px; }
.kpi small { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.kpi strong { font-size: 1.15rem; color: var(--ink); font-weight: 800; }

.dash-chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #eef5ff); border: 1px solid var(--blue-100); }
.dash-chart span { flex: 1; height: 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #60a5fa, #2563eb); transition: height 1s var(--ease); transition-delay: calc(var(--n, 0) * .07s + .8s); }
.dash-chart span:nth-child(1) { --n: 0; } .dash-chart span:nth-child(2) { --n: 1; } .dash-chart span:nth-child(3) { --n: 2; } .dash-chart span:nth-child(4) { --n: 3; }
.dash-chart span:nth-child(5) { --n: 4; } .dash-chart span:nth-child(6) { --n: 5; } .dash-chart span:nth-child(7) { --n: 6; } .dash-chart span:nth-child(8) { --n: 7; }
.hero-visual.in .dash-chart span { height: var(--h); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite; transition: transform .2s ease-out;
}
.float-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1rem; }
.float-chip strong { display: block; font-size: .8rem; color: var(--ink); line-height: 1.2; }
.float-chip small { font-size: .7rem; color: var(--muted); }
.chip-1 { top: 0; right: -6px; }
.chip-2 { bottom: 6px; left: -14px; animation-delay: -2s; }
.chip-2 i { background: #dcfce7; color: #16a34a; }
.chip-3 { bottom: 90px; right: -18px; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }

@media (max-width: 575.98px) {
  .chip-1 { right: 0; } .chip-2 { left: 0; } .chip-3 { display: none; }
}

/* ---------- Stats strip ---------- */
.stats-strip { padding: 0 0 20px; margin-top: -10px; }
.stats-wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.stat { padding: 28px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 767.98px) {
  .stats-wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Feature cards ---------- */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, .12), transparent 45%);
}
.spot:hover::before { opacity: 1; }

.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.fc-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1.3rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.feature-card:hover .fc-icon { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.08); }
.step-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-600); background: var(--blue-50); border-radius: 999px; padding: 4px 10px; }
.feature-card h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 10px; }
.feature-card p { font-size: .92rem; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.fc-link { margin-top: auto; font-size: .86rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.fc-link i { transition: transform .25s var(--ease); }
.fc-link:hover i, .feature-card:hover .fc-link i { transform: translateX(5px); }

/* ---------- Steps ---------- */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.step-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(135deg, #6366f1, #2563eb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.step-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step-card > p { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }

.step-viz { height: 170px; border-radius: 16px; margin-bottom: 20px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, #eef5ff, #f8fbff); border: 1px solid var(--blue-100); }

/* viz 1: radar */
.viz-target .ring { position: absolute; border: 1.5px solid rgba(37, 99, 235, .25); border-radius: 50%; }
.viz-target .r1 { width: 60px; height: 60px; } .viz-target .r2 { width: 110px; height: 110px; } .viz-target .r3 { width: 160px; height: 160px; }
.viz-target .r1, .viz-target .r2, .viz-target .r3 { animation: radar 3s ease-out infinite; }
.viz-target .r2 { animation-delay: .5s; } .viz-target .r3 { animation-delay: 1s; }
@keyframes radar { 0% { transform: scale(.7); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.08); opacity: 0; } }
.viz-target .core { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 8px rgba(37, 99, 235, .15); z-index: 2; }
.viz-target .node { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); animation: nodePulse 2.4s ease-in-out infinite; }
.viz-target .n1 { top: 24px; left: 26%; } .viz-target .n2 { top: 34px; right: 24%; animation-delay: .6s; }
.viz-target .n3 { bottom: 28px; left: 22%; animation-delay: 1.2s; } .viz-target .n4 { bottom: 22px; right: 28%; animation-delay: 1.8s; }
@keyframes nodePulse { 50% { transform: scale(1.5); background: var(--blue-100); } }

/* viz 2: mail */
.viz-mail .main { font-size: 4.2rem; color: var(--blue); filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .3)); animation: bob 3s ease-in-out infinite; }
.viz-mail .m1, .viz-mail .m2, .viz-mail .m3 { position: absolute; font-size: 1.1rem; color: var(--blue-400); opacity: 0; animation: fly 3.2s ease-in infinite; }
.viz-mail .m1 { left: 22%; bottom: 30px; } .viz-mail .m2 { left: 40%; bottom: 20px; animation-delay: 1s; } .viz-mail .m3 { left: 30%; bottom: 40px; animation-delay: 2s; }
@keyframes fly { 0% { transform: translate(0, 0) scale(.8); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(90px, -80px) scale(.4) rotate(14deg); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* viz 3: calendar */
.viz-cal .main { font-size: 4.6rem; color: #16a34a; filter: drop-shadow(0 8px 14px rgba(22, 163, 74, .25)); }
.viz-cal .tick { position: absolute; right: 30%; top: 30px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, .4); animation: pop 2.6s var(--ease) infinite; }
@keyframes pop { 0%, 15% { transform: scale(0); } 30% { transform: scale(1.2); } 40%, 85% { transform: scale(1); } 100% { transform: scale(0); } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); font-weight: 500; line-height: 1.45; }
.check-list i { color: var(--blue); margin-top: 2px; font-size: .95rem; flex-shrink: 0; }

@media (min-width: 992px) {
  .steps-row > div:not(:last-child) .step-card::after {
    content: '\F138'; font-family: 'bootstrap-icons';
    position: absolute; right: -26px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
    display: grid; place-items: center; border-radius: 50%; z-index: 3;
    background: #fff; color: var(--blue); border: 1px solid var(--line); font-size: .85rem; box-shadow: var(--shadow-sm);
  }
}

/* =========================================================
   REVIEWS – vertical marquee wall
   Columns 1 & 3 scroll UP, columns 2 & 4 scroll DOWN
   ========================================================= */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.av-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); } .av-2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.av-3 { background: linear-gradient(135deg, #14b8a6, #0f766e); } .av-4 { background: linear-gradient(135deg, #f97316, #c2410c); }
.av-5 { background: linear-gradient(135deg, #ec4899, #be185d); } .av-6 { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.av-7 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.stars { color: #f59e0b; font-size: .82rem; display: flex; gap: 2px; }
.type-tag { margin-left: auto; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }

.rv-wall {
  --rv-gap: 18px;
  --rv-cols: 4;
  position: relative;
  height: clamp(540px, 80vh, 700px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #f7faff 0%, #eef5ff 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 14px;
}

/* Soft fade at the top and bottom so cards glide in and out */
.rv-cols {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--rv-cols), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: var(--rv-gap);
  padding: 0 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}

.rv-col { position: relative; min-width: 0; }

/* The track holds the set of cards twice, so the loop never jumps */
.rv-track {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; gap: var(--rv-gap);
  padding-top: 10px;
  will-change: transform;
  animation: rvUp var(--rv-dur, 42s) linear infinite;
}
.rv-set { display: flex; flex-direction: column; gap: var(--rv-gap); }

/* odd columns go up, even columns go down; slightly different speeds feel natural */
.rv-col:nth-child(even) .rv-track { animation-name: rvDown; }
.rv-col:nth-child(1) .rv-track { --rv-dur: 44s; }
.rv-col:nth-child(2) .rv-track { --rv-dur: 52s; }
.rv-col:nth-child(3) .rv-track { --rv-dur: 40s; }
.rv-col:nth-child(4) .rv-track { --rv-dur: 56s; }
@media (max-width: 991.98px) { .rv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .rv-cols { grid-template-columns: minmax(0, 1fr); }
  .rv-wall { max-height: 480px; }
}
/* distance = one full set + one gap = 50% of the track + half a gap */
@keyframes rvUp   { from { transform: translateY(0); }
                    to   { transform: translateY(calc(-50% - var(--rv-gap) / 2)); } }
@keyframes rvDown { from { transform: translateY(calc(-50% - var(--rv-gap) / 2)); }
                    to   { transform: translateY(0); } }

/* Pause the column you are reading / focusing (mouse devices only) */
@media (hover: hover) {
  .rv-col:hover .rv-track { animation-play-state: paused; }
}
.rv-col:focus-within .rv-track { animation-play-state: paused; }
/* JS adds .is-off when the wall is off-screen, saves CPU */
.rv-wall.is-off .rv-track { animation-play-state: paused; }
.rv-head { display: flex; align-items: center; gap: .75rem; min-width: 0; margin-bottom: .75rem; }
.rv-avatar {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%; object-fit: cover; background: #e2e8f0;
}
.rv-initials { display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.rv-who { min-width: 0; }               /* eta na dile name overflow hobe */
.rv-who strong, .rv-who small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rv-text {
  margin: 0;
  overflow-wrap: anywhere; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

/* optional: review er screenshot/photo */
.rv-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; margin-top: .75rem; }
/* ---------- Card ---------- */
.rv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow-sm);
  min-width: 0; overflow: hidden; overflow-wrap: anywhere;   /* new */
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }

.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rv-head .avatar { width: 38px; height: 38px; font-size: .74rem; }
.rv-head img.avatar { object-fit: cover; }
.rv-who { flex: 1 1 auto; min-width: 0; } 
.rv-text {
  font-size: .9rem; line-height: 1.6; color: var(--body); margin: 0 0 12px;
  overflow-wrap: anywhere;                  /* long words and URLs now wrap */
}
.rv-media.rv-shot { display: block; aspect-ratio: auto; min-height: 120px; background: #f1f5f9; }
.rv-media.rv-shot img {
  position: static; display: block;
  width: 100%; height: auto; max-height: 360px; object-fit: contain;
}
.rv-who strong { display: block; font-size: .88rem; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-who small { display: block; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-card .type-tag { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

.rv-media {
  position: relative; display: grid; place-items: center;
  width: 100%; aspect-ratio: 16 / 10; margin: 0 0 12px; padding: 0; border: 0;
  border-radius: 12px; overflow: hidden; background: #e2e8f0;
}
.rv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-ph { color: rgba(255, 255, 255, .85); font-size: 2rem; background: linear-gradient(135deg, #64748b, #94a3b8); }

/* video thumbnail placeholders (shown until you add a real thumb image) */
.rv-video-btn { cursor: pointer; }
.rv-video-btn.t-0 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.rv-video-btn.t-1 { background: linear-gradient(135deg, #312e81, #6366f1); }
.rv-video-btn.t-2 { background: linear-gradient(135deg, #0f766e, #06b6d4); }
.rv-video-btn::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 55%); }
.rv-play {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--blue); font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
}
/* when a thumbnail exists: no white glow, a soft dark fade so the play button stands out */
.rv-video-btn.has-thumb::before {
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(15,23,42,.35) 100%);
}
.rv-video-btn.has-thumb img { object-position: center 30%; }   /* keeps faces in frame */
.rv-who { flex: 1 1 auto; }                                     /* name takes the space the avatar left */
.rv-play i { margin-left: 3px; }
.rv-play::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: rvRipple 2.2s infinite; }
.rv-video-btn:hover .rv-play { transform: scale(1.1); }
@keyframes rvRipple { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

.rv-text { font-size: .9rem; line-height: 1.6; color: var(--body); margin: 0 0 12px; }
.rv-card .stars { font-size: .78rem; }

@media (max-width: 767.98px) {
  .rv-wall { --rv-gap: 14px; border-radius: 22px; padding: 0 8px; }
  .rv-cols { padding: 0 6px; }
}
@media (max-width: 575.98px) {
  .rv-wall { height: 520px; }
}

/* Reduced motion: show a calm, static grid instead of scrolling */
@media (prefers-reduced-motion: reduce) {
  .rv-wall { height: auto; padding: 22px 14px; }
  .rv-cols { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rv-col { position: static; }
  .rv-track { position: static; animation: none !important; padding-top: 0; }
  .rv-set[aria-hidden="true"] { display: none; }
}

/* ---------- Gallery marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scrollX 55s linear infinite; padding: 6px 0 14px; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 65s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(calc(-50% - 11px)); } }

.perf-card {
  width: 340px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.perf-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }
.perf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.perf-head strong { font-size: .8rem; color: var(--ink); }
.perf-head span { font-size: .66rem; color: var(--muted); background: #f1f5f9; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.perf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.perf-stats div { background: var(--blue-50); border-radius: 8px; padding: 6px 8px; }
.perf-stats b { display: block; font-size: .82rem; color: var(--ink); }
.perf-stats small { font-size: .6rem; color: var(--muted); }
.perf-card svg { width: 100%; height: 96px; display: block; }
.perf-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: rgba(37, 99, 235, .78); color: #fff; font-weight: 700; font-size: .95rem;
  transition: opacity .3s; backdrop-filter: blur(2px);
}
.perf-overlay i { margin-right: 8px; }
.perf-card:hover .perf-overlay { opacity: 1; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1.5px solid var(--blue-100); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--blue-400); }
.price-featured { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.plan-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.plan-name { font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.plan-price strong { font-size: 2.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.plan-price strong.fs-custom { font-size: 2.4rem; }
.plan-price span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.plan-note { font-size: .82rem; font-weight: 600; color: var(--blue-600); background: var(--blue-50); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; line-height: 1.5; }
.plan-note small { font-weight: 500; color: var(--muted); }
.plan-note i { margin-right: 4px; }
.inc-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 26px 0 14px; }

/* ---------- Team ---------- */
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 18px;
  text-align: center; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  color: #fff; font-size: 2rem; font-weight: 800; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--blue-100), var(--shadow-md);
  transition: box-shadow .35s, transform .5s var(--ease);
}
.team-card:hover .team-photo { box-shadow: 0 0 0 3px var(--blue), var(--shadow-md); transform: scale(1.05); }
.tp-1 { background: linear-gradient(135deg, #1e40af, #60a5fa); } .tp-2 { background: linear-gradient(135deg, #0f766e, #5eead4); }
.tp-3 { background: linear-gradient(135deg, #6d28d9, #a78bfa); } .tp-4 { background: linear-gradient(135deg, #be185d, #f9a8d4); }
.tp-5 { background: linear-gradient(135deg, #c2410c, #fdba74); } .tp-6 { background: linear-gradient(135deg, #0e7490, #67e8f9); }
.team-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.team-card p { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.socials { display: flex; justify-content: center; gap: 8px; }
.socials a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: #f1f5f9; transition: background .25s, color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

/* ---------- Contact ---------- */
.contact-title { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.12; margin: 18px 0 14px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; color: inherit;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
a.contact-item:hover { transform: translateX(6px); border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1.15rem; flex-shrink: 0; }
.contact-item small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-item strong { font-size: .95rem; color: var(--ink); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.contact-form .form-label { font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-form .form-control { border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; padding: 12px 14px; font-size: .92rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-form .form-control:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.btn-sr.sent { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 8px 20px rgba(34, 197, 94, .3); }

/* ---------- FAQ ---------- */
.faq-aside { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.faq-q { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.7rem; font-weight: 800; color: var(--blue); background: var(--blue-100); animation: bob 3s ease-in-out infinite; }
.faq-aside h3 { font-size: 1.1rem; margin-bottom: 8px; }
.faq-aside p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }

.sr-accordion { display: grid; gap: 12px; }
.sr-accordion .accordion-item { border: 1px solid var(--line); border-radius: 16px !important; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.sr-accordion .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.sr-accordion .accordion-button { font-weight: 700; font-size: .96rem; color: var(--ink); padding: 18px 22px; background: transparent; box-shadow: none; }
.sr-accordion .accordion-button:not(.collapsed) { color: var(--blue-600); background: var(--blue-50); }
.sr-accordion .accordion-button::after { background-image: none; content: '\F4FE'; font-family: 'bootstrap-icons'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: .9rem; transition: transform .3s var(--ease), background .3s, color .3s; }
.sr-accordion .accordion-button:not(.collapsed)::after { content: '\F2EA'; transform: rotate(180deg); background: var(--blue); color: #fff; }
.sr-accordion .accordion-body { color: var(--muted); font-size: .93rem; line-height: 1.75; padding: 6px 22px 22px; background: var(--blue-50); }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 44px 48px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 50%, #4f46e5 100%);
  box-shadow: var(--shadow-lg);
}
.cta-inner::before, .cta-inner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.cta-inner::before { width: 280px; height: 280px; right: -60px; top: -120px; }
.cta-inner::after { width: 180px; height: 180px; left: 30%; bottom: -100px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 560px; margin-bottom: 8px; position: relative; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.85); position: relative; }
.cta-inner .btn { position: relative; color: var(--blue-600); }
.cta-inner .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.2); }

/* ---------- Footer & floating buttons ---------- */
.sr-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-links a { color: var(--muted); font-size: .88rem; font-weight: 600; margin: 0 6px; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }

.wa-float {
  position: fixed; right: 22px; top: 42%; z-index: 1030; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.2s infinite; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1030; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .section-pad { padding: 76px 0; }
  .hero { padding: 120px 0 60px; }
  .faq-aside { position: static; }
  .cta-inner { padding: 32px 26px; }
}
@media (max-width: 575.98px) {
  .perf-card { width: 290px; }
  .contact-form { padding: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal, html.js .hero-in { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .dash-chart span { height: var(--h); }
}