/* VelocityX Midnight / original, shared motion language. */
:root { color-scheme: dark; --vxfx-bg: #080512; --vxfx-panel: #151025; --vxfx-line: #362650; --vxfx-purple: #b491ff; --vxfx-pink: #eb9eff; --vxfx-text: #f3edff; --vxfx-muted: #aea2c4; }
html { background: var(--vxfx-bg); scrollbar-color: #5b3c89 #0c0818; }
body { isolation: isolate; background: var(--vxfx-bg); }
::selection { color: #fff; background: #8350b9; }
.vx-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #080512; }
.vx-atmosphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.vxfx-aurora { position: absolute; inset: -35%; opacity: .58; background: radial-gradient(ellipse at 30% 26%, #6928bb59, transparent 32%), radial-gradient(ellipse at 78% 60%, #a22c9440, transparent 29%), radial-gradient(ellipse at 46% 83%, #472bac50, transparent 35%); animation: vxfx-nebula 22s ease-in-out infinite alternate; }
.vxfx-grid { position: absolute; left: -30%; width: 160%; height: 75%; bottom: -45%; background-image: linear-gradient(#bd90ff13 1px, transparent 1px), linear-gradient(90deg, #bd90ff13 1px, transparent 1px); background-size: 70px 70px; transform: perspective(480px) rotateX(58deg); transform-origin: center top; mask-image: linear-gradient(transparent, #000 30%, transparent 85%); animation: vxfx-grid-drift 14s linear infinite; }
.vxfx-pointer-halo { position: absolute; width: 700px; height: 700px; top: var(--pointer-y, 30%); left: var(--pointer-x, 60%); transform: translate(-50%, -50%); background: radial-gradient(circle, #9957ff0d, transparent 65%); }
.vxfx-scroll { position: fixed; left: 0; top: 0; z-index: 200; height: 2px; width: 100%; transform: scaleX(var(--vx-scroll, 0)); transform-origin: left; background: linear-gradient(90deg, #8256ee, #dcabff, #b582ff); box-shadow: 0 0 14px #aa78ff; pointer-events: none; }
.vx-motion-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid #7456a86b; border-radius: 100px; background: #160f27df; color: #d9cbef; font: 600 11px/1.2 Inter, system-ui, sans-serif; letter-spacing: .03em; backdrop-filter: blur(15px); box-shadow: 0 6px 30px #0005; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.vx-motion-toggle:hover { border-color: #b491ff; box-shadow: 0 0 24px #9352ff30; }
.vx-motion-toggle i { width: 9px; height: 9px; border: 1px solid #c4a3ff; border-radius: 50%; box-shadow: 0 0 12px #ab77ff; animation: vxfx-breathe 3s ease-in-out infinite; }
.vx-motion-toggle:focus-visible, .vxfx-reactor button:focus-visible { outline: 2px solid #d4b4ff; outline-offset: 5px; }

/* A kinetic object, built entirely from CSS and SVG. */
[data-vx-reactor] { min-width: 0; position: relative; }
.vxfx-reactor { position: relative; width: 100%; max-width: 560px; margin-inline: auto; color: var(--vxfx-text); font-family: Inter, system-ui, sans-serif; }
.vxfx-reactor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; color: #bcaacf; font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.vxfx-reactor-head span:last-child { color: #b797ee; display: flex; gap: 7px; align-items: center; }
.vxfx-reactor-head i { width: 5px; height: 5px; background: #c59aff; border-radius: 50%; box-shadow: 0 0 12px #b276ff; animation: vxfx-breathe 3s infinite; }
.vxfx-stage { position: relative; height: auto; aspect-ratio: 1.24; perspective: 850px; overflow: visible; display: grid; place-items: center; }
.vxfx-machine { width: min(74%, 340px); aspect-ratio: 1; position: relative; transform-style: preserve-3d; transform: rotateX(var(--reactor-x, 9deg)) rotateY(var(--reactor-y, -13deg)); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.vxfx-machine::before { content: ''; position: absolute; inset: -15%; border-radius: 50%; background: radial-gradient(circle, #834eff38, #7228bc0a 55%, transparent 68%); animation: vxfx-breathe 5s ease-in-out infinite; }
.vxfx-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: vxfx-spin 48s linear infinite; }
.vxfx-track circle { fill: none; stroke: #c5a7ff35; stroke-width: .45; }
.vxfx-track .vxfx-ticks { stroke: #aa80ef88; stroke-width: 3; stroke-dasharray: .5 5.05; }
.vxfx-track .vxfx-arc { stroke: #c59eff; stroke-width: 1.5; stroke-dasharray: 48 250; filter: drop-shadow(0 0 4px #b170ff); }
.vxfx-ring { position: absolute; inset: 13%; border: 1px solid #b994ff86; border-radius: 50%; box-shadow: inset 0 0 20px #a56bff13, 0 0 14px #9d63ff16; animation: vxfx-orbit-a 14s linear infinite; transform-style: preserve-3d; }
.vxfx-ring::before, .vxfx-ring::after { content: ''; position: absolute; width: 7px; height: 7px; background: #e0c8ff; border-radius: 50%; left: 50%; top: -4px; box-shadow: 0 0 18px 4px #b07fff8c; }
.vxfx-ring::after { top: auto; bottom: -4px; width: 4px; height: 4px; }
.vxfx-ring-b { inset: 5%; border-color: #d782e57a; animation: vxfx-orbit-b 19s linear infinite reverse; }
.vxfx-ring-c { inset: 25%; border-style: dashed; border-color: #d0abff78; animation: vxfx-spin 22s linear infinite reverse; }
.vxfx-core { position: absolute; inset: 33%; display: grid; place-items: center; border: 1px solid #d6bcff80; border-radius: 26%; background: radial-gradient(circle at 30% 20%, #855bbb, #321654 50%, #170b29); box-shadow: 0 0 34px #9b54ff4f, inset 0 0 24px #b48cff38; transform: rotate(-12deg); animation: vxfx-core-float 6s ease-in-out infinite; }
.vxfx-core::after { content: ''; position: absolute; inset: -9px; border: 1px solid #ac7bf44a; border-radius: 29%; }
.vxfx-core b { color: #f3eaff; font: 700 clamp(24px, 3vw, 46px)/1 'Space Grotesk', Inter, sans-serif; letter-spacing: -.12em; transform: rotate(12deg); text-shadow: 0 0 22px #dfc4ff82; padding-right: .12em; }
.vxfx-scan { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 78%, #b88aff20, transparent); border-radius: 50%; animation: vxfx-spin 12s linear infinite; }
.vxfx-cross { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), #bc93ff1a 50%, transparent calc(50% + .5px)), linear-gradient(transparent calc(50% - .5px), #bc93ff1a 50%, transparent calc(50% + .5px)); }
.vxfx-orbit-label { position: absolute; padding: 7px 10px; border: 1px solid #9d72dc40; border-radius: 6px; background: #1a102ac9; color: #d8c2ef; font: 500 9px/1.3 ui-monospace, monospace; letter-spacing: .13em; backdrop-filter: blur(8px); animation: vxfx-label-float 6s ease-in-out infinite; }
.vxfx-label-a { top: 23%; left: 0; }
.vxfx-label-b { bottom: 25%; right: -2%; animation-delay: -3s; }
.vxfx-orbit-label i { display: inline-block; width: 4px; height: 4px; margin-right: 6px; border-radius: 50%; background: #ba83ff; box-shadow: 0 0 8px #aa67ff; }
.vxfx-wave { position: absolute; display: flex; align-items: center; justify-content: center; gap: 3px; inset: 20% 13%; opacity: 0; transition: opacity .6s; }
.vxfx-wave i { display: block; width: 3px; height: 30%; border-radius: 6px; background: linear-gradient(#e9baff, #8152cc); box-shadow: 0 0 12px #bb83ff4a; animation: vxfx-wave 1.3s ease-in-out infinite alternate; animation-delay: var(--bar-delay); }
.vxfx-reactor[data-mode=signal] .vxfx-wave { opacity: .9; }
.vxfx-reactor[data-mode=signal] .vxfx-core { opacity: .25; }
.vxfx-reactor[data-mode=signal] .vxfx-ring { opacity: .3; }
.vxfx-reactor[data-mode=field] .vxfx-machine { transform: rotateX(61deg) rotateZ(-20deg); }
.vxfx-reactor[data-mode=field] .vxfx-ring { border-color: #f0b0ff; }
.vxfx-reactor[data-mode=field] .vxfx-core { transform: translateZ(48px) rotate(-12deg); }
.vxfx-reactor-controls { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ac80e72b; padding: 17px 10px 0; }
.vxfx-modes { display: flex; padding: 3px; gap: 2px; border: 1px solid #8b66b840; border-radius: 30px; background: #0e081e99; }
.vxfx-modes button { display: grid; place-items: center; min-width: 54px; min-height: 36px; padding: 0 11px; background: transparent; color: #aa96c3; border: 0; border-radius: 24px; font: 600 10px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.vxfx-modes button[aria-pressed=true] { color: #f0e4ff; background: #5c37867a; box-shadow: inset 0 0 0 1px #b990ef40, 0 0 15px #8a4ec224; }
.vxfx-ignite { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid #bf93ff7a; border-radius: 30px; background: #42226272; color: #ebdaff; font: 600 11px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .3s, box-shadow .3s; white-space: nowrap; }
.vxfx-ignite:hover { background: #673699b0; box-shadow: 0 0 30px #984aee40; }
.vxfx-ignite span { font-size: 17px; color: #ca9aff; }
.vxfx-caption { padding-top: 13px; text-align: center; color: #8f7ca6; font: 400 10px/1.5 Inter, system-ui, sans-serif; letter-spacing: .04em; }
.vxfx-pulse { position: absolute; inset: 28%; border: 1px solid #d9b5ff; border-radius: 50%; opacity: 0; pointer-events: none; }
.vxfx-reactor.is-ignited .vxfx-pulse { animation: vxfx-burst 1.6s ease-out 2; }
.vxfx-reactor.is-ignited .vxfx-pulse:nth-of-type(2) { animation-delay: .2s; }
.vxfx-reactor.is-ignited .vxfx-core { box-shadow: 0 0 80px 20px #a55aff88, inset 0 0 40px #f7cdff99; }
.vxfx-reactor.is-ignited .vxfx-track { animation-duration: 5s; }
.vxfx-reactor.is-ignited .vxfx-ring { animation-duration: 3s; }

/* Motion continues through the working interface. */
.vx-motion-card { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; transition: border-color .35s, box-shadow .35s, transform .5s cubic-bezier(.2,.8,.2,1), background-color .35s; }
@media (hover: hover) and (pointer: fine) {
  .vx-motion-card:hover { transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px); border-color: #a67ade99; box-shadow: 0 12px 45px #0602117a, 0 0 24px #9459ff10; }
}
.vxfx-reveal { animation: vxfx-enter .75s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--reveal-delay, 0ms); }
.auth-statement,.login-story-copy,.login-story>div:nth-child(2),.vx-home-hero>div { animation:vxfx-enter .9s cubic-bezier(.16,1,.3,1) both; }
.auth-entry-inner,.login-panel,.login-card { animation:vxfx-enter .9s .14s cubic-bezier(.16,1,.3,1) both; }
[data-vx-reactor] { animation:vxfx-enter 1.1s .2s cubic-bezier(.16,1,.3,1) both; }
:where(button, .button, .btn, [data-slot=neon-button], .nav-item, .vx-tab, .vx-button) { transition: background .25s, border-color .25s, color .25s, box-shadow .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
:where(.button, .btn, [data-slot=neon-button], .vx-button, button.primary):hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 25px #9b5bff26; }
:where(.button, .btn, [data-slot=neon-button], .vx-button, button):active:not(:disabled) { transform: translateY(1px) scale(.98); }
:where(.button, .btn, [data-slot=neon-button], .vx-button) svg { transition: transform .35s; }
:where(.button, .btn, [data-slot=neon-button], .vx-button):hover svg:last-child { transform: translateX(3px); }
:where(.nav-item, .vx-tab) { position: relative; overflow: hidden; }
:where(.nav-item, .vx-tab)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, #ceb1ff14, transparent 80%); transform: translateX(-110%); transition: transform .65s; }
:where(.nav-item, .vx-tab):hover::after { transform: translateX(110%); }
:where(.brand-mark, .vx-mark, .logo, .workspace-mark) { box-shadow: 0 0 26px #9362ff27; transition: transform .45s, box-shadow .45s; }
:where(.brand-mark, .vx-mark, .logo):hover { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 35px #bb82ff59; }
:where(.status-dot, .status-pill.online i, .hero-kicker i, .flow-dot) { animation: vxfx-beacon 3s ease-in-out infinite; }
:where(.toast, .vx-dialog, dialog[open], .modal, .vx-mobile-menu, .drawer) { animation: vxfx-enter .4s cubic-bezier(.2,.8,.2,1) both; }
:where(.hero, .vx-hero, .attention-card) { background-size: 200% 200%; animation: vxfx-gradient 14s ease-in-out infinite; }
:where(input, textarea, select) { transition: border-color .3s, box-shadow .3s, background .3s; }
:where(input, textarea, select):focus { box-shadow: 0 0 0 3px #a373ff1f, 0 0 25px #9149ed12; }
:where(tr, .activity-row, .activity-item, .ticket-row, .flow-line) { transition: background .25s, color .25s; }
.vxfx-text-shine { background: linear-gradient(105deg, #e0d0ff 10%, #ab78fa 40%, #edb2fc 60%, #c8a5ff 80%); background-size: 240% auto; color: transparent !important; background-clip: text; animation: vxfx-text-flow 9s ease-in-out infinite alternate; }
.vxfx-click-ring { position: fixed; z-index: 999; width: 8px; height: 8px; margin: -4px; border: 1px solid #d3a8ff; border-radius: 50%; pointer-events: none; animation: vxfx-click .65s ease-out forwards; }
[data-vx-motion=calm] *, [data-vx-motion=calm] *::before, [data-vx-motion=calm] *::after { animation-play-state: paused !important; scroll-behavior: auto !important; }
[data-vx-motion=calm] :is(.vxfx-reveal,.auth-statement,.login-story-copy,.login-story>div:nth-child(2),.vx-home-hero>div,.auth-entry-inner,.login-panel,.login-card,[data-vx-reactor],.toast,.vx-dialog,dialog[open],.modal,.vx-mobile-menu,.drawer) { animation: none !important; }
[data-vx-motion=calm] .vx-motion-card:hover { transform: none; }
[data-vx-motion=calm] .vxfx-machine { transition: none; }
[data-vx-motion=calm] .vxfx-click-ring { display: none; }
.vxfx-hidden *, .vxfx-hidden *::before, .vxfx-hidden *::after { animation-play-state: paused !important; }

@keyframes vxfx-nebula { to { transform: translate(6%, -4%) rotate(12deg) scale(1.12); } }
@keyframes vxfx-grid-drift { to { background-position: 0 70px; } }
@keyframes vxfx-spin { to { transform: rotate(360deg); } }
@keyframes vxfx-orbit-a { from { transform: rotateX(65deg) rotateY(18deg) rotateZ(0); } to { transform: rotateX(65deg) rotateY(18deg) rotateZ(360deg); } }
@keyframes vxfx-orbit-b { from { transform: rotateX(22deg) rotateY(64deg) rotateZ(0); } to { transform: rotateX(22deg) rotateY(64deg) rotateZ(360deg); } }
@keyframes vxfx-core-float { 50% { translate: 0 -7px; filter: brightness(1.2); } }
@keyframes vxfx-label-float { 50% { translate: 0 -8px; } }
@keyframes vxfx-breathe { 50% { opacity: .45; } }
@keyframes vxfx-wave { to { transform: scaleY(2.4); opacity: .5; } }
@keyframes vxfx-burst { 0% { opacity: .75; transform: scale(.3); } 100% { opacity: 0; transform: scale(3); } }
@keyframes vxfx-enter { from { opacity: 0; translate: 0 18px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes vxfx-gradient { 50% { background-position: 100% 60%; } }
@keyframes vxfx-beacon { 50% { box-shadow: 0 0 0 5px #b884ff0a, 0 0 18px #b884ff66; } }
@keyframes vxfx-text-flow { to { background-position: 100% 50%; } }
@keyframes vxfx-click { to { opacity: 0; transform: scale(8); } }
@media (max-width: 720px) {
  .vxfx-reactor { max-width: 440px; }
  .vxfx-stage { aspect-ratio: 1.3; }
  .vxfx-reactor-controls { padding-inline: 0; gap: 8px; }
  .vxfx-modes button { min-width: 44px; padding-inline: 8px; min-height: 40px; }
  .vxfx-ignite { min-height: 46px; padding-inline: 13px; }
  .vxfx-orbit-label { font-size: 8px; padding: 6px; }
  .vx-motion-toggle { right: 12px; bottom: 12px; }
  .vxfx-aurora { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-vx-motion=full]) *, html:not([data-vx-motion=full]) *::before, html:not([data-vx-motion=full]) *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
