/* ==========================================================================
   UNNAT ENTERPRISE EXPERIENCE SUITE — SILICON VALLEY TIER-1 / AWWWARDS POLISH
   Kinetic Motion, Magnetic Cursor, Rotating Border-Beams & Conversion Psychology
   ========================================================================== */

/* 1. Rotating Conic-Gradient Border Beam (Linear / Vercel Paradigm) */
@keyframes rotateBorderBeam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.border-beam-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
}

.border-beam-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 280deg,
    rgba(37, 99, 235, 0.4) 310deg,
    rgba(16, 185, 129, 0.9) 340deg,
    rgba(56, 189, 248, 0.95) 360deg
  );
  animation: rotateBorderBeam 6s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.border-beam-content {
  position: relative;
  background: #ffffff;
  border-radius: 19px;
  margin: 1.5px;
  height: calc(100% - 3px);
  z-index: 1;
}

/* 2. Global Enterprise Social Proof Toast (Bottom-Left Floating) */
#enterpriseToast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  width: calc(100vw - 48px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
}

#enterpriseToast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

#enterpriseToast .toast-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

#enterpriseToast .toast-body {
  flex: 1;
  text-align: left;
}

#enterpriseToast .toast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

#enterpriseToast .toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#enterpriseToast .toast-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

#enterpriseToast .toast-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

#enterpriseToast .toast-subtext {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
  margin-top: 2px;
}

#enterpriseToast .toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

#enterpriseToast .toast-close:hover {
  color: #0f172a;
}

/* 3. Interactive 3D Card Parallax on Hover */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 4. Audio Visualizer Equalizer Waveform */
.audio-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  width: 24px;
}

.audio-equalizer span {
  width: 3px;
  background: #2563eb;
  border-radius: 2px;
  animation: equalize 1.2s ease-in-out infinite alternate;
}

.audio-equalizer span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.audio-equalizer span:nth-child(2) { height: 90%; animation-delay: -0.4s; }
.audio-equalizer span:nth-child(3) { height: 60%; animation-delay: -0.1s; }
.audio-equalizer span:nth-child(4) { height: 100%; animation-delay: -0.5s; }
.audio-equalizer span:nth-child(5) { height: 50%; animation-delay: -0.3s; }

@keyframes equalize {
  0% { height: 20%; }
  100% { height: 100%; }
}

.audio-equalizer.paused span {
  animation-play-state: paused;
  height: 30% !important;
}

/* 5. Shimmer Badge Pulse */
.shimmer-badge {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
  background-size: 200% 100%;
  animation: shimmerAnim 2.5s infinite;
}

@keyframes shimmerAnim {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
