/* Who It's For – image tile + 2x2 cards (dark theme) | prefix: wf | section.wf in index.html */

.wf {
   --wf-cyan: #27dfff;
   --wf-violet: #9b5cff;
   --wf-rose: #ff2e93;
   --wf-orange: #ff9a3c;
   --wf-lime: #b6f23a;
   position: relative;
   isolation: isolate;
   overflow: hidden;
   padding: 20px 0px 0px;
   background: #05060f;
   font-family: 'Inter', 'Poppins', sans-serif;
   color: #fff;
   background: #000 url(../images/wf.png) center top no-repeat;
}

.wf::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   /* background:
      radial-gradient(620px 460px at 6% 0%, rgba(39, 223, 255, .2), transparent 70%),
      radial-gradient(620px 480px at 100% 40%, rgba(155, 92, 255, .28), transparent 70%),
      radial-gradient(600px 460px at 40% 106%, rgba(255, 46, 147, .2), transparent 70%); */
}

.wf::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   /* background-image:
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
   background-size: 56px 56px;
   -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 68%);
   mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 68%); */
}

.wf__wrap {
   max-width: 1180px;
   margin: 0 auto;
}

/* ---------- head ---------- */
.wf__head {
   text-align: center;
}

.wf__title {
   margin: 0;
   font-size: clamp(44px, 7vw, 92px);
   font-weight: 800;
   letter-spacing: -.05em;
   line-height: 1;
   color: #fff;
}

.wf__title em {
   /* font-family: 'Instrument Serif', Georgia, serif;
   font-style: italic; */
   font-weight: 900;
   font-size: 1.12em;
   letter-spacing: -.01em;
   padding: 0 .08em .06em 0;
   background: linear-gradient(100deg, #c4b5fd, var(--wf-cyan) 55%, #f9a8d4);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

.wf__divider {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 14px;
   margin-top: 30px;
}

.wf__divider span {
   width: 90px;
   height: 2px;
   border-radius: 2px;
   background: linear-gradient(90deg, transparent, var(--wf-violet));
}

.wf__divider span:last-child {
   transform: scaleX(-1);
}

.wf__divider i {
   font-style: normal;
   font-size: 18px;
   background: linear-gradient(135deg, var(--wf-cyan), var(--wf-violet), var(--wf-rose));
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

/* ---------- grid ---------- */
.wf__grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 26px;
   margin-top: 74px;
}

/* ---------- card ---------- */
.wf__card {
   --wf-a: var(--wf-cyan);
   --wf-b: var(--wf-violet);
   position: relative;
   isolation: isolate;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   padding: 12px 12px 36px;
   border: 1.5px solid transparent;
   border-radius: 34px;
   background:
      linear-gradient(180deg, #fff, #f6f7ff) padding-box,
      linear-gradient(150deg, var(--wf-a), rgba(255, 255, 255, .5) 50%, var(--wf-b)) border-box;
   box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .7), 0 0 60px -20px var(--wf-a);
}

.wf__card--2 {
   --wf-a: var(--wf-violet);
   --wf-b: var(--wf-rose);
}

.wf__card--3 {
   --wf-a: var(--wf-rose);
   --wf-b: var(--wf-orange);
}

.wf__card--4 {
   --wf-a: var(--wf-lime);
   --wf-b: var(--wf-cyan);
}

/* corner bloom */
.wf__card::after {
   content: "";
   position: absolute;
   right: -100px;
   bottom: -120px;
   z-index: -1;
   width: 340px;
   height: 340px;
   border-radius: 50%;
   background: radial-gradient(closest-side, var(--wf-a), transparent);
   opacity: .14;
}

/* ---------- image panel above the text ---------- */
.wf__stage {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   display: flex;
   align-items: flex-end;
   justify-content: center;
   height: 260px;
   margin: 0;
   padding: 20px 20px 0;
   border-radius: 24px;
   background:
      radial-gradient(circle at 50% 100%, var(--wf-a), transparent 70%),
      linear-gradient(160deg, #1a1d4a, #0b0c26);
   box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

/* fine grid texture */
.wf__stage::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background-image:
      linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
   background-size: 32px 32px;
   -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
   mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.wf__halo {
   position: absolute;
   left: 50%;
   bottom: -42%;
   z-index: -1;
   width: 70%;
   aspect-ratio: 1;
   translate: -50% 0;
   border-radius: 50%;
   background: radial-gradient(closest-side, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 70%, transparent);
   box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 20px rgba(255, 255, 255, .05);
}

.wf__stage img {
   position: relative;
   display: block;
   width: auto;
   max-width: 100%;
   height: 100%;
   object-fit: contain;
   object-position: center bottom;
   filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .5));
}

.wf__flip {
   /* scale: -1 1; */
}

.wf__ghost {
   position: absolute;
   top: 12px;
   left: 20px;
   z-index: 0;
   font-size: 72px;
   font-weight: 800;
   letter-spacing: -.06em;
   line-height: 1;
   color: transparent;
   -webkit-text-stroke: 1.5px rgba(255, 255, 255, .32);
   pointer-events: none;
}

/* ---------- body ---------- */
.wf__body {
   position: relative;
   padding: 0 24px;
}

/* icon tile straddles the seam between image and text */
.wf__ic {
   position: relative;
   z-index: 2;
   display: grid;
   place-items: center;
   width: 62px;
   height: 62px;
   margin-top: -31px;
   border-radius: 19px;
   background: linear-gradient(135deg, var(--wf-a), var(--wf-b));
   box-shadow: 0 0 0 6px #fff, 0 16px 34px -8px var(--wf-a), inset 0 1px 0 rgba(255, 255, 255, .45);
   color: #05060f;
}

.wf__ic svg {
   width: 32px;
   height: 32px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2.4;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.wf__h3 {
   margin: 22px 0 0;
   font-size: clamp(24px, 2.4vw, 31px);
   font-weight: 800;
   letter-spacing: -.035em;
   line-height: 1.15;
   color: #0f1330;
}

.wf__p {
   margin: 14px 0 0;
   font-size: 16.5px;
   font-weight: 500;
   line-height: 1.65;
   color: #4b5173;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
   .wf__grid {
      grid-template-columns: 1fr;
      gap: 22px;
      margin-top: 54px;
      max-width: 560px;
      margin-left: auto;
      margin-right: auto;
   }
}

@media (max-width: 575px) {
   .wf {
      padding: 80px 16px 90px;
   }

   .wf__card {
      border-radius: 26px;
      padding-bottom: 30px;
   }

   .wf__stage {
      height: 220px;
   }

   .wf__body {
      padding: 0 16px;
   }

   .wf__p {
      font-size: 15.5px;
   }
}
