/* =========================================================
   XevoNet — Landing page signature
   Two unique moments:
     1.  Cursor-tracked liquid blob behind the hero, gently
         cycling through six accent tokens (one per product).
     2.  The italic word in the H1 transitions through the
         same six accents on a slow loop.
   ========================================================= */

.pl-hero {
    position: relative;
    isolation: isolate;
}
.pl-blob-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* The blobs are very saturated; keep them muted so headline
       stays the focal point. */
    opacity: 0.55;
}
.m-hero.pl-hero .m-hero-inner { position: relative; z-index: 1; }

.pl-blob {
    --x: 50%;
    --y: 50%;
    --tone: var(--accent);
    position: absolute;
    width: 56vmax;
    height: 56vmax;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%,
        var(--tone) 0%,
        transparent 60%);
    filter: blur(60px) saturate(160%);
    border-radius: 50%;
    will-change: transform, filter;
    transition:
        left 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        top  0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Three blobs in different starting positions, animated drift */
.pl-blob-a { --tone: #7c5cff; }
.pl-blob-b { --tone: #4d9c8f; }
.pl-blob-c { --tone: #d97a64; }

.pl-blob-a { animation: plDriftA 26s ease-in-out infinite alternate; }
.pl-blob-b { animation: plDriftB 32s ease-in-out infinite alternate; }
.pl-blob-c { animation: plDriftC 38s ease-in-out infinite alternate; }

@keyframes plDriftA {
    0%   { transform: translate(-65%, -55%) scale(1);    }
    100% { transform: translate(-35%, -45%) scale(1.18); }
}
@keyframes plDriftB {
    0%   { transform: translate(-30%, -30%) scale(0.9);  }
    100% { transform: translate(-70%, -65%) scale(1.1);  }
}
@keyframes plDriftC {
    0%   { transform: translate(-50%, -70%) scale(1);    }
    100% { transform: translate(-55%, -30%) scale(1.16); }
}

/* Cycling word in headline */
.pl-italic {
    /* extends .italic; just retunes the colour cycle */
    color: var(--pl-italic, var(--accent));
    transition: color 1.4s var(--ease-out, ease-out);
    /* keep the elegant italic feel from .italic */
}

/* Dimmer blobs in light mode (their colour is darker on white) */
@media (prefers-color-scheme: light) {
    .pl-blob-stage { opacity: 0.35; }
}
:root[data-theme="light"] .pl-blob-stage { opacity: 0.35; }
:root[data-theme="dark"]  .pl-blob-stage { opacity: 0.55; }

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pl-blob { animation: none !important; transition: none !important; }
    .pl-italic { transition: none !important; }
}
