/* VIXORA / MOTION EDITION V4 — layers on V2 without replacing its design.
   Only transform, opacity and lightweight backgrounds are animated.
   No scroll-jacking, zoom-on-scroll, animation library or external dependency. */
:root{--v4-ease:cubic-bezier(.22,.8,.24,1);--v4-glow:#7766ee}

/* Cinematic introduction — quick, predictable and one-time. */
.hero{isolation:isolate}
.hero-backdrop .glow.one{animation:v4-breathe 9s ease-in-out infinite alternate}
.hero-backdrop .glow.two{animation:v4-breathe 11s ease-in-out -4s infinite alternate-reverse}
@keyframes v4-breathe{from{opacity:.32;transform:translate3d(0,0,0) scale(1)}to{opacity:.52;transform:translate3d(-18px,10px,0) scale(1.09)}}
.hero-backdrop .v4-grid{position:absolute;inset:0;opacity:.33;background-image:linear-gradient(to right,rgba(120,111,218,.055) 1px,transparent 1px),linear-gradient(to bottom,rgba(120,111,218,.055) 1px,transparent 1px);background-size:88px 88px;mask-image:linear-gradient(120deg,transparent 25%,#000 95%)}
.hero-backdrop .v4-beam{position:absolute;right:8%;top:-18%;width:48%;height:150%;transform:rotate(27deg) translateX(-25%);background:linear-gradient(90deg,transparent 0%,rgba(132,113,255,.08) 48%,rgba(121,217,220,.05) 52%,transparent 100%);animation:v4-beam 10s ease-in-out infinite alternate;will-change:transform}
@keyframes v4-beam{to{transform:rotate(27deg) translateX(10%)}}
.hero-backdrop:after{content:"";position:absolute;inset:0;opacity:.65;pointer-events:none;background:radial-gradient(280px circle at var(--v4-spot-x,78%) var(--v4-spot-y,55%),rgba(132,114,248,.14),transparent 75%);transition:opacity .35s}
.hero-copy>.hero-mini-flag{animation:v4-entrance .7s var(--v4-ease) both}
.hero-copy>.eyebrow{animation:v4-entrance .78s .06s var(--v4-ease) both}
.hero-copy>h1{animation:v4-entrance .84s .12s var(--v4-ease) both}
.hero-copy>.hero-lead{animation:v4-entrance .84s .2s var(--v4-ease) both}
.hero-copy>.hero-actions{animation:v4-entrance .8s .28s var(--v4-ease) both}
.hero-copy>.hero-proof{animation:v4-entrance .8s .38s var(--v4-ease) both}
.hero-visual>.app-window{animation:v4-window-intro .95s .14s var(--v4-ease) both;transform:perspective(1200px) rotateY(calc(-4deg + var(--v4-ry,0deg))) rotateX(calc(2deg + var(--v4-rx,0deg))) translateZ(0);transition:transform .3s var(--v4-ease),box-shadow .3s}
.hero-visual>.app-window:hover{transform:perspective(1200px) rotateY(calc(-4deg + var(--v4-ry,0deg))) rotateX(calc(2deg + var(--v4-rx,0deg))) translateZ(0)}
@keyframes v4-entrance{from{opacity:0;transform:translate3d(0,20px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes v4-window-intro{from{opacity:0;translate:24px 27px}to{opacity:1;translate:0 0}}
.hero h1 span{background:linear-gradient(100deg,#6258da 10%,#9482f3 46%,#5d67da 88%);background-size:220% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:v4-text-sheen 8s ease-in-out infinite alternate}
@keyframes v4-text-sheen{from{background-position:0% 50%}to{background-position:100% 50%}}
.hero-visual .orbit-a{animation:v4-orbit 36s linear infinite}
.hero-visual .orbit-b{animation:v4-orbit 50s linear infinite reverse}
@keyframes v4-orbit{to{rotate:360deg}}
.hero-visual .orbit-a:after,.hero-visual .orbit-b:after{content:"";position:absolute;left:50%;top:-4px;width:8px;height:8px;border-radius:50%;background:#8f7df4;box-shadow:0 0 18px #8f7df4aa}
.hero-visual .orbit-b:after{width:6px;height:6px;background:#53cebf;box-shadow:0 0 15px #4ad6baa5}
.hero-visual .float-one{animation-duration:5.2s}
.hero-visual .float-two{animation-duration:6.3s}
.hero-visual .app-window .kpi{animation:v4-card-in .6s var(--v4-ease) both}
.hero-visual .app-window .kpi:nth-child(1){animation-delay:.72s}
.hero-visual .app-window .kpi:nth-child(2){animation-delay:.85s}
.hero-visual .app-window .kpi:nth-child(3){animation-delay:.98s}
@keyframes v4-card-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* Scroll cue and animation control: deliberately discreet. */
.v4-scroll-cue{display:inline-flex;gap:9px;align-items:center;font-size:9px;font-weight:850;letter-spacing:.14em;color:#8483a1;margin-top:26px;animation:v4-entrance .8s .45s var(--v4-ease) both}
.v4-scroll-cue .v4-scroll-line{height:19px;width:1px;background:linear-gradient(to bottom,#695ad6,transparent);position:relative;overflow:hidden}
.v4-scroll-cue .v4-scroll-line:after{content:"";position:absolute;left:0;top:-8px;height:9px;width:1px;background:#6758e9;animation:v4-scroll-drop 2.4s ease-in-out infinite}
@keyframes v4-scroll-drop{to{transform:translateY(32px)}}
.v4-hero-bottom-actions{display:flex;align-items:center;gap:17px}
.v4-hero-bottom-actions>.icon{width:14px;height:14px}
.v4-motion-toggle{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #e0dff0;border-radius:99px;background:#fff;color:#656581;font-family:inherit;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.01em;cursor:pointer;transition:background .18s,border-color .18s}
.v4-motion-toggle:hover{border-color:#8d7fe7;background:#f7f5ff}
.v4-motion-toggle:focus-visible{outline:3px solid #9f95ea;outline-offset:3px}
.v4-motion-dot{height:7px;width:7px;border-radius:50%;background:#52cbb8;box-shadow:0 0 0 3px #52cbb821}
.v4-motion-toggle[aria-pressed="false"] .v4-motion-dot{background:#adb1bd;box-shadow:none}
/* Reveal staggering applies only when a complete section has entered the viewport. */
[data-reveal]{transition-duration:.68s;transition-timing-function:var(--v4-ease)}
.erp-highlight-grid.revealed>.highlight-feature,.process-steps.revealed>.process-step{animation:v4-reveal-child .66s both var(--v4-ease)}
.erp-highlight-grid.revealed>.highlight-feature:nth-child(2),.process-steps.revealed>.process-step:nth-child(3){animation-delay:.12s}
.erp-highlight-grid.revealed>.highlight-feature:nth-child(3),.process-steps.revealed>.process-step:nth-child(5){animation-delay:.24s}
.erp-highlight-grid.revealed>.highlight-feature:nth-child(4),.process-steps.revealed>.process-step:nth-child(7){animation-delay:.36s}
@keyframes v4-reveal-child{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
/* Sections and cards — light depth, no elastic scale or jump. */
.module-card,.service-card,.team-card,.solution-card,.highlight-feature{transition:transform .32s var(--v4-ease),box-shadow .32s var(--v4-ease),border-color .32s ease}
.module-card:hover,.service-card:hover,.team-card:hover{transform:translateY(-5px);box-shadow:0 17px 33px rgba(47,43,117,.10)}
.module-card .module-icon,.service-card .service-icon,.solution-card .solution-icon{transition:transform .32s var(--v4-ease),background .32s}
.module-card:hover .module-icon,.service-card:hover .service-icon,.solution-card:hover .solution-icon{transform:translateY(-3px) rotate(-5deg)}
.solution-card:not(.solution-feature):hover{transform:translateY(-5px) rotateX(var(--v4-tilt-x,0deg)) rotateY(var(--v4-tilt-y,0deg))}
.solution-card:not(.solution-feature):before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(280px circle at var(--v4-hover-x,50%) var(--v4-hover-y,50%),rgba(142,129,241,.16),transparent 78%);opacity:0;transition:opacity .3s}
.solution-card:not(.solution-feature):hover:before{opacity:1}
.solution-feature .graphic-card{transition:transform .42s var(--v4-ease)}
.solution-feature:hover .graphic-one{transform:translate(-6px,-7px) rotate(-15deg)}
.solution-feature:hover .graphic-two{transform:translateY(-12px) rotate(1deg)}
.solution-feature:hover .graphic-three{transform:translate(6px,-7px) rotate(15deg)}
/* Tour screens animate when users switch tabs; contents remain normal DOM for accessibility. */
.tour-studio{position:relative}
.tour-studio:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(140,140,250,.05)}
.tour-tab{position:relative;overflow:hidden;transition:background .23s,color .23s,transform .25s var(--v4-ease)}
.tour-tab:not(.is-selected):hover{transform:translateX(3px)}
.tour-tab.is-selected:after{content:"";position:absolute;top:15%;right:0;width:3px;height:70%;border-radius:3px;background:#68e8d3;animation:v4-tab-lift .24s var(--v4-ease) both}
@keyframes v4-tab-lift{from{transform:scaleY(.35);opacity:.3}to{transform:scaleY(1);opacity:1}}
.tour-preview .tour-chart-bar{transition:height .65s var(--v4-ease),background .25s}
.tour-preview .tour-chart-bar:nth-child(2){transition-delay:.04s}
.tour-preview .tour-chart-bar:nth-child(3){transition-delay:.08s}
.tour-preview .tour-chart-bar:nth-child(4){transition-delay:.12s}
.tour-preview .tour-chart-bar:nth-child(5){transition-delay:.16s}
.tour-preview .tour-chart-bar:nth-child(6){transition-delay:.20s}
.tour-preview .tour-chart-bar:nth-child(7){transition-delay:.24s}
.tour-preview .tour-metric{transform-origin:center center}
.tour-preview .tour-activity-list>div{transition:background .25s,transform .25s}
.tour-preview .tour-activity-list>div:hover{background:#edeaff;transform:translateX(2px)}
/* Real connection flow movement in the existing network diagram. */
.network-diagram svg g[stroke-dasharray] path{stroke-dasharray:8 11;animation:v4-network-flow 4s linear infinite}
.network-diagram svg g[stroke-dasharray] path:nth-child(even){animation-duration:5s;animation-direction:reverse}
@keyframes v4-network-flow{to{stroke-dashoffset:-95}}
.network-card .network-pill .live-dot{animation:v4-connect-pulse 2.8s ease-out infinite}
@keyframes v4-connect-pulse{0%,100%{box-shadow:0 0 0 0 #5bd8c655}60%{box-shadow:0 0 0 7px #5bd8c600}}
/* Minor CTA polish: icon moves, not the entire page. */
.btn .icon,.text-link .icon{transition:transform .28s var(--v4-ease)}
.btn:hover .icon,.text-link:hover .icon{transform:translate(2px,-2px)}
.site-header{transition:box-shadow .3s,background .3s}
.site-header.v4-scrolled{box-shadow:0 12px 38px rgba(27,23,79,.06);background:rgba(255,255,255,.96)}
/* The visitor may switch all extra motion off immediately. */
html.v4-motion-paused *,html.v4-motion-paused *:before,html.v4-motion-paused *:after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
html.v4-motion-paused .hero-visual>.app-window,html.v4-motion-paused .hero-visual>.app-window:hover{transform:perspective(1200px) rotateY(-4deg) rotateX(2deg)}
html.v4-motion-paused .hero-copy>*,html.v4-motion-paused .hero-visual .kpi{opacity:1!important;transform:none!important}
html.v4-motion-paused [data-reveal]{opacity:1!important;transform:none!important}
html.v4-motion-paused .chart-stroke{stroke-dashoffset:0}
@media(max-width:980px){.hero-visual>.app-window,.hero-visual>.app-window:hover{transform:none;animation-name:v4-entrance}.hero-visual .orbit{animation:none}.hero-backdrop .v4-beam{animation-duration:15s}.solution-card:not(.solution-feature):hover{transform:translateY(-3px)}.tour-tab:not(.is-selected):hover{transform:none}}
@media(max-width:720px){.v4-hero-bottom-actions{gap:8px}.v4-motion-toggle{font-size:9px;padding:6px 9px}.v4-scroll-cue{margin-top:8px;margin-bottom:5px}.hero-backdrop .v4-grid{background-size:60px 60px;opacity:.15}.hero-backdrop .v4-beam{opacity:.48}.hero-visual .orbit:after{display:none}}
@media(max-width:480px){.v4-scroll-cue{display:none}.hero-bottom{flex-wrap:wrap;gap:9px}.v4-hero-bottom-actions{margin-left:auto}}
@media(hover:none){.solution-card:not(.solution-feature):hover{transform:none}.module-card:hover,.service-card:hover,.team-card:hover{transform:none}.hero-backdrop .v4-beam{animation:none}}
@media(prefers-reduced-motion:reduce){.hero-backdrop .glow,.hero-backdrop .v4-beam,.hero-visual .orbit,.hero-visual .float-chip,.network-diagram svg g[stroke-dasharray] path,.network-card .live-dot,.v4-scroll-line:after,.hero h1 span{animation:none!important}.hero-copy>*,.hero-visual>.app-window,.hero-visual .kpi,.erp-highlight-grid.revealed>.highlight-feature,.process-steps.revealed>.process-step{animation:none!important;opacity:1!important;transform:none!important}.hero h1 span{background:none;-webkit-text-fill-color:initial;color:#7163e5}}
