/* NYXO DELUXE — expressive motion, illustration and tactile feedback */
:root { --nyxo-deluxe-ease: cubic-bezier(.16, 1, .3, 1); }
html { scroll-behavior: smooth; }
/* Main workbench: a custom Minecraft → Java → JAR illustration, kept behind readable content. */
#pb_root .hero_panel {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border: 1px solid rgba(88, 214, 232, .28) !important;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .32), inset 0 1px rgba(255,255,255,.045) !important;
  background: linear-gradient(125deg, rgba(7,12,18,.84), rgba(7,12,18,.35) 52%, rgba(7,12,18,.72)),
              url('/static/custom-assets/nyxo-neon-workbench.webp') center 52% / cover no-repeat,
              linear-gradient(145deg, #111821, #080b10) !important;
  animation: nyxo-hero-arrive .86s var(--nyxo-deluxe-ease) both !important;
}
#pb_root .hero_panel::before {
  display: block !important; content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(88,214,232,.12) 47%, transparent 65%);
  transform: translateX(-120%); animation: nyxo-hero-sheen 1.6s .4s var(--nyxo-deluxe-ease) both;
}
#pb_root .hero_panel::after {
  display: block !important; content: ""; position: absolute; z-index: 0; inset-inline-start: 0; inset-block: 18% 18%; width: 2px;
  background: linear-gradient(transparent, #58d6e8, #a5f3fc, transparent); box-shadow: 0 0 22px rgba(88,214,232,.65);
  opacity: .75; animation: nyxo-edge-pulse 4.5s ease-in-out infinite;
}
#pb_root .hero_panel > * { position: relative; z-index: 1; }
#pb_root .hero_copy h2 { text-shadow: 0 4px 28px rgba(0,0,0,.38), 0 0 24px rgba(88,214,232,.10); }
#pb_root .hero_flow_step {
  position: relative; overflow: hidden;
  border-color: rgba(151, 226, 245, .23) !important;
  background: linear-gradient(145deg, rgba(15,25,36,.86), rgba(7,12,18,.88)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.16);
  animation: nyxo-step-in .64s var(--nyxo-deluxe-ease) both;
}
#pb_root .hero_flow_step:nth-of-type(1) { animation-delay: .22s; }
#pb_root .hero_flow_step:nth-of-type(3) { animation-delay: .34s; }
#pb_root .hero_flow_step:nth-of-type(5) { animation-delay: .46s; }
#pb_root .hero_flow_step::after { content: ""; position: absolute; inset-inline-start: -45%; top: 0; width: 36%; height: 100%; background: linear-gradient(90deg, transparent, rgba(88,214,232,.13), transparent); transform: skewX(-20deg); transition: inset-inline-start .55s var(--nyxo-deluxe-ease); }
#pb_root .hero_flow_step:hover { transform: translateY(-4px); border-color: rgba(88,214,232,.7) !important; box-shadow: 0 16px 36px rgba(0,0,0,.26), 0 0 24px rgba(88,214,232,.12); }
#pb_root .hero_flow_step:hover::after { inset-inline-start: 115%; }
#pb_root .hero_flow_arrow { color: #8cecf5; text-shadow: 0 0 16px rgba(88,214,232,.7); animation: nyxo-arrow-breathe 1.8s ease-in-out infinite; }
#pb_root .hero_assurance { border: 1px solid rgba(130,226,176,.22); border-radius: 999px; background: rgba(8,16,19,.72); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
/* Make work areas arrive with a calm cascade as the user scrolls. */
#pb_root .card-wrap, #pb_root .status_dashboard, #pb_root .analysis_panel, #pb_root .command_card,
.nyxo-account .panel, .nyxo-downloads .panel, .nyxo-workspace .panel,
.nyxo-admin .panel, .nyxo-admin .stat, .nyxo-admin .window { transition: transform .38s var(--nyxo-deluxe-ease), border-color .32s, box-shadow .32s !important; }
#pb_root .card-wrap:hover, .nyxo-account .panel:hover, .nyxo-downloads .panel:hover, .nyxo-workspace .panel:hover {
  transform: translateY(-3px); border-color: rgba(88,214,232,.35) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.2), 0 0 22px rgba(88,214,232,.045) !important;
}
/* Page-to-page cinematic curtain */
.nyxo-page-curtain { will-change: transform; }
.nyxo-curtain-mark { animation: nyxo-mark-float 1.5s ease-in-out infinite alternate; }
.nyxo-curtain-line { animation: nyxo-line-pass 1.2s ease-in-out infinite; }
/* Dedicated project library: real custom vector illustration, floating file chips, orbit. */
.nyxo-projects .np-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr); align-items: center;
  gap: clamp(16px, 3.1vw, 42px); min-height: 310px;
  background: radial-gradient(ellipse at 82% 50%, rgba(29,160,190,.15), transparent 45%),
              linear-gradient(135deg, rgba(20,29,40,.98), rgba(7,10,15,.96));
}
.nyxo-projects .np-hero-content { grid-column: 1; grid-row: 1; }
.nyxo-projects .np-hero-art {
  position: relative; grid-column: 2; grid-row: 1; min-width: 0; aspect-ratio: 780 / 470;
  perspective: 900px; isolation: isolate; filter: drop-shadow(0 20px 36px rgba(0,0,0,.32));
}
.nyxo-projects .np-hero-art::before { content: ""; position: absolute; z-index: -1; inset: 17%; border-radius: 50%; background: rgba(38,205,234,.19); filter: blur(46px); animation: nyxo-art-glow 4s ease-in-out infinite alternate; }
.nyxo-projects .np-hero-art > img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; animation: nyxo-art-float 5s ease-in-out infinite; transform-origin: 50% 55%; }
.nyxo-projects .np-art-orbit { position: absolute; z-index: 0; top: 50%; left: 50%; width: 77%; height: 51%; border: 1px solid rgba(140,236,245,.23); border-radius: 50%; transform: translate(-50%,-50%) rotate(-22deg); }
.nyxo-projects .np-orbit-two { width: 91%; height: 68%; border-color: rgba(140,236,245,.11); transform: translate(-50%,-50%) rotate(22deg); }
.nyxo-projects .np-art-orbit::after { content: ""; position: absolute; top: 8%; right: 15%; width: 7px; height: 7px; border-radius: 50%; background: #b4f7ff; box-shadow: 0 0 16px #58d6e8; }
.nyxo-projects .np-art-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(157,225,244,.29); border-radius: 10px; background: rgba(8,14,21,.88); color: #e6fbff; box-shadow: 0 10px 28px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.06); font: 750 .68rem/1 system-ui,sans-serif; letter-spacing: .04em; backdrop-filter: blur(9px); }
.nyxo-projects .np-art-chip .np-icon { width: 15px; height: 15px; color: #7be5f2; }
.nyxo-projects .np-chip-zip { top: 16%; left: 2%; animation: nyxo-chip-float 4.5s .1s ease-in-out infinite; }
.nyxo-projects .np-chip-java { top: 10%; right: 8%; animation: nyxo-chip-float 5s .8s ease-in-out infinite; }
.nyxo-projects .np-chip-jar { bottom: 13%; right: 5%; animation: nyxo-chip-float 4.2s .4s ease-in-out infinite; }
.nyxo-projects .np-hero::after { width: 4px; opacity: .95; box-shadow: 0 0 22px rgba(88,214,232,.38); }
.nyxo-projects .np-stat { position: relative; overflow: hidden; box-shadow: 0 14px 32px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035); }
.nyxo-projects .np-stat::after { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 9px; background: var(--accent); opacity: .38; transition: opacity .25s, box-shadow .25s; }
.nyxo-projects .np-stat:hover::after { opacity: 1; box-shadow: 0 0 12px var(--accent); }
.nyxo-projects .np-project { transform: perspective(1100px) rotateX(var(--np-tilt-y, 0deg)) rotateY(var(--np-tilt-x, 0deg)) translateY(0); transform-style: preserve-3d; }
.nyxo-projects .np-project:hover { transform: perspective(1100px) rotateX(var(--np-tilt-y, 0deg)) rotateY(var(--np-tilt-x, 0deg)) translateY(-5px); }
.nyxo-projects .np-project::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--np-x, 50%) var(--np-y, 50%), rgba(88,214,232,.105), transparent 70%); transition: opacity .25s; }
.nyxo-projects .np-project:hover::before { opacity: 1; }
.nyxo-projects .np-project > * { position: relative; z-index: 1; }
.nyxo-projects .np-project .np-file-icon { transition: transform .35s var(--nyxo-deluxe-ease), box-shadow .35s; }
.nyxo-projects .np-project:hover .np-file-icon { transform: translateY(-2px) rotate(-4deg) scale(1.045); box-shadow: 0 0 24px rgba(88,214,232,.18); }
.nyxo-projects .np-status.processing::before { animation: nyxo-status-pulse 1.5s ease-in-out infinite; }
.nyxo-projects .np-btn.primary { position: relative; overflow: hidden; box-shadow: 0 8px 26px rgba(88,214,232,.19); }
.nyxo-projects .np-btn.primary::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: -35%; width: 24%; transform: rotate(18deg); background: rgba(255,255,255,.42); filter: blur(7px); animation: nyxo-button-sheen 4.4s 1s ease-in-out infinite; }
.nyxo-projects .np-btn, .nyxo-projects .np-small-btn, .nyxo-projects .np-filter { transform-origin: center; }
.nyxo-ripple { position: absolute; z-index: 4; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; background: rgba(236,253,255,.58); box-shadow: 0 0 18px rgba(165,243,252,.45); animation: nyxo-ripple-burst .56s ease-out forwards; }
.np-btn, .np-small-btn, .np-filter, #pb_root .btn-main, #pb_root .secondary_btn, #pb_topbar .header_icon_btn, .x-nav a, .x-btn { position: relative; overflow: hidden; }
html.nyxo-motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0,24px,0) scale(.99); transition: opacity .7s var(--nyxo-deluxe-ease), transform .8s var(--nyxo-deluxe-ease); transition-delay: var(--reveal-delay,0ms); will-change: opacity,transform; }
html.nyxo-motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.x-nav a, .x-btn, .x-more a { transition: transform .22s var(--nyxo-deluxe-ease), border-color .22s, box-shadow .22s; }
.x-nav a:hover, .x-btn:hover, .x-more a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(88,214,232,.09); }
@keyframes nyxo-hero-arrive { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes nyxo-hero-sheen { 0% { transform: translateX(-120%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
@keyframes nyxo-edge-pulse { 50% { opacity: .35; filter: brightness(.7); } }
@keyframes nyxo-step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nyxo-arrow-breathe { 50% { opacity: .55; transform: translateX(2px); } }
@keyframes nyxo-art-float { 0%,100% { transform: translateY(0) rotateX(0deg); } 50% { transform: translateY(-7px) rotateX(1deg); } }
@keyframes nyxo-art-glow { to { opacity: .56; transform: scale(1.12); } }
@keyframes nyxo-chip-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes nyxo-status-pulse { 50% { box-shadow: 0 0 0 5px rgba(245,201,121,.1); opacity: .65; } }
@keyframes nyxo-button-sheen { 0%,55% { left: -35%; opacity: 0; } 65% { opacity: 1; } 82%,100% { left: 125%; opacity: 0; } }
@keyframes nyxo-mark-float { to { transform: translateY(-3px); filter: brightness(1.18); } }
@keyframes nyxo-line-pass { 0%,100% { opacity: .24; transform: scaleX(.55); } 50% { opacity: .78; transform: scaleX(1); } }
@keyframes nyxo-ripple-burst { to { width: 180px; height: 180px; margin: -90px 0 0 -90px; opacity: 0; } }
@media (min-width: 1100px) {
  #pb_root .hero_panel { min-height: 17rem; }
}
@media (max-width: 920px) {
  .nyxo-projects .np-hero { grid-template-columns: minmax(0,1fr) minmax(240px,.78fr); gap: 12px; min-height: 270px; }
}
@media (max-width: 680px) {
  #pb_root .hero_panel { background-position: 40% center !important; }
  #pb_root .hero_panel::before { background: linear-gradient(180deg, rgba(7,12,18,.28), rgba(7,12,18,.62)); }
  #pb_root .hero_flow_step { box-shadow: inset 0 1px rgba(255,255,255,.055), 0 7px 18px rgba(0,0,0,.22); }
  .nyxo-projects .np-hero { grid-template-columns: minmax(0,1fr); gap: 0; padding: 20px 17px 14px; }
  .nyxo-projects .np-hero-content { grid-column: 1; grid-row: 1; }
  .nyxo-projects .np-hero-art { grid-column: 1; grid-row: 2; width: min(100%, 410px); justify-self: center; margin: 5px auto 0; }
  .nyxo-projects .np-chip-java { top: 7%; right: 4%; }
  .nyxo-projects .np-chip-zip { top: 13%; left: 0; }
  .nyxo-projects .np-chip-jar { bottom: 10%; right: 4%; }
}
@media (max-width: 430px) {
  #pb_root .hero_panel { gap: .7rem !important; }
  #pb_root .hero_flow { gap: .34rem; }
  #pb_root .hero_flow_step { min-height: 5.8rem; padding: .62rem .38rem; }
  .nyxo-projects .np-hero h1 { max-width: 15ch; }
  .nyxo-projects .np-art-chip { gap: 5px; padding: 6px 7px; font-size: .58rem; }
  .nyxo-projects .np-art-chip .np-icon { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #pb_root .hero_panel, #pb_root .hero_panel::before, #pb_root .hero_panel::after,
  #pb_root .hero_flow_step, #pb_root .hero_flow_arrow,
  .nyxo-projects .np-hero-art > img, .nyxo-projects .np-hero-art::before,
  .nyxo-projects .np-art-orbit, .nyxo-projects .np-art-chip,
  .nyxo-projects .np-btn.primary::after, .nyxo-page-curtain,
  .nyxo-curtain-mark, .nyxo-curtain-line, .nyxo-ripple { animation: none !important; }
  .nyxo-projects .np-project, .nyxo-projects .np-project:hover { transform: none !important; }
  html.nyxo-motion-ready [data-reveal]:not(.is-visible) { opacity: 1 !important; transform: none !important; }
}
