/* Unified Frontier Motion, Spatial Depth & Pointer-Reactive Micro-Interactions */
:root {
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fx-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --fx-gold: rgba(226, 174, 17, 0.22);
  --fx-teal: rgba(99, 184, 166, 0.18);
}

#axis-spatial-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

html {
  scroll-padding-bottom: 140px;
}

button, a, input, select {
  scroll-margin-bottom: 140px;
}

.app-shell, .demo-shell {
  padding-bottom: 120px;
}

body > nav,
body > header,
body > main,
body > section,
body > footer,
.app-shell,
.demo-shell {
  position: relative;
  z-index: 1;
}

/* Pointer-tracking optical sheen + subtle 3D spring elevation */
.fx-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.28s var(--fx-ease), border-color 0.25s var(--fx-ease), box-shadow 0.3s var(--fx-ease);
  will-change: transform;
}

.fx-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(226, 174, 17, 0.14),
    rgba(99, 184, 166, 0.06) 40%,
    transparent 72%
  );
  transition: opacity 0.25s ease;
}

.fx-tilt:hover::after {
  opacity: 1;
}

.fx-magnetic {
  transition: transform 0.24s var(--fx-spring), box-shadow 0.24s var(--fx-ease);
}

/* Live interactive Flight HUD / Constellation Deck widget */
.fx-arcade-dock {
  margin: 18px auto 0;
  max-width: 1200px;
  border: 1px solid rgba(226, 174, 17, 0.24);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(10, 22, 28, 0.88), rgba(6, 14, 19, 0.94));
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.fx-arcade-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fx-arcade-head strong {
  font: 600 12px/1.3 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  color: #f4d36a;
  text-transform: uppercase;
}

.fx-arcade-head span {
  font: 400 11px/1.4 'JetBrains Mono', monospace;
  color: #8eb3ba;
}

.fx-arcade-canvas {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid rgba(99, 184, 166, 0.2);
  background: #040b0e;
  cursor: crosshair;
}

.fx-uc-ai-box {
  margin-top: 14px;
  border: 1px solid rgba(99, 184, 166, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(8, 22, 27, 0.86);
  font: 12px/1.6 'Inter', sans-serif;
  color: #e6f1f3;
}

.fx-uc-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 600 10px 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  color: #f4d36a;
  margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  #axis-spatial-canvas {
    display: none;
  }
  .fx-tilt,
  .fx-tilt::after,
  .fx-magnetic {
    transition: none !important;
    transform: none !important;
  }
}
