/* =========================================================
   WeFlair decorative stars
   Shared visual layer only: no layout, copy, or CTA changes.
   ========================================================= */

:root {
  --wf-star-green: #3eff68;
  --wf-star-cream: #f6f3ee;
  --wf-star-outline: url("/brand-assets/star-outline.svg");
  --wf-star-solid: url("/brand-assets/star-solid.svg");
  --wf-star-glow: url("/brand-assets/star-glow.svg");
}

html,
body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@keyframes wf-star-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.025); }
}

@keyframes wf-star-drift-soft {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -5px, 0) scale(1.018); }
}

@keyframes wf-star-twinkle {
  0%, 100% { opacity: .36; transform: scale(.9); }
  50% { opacity: .9; transform: scale(1.08); }
}

@keyframes wf-star-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(62, 255, 104, .24)); opacity: .58; }
  50% { filter: drop-shadow(0 0 16px rgba(62, 255, 104, .58)); opacity: .95; }
}

@keyframes wf-star-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.99); }
  50% { transform: translate3d(0, -7px, 0) scale(1.025); }
}

@keyframes wf-hero-outline-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, -14px, 0) scale(1.025); }
}

.wf-star {
  position: absolute;
  display: block;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: var(--wf-star-green);
}

.wf-star svg {
  display: block;
  opacity: 0 !important;
}

.wf-star::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--wf-star-solid) center / contain no-repeat;
  mask: var(--wf-star-solid) center / contain no-repeat;
  opacity: .72;
  filter: drop-shadow(0 0 10px rgba(62, 255, 104, .22));
}

.wf-star--bg,
.wf-star--hero,
.wf-star--trail,
.wf-star--divider {
  opacity: .22 !important;
}

.wf-star--bg::before,
.wf-star--hero::before,
.wf-star--trail::before,
.wf-star--divider::before,
.wf-star--float::before,
.wf-star--float-slow::before,
.wf-star--drift::before {
  background: transparent var(--wf-star-outline) center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(62, 255, 104, .06));
}

.wf-star--glow::before {
  background: var(--wf-star-green);
  -webkit-mask: var(--wf-star-solid) center / contain no-repeat;
  mask: var(--wf-star-solid) center / contain no-repeat;
  opacity: .94;
  filter: drop-shadow(0 0 14px rgba(62, 255, 104, .38));
}

.wf-star--micro::before,
.wf-star--twinkle::before,
.wf-star--solid::before {
  background-color: var(--wf-star-green);
  -webkit-mask: var(--wf-star-solid) center / contain no-repeat;
  mask: var(--wf-star-solid) center / contain no-repeat;
}

.wf-star--cream::before {
  background-color: var(--wf-star-cream);
}

.wf-star--float,
.wf-star--drift {
  animation: wf-star-drift 12s ease-in-out infinite;
}

.wf-star--float-slow,
.wf-star--bg,
.wf-star--trail {
  animation: wf-star-breathe 18s ease-in-out infinite;
}

.wf-star--twinkle {
  animation: wf-star-twinkle 6.5s ease-in-out infinite;
}

.wf-star--glow {
  animation: wf-star-glow 7s ease-in-out infinite;
}

.wf-star--spin {
  animation: wf-star-drift-soft 18s ease-in-out infinite;
}

.wf-star--xs svg { width: 10px; height: 10px; }
.wf-star--sm svg { width: 18px; height: 18px; }
.wf-star--md svg { width: 28px; height: 28px; }
.wf-star--lg svg { width: 44px; height: 44px; }
.wf-star--xl svg { width: 64px; height: 64px; }
.wf-star--xxl svg { width: 110px; height: 110px; }

.home-header > .wf-star,
.weflair-section > .wf-star,
.case-studies-hero > .wf-star,
.contact-hero > .wf-star {
  z-index: 0;
}

.home-header > .wf-star--bg:first-of-type {
  top: clamp(5.75rem, 11vw, 9rem) !important;
  right: max(-8.5rem, -7vw) !important;
  width: clamp(18rem, 34vw, 42rem);
  height: clamp(18rem, 34vw, 42rem);
  opacity: .56 !important;
  animation: wf-hero-outline-drift 24s ease-in-out infinite !important;
}

.home-header > .wf-star--bg:first-of-type svg {
  width: 100%;
  height: 100%;
}

.home-header > .wf-star--bg:first-of-type::before {
  filter:
    drop-shadow(0 0 34px rgba(62, 255, 104, .08))
    drop-shadow(0 0 86px rgba(0, 0, 0, .4));
}

.home-header > .wf-star--float,
.home-header > .wf-star--float-slow,
.home-header > .wf-star--drift {
  opacity: .46 !important;
}

.weflair-compare-block .weflair-compare-pixels {
  position: absolute !important;
  top: -1.5rem !important;
  right: -1.25rem !important;
  z-index: 0 !important;
  display: block !important;
  width: clamp(8.5rem, 14vw, 15rem) !important;
  height: clamp(8.5rem, 14vw, 15rem) !important;
  transform: none !important;
  opacity: .74 !important;
  pointer-events: none !important;
}

.weflair-compare-block {
  overflow: hidden;
}

.weflair-compare-block .weflair-compare-pixels::before {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    radial-gradient(circle at 54% 46%, rgba(62, 255, 104, .12), rgba(62, 255, 104, .04) 34%, rgba(62, 255, 104, 0) 70%);
  filter: blur(8px);
}

.weflair-compare-block .weflair-compare-pixels span {
  position: absolute !important;
  display: block !important;
  width: 34% !important;
  height: 34% !important;
  background: transparent var(--wf-star-outline) center / contain no-repeat !important;
  opacity: .86;
  filter: drop-shadow(0 0 16px rgba(62, 255, 104, .08));
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(1) {
  top: 4%;
  left: 32%;
  transform: scale(.72);
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(2) {
  top: 22%;
  right: 2%;
  transform: scale(1);
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(3) {
  top: 34%;
  left: 4%;
  transform: scale(.84);
  opacity: .62;
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(4) {
  right: 18%;
  bottom: 14%;
  transform: scale(.58);
  opacity: .54;
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(5) {
  left: 30%;
  bottom: 0;
  transform: scale(.68);
  opacity: .48;
}

.weflair-compare-block .weflair-compare-pixels span:nth-child(6) {
  right: -8%;
  bottom: 38%;
  transform: scale(.46);
  opacity: .46;
}

@media (max-width: 991px) {
  .home-header > .wf-star--bg:first-of-type {
    top: 4.75rem !important;
    right: -7.5rem !important;
    width: clamp(15rem, 40vw, 25rem);
    height: clamp(15rem, 40vw, 25rem);
    opacity: .42 !important;
  }

  .weflair-compare-block .weflair-compare-pixels {
    transform: scale(.84) !important;
    transform-origin: top right;
  }
}

@media (max-width: 767px) {
  .home-header > .wf-star--bg:first-of-type {
    top: 3.4rem !important;
    right: -8.8rem !important;
    width: 18rem;
    height: 18rem;
    opacity: .28 !important;
  }

  .home-header > .wf-star {
    opacity: .22 !important;
  }

  .home-header > .wf-star--bg:first-of-type {
    opacity: .28 !important;
  }

  .weflair-compare-block .weflair-compare-pixels {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-star,
  .wf-star--float,
  .wf-star--float-slow,
  .wf-star--drift,
  .wf-star--twinkle,
  .wf-star--glow,
  .wf-star--spin,
  .wf-star--bg,
  .wf-star--trail,
  .wf-star--hero,
  .home-header > .wf-star--bg:first-of-type {
    animation: none !important;
  }
}
