* {
  box-sizing: border-box;
}

body {
  background-color: #050509;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fullscreen Interactive Three.js 3D Canvas */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Rich Indigo / Violet / Sky Color Grading Aura */
.color-grading-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(950px circle at 50% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(750px circle at 85% 35%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(750px circle at 15% 75%, rgba(56, 189, 248, 0.12), transparent 55%);
}

/* Dynamic Mouse Spotlight Following Cursor */
#cursor-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    520px circle at var(--mx, 50vw) var(--my, 50vh),
    rgba(129, 140, 248, 0.09),
    transparent 70%
  );
}

/* Frosted Spatial Glass Surface */
.glass-panel {
  background: linear-gradient(160deg, rgba(24, 26, 42, 0.74) 0%, rgba(11, 12, 22, 0.9) 100%);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 3D Pop-Up Tilt Card with Specular Glare */
.tilt-card {
  position: relative;
  background: linear-gradient(155deg, rgba(26, 28, 46, 0.72) 0%, rgba(12, 13, 24, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.32s ease;
  will-change: transform;
}

.tilt-card:hover {
  border-color: rgba(129, 140, 248, 0.65);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 40px -8px rgba(99, 102, 241, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  z-index: 25;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.15),
    rgba(129, 140, 248, 0.1) 40%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tilt-card:hover .card-glare {
  opacity: 1;
}

/* Inner Content Z-Axis Pop */
.pop-layer {
  transform: translateZ(0px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-card:hover .pop-layer {
  transform: translateZ(28px);
}

/* Interactive Studio Selector Tab */
.studio-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-tab.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.24) 0%, rgba(168, 85, 247, 0.12) 100%);
  border-color: rgba(129, 140, 248, 0.7);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.45);
}

/* Floating Orbit Animation for Hero Badges */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-badge-1 { animation: floatSlow 5s ease-in-out infinite; }
.float-badge-2 { animation: floatSlow 6.5s ease-in-out 1s infinite; }
.float-badge-3 { animation: floatSlow 5.8s ease-in-out 0.5s infinite; }

/* Floating Bottom VisionOS Spatial Dock */
.spatial-dock {
  background: rgba(14, 15, 26, 0.82);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(99, 102, 241, 0.22);
}

.dock-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item:hover {
  transform: translateY(-7px) scale(1.08);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050509; }
::-webkit-scrollbar-thumb { background: #1e1b4b; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }