/* Fixed Ambient Space Station 3D Backdrop (Full-Site) */
.site-3d-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.site-3d-stage {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 280%;
  transform: translate(-50%, -50%) rotateX(14deg) rotateY(-10deg) rotateZ(-4deg);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0.88;
  filter: contrast(1.08) saturate(1.08);
  transition: opacity 0.5s ease;
}

.site-3d-track {
  display: flex;
  gap: 28px;
  width: max-content;
  will-change: transform;
}

.site-3d-track-left {
  animation: siteDriftLeft 50s linear infinite;
}

.site-3d-track-right {
  animation: siteDriftRight 60s linear infinite;
}

@keyframes siteDriftLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes siteDriftRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.site-3d-card {
  flex-shrink: 0;
  width: 520px;
  height: 310px;
  border-radius: 14px;
  overflow: hidden;
  background: #0B1120;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(16, 185, 129, 0.16);
}

.site-3d-card-header {
  height: 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.site-3d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.site-3d-card img {
  width: 100%;
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Fullscreen Radial Vignette - Keeps center reading areas clear and high-contrast */
.site-3d-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(9, 13, 22, 0.42) 0%, rgba(9, 13, 22, 0.7) 48%, rgba(9, 13, 22, 0.92) 82%, #090D16 100%),
    linear-gradient(180deg, rgba(9, 13, 22, 0.3) 0%, transparent 20%, transparent 80%, rgba(9, 13, 22, 0.5) 100%);
}

/* Ensure all foreground sections and cards float cleanly with frosted glass depth */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

main,
.hero-section,
.personas-section,
.comparison-section,
.partner-section,
.site-footer {
  position: relative;
  z-index: 2;
}

.persona-display-card,
.comparison-table-wrapper,
.partner-card {
  background: rgba(15, 22, 38, 0.86) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.hero-section {
  position: relative;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.metrics-grid .metric-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .site-3d-stage {
    opacity: 0.35;
    transform: translate(-50%, -50%) rotateX(10deg) rotateY(-5deg) rotateZ(-2deg);
  }
  .site-3d-card {
    width: 340px;
    height: 200px;
  }
}
