/* Hero preview showcase | prefix: jvfr | used at the end of .jvh in index.html */

.jvfr {
   position: relative;
   max-width: 900px;
   margin: 64px auto 0;
   padding: 0 8px;
   perspective: 1600px;
}

/* ambient glow behind the device */
.jvfr::before {
   content: "";
   position: absolute;
   inset: 8% 4% -8%;
   z-index: -1;
   border-radius: 50%;
   background: radial-gradient(closest-side, rgba(109, 40, 217, .45), rgba(37, 99, 235, .25) 55%, transparent 75%);
   filter: blur(50px);
}

/* spinning gradient ring */
.jvfr__ring {
   position: relative;
   padding: 2px;
   border-radius: 26px;
   background: conic-gradient(from var(--jvfr-a, 0deg), #6d28d9, #2563eb, #22d3ee, #ec4899, #6d28d9);
   box-shadow: 0 50px 100px -20px rgba(49, 46, 129, .45), 0 20px 40px -10px rgba(15, 19, 48, .25);
   transform: rotateX(4deg);
   transform-origin: center bottom;
   transition: transform .5s cubic-bezier(.2, .8, .2, 1);
   animation: jvfr-spin 8s linear infinite;
}

.jvfr:hover .jvfr__ring {
   transform: rotateX(0) translateY(-6px);
}

@property --jvfr-a {
   syntax: "<angle>";
   inherits: false;
   initial-value: 0deg;
}

@keyframes jvfr-spin {
   to {
      --jvfr-a: 360deg;
   }
}

.jvfr__device {
   overflow: hidden;
   border-radius: 24px;
   background: #0b0e24;
}

/* top bar */
.jvfr__bar {
   display: flex;
   align-items: center;
   gap: 16px;
   padding: 12px 18px;
   background: linear-gradient(#161a3a, #10132c);
   border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.jvfr__dots {
   display: flex;
   gap: 7px;
}

.jvfr__dots i {
   width: 11px;
   height: 11px;
   border-radius: 50%;
   background: #ff5f57;
}

.jvfr__dots i:nth-child(2) {
   background: #febc2e;
}

.jvfr__dots i:nth-child(3) {
   background: #28c840;
}

.jvfr__url {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   max-width: 360px;
   margin: 0 auto;
   padding: 6px 14px;
   border-radius: 999px;
   background: rgba(255, 255, 255, .07);
   font-family: 'Inter', sans-serif;
   font-size: 12.5px;
   font-weight: 500;
   color: #aab0d6;
}

.jvfr__url svg {
   width: 12px;
   height: 12px;
   color: #4ade80;
}

.jvfr__live {
   display: flex;
   align-items: center;
   gap: 7px;
   font-family: 'Inter', sans-serif;
   font-size: 11px;
   font-weight: 800;
   letter-spacing: .14em;
   color: #fff;
}

.jvfr__live::before {
   content: "";
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #ef4444;
   box-shadow: 0 0 0 0 rgba(239, 68, 68, .7);
   animation: jvfr-pulse 1.6s infinite;
}

@keyframes jvfr-pulse {
   70% {
      box-shadow: 0 0 0 9px rgba(239, 68, 68, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
   }
}

/* screen */
.jvfr__screen {
   position: relative;
   line-height: 0;
}

.jvfr__screen img {
   display: block;
   width: 100%;
   height: auto;
}

/* glass reflection */
.jvfr__screen::after {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 38%);
}

/* floating glass chips */
.jvfr__chip {
   position: absolute;
   z-index: 2;
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 16px 10px 10px;
   border: 1px solid rgba(255, 255, 255, .7);
   border-radius: 16px;
   background: rgba(255, 255, 255, .82);
   -webkit-backdrop-filter: blur(14px);
   backdrop-filter: blur(14px);
   box-shadow: 0 18px 40px rgba(49, 46, 129, .25);
   font-family: 'Inter', sans-serif;
   font-size: 13px;
   font-weight: 700;
   line-height: 1.25;
   color: #0f1330;
   text-align: left;
   animation: jvfr-float 5s ease-in-out infinite;
}

.jvfr__chip small {
   display: block;
   font-size: 11px;
   font-weight: 500;
   color: #6b7091;
}

.jvfr__chip-ic {
   display: grid;
   place-items: center;
   width: 34px;
   height: 34px;
   border-radius: 11px;
   background: linear-gradient(135deg, #6d28d9, #2563eb);
   font-size: 16px;
   color: #fff;
}

.jvfr__chip--l {
   left: -28px;
   top: 34%;
}

.jvfr__chip--r {
   right: -28px;
   bottom: 16%;
   animation-delay: -2.5s;
}

.jvfr__chip--r .jvfr__chip-ic {
   background: linear-gradient(135deg, #db2777, #9333ea);
}

@keyframes jvfr-float {

   0%,
   100% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-10px);
   }
}

@media (max-width: 991px) {
   .jvfr__chip--l {
      left: -6px;
   }

   .jvfr__chip--r {
      right: -6px;
   }
}

@media (max-width: 575px) {
   .jvfr {
      margin-top: 44px;
      padding: 0;
   }

   .jvfr__ring {
      border-radius: 18px;
      transform: none;
   }

   .jvfr__device {
      border-radius: 16px;
   }

   .jvfr__url {
      display: none;
   }

   .jvfr__bar {
      justify-content: space-between;
   }

   .jvfr__chip {
      padding: 7px 10px 7px 7px;
      font-size: 11px;
   }

   .jvfr__chip small {
      display: none;
   }

   .jvfr__chip-ic {
      width: 26px;
      height: 26px;
      font-size: 13px;
   }

   .jvfr__chip--l {
      left: 4px;
      top: 22%;
   }

   .jvfr__chip--r {
      right: 4px;
      bottom: 8%;
   }
}

@media (prefers-reduced-motion: reduce) {

   .jvfr__ring,
   .jvfr__chip,
   .jvfr__live::before {
      animation: none;
   }
}
