/* ==========================================================================
   BESTFOLLOWS HERO V2 - "Orbit stage"
   Namespaced with .bfh so it never collides with the legacy .bf-hero rules.
   ========================================================================== */

.bfh {
  --bfh-brand: #804aff;
  --bfh-deep: #4c12cc;
  --bfh-glow: #6216fb;
  --bfh-lilac: #c9b0ff;
  --bfh-ink: #f7f4ff;
  --bfh-muted: #bdb5d6;
  --bfh-bg: #05010f;
  --bfh-card: rgba(255, 255, 255, 0.07);
  --bfh-card-solid: rgba(24, 10, 58, 0.8);
  --bfh-card-border: rgba(180, 150, 255, 0.22);
  --bfh-shadow: 0 24px 60px rgba(8, 0, 30, 0.55);
  --mx: 0;
  --my: 0;

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 112px;
  overflow: hidden;
  color: var(--bfh-ink);
  background: var(--bfh-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

html:not(.dark) .bfh {
  --bfh-ink: #1c0e45;
  --bfh-muted: #5b4f82;
  --bfh-bg: #f6f1ff;
  --bfh-card: rgba(255, 255, 255, 0.72);
  --bfh-card-solid: rgba(255, 255, 255, 0.88);
  --bfh-card-border: rgba(128, 74, 255, 0.22);
  --bfh-shadow: 0 22px 50px rgba(98, 22, 251, 0.18);
}

/* ---------- background ---------- */
.bfh-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bfh-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 48%, rgba(98, 22, 251, 0.42), transparent 70%),
    radial-gradient(40% 40% at 12% 12%, rgba(128, 74, 255, 0.22), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(76, 18, 204, 0.55), transparent 70%);
}

html:not(.dark) .bfh-bg::before {
  background:
    radial-gradient(60% 55% at 78% 48%, rgba(128, 74, 255, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(196, 166, 255, 0.35), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(167, 139, 250, 0.35), transparent 70%);
}

.bfh-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 120, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 120, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 78%);
}

.bfh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: bfh-drift 14s ease-in-out infinite alternate;
}

.bfh-blob-a {
  width: 380px;
  height: 380px;
  right: 6%;
  top: 8%;
  background: #7a3cff;
}

.bfh-blob-b {
  width: 300px;
  height: 300px;
  left: 30%;
  bottom: 14%;
  background: #4c12cc;
  animation-delay: -6s;
}

html:not(.dark) .bfh-blob { opacity: 0.35; }

@keyframes bfh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 30px, 0) scale(1.15); }
}

/* ---------- layout ---------- */
.bfh-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 48px 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 24px;
  flex: 1;
}

/* ---------- copy ---------- */
.bfh-copy { max-width: 640px; }

.bfh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--bfh-card-border);
  background: var(--bfh-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bfh-pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: bfh-ping 2s ease-out infinite;
}

@keyframes bfh-ping {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
}

.bfh h1 {
  margin: 22px 0 0;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--bfh-ink);
}

.bfh h1 .bfh-line { display: block; }

.bfh-rotator {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(95deg, #a67bff 0%, #d9b8ff 45%, #8f5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

html:not(.dark) .bfh-rotator {
  background-image: linear-gradient(95deg, #6a2cf5 0%, #a259ff 50%, #5b1fe0 100%);
}

.bfh-rotator.is-out {
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(6px);
}

.bfh-underline {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: -2px;
}

.bfh-desc {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bfh-muted);
}

.bfh-desc b { color: var(--bfh-ink); font-weight: 700; }

.bfh-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.bfh-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.bfh-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8f5cff 0%, #6216fb 100%);
  box-shadow: 0 14px 34px rgba(98, 22, 251, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.bfh-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: bfh-sheen 4.5s ease-in-out infinite;
}

@keyframes bfh-sheen {
  0%, 55% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}

.bfh-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(98, 22, 251, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.bfh-btn-ghost {
  color: var(--bfh-ink);
  border: 1px solid var(--bfh-card-border);
  background: var(--bfh-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bfh-btn-ghost:hover { transform: translateY(-3px); border-color: rgba(160, 120, 255, 0.6); }

.bfh-btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.bfh-btn:hover svg { transform: translate(2px, -2px); }

.bfh-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bfh-muted);
}

.bfh-trust li { display: inline-flex; align-items: center; gap: 8px; }
.bfh-trust svg { width: 16px; height: 16px; color: #34d399; flex: none; }

/* stat tiles */




/* ---------- stage ---------- */
.bfh-stage-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bfh-stage {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
}

.bfh-podium {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 1%;
  height: 18%;
  pointer-events: none;
}

.bfh-podium i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(160, 120, 255, 0.5);
}

.bfh-podium i:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(closest-side, rgba(128, 74, 255, 0.55), rgba(98, 22, 251, 0.12) 70%, transparent); box-shadow: 0 0 60px rgba(128, 74, 255, 0.45); }
.bfh-podium i:nth-child(2) { width: 78%; height: 74%; border-style: dashed; border-color: rgba(200, 170, 255, 0.45); }
.bfh-podium i:nth-child(3) { width: 54%; height: 48%; border-color: rgba(200, 170, 255, 0.6); animation: bfh-ripple 3.6s ease-out infinite; }

@keyframes bfh-ripple {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

html:not(.dark) .bfh-podium i { border-color: rgba(128, 74, 255, 0.4); }
html:not(.dark) .bfh-podium i:nth-child(1) { box-shadow: 0 0 50px rgba(128, 74, 255, 0.3); }

.bfh-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  z-index: 3;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -6px), 0);
  transition: transform 0.25s ease-out;
}

.bfh-art picture { display: block; }

.bfh-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(40, 8, 120, 0.45));
}

.bfh-art picture.bfh-art-light { display: none; }
html:not(.dark) .bfh-art picture.bfh-art-dark { display: none; }
html:not(.dark) .bfh-art picture.bfh-art-light { display: block; }

/* orbiting 3D icons */
.bfh-orb {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 14%;
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  will-change: transform, left, top;
  filter: drop-shadow(0 14px 18px rgba(30, 6, 90, 0.45));
}

.bfh-orb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* glass cards */
.bfh-card {
  position: absolute;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--bfh-card-border);
  background: var(--bfh-card-solid);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--bfh-shadow);
  animation: bfh-bob 6s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 10px), 0);
}

@keyframes bfh-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.bfh-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8f5cff, #5a1ee6);
}

.bfh-card-icon svg { width: 20px; height: 20px; }
.bfh-card small { display: block; font-size: 11.5px; font-weight: 600; color: var(--bfh-muted); }
.bfh-card b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bfh-up { color: #34d399; font-size: 12px; font-weight: 800; }

.bfh-card-growth { left: -3%; top: 16%; }
.bfh-card-order  { right: -4%; top: 44%; animation-delay: -2s; flex-direction: column; align-items: stretch; gap: 8px; min-width: 188px; }
.bfh-card-rating { left: 1%; bottom: 10%; animation-delay: -4s; }

.bfh-spark { width: 74px; height: 30px; margin-left: 4px; }
.bfh-spark path { fill: none; stroke: #34d399; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 140; animation: bfh-draw 3.2s ease-out infinite; }

@keyframes bfh-draw {
  0%   { stroke-dashoffset: 140; }
  60%, 100% { stroke-dashoffset: 0; }
}

.bfh-order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; }
.bfh-order-top span:last-child { color: #34d399; }
.bfh-bar { height: 7px; border-radius: 99px; background: rgba(160, 130, 255, 0.25); overflow: hidden; }
.bfh-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f5cff, #34d399); transform-origin: left; animation: bfh-fill 4s ease-in-out infinite; }

@keyframes bfh-fill {
  0%   { transform: scaleX(0.15); }
  70%, 100% { transform: scaleX(1); }
}

.bfh-stars { display: flex; gap: 2px; color: #fbbf24; }
.bfh-stars svg { width: 14px; height: 14px; }

.bfh-toast {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  border: 1px solid var(--bfh-card-border);
  background: var(--bfh-card-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--bfh-shadow);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bfh-toast.is-out { opacity: 0; transform: translateY(-8px); }
.bfh-toast img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.bfh-toast em { display: block; font-style: normal; color: var(--bfh-muted); font-size: 11px; }

/* ---------- platform marquee ---------- */
.bfh-marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 18px 0 22px;
  border-top: 1px solid var(--bfh-card-border);
  background: linear-gradient(180deg, rgba(128, 74, 255, 0.06), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}

.bfh-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: bfh-marquee 36s linear infinite;
}

.bfh-marquee:hover .bfh-track { animation-play-state: paused; }

.bfh-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--bfh-card-border);
  background: var(--bfh-card);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.bfh-chip img { width: 26px; height: 26px; object-fit: contain; }

@keyframes bfh-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- entrance ---------- */
.bfh-copy > *,
.bfh-stage { animation: bfh-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bfh-copy > *:nth-child(2) { animation-delay: 0.08s; }
.bfh-copy > *:nth-child(3) { animation-delay: 0.16s; }
.bfh-copy > *:nth-child(4) { animation-delay: 0.24s; }
.bfh-copy > *:nth-child(5) { animation-delay: 0.32s; }
.bfh-copy > *:nth-child(6) { animation-delay: 0.4s; }
.bfh-stage { animation-delay: 0.2s; }

@keyframes bfh-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bfh *, .bfh *::before, .bfh *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bfh-inner { padding: 16px 28px 32px; gap: 8px; }
  .bfh-card-growth { left: 0; }
  .bfh-card-order { right: 0; }
}

@media (max-width: 900px) {
  .bfh { padding-top: 96px; }
  .bfh-inner { grid-template-columns: 1fr; text-align: center; }
  .bfh-copy { margin: 0 auto; }
  .bfh-desc { margin-left: auto; margin-right: auto; }
  .bfh-cta, .bfh-trust { justify-content: center; }
  .bfh-stage { width: min(100%, 520px); }
}

@media (max-width: 560px) {
  .bfh-inner { padding: 8px 18px 28px; }
  .bfh-btn { height: 52px; padding: 0 22px; flex: 1 1 100%; justify-content: center; }
  .bfh-card-rating, .bfh-card-order, .bfh-toast { display: none; }
  .bfh-stage { margin-top: -12%; margin-bottom: -10%; }
  .bfh-card { padding: 9px 12px 9px 9px; }
  .bfh-card b { font-size: 14px; }
  .bfh-card-growth { top: 16%; left: 2%; }
  .bfh-spark { display: none; }
}

/* Off-screen hero: stop every animation so scrolling does not pay for them. */
.bfh.bfh-off *, .bfh.bfh-off *::before, .bfh.bfh-off *::after { animation-play-state: paused !important; }
