/* RankVex hero showcases: real listings in product-style windows that float. */

/* ---- Float / swing ------------------------------------------------------- */
@keyframes rv-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -14px, 0) rotate(-.35deg); }
}
@keyframes rv-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, 10px, 0); }
}
.rv-float   { animation: rv-float 6.5s ease-in-out infinite; will-change: transform; }
.rv-float--b { animation-name: rv-float-b; animation-duration: 5.2s; animation-delay: -1.8s; }
.rv-float--c { animation-name: rv-float-b; animation-duration: 7.2s; animation-delay: -3.6s; }
@media (prefers-reduced-motion: reduce) { .rv-float, .rv-float--b, .rv-float--c { animation: none; } }

/* ---- Site icon (real favicon over a letter) ------------------------------ */
.rv-sico { position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; font-weight: 700; font-size: .9rem; }
.rv-sico i { font-style: normal; }
.rv-sico img { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 0 0 6px #fff; }
.rv-sico.is-xs { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; }
.rv-sico.is-xs img { width: 100%; height: 100%; box-shadow: none; }

/* ---- Frame --------------------------------------------------------------- */
.rv-shw { position: relative; padding: 38px 28px 62px 22px; }
.rv-sv__win {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--rv-border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 46px 80px -34px rgba(36, 28, 92, .38), 0 14px 28px -16px rgba(36, 28, 92, .2), inset 0 0 0 1px rgba(255,255,255,.6);
}
.rv-sv__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(180deg, #FBFAFF, #F5F3FF); border-bottom: 1px solid var(--rv-border); }
.rv-sv__dots { display: flex; gap: 5px; }
.rv-sv__dots i { width: 9px; height: 9px; border-radius: 50%; background: #EE6247; }
.rv-sv__dots i:nth-child(2) { background: #E39A0E; } .rv-sv__dots i:nth-child(3) { background: #1F9D55; }
.rv-sv__url { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--rv-border); font-size: 12px; color: var(--rv-muted); }
.rv-sv__url > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-sv__url .rv-icon { color: var(--rv-green-700); flex: none; }

.rv-sv__card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.96); border: 1px solid var(--rv-border); border-radius: 14px;
  box-shadow: 0 22px 40px -20px rgba(36,28,92,.35); font-size: 12.5px; line-height: 1.3; color: var(--rv-text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rv-sv__card b { color: var(--rv-ink); font-size: 13px; }
.rv-sv__card small { color: var(--rv-subtle); font-size: 11px; }
.rv-sv__card > span:not([class]) { display: grid; }
.rv-sv__card--tl { top: 0; left: 0; }
.rv-sv__card--tr { top: 4px; right: 0; }
.rv-sv__card--br { bottom: 20px; right: 0; }
.rv-sv__card--bl { bottom: 14px; left: 0; }
.rv-sv__card--stats, .rv-sv__card--brief, .rv-sv__card--mix { display: grid; gap: 8px; width: 236px; }
.rv-sv__lbl { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rv-violet-700); }
.rv-sv__ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rv-green-50); color: var(--rv-green-700); }
.rv-sv__dot { width: 10px; height: 10px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 4px rgba(31,157,85,.15); animation: rv-sv-ping 2.4s ease-out infinite; }
.rv-sv__plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #2D7FF9; color: #fff; font-weight: 700; }
@keyframes rv-sv-ping { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.35); } 100% { box-shadow: 0 0 0 10px rgba(31,157,85,0); } }

.rv-sv__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--rv-subtle); text-align: center; }
.rv-sv__note .rv-icon { flex: none; color: var(--rv-violet-500); }

/* Metrics */
.rv-sv__ms { display: flex; gap: 12px; }
.rv-sv__m { display: grid; justify-items: center; line-height: 1.1; }
.rv-sv__m small { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--rv-subtle); }
.rv-sv__m b { font-family: var(--rv-font-display); font-size: 15px; color: var(--rv-ink); }
.rv-sv__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.rv-sv__tags span { padding: 2px 8px; border-radius: 999px; background: var(--rv-violet-50); color: var(--rv-violet-700); font-size: 10.5px; font-weight: 700; }
.rv-sv__tags span:first-child { background: var(--rv-green-50); color: var(--rv-green-700); }

/* Shared article bits */
.rv-sv__art { display: grid; gap: 10px; padding: 16px 18px 20px; }
.rv-sv__h { margin: 0; font-family: var(--rv-font-display); font-size: 19px; font-weight: 700; line-height: 1.2; color: var(--rv-ink); letter-spacing: -.01em; }
.rv-sv__h--sm { font-size: 16px; }
.rv-sv__by { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; color: var(--rv-muted); }
.rv-sv__av { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--rv-violet-300), var(--rv-teal-500)); }
.rv-sv__p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--rv-text); }
.rv-sv__lines { display: grid; gap: 7px; }
.rv-sv__lines i { display: block; height: 7px; border-radius: 4px; background: #EEECF6; }
.rv-sv__cat { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--rv-teal-50); color: var(--rv-teal-700); font-size: 11px; font-weight: 700; }
.rv-sv__chip { display: inline-flex; justify-self: start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #E8F1FE; color: #1A5FC7; font-size: 11px; font-weight: 700; }

/* ---- SaaS campaign ------------------------------------------------------- */
.rv-sv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.rv-sv__head > span:first-child { display: grid; gap: 2px; min-width: 0; }
.rv-sv__head b { font-size: 14.5px; color: var(--rv-ink); }
.rv-sv__head small { font-size: 11.5px; color: var(--rv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-sv__head em { font-style: normal; color: var(--rv-amber-700); font-weight: 600; }
.rv-sv__pct { display: grid; gap: 4px; flex: none; font-size: 11px; font-weight: 700; color: var(--rv-green-700); }
.rv-sv__pct i { display: block; width: 92px; height: 6px; border-radius: 4px; background: #EEECF6; overflow: hidden; }
.rv-sv__pct i::after { content: ""; display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rv-violet-500), var(--rv-teal-500)); animation: rv-sv-fill 3s var(--rv-ease-out) both; }
@keyframes rv-sv-fill { from { width: 0; } }
.rv-sv__rows { display: grid; gap: 6px; margin: 0; padding: 8px 10px 14px; list-style: none; }
.rv-sv__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--rv-border); border-radius: 12px; background: #fff;
  animation: rv-sv-in .6s var(--rv-ease-out) both; animation-delay: calc(var(--i) * 140ms + 300ms);
}
.rv-sv__row:first-child { background: var(--rv-violet-25); border-color: var(--rv-violet-100); }
@keyframes rv-sv-in { from { opacity: 0; transform: translateY(8px); } }
.rv-sv__name { display: grid; min-width: 0; line-height: 1.25; }
.rv-sv__name b { font-size: 13px; color: var(--rv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-sv__name small { font-size: 11px; color: var(--rv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-sv__st { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.rv-sv__st--done { background: var(--rv-green-50); color: var(--rv-green-700); }
.rv-sv__st--live { background: #E8F1FE; color: #1A5FC7; }
.rv-sv__st--prog { background: #FFF5E0; color: var(--rv-amber-700); }
.rv-sv__mix { display: flex; width: 100%; height: 8px; border-radius: 6px; overflow: hidden; gap: 2px; }
.rv-sv__mix i { width: var(--w); background: var(--rv-violet-500); }
.rv-sv__mix i.b { background: var(--rv-teal-500); } .rv-sv__mix i.c { background: var(--rv-coral-500); }
.rv-sv__legend { display: flex; gap: 10px; margin: 0; font-size: 10.5px; color: var(--rv-muted); }
.rv-sv__legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--rv-violet-500); }
.rv-sv__legend .b::before { background: var(--rv-teal-500); } .rv-sv__legend .c::before { background: var(--rv-coral-500); }

/* ---- Guest post ---------------------------------------------------------- */
.rv-sv__site { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--rv-border); font-size: 13px; color: var(--rv-ink); }
.rv-sv__site .rv-sico { width: 28px; height: 28px; border-radius: 8px; }
.rv-sv__nav { display: flex; gap: 6px; margin-left: auto; }
.rv-sv__nav i { width: 28px; height: 6px; border-radius: 3px; background: #EEECF6; }
.rv-sv__cover { position: relative; height: 70px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #E7F7F4, #ECE8FD); }
.rv-sv__cover span { position: absolute; bottom: -30px; width: 120px; height: 90px; border-radius: 50%; background: rgba(15,156,140,.25); }
.rv-sv__cover span:nth-child(1) { left: 6%; } .rv-sv__cover span:nth-child(2) { left: 38%; bottom: -46px; background: rgba(106,85,227,.22); } .rv-sv__cover span:nth-child(3) { right: 4%; background: rgba(238,98,71,.18); }
.rv-sv__a, .rv-sv__type > span {
  padding: 0 2px; border-radius: 3px; color: var(--rv-violet-800); font-weight: 600;
  background: linear-gradient(var(--rv-violet-100), var(--rv-violet-100)) no-repeat left / 0 100%;
  box-shadow: inset 0 -2px 0 var(--rv-violet-500);
  animation: rv-sv-hl 6s var(--rv-ease-out) infinite;
}
@keyframes rv-sv-hl { 0%, 8% { background-size: 0 100%; } 30%, 88% { background-size: 100% 100%; } 100% { background-size: 0 100%; } }

/* ---- Link insertion: anchor "typed" into the paragraph ------------------- */
.rv-sv__type { position: relative; }
.rv-sv__type > span { color: #1A5FC7; box-shadow: inset 0 -2px 0 #2D7FF9; background-image: linear-gradient(#DCEAFE, #DCEAFE); }
.rv-sv__type::after { content: ""; position: absolute; right: -3px; top: 1px; bottom: 1px; width: 2px; background: #2D7FF9; animation: rv-sv-caret 1s steps(1) infinite; }
@keyframes rv-sv-caret { 50% { opacity: 0; } }

/* ---- Content writing ----------------------------------------------------- */
.rv-sv__tool { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rv-border); background: linear-gradient(180deg, #FBFAFF, #F5F3FF); font-size: 12px; color: var(--rv-text); }
.rv-sv__tool b, .rv-sv__tool i, .rv-sv__tool span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; font-style: normal; font-weight: 700; }
.rv-sv__tool b { background: var(--rv-violet-100); color: var(--rv-violet-800); }
.rv-sv__tool em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--rv-green-700); }
.rv-sv__doc { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.rv-sv__outline { display: grid; align-content: start; gap: 8px; padding: 16px 12px; border-right: 1px solid var(--rv-border); background: #FCFBFF; font-size: 11px; color: var(--rv-text); }
.rv-sv__outline small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-subtle); }
.rv-sv__outline span { padding-left: 8px; border-left: 2px solid var(--rv-violet-100); line-height: 1.35; animation: rv-sv-in .5s var(--rv-ease-out) both; animation-delay: calc(var(--i) * 180ms + 300ms); }
.rv-sv__outline span:first-of-type { border-color: var(--rv-violet-500); color: var(--rv-violet-800); font-weight: 600; }
.rv-sv__page { display: grid; gap: 10px; padding: 16px 18px 22px; }
.rv-sv__h2 { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--rv-violet-800); }
.rv-sv__caret { position: relative; }
.rv-sv__caret::after { content: ""; position: absolute; right: -6px; top: -3px; width: 2px; height: 13px; background: var(--rv-coral-500); animation: rv-sv-caret 1s steps(1) infinite; }
.rv-sv__card--brief ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; }
.rv-sv__card--brief li { display: flex; align-items: center; gap: 6px; }
.rv-sv__card--brief li::before { content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; background: var(--rv-coral-50); color: var(--rv-coral-700); font-size: 10px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .rv-sv__row, .rv-sv__outline span, .rv-sv__pct i::after { animation: none; }
  .rv-sv__a, .rv-sv__type > span { animation: none; background-size: 100% 100%; }
  .rv-sv__type::after, .rv-sv__caret::after, .rv-sv__dot { animation: none; }
}

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 560px) {
  .rv-shw { padding: 30px 6px 40px; }
  .rv-sv__ms { gap: 8px; }
  .rv-sv__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rv-sv__row .rv-sv__ms { display: none; }
  .rv-sv__card { padding: 8px 10px; }
  .rv-sv__card--tl, .rv-sv__card--mix, .rv-sv__card--brief, .rv-sv__card--bl.rv-sv__card--stats .rv-sv__tags { display: none; }
  .rv-sv__doc { grid-template-columns: minmax(0, 1fr); }
  .rv-sv__outline { display: none; }
  .rv-sv__head .rv-sv__pct { display: none; }
}

/* ---- Animated hero background (home + service heroes) -------------------- */
.rv-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(120deg, #F2EEFF 0%, #F8F6FF 36%, #EDF8F5 68%, #F4EFFF 100%); }
.rv-fx__aurora {
  position: absolute; inset: -40% -20%; opacity: .55; filter: blur(60px);
  background: conic-gradient(from 0deg at 62% 45%, rgba(106,85,227,.0), rgba(106,85,227,.35), rgba(15,156,140,.28), rgba(238,98,71,.16), rgba(106,85,227,.0) 70%);
  animation: rv-fx-spin 38s linear infinite;
}
@keyframes rv-fx-spin { to { transform: rotate(360deg); } }
.rv-fx__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(72,58,114,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(72,58,114,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 70% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 80% at 70% 40%, #000 15%, transparent 72%);
  animation: rv-fx-grid 24s linear infinite;
}
@keyframes rv-fx-grid { to { background-position: 48px 48px, 48px 48px; } }
.rv-fx__orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .6; animation: rv-fx-orb 22s ease-in-out infinite alternate; }
.rv-fx__orb--a { width: 420px; height: 420px; right: -80px; top: -120px; background: #CFC6FB; }
.rv-fx__orb--b { width: 360px; height: 360px; right: 30%; bottom: -160px; background: #BDEDE5; animation-duration: 28s; animation-delay: -6s; }
.rv-fx__orb--c { width: 300px; height: 300px; left: -120px; top: 18%; background: #FCD9CE; opacity: .45; animation-duration: 32s; animation-delay: -12s; }
@keyframes rv-fx-orb { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-40px, 30px, 0) scale(1.08); } 100% { transform: translate3d(30px, -20px, 0) scale(.95); } }
.rv-fx__net { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 35%, #000 60%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 35%, #000 60%); }
.rv-fx__links path { fill: none; stroke-width: 1.3; stroke-dasharray: 5 7; opacity: .45; animation: rv-fx-flow 9s linear infinite; }
.rv-fx__links path:nth-child(3n) { animation-duration: 13s; opacity: .3; }
@keyframes rv-fx-flow { to { stroke-dashoffset: -240; } }
.rv-fx__nodes circle { fill: #fff; stroke: #6A55E3; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: rv-fx-node 4.2s ease-in-out infinite; animation-delay: var(--d); }
.rv-fx__nodes circle.n1 { stroke: #0F9C8C; } .rv-fx__nodes circle.n2 { stroke: #EE6247; }
@keyframes rv-fx-node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.rv-fx__pulses circle { fill: #6A55E3; filter: drop-shadow(0 0 6px rgba(106,85,227,.8)); }
.rv-fx__pulses circle:nth-child(2n) { fill: #0F9C8C; filter: drop-shadow(0 0 6px rgba(15,156,140,.8)); }
@media (max-width: 979px) {
  .rv-fx__net { opacity: .55; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 70%); }
  .rv-fx__orb { filter: blur(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-fx__aurora, .rv-fx__grid, .rv-fx__orb, .rv-fx__links path, .rv-fx__nodes circle { animation: none; }
  .rv-fx__pulses { display: none; }
}