/* AdPay — extra animations for public pages (all respect "reduce motion") */
@keyframes fxPageIn { from { opacity: 0 } to { opacity: 1 } }
body.fx-ready { animation: fxPageIn .5s ease both; }

/* scroll reveal: data-fx="up|left|right|zoom|blur|flip" (+ data-fx-delay="200") */
[data-fx] { opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease; will-change: transform, opacity; }
[data-fx="up"]    { transform: translateY(40px); }
[data-fx="left"]  { transform: translateX(-60px); }
[data-fx="right"] { transform: translateX(60px); }
[data-fx="zoom"]  { transform: scale(.88); }
[data-fx="blur"]  { transform: translateY(20px); filter: blur(12px); }
[data-fx="flip"]  { transform: perspective(900px) rotateX(35deg) translateY(30px); transform-origin: 50% 100%; }
[data-fx].fx-in   { opacity: 1; transform: none; filter: none; }

/* stagger children: data-fx-stagger */
[data-fx-stagger] > * { opacity: 0; transform: translateY(32px) scale(.98); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-fx-stagger].fx-in > * { opacity: 1; transform: none; }

/* headline words rise one by one: data-fx-split */
.fx-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.fx-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.fx-in .fx-word > span, [data-fx-split].fx-in .fx-word > span { transform: none; }

/* aurora background */
.fx-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; mix-blend-mode: multiply; animation: fxBlob 18s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(1) { background: rgb(var(--brand-400)); top: -18vmax; left: -10vmax; }
.fx-aurora i:nth-child(2) { background: #a5b4fc; top: -10vmax; right: -16vmax; animation-duration: 22s; animation-delay: -6s; }
.fx-aurora i:nth-child(3) { background: #f9a8d4; bottom: -28vmax; left: 30%; animation-duration: 26s; animation-delay: -12s; opacity: .3; }
.fx-aurora.dark i { mix-blend-mode: screen; opacity: .2; }
@keyframes fxBlob { 0% { transform: translate(0,0) scale(1) } 33% { transform: translate(8vmax,6vmax) scale(1.15) } 66% { transform: translate(-6vmax,4vmax) scale(.9) } 100% { transform: translate(4vmax,-6vmax) scale(1.1) } }

/* grid pattern that fades out */
.fx-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }

/* animated gradient text */
.fx-gtext { background: linear-gradient(90deg, rgb(var(--brand-600)), #6366f1, #db2777, rgb(var(--brand-500))); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fxGrad 8s ease infinite; }
@keyframes fxGrad { 0%,100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }

/* cursor spotlight on cards */
.fx-spot { position: relative; isolation: isolate; }
.fx-spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--brand-400) / .16), transparent 45%); }
.fx-spot:hover::after { opacity: 1; }

/* shine sweep on buttons */
.fx-shine { position: relative; overflow: hidden; }
.fx-shine::before { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); pointer-events: none; }
.fx-shine:hover::before { animation: fxSweep .8s ease; }
@keyframes fxSweep { to { left: 140% } }

/* gentle float + pulse ring */
@keyframes fxFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.fx-float { animation: fxFloat 5s ease-in-out infinite; }
.fx-float-2 { animation: fxFloat 6.5s ease-in-out -2s infinite; }
@keyframes fxRing { 0% { box-shadow: 0 0 0 0 rgb(var(--brand-500) / .45) } 100% { box-shadow: 0 0 0 18px rgb(var(--brand-500) / 0) } }
.fx-ring { animation: fxRing 2s ease-out infinite; }

/* moving border light */
.fx-border { position: relative; }
.fx-border::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--fx-a, 0deg), transparent 70%, rgb(var(--brand-400)), #818cf8, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fxSpin 5s linear infinite; }
@property --fx-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes fxSpin { to { --fx-a: 360deg } }

/* back to top */
#fxTop { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: #0b0f14; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px) scale(.8); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
#fxTop.show { opacity: 1; transform: none; pointer-events: auto; }
#fxTop:hover { background: rgb(var(--brand-600)); }
#fxTop svg { position: absolute; inset: 0; transform: rotate(-90deg); }

@media (prefers-reduced-motion: reduce) {
  [data-fx], [data-fx-stagger] > *, .fx-word > span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .fx-aurora i, .fx-gtext, .fx-float, .fx-float-2, .fx-ring, .fx-border::before, body.fx-ready { animation: none !important; }
}

/* text written in Admin (About, Careers, Blog, FAQ answers) */
.pg-prose h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 2rem 0 .7rem; color: #0b0f14; }
.pg-prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .4rem; color: #0b0f14; }
.pg-prose p  { margin: .7rem 0; line-height: 1.8; color: #4b5563; }
.pg-prose ul { margin: .6rem 0 1.1rem; padding-left: 1.2rem; list-style: disc; color: #4b5563; }
.pg-prose li { margin: .4rem 0; line-height: 1.7; padding-left: .25rem; }
.pg-prose li::marker { color: rgb(var(--brand-500)); }
.pg-prose strong { color: #111827; font-weight: 700; }
.pg-prose a { color: rgb(var(--brand-600)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pg-prose > :first-child { margin-top: 0; }
.fx-aurora:not(.dark) { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
