/* CLOUD+ hero preview — scoped, no backend interaction or animation loop. */
.hp {
  --hp-ease: cubic-bezier(.23, 1, .32, 1);
  --hp-metal: #a6a6a1;
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  margin: 40px auto 8px;
  order: 2;
  scroll-margin-top: 90px;
}
.hp-scene {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 38%;
  padding: 8px 22px 18px;
}
.hp-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 16%; right: 10%; bottom: 3px; height: 22px;
  background: rgba(0,0,0,.28);
  border-radius: 50%;
  filter: blur(14px);
}
.hp-device {
  position: relative;
  width: 100%;
  aspect-ratio: 887 / 1774;
  transform: rotateY(-13deg) rotateX(4deg) rotateZ(3deg);
  transform-style: preserve-3d;
}
/* Thin rear rail adds physical depth; photographic front retains the fine detail. */
.hp-device::before {
  content: "";
  position: absolute;
  inset: 1.95% 3.7% 2.9% 4.7%;
  border-radius: 18% / 8.4%;
  background: linear-gradient(90deg, #222422 1%, #60635e 65%, #d8d8cf 96%, #60605a);
  transform: translateZ(-8px) translateX(5px);
  box-shadow: 9px 8px 18px rgba(0,0,0,.22), 24px 32px 52px rgba(0,0,0,.2);
}
.hp .hp-frame {
  display: block;
  position: relative;
  width: 100%; height: auto;
  pointer-events: none;
  user-select: none;
}
.hp-display {
  position: absolute;
  inset: 3.5% 7% 3.65% 7.85%;
  border-radius: 17% / 7.9%;
  overflow: hidden;
  isolation: isolate;
  background: #070d16;
  transform: translateZ(.2px);
  /* WebKit rounded clipping for independently composited screen crossfades. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.hp-panel {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--hp-ease), visibility 0s linear 200ms;
  pointer-events: none;
}
.hp-panel img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #070d16;
  user-select: none;
  -webkit-user-drag: none;
}
.hp[data-screen="discover"] [data-phone-panel="discover"],
.hp[data-screen="sign"] [data-phone-panel="sign"] {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.hp-island {
  position: absolute;
  z-index: 2;
  left: 37%; top: 1.45%; width: 26%; height: 2.95%;
  background: #030405;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.055);
  pointer-events: none;
}
.hp-island::after {
  content: "";
  position: absolute;
  right: 8%; top: 30%; width: 9%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, #13243a, #03080e 65%);
}
.hp-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.03), transparent 35%, transparent 70%, rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: inherit;
  pointer-events: none;
}
.hp-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 300px);
  margin: 6px auto 0;
  padding: 6px;
  border: 1px solid var(--border-3, rgba(255,255,255,.16));
  border-radius: 999px;
  background: var(--surface-1, rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.12);
}
.hp .hp-tab {
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-1, #fff);
  touch-action: manipulation;
  transition: background-color 180ms var(--hp-ease), color 180ms var(--hp-ease), transform 140ms var(--hp-ease), box-shadow 180ms var(--hp-ease);
}
.hp-tab svg { width: 17px; height: 17px; flex: none; }
.hp .hp-tab[aria-selected="true"] {
  color: #251b04;
  background: var(--brand-gold, #efb51f);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 3px 12px rgba(197,136,0,.18), inset 0 1px 0 rgba(255,255,255,.3);
}
.hp .hp-tab:focus-visible { outline: 3px solid var(--text-1, #fff); outline-offset: 3px; }
.hp .hp-tab:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .hp .hp-tab:not([aria-selected="true"]):hover { background: var(--surface-3, rgba(255,255,255,.08)); }
}
.hp[data-input="keyboard"] .hp-panel,
.hp[data-input="keyboard"] .hp-tab { transition: none; }
/* The screenshot remains visible if JS fails; unavailable controls are not advertised. */
.hp:not([data-phone-ready]) .hp-tabs { visibility: hidden; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(32px, 4vw, 64px); }
  .hero-content { min-width: 0; }
  .hp { margin: 0; }
  .hero { padding-top: 100px; padding-bottom: 84px; }
}
@media (max-width: 520px) {
  .hp { width: min(100%, 320px); margin-top: 32px; }
  .hp-scene { padding: 4px 15px 14px; }
  .hp-device { transform: rotateY(-8deg) rotateX(2deg) rotateZ(2deg); }
  .hp-tabs { width: min(100%, 280px); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-panel, .hp .hp-tab { transition: none; }
  .hp .hp-tab:active { transform: none; }
}
@media print {
  .hp-tabs { display: none; }
  .hp-device { transform: none; }
}
