/* Homepage hero: a product stage. One browser and two phones, real screens, no annotations. */

.hv-stage{position:relative;aspect-ratio:1/0.92;perspective:1800px;--rx:3deg;--ry:-8deg}
.stage{
  position:absolute;inset:-2% -6% 0 0;
  transform:rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin:60% 50%;
  transition:transform .9s var(--ease);
  /* devices rise from below and fade into the hero, so only the strong top of each screen shows */
  -webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 80%,transparent 100%);
}
.st{position:absolute;margin:0}
.st img{display:block;width:100%;height:auto}

/* Browser: the Traveronto booking platform */
.st-web{top:4%;right:0;width:90%;border-radius:12px;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 40px 80px -34px rgba(0,0,0,.85),0 18px 36px -24px rgba(0,0,0,.6)}
.st-web .browser-bar{height:30px;position:relative}
.st-web .browser-bar span{position:absolute;left:50%;transform:translateX(-50%);margin:0;padding:3px 18px;border-radius:6px;background:rgba(255,255,255,.06);color:#8A93A0;font-size:11px}

/* Phones: thin metal edge, black bezel, the app's own status bar */
.st-phone{
  padding:2.4%;border-radius:15% / 7.4%;
  background:linear-gradient(160deg,#2a2f37,#0b0e13 42%,#05070a);
  box-shadow:0 0 0 1px rgba(255,255,255,.14) inset,0 0 0 1px rgba(0,0,0,.6),
             0 46px 70px -30px rgba(0,0,0,.9),0 16px 30px -18px rgba(0,0,0,.7);
}
.st-phone img{border-radius:12.6% / 5.9%}
.st-fb{left:0;top:27%;width:33%;z-index:2}
.st-nd{right:5%;top:43%;width:31%;z-index:3}

/* Entrance: browser first, then each phone rises (600ms, staggered) */
@keyframes stIn{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.st-web{animation:stIn .6s var(--ease) .15s both}
.st-fb{animation:stIn .6s var(--ease) .35s both}
.st-nd{animation:stIn .6s var(--ease) .5s both}

@media (max-width:1100px) and (min-width:961px){
  .hv-stage{aspect-ratio:1/1.02}
  .stage{inset:-2% 0 0 0}
}
@media (max-width:960px){
  .hv-stage{max-width:640px;aspect-ratio:1/0.86}
  .stage{inset:0}
}
@media (max-width:640px){
  .hv-stage{aspect-ratio:1/1.02;--rx:0deg;--ry:0deg;perspective:none}
  .stage{inset:0}
  .st-web{top:0;width:96%;right:-2%}
  .st-web .browser-bar{height:20px}
  .st-fb{top:30%;left:0;width:38%}
  .st-nd{top:40%;right:4%;width:36%}
}
@media (prefers-reduced-motion:reduce){
  .stage{transition:none}
  .st-web,.st-fb,.st-nd{animation:none}
}
