/* Micro-interactions — performant (transform/opacity only) */

@keyframes ui-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ui-glow-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 200, 154, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(126, 200, 154, 0); }
}

@keyframes ui-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes ui-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ui-sheet-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ui-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ui-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.92); }
}

@keyframes ui-aurora-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ui-aurora-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ui-view-crossfade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ui-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state-card {
  animation: ui-view-crossfade 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes ui-compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ui-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

@keyframes ui-grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

@keyframes ui-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}

.command-grid .nav-card {
  animation: ui-view-crossfade 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.command-grid .nav-card:nth-child(1) { animation-delay: 0.04s; }
.command-grid .nav-card:nth-child(2) { animation-delay: 0.1s; }
.command-grid .nav-card:nth-child(3) { animation-delay: 0.16s; }
.command-grid .nav-card:nth-child(4) { animation-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .command-grid .nav-card { animation: none; }
  .splash-compass { animation: none !important; }
}

.brand-mark {
  animation: ui-float 4s ease-in-out infinite, ui-glow-ring 3s ease-in-out infinite;
}

.mission-hero {
  animation: ui-scale-in 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.nav-card {
  transition: transform var(--duration-fast) cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow var(--duration-fast) ease,
    border-color 0.2s;
}

.nav-card:active {
  transform: scale(0.98);
}

.btn-primary {
  background-size: 200% auto;
  transition: background-position 0.4s ease, transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.btn-primary:hover {
  background-position: right center;
}

.dock-btn.primary {
  animation: ui-glow-ring 4s ease-in-out infinite;
}

.splash-cta {
  position: relative;
  overflow: hidden;
}

.splash-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: ui-shimmer 3.5s ease-in-out infinite;
}

.toast-show {
  animation: ui-scale-in 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.sheet-enter {
  animation: ui-sheet-up var(--duration-normal) cubic-bezier(0.32, 0.72, 0, 1) both;
}

.status-chip::before {
  animation: ui-status-pulse 2.4s ease-in-out infinite;
}

#mobile-dock {
  animation: ui-fade-in 0.4s ease both;
}

.manager-live-card {
  animation: ui-sheet-up 0.38s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.manager-live-card:nth-child(2) { animation-delay: 0.04s; }
.manager-live-card:nth-child(3) { animation-delay: 0.08s; }
.manager-live-card:nth-child(4) { animation-delay: 0.12s; }

.squad-onboarding-step {
  transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.squad-onboarding-step:hover {
  transform: translateX(-2px);
}

.interactive-press {
  transition: transform var(--duration-fast) cubic-bezier(0.34, 1.2, 0.64, 1), opacity var(--duration-fast) ease;
}

.interactive-press:active {
  transform: scale(0.97);
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .dock-btn.primary,
  .splash-cta::after,
  .mission-hero,
  .manager-live-card,
  #mobile-dock,
  .status-chip::before {
    animation: none !important;
  }
  .nav-card:active,
  .interactive-press:active {
    transform: none;
  }
}
