/* Homepage Neural Fabric animation. Layout uses shared tokens.
   Logical scene is 440 × 430 and scales uniformly. */

#qh-restored{
  background:var(--bg);
  color:#eff1f7;
  font-family:Arial,Helvetica,sans-serif;
  color-scheme:dark;
}

#qh-restored *{
  box-sizing:border-box;
}

#qh-restored .hero{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--hero-column-gap);
  align-items:start;
  padding-top:calc(var(--header-min-height) + var(--hero-pad-top));
  padding-bottom:var(--hero-pad-bottom);
  min-height:0;
  height:auto;
}

#qh-restored .copy{
  min-width:0;
  width:100%;
  max-width:none;
  align-self:start;
  text-align:left;
}

#qh-restored h1{
  font-size:clamp(calc(36px * 1.20), calc(4.3vw * 1.20), calc(49px * 1.20));
  line-height:1.18;
  font-weight:700;
  letter-spacing:-2px;
  margin:0 0 var(--hero-headline-gap);
  max-width:none;
  color:#eff1f7;
  -webkit-text-fill-color:#eff1f7;
}

#qh-restored h1 span{
  font-weight:700;
  color:#62cbd8;
  -webkit-text-fill-color:#62cbd8;
}

#qh-restored .copy p.qh-eyebrow{
  margin:0 0 18px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:3px;
  line-height:1.4;
  text-transform:none;
  color:#4a9eff;
  -webkit-text-fill-color:#4a9eff;
  max-width:none;
}

#qh-restored .copy p{
  font-size:calc(15px * 1.35);
  line-height:1.8;
  color:#FFFFFF;
  -webkit-text-fill-color:#FFFFFF;
  opacity:1;
  filter:none;
  max-width:var(--hero-desc-max);
  margin:0;
}

#qh-restored .actions{
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:flex-start;
  gap:var(--hero-btn-gap);
  margin-top:var(--hero-actions-gap);
  width:auto;
}

#qh-restored .actions .btn-primary,
#qh-restored .actions .btn-secondary{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:var(--hero-btn-width);
  max-width:100%;
  height:var(--hero-btn-height);
  padding:0 16px;
  font-size:calc(14px * 1.20);
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}


#qh-restored .visual{
  min-width:0;
  display:flex;
  justify-content:center;
  align-self:start;
}

#qh-restored .scene{
  position:relative;
  isolation:isolate;
  width:100%;
  max-width:var(--hero-scene-max-stacked);
  aspect-ratio:440 / 430;
  height:auto;
  overflow:visible;
}

#qh-restored .scene-lift{
  position:absolute;
  inset:0;
}

#qh-restored .scene-lift:before{
  content:'';
  position:absolute;
  inset:30px -30px;
  background:radial-gradient(ellipse,#15334965,transparent 65%);
  opacity:var(--glow,0);
  transition:opacity 2s;
  z-index:-1;
}

#qh-restored .scene-lift canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  background:transparent;
}

#qh-restored .scene-stage{
  position:absolute;
  top:0;
  left:0;
  width:calc(var(--hero-scene-logical-w) * 1px);
  height:calc(var(--hero-scene-logical-h) * 1px);
  transform:scale(var(--scene-scale, 1));
  transform-origin:0 0;
  pointer-events:none;
}

#qh-restored .brand{
  position:absolute;
  left:0;
  top:0;
  width:43px;
  height:43px;
  margin:-21.5px 0 0 -21.5px;
  border-radius:14px;
  border:1px solid #344153;
  background:linear-gradient(140deg,#202837,#111721);
  display:grid;
  place-items:center;
  box-shadow:0 10px 24px #0005,inset 0 1px 0 #ffffff0b;
  will-change:transform,opacity;
  opacity:0;
  transition:border-color .6s,box-shadow .6s;
}

#qh-restored .brand img{
  width:25px;
  height:25px;
  object-fit:contain;
}

#qh-restored .core{
  position:absolute;
  top:0;
  left:0;
  width:180px;
  height:180px;
  margin:0;
  display:grid;
  place-items:center;
  opacity:0;
  will-change:transform,opacity;
  z-index:9;
  pointer-events:none;
  transition:none;
}

#qh-restored .core svg{
  width:100%;
  height:100%;
  overflow:visible;
}

#qh-restored .trace-contour{
  fill:none;
  stroke:#a1f7ff;
  stroke-width:3;
  stroke-linecap:round;
  filter:drop-shadow(0 0 5px #53ddec);
}

#qh-restored .signature{
  position:absolute;
  top:0;
  left:0;
  width:max-content;
  max-width:none;
  margin:0;
  transform:translateX(-50%);
  text-align:center;
  font:400 20px Arial,Helvetica,sans-serif;
  letter-spacing:1px;
  color:#d8e9ed;
  pointer-events:none;
  opacity:0;
  z-index:31;
  white-space:nowrap;
}

@media (min-width:1200px){
  #qh-restored .hero{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:var(--hero-column-gap);
    align-items:start;
  }

  #qh-restored .scene{
    max-width:none;
    width:100%;
  }

  #qh-restored .scene-lift{
    transform:translateY(-5%);
  }
}

@media (max-width:767px){
  #qh-restored .hero{
    gap:var(--space-5);
  }
}

@media (prefers-reduced-motion:reduce){
  #qh-restored .scene-lift:before{
    transition:none;
  }
}
