/* ==========================================================================
   VANTRIX — dashboard.css
   The pre-launch device mockup in the hero. It shows a locked "Coming
   Soon" state — deliberately NOT a fake dashboard with invented data.

   01. Device frame
   02. Screen contents
   03. Responsive
   04. Reduced motion
   ========================================================================== */

/* ==========================================================================
   01. Device frame
   ========================================================================== */

.device {
  position: relative;
  z-index: 2;
  width: min(330px, 76vw);
  padding: 11px;
  border-radius: 54px;
  /* Brushed-metal edge: light catches the top-left, falls off, catches
     again bottom-right. */
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.15)
  );
  box-shadow:
    0 50px 110px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease);
  animation: device-float 7s var(--ease-io) infinite;
}

.device__glow {
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.62), transparent 68%);
  filter: blur(46px);
}

.device__frame {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, #131019, #0a0810);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.device__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 5;
  width: 92px;
  height: 26px;
  border-radius: var(--r-full);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device__screen {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: clamp(430px, 54vw, 550px);
  padding: 26px 22px;
  border-radius: 36px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(124, 58, 237, 0.26), transparent 60%),
    linear-gradient(170deg, #100d18 0%, #08060e 60%, #0b0813 100%);
}

.device__screen-glow {
  position: absolute;
  left: 50%;
  bottom: -28%;
  translate: -50% 0;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.36), transparent 62%);
  filter: blur(30px);
  animation: breathe 6s var(--ease-io) infinite;
}

/* Glass shine sweeping across the screen */
.device__shine {
  position: absolute;
  inset: -40% -60%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 47%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 53%,
    transparent 62%
  );
  transform: translateX(-32%);
  animation: shine 7.5s var(--ease-io) infinite;
}

/* ==========================================================================
   02. Screen contents
   ========================================================================== */

.device__status-bar {
  position: absolute;
  top: 24px;
  left: 22px;
  right: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.device__status-bar strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.device__status-icons {
  display: inline-flex;
  gap: 5px;
}

.device__status-icons .material-symbols-rounded {
  font-size: var(--icon-2xs);
}

.device__body {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.device__lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--accent-4);
  border: 1px solid var(--line-violet);
  background: radial-gradient(circle at 50% 34%, rgba(168, 85, 247, 0.38), rgba(124, 58, 237, 0.1) 70%);
  box-shadow:
    0 0 34px -6px var(--accent-a60),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.device__lock .material-symbols-rounded {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 40;
  filter: drop-shadow(0 3px 12px var(--accent-a60));
}

/* Expanding halo — two rings, offset in time. */
.device__lock-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.5);
  animation: lock-halo 3.2s var(--ease-io) infinite;
}

.device__lock-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.34);
  animation: lock-halo 3.2s var(--ease-io) infinite 1.1s;
}

.device__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}

.device__text {
  max-width: 26ch;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
}

@keyframes device-float {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes shine {
  0%,
  62% { transform: translateX(-38%); }
  100% { transform: translateX(38%); }
}

@keyframes lock-halo {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* ==========================================================================
   03. Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .device {
    width: min(292px, 82vw);
    padding: 9px;
    border-radius: 46px;
  }

  .device__frame {
    border-radius: 38px;
    padding: 8px;
  }

  .device__screen {
    min-height: 410px;
    border-radius: 31px;
  }
}

/* ==========================================================================
   04. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .device,
  .device__shine,
  .device__screen-glow {
    animation: none;
  }

  .device {
    transform: none;
  }

  .device__lock-ring {
    display: none;
  }
}
