/* ==========================================================================
   BESTFOLLOWS FOOTER V2 - "launch pad": CTA band, link panels, contact chips,
   oversized wordmark. Always dark, independent of the page theme.
   ========================================================================== */

.bff {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
  padding: clamp(56px, 7vw, 100px) 0 0;
  color: #e9e3ff;
  background: #05010f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-top: 1px solid rgba(168, 130, 255, 0.28);
}

.bff::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 10% 0%, rgba(98, 22, 251, 0.42), transparent 70%),
    radial-gradient(40% 40% at 92% 12%, rgba(128, 74, 255, 0.28), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(76, 18, 204, 0.5), transparent 70%);
}

.bff::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(160, 120, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 120, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent);
}

.bff-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
  box-sizing: border-box;
}

/* ---------- CTA band ---------- */
.bff-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(190, 160, 255, 0.4);
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(167, 120, 255, 0.45), transparent 70%),
    radial-gradient(60% 100% at 100% 100%, rgba(98, 22, 251, 0.6), transparent 70%),
    linear-gradient(135deg, #25105f, #12063a);
  box-shadow: 0 40px 100px rgba(98, 22, 251, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bff-cta h2 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}

.bff-cta h2 em {
  font-style: normal;
  background: linear-gradient(95deg, #c9a8ff, #f0e3ff 55%, #a67bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bff-cta p { margin: 0 0 24px; font-size: 16.5px; line-height: 1.7; color: #d8caff; }
.bff-cta .acts { display: flex; flex-wrap: wrap; gap: 12px; }

.bff-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 15px;
  font: 700 15px/1 Inter, sans-serif;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #8f5cff, #6216fb);
  border: 1px solid rgba(200, 175, 255, 0.55);
  box-shadow: 0 14px 34px rgba(98, 22, 251, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bff-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(98, 22, 251, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.bff-btn svg { width: 18px; height: 18px; }
.bff-btn.is-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }

/* ---------- link grid ---------- */
.bff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 84px);
}

.bff-brand { display: grid; gap: 18px; align-content: start; }
.bff-logo { display: inline-flex; align-items: center; gap: 0; letter-spacing: -0.03em; text-decoration: none; font: 800 26px/1 Outfit, Inter, sans-serif; letter-spacing: -0.03em; color: #fff; }
.bff-logo img { width: 36px; height: 36px; margin-right: 10px; object-fit: contain; }
.bff-logo span { color: #a98bff; }
.bff-brand p { margin: 0; max-width: 40ch; font-size: 14.5px; line-height: 1.75; color: #b9afd8; }

.bff-social { display: grid; gap: 10px; }
.bff-social > span { font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #8d80bd; }
.bff-social > div { display: flex; flex-wrap: wrap; gap: 10px; }
.bff-social a { display: block; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(98, 22, 251, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.bff-social a:hover { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 14px 28px rgba(128, 74, 255, 0.6); }
.bff-social img { display: block; width: 100%; height: 100%; }

.bff-col h3 {
  margin: 0 0 18px;
  font: 700 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a98bff;
}

.bff-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }

.bff-col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: #cfc6ee;
  transition: color 0.2s ease, transform 0.25s ease;
}

.bff-col a::before {
  content: "";
  width: 0;
  margin-right: -10px;
  height: 1px;
  background: #a98bff;
  transition: width 0.25s ease;
}

.bff-col a:hover { color: #fff; transform: translateX(2px); }
.bff-col a:hover::before { width: 14px; margin-right: 0; }
.bff-col img { width: 20px; height: 20px; object-fit: contain; }

/* ---------- contact chips ---------- */
.bff-contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}

.bff-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(168, 130, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

a.bff-chip:hover { transform: translateY(-5px); border-color: rgba(190, 160, 255, 0.6); background: rgba(128, 74, 255, 0.16); }

.bff-chip .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #8f5cff, #5a1ee6);
  box-shadow: 0 10px 22px rgba(98, 22, 251, 0.45);
}

.bff-chip .ic svg { width: 21px; height: 21px; }
.bff-chip .tx { min-width: 0; }
.bff-chip small { display: block; margin-bottom: 4px; font: 700 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #8d80bd; }
.bff-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: #f3eeff; overflow-wrap: anywhere; }

/* ---------- bottom ---------- */
.bff-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 22px 0;
  border-top: 1px solid rgba(168, 130, 255, 0.2);
  font-size: 13.5px;
  color: #9a8fc4;
}

.bff-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.bff-bottom nav a { color: #b9afd8; text-decoration: none; transition: color 0.2s ease; }
.bff-bottom nav a:hover { color: #fff; }

.bff-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 130, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  font: 700 12.5px/1 Inter, sans-serif;
  color: #e9e3ff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.bff-top:hover { background: rgba(128, 74, 255, 0.28); transform: translateY(-3px); }
.bff-top svg { width: 18px; height: 18px; animation: bff-lift 2.4s ease-in-out infinite; }
@keyframes bff-lift { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }

/* ---------- oversized wordmark ---------- */
.bff-mark {
  margin: 0 0 -0.14em;
  padding: 0 12px;
  font: 800 clamp(56px, 15.5vw, 236px)/0.82 Outfit, Inter, sans-serif;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.02em;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(190, 160, 255, 0.55) 0%, rgba(98, 22, 251, 0.12) 70%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bff-brand { grid-column: 1 / -1; }
  .bff-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bff-cta { grid-template-columns: 1fr; border-radius: 26px; }
}

@media (max-width: 520px) {
  .bff-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .bff-contact { grid-template-columns: 1fr; }
  .bff-bottom { flex-direction: column; align-items: flex-start; }
  .bff-btn { flex: 1 1 100%; justify-content: center; }
}

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

/* ==========================================================================
   Beat the legacy `html.dark footer a { color: #94a3b8 !important }` rule
   ========================================================================== */
html body footer.bff { background-color: #05010f !important; border-top-color: rgba(168, 130, 255, 0.28) !important; }
html body footer.bff a.bff-btn { color: #fff !important; }
html body footer.bff a.bff-logo { color: #fff !important; }
html body footer.bff .bff-col a { color: #cfc6ee !important; }
html body footer.bff .bff-col a:hover { color: #fff !important; }
html body footer.bff .bff-chip { color: inherit !important; }
html body footer.bff .bff-bottom nav a { color: #b9afd8 !important; }
html body footer.bff .bff-bottom nav a:hover { color: #fff !important; }
html body footer.bff a.bff-top { color: #e9e3ff !important; }

/* owned-and-operated credit */
.bff-owned { margin: 0; font-size: 13px; color: #9a8fc4; }
.bff-owned b, .bff-owner b { color: #e9e3ff; font-weight: 800; letter-spacing: 0.02em; }
.bff-owner { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(168, 130, 255, 0.3); background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #b9afd8; }
