/*
FRETNEX STUDIO MOTION V9 — Premium Finish.
Only progressive enhancements above the V7 structure and V8 orange/navy palette.
The five universe animations, interactive cockpit, data examples and motion JS are intact.
*/
:root{
  --v9-brand:#ff5a00;
  --v9-ink:#0b1433;
  --v9-peach:#fff0e7;
  --v9-cream:#fffaf7;
  --v9-focus:#ff5a00;
}
/* A visible, unobtrusive reading cue. JS sets --v9-progress, no layout reflow. */
.v9-scroll-progress{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:6000;
  height:3px;
  border-radius:0 2px 2px 0;
  background:linear-gradient(90deg,#ff9d55,#ff5a00 65%,#e53f00);
  box-shadow:0 0 10px #ff5a0050;
  transform:scaleX(var(--v9-progress,0));
  transform-origin:left center;
  pointer-events:none;
  will-change:transform;
}
.v9-back-to-top{
  position:fixed;
  bottom:26px;
  right:27px;
  z-index:250;
  width:45px;
  height:45px;
  border:1px solid #ffffffc9;
  border-radius:15px;
  background:linear-gradient(145deg,#ff8740,#ff5a00);
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 9px 26px #d94a0048,0 1px 1px #ffffff55 inset;
  cursor:pointer;
  font:800 20px/1 system-ui,sans-serif;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(9px) scale(.94);
  transition:transform .25s ease,opacity .23s ease,visibility .23s;
}
.v9-back-to-top.is-visible{
  visibility:visible;
  pointer-events:auto;
  opacity:1;
  transform:translateY(0) scale(1);
}
.v9-back-to-top:hover{
  box-shadow:0 14px 34px #dc480058,0 1px 1px #ffffff55 inset;
  transform:translateY(-3px);
}
.v9-back-to-top svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Elegant, high-legibility visual finish — no altered component positions. */
.studio-v7 .nav-shell{
  border:1px solid #ffffffeb;
  box-shadow:0 14px 47px #13244312,0 3px 14px #ff5a0008;
  backdrop-filter:blur(20px) saturate(1.13);
  -webkit-backdrop-filter:blur(20px) saturate(1.13);
}
.studio-v7 .nav-shell .primary-nav a{
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}
.studio-v7 .nav-shell .primary-nav a:hover{
  color:#d84e03;
}
.studio-v7 .v5-feature-pill{
  border:1px solid #fff8f0;
  box-shadow:0 11px 32px #ff6e081a,0 1px 1px #ff5a000d;
}
.studio-v7 .v5-hero .v5-float{
  border:1px solid #fff9f5;
  box-shadow:0 25px 78px #d6480124,0 0 0 1px #ffe9d6;
}
.studio-v7 .v5-hero-center>p{
  color:#35425a;
  text-wrap:pretty;
}
.studio-v7 .v5-hero h1{
  text-wrap:balance;
}
.studio-v7 .v5-cta-primary,
.studio-v7 .pill-primary.nav-cta{
  box-shadow:0 13px 35px #ff5a0047,0 1px 1px #ffffff45 inset;
}
.studio-v7 .v5-hero-actions .v5-cta-secondary{
  border-color:#fbede2;
  box-shadow:0 9px 31px #15203b11;
}
.studio-v7 .v7-odyssey-sticky .v7-odyssey-steps button{
  min-height:40px;
}
.studio-v7 .v7-stage-card{
  border-color:#fff4e9;
  box-shadow:0 13px 40px #050d2352,0 1px 1px #ffffffa3 inset;
}
.studio-v7 .v6-command-shell{
  box-shadow:0 31px 94px #02092247,0 2px 2px #ffffff09 inset;
}
.studio-v7 .v6-workspace-title p,
.studio-v7 .v6-command-crumb,
.studio-v7 .v6-workspace-metrics small{
  color:#4e5870;
}
/* Dashboard labels keep their contrast, including during view transition. */
.app-v7 .app-stat,
.app-v7 .app-panel{
  border-color:#f2e2d6;
  box-shadow:0 10px 34px #1b29450b;
}
.app-v7 .app-stat:focus-within,
.app-v7 .app-panel:focus-within{
  box-shadow:0 0 0 2px #ff5a002b,0 10px 34px #1b29450b;
}
.app-v7 .page-eyebrow{
  color:#ce4b08;
}
.app-v7 .app-topbar{
  border-bottom-color:#f4e5dc;
}
.app-v7 .app-nav button,
.app-v7 .app-sidebar-bottom a{
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.app-v7 .app-nav button:focus-visible{
  outline:3px solid #ffae76;
  outline-offset:-2px;
}
/* Preserve V7 content and movement but remove excessive blur from stat entrances. */
.app-v7 .app-view.active{
  animation-duration:.42s;
}
.app-v7 .app-view.active .app-stat{
  animation-duration:.42s;
}
@keyframes v9-card-sharp{
  from{opacity:.82;transform:translateY(10px) scale(.99)}
  to{opacity:1;transform:none}
}
.app-v7 .app-view.active .app-stat{
  animation-name:v9-card-sharp;
}
/* Clarity and discoverability for keyboard-only use. */
body.studio-v7 :is(a,button,input,select,textarea,[role="tab"]):focus-visible,
body.app-v7 :is(a,button,input,select,textarea,[role="tab"]):focus-visible{
  outline:3px solid var(--v9-focus);
  outline-offset:3px;
}
body.studio-v7 .v7-odyssey-steps button:focus-visible{
  outline:3px solid #ffbf86;
  outline-offset:3px;
}
body.studio-v7 .v5-intro-skip:focus-visible,
body.studio-v7 #v7-replay-skip:focus-visible{
  outline-color:#ffb788;
}
body.app-v7 :is(input,select,textarea)::placeholder{
  color:#626b7e;
}
@media(max-width:820px){
  .studio-v7 .menu-button,.app-v7 #app-menu-button{
    min-width:44px;
    min-height:44px;
    touch-action:manipulation;
  }
  .studio-v7 .nav-cta,.studio-v7 .v5-cta-primary,.studio-v7 .v5-cta-secondary{
    touch-action:manipulation;
  }
  .v9-back-to-top{
    width:44px;
    height:44px;
    right:12px;
    bottom:calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius:14px;
  }
}
@media(max-width:540px){
  /* On mobile the kinetic word reveal stays, but text never appears blurry. */
  .studio-v7.v5-booting .v7-kinetic-headline .v7-word{
    filter:none;
    transform:translate3d(0,19px,0);
  }
  .studio-v7.v5-ready .v7-kinetic-headline .v7-word{
    filter:none;
    transition:transform .55s cubic-bezier(.2,.75,.18,1),opacity .5s ease;
    transition-delay:calc(.025s + var(--v7-i) * .085s);
  }
  .app-v7 .app-stat,
  .app-v7 .app-panel{
    box-shadow:0 7px 28px #1b294508;
  }
}
@media(prefers-reduced-motion:reduce){
  .v9-back-to-top{transition:none!important;transform:none!important}
  .v9-scroll-progress{transition:none!important;will-change:auto}
  .app-v7 .app-stat,.app-v7 .app-panel{animation:none!important}
  .studio-v7.v5-booting .v7-kinetic-headline .v7-word,
  .studio-v7.v5-ready .v7-kinetic-headline .v7-word{filter:none!important;transition:none!important}
}
