/* ==============================================================================
   AURICPASS SPOTLIGHT, HERO TABS & QUICKSTART MODAL (CSS/SPOTLIGHT.CSS)
   Linear-style mouse tracking, unified hero visualizer, ecosystem strip, & modal
   Unified V2 Light Canvas Design System
   ============================================================================== */

/* 1. Linear-Style Mouse-Tracking Spotlight & Bento Grid */
.spotlight-card, .bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  color: #f8fafc !important;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

.spotlight-card:hover, .bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

.spotlight-card::after, .bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.14),
    rgba(5, 114, 236, 0.06) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::after, .bento-card:hover::after {
  opacity: 1;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
}

.bento-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.bento-badge-blue { background: rgba(5, 114, 236, 0.08); color: #0572ec; }
.bento-badge-amber { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.bento-badge-emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
.bento-badge-purple { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }

.bento-preview-dark {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #f8fafc;
  height: auto;
  padding: 18px;
  margin-bottom: 20px;
}
.bento-preview-light {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  height: auto;
  padding: 18px;
  margin-bottom: 20px;
}
.bento-sim-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
  color: #f8fafc;
  margin-bottom: 20px;
}
.bento-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.bento-sim-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #1e293b;
  padding-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

/* 2. Hero Visualizer Tabbed Header */
.hero-tab-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.hero-tab-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tab-btn:hover {
  color: #0f172a;
}

.hero-tab-btn.active {
  background: #0572ec;
  color: #ffffff;
  border: 1px solid #0572ec;
  box-shadow: 0 1px 4px rgba(5, 114, 236, 0.2);
}

.hero-view-panel {
  display: none;
  animation: heroPanelFade 0.25s ease-out forwards;
}

.hero-view-panel.active {
  display: block;
}

@keyframes heroPanelFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3. AI Agent Ecosystem Compatibility Strip */
.ecosystem-strip {
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.ecosystem-label {
  text-align: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 700;
}

.ecosystem-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.ecosystem-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.ecosystem-badge-item:hover {
  border-color: #93c5fd;
  color: #0572ec;
  background: #eff6ff;
  transform: translateY(-1px);
}

/* 4. Quickstart Modal Dialog */
.quickstart-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.quickstart-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.quickstart-modal-dialog {
  background: #0d111c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { transform: scale(0.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.quickstart-modal-header {
  padding: 20px 24px;
  background: #101524 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quickstart-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quickstart-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8 !important;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.quickstart-modal-close:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.quickstart-modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #080b12 !important;
  overflow-x: auto;
}

.quickstart-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8 !important;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.quickstart-tab-btn:hover {
  color: #f8fafc !important;
}

.quickstart-tab-btn.active {
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
  background: #0d111c !important;
}

.quickstart-modal-body {
  padding: 24px;
  background: #0d111c !important;
  color: #f8fafc !important;
}

.quickstart-panel {
  display: none;
}

.quickstart-panel.active {
  display: block;
}

.quickstart-cmd-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* 5. Tactile Copied Micro-Animation */
.copied-success {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  transform: scale(1.02);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
}

/* 6. Animated Traveling Signal Beams (EPIC-103 Phase 2) */
@keyframes signalPulse {
  0% { stroke-dashoffset: 100; opacity: 0.3; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.3; }
}

.signal-beam-path {
  stroke-dasharray: 8 16;
  animation: signalPulse 2.8s linear infinite;
}

.signal-beam-glow {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* 7. Tactile Spring Physics & Shimmer (EPIC-112) */
.spring-interactive {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.shimmer-badge {
  position: relative;
  overflow: hidden;
}

.shimmer-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.shimmer-badge:hover::after {
  transform: rotate(25deg) translateY(100%);
}

@media (prefers-reduced-motion: reduce) {
  .signal-beam-path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .spring-interactive,
  .spotlight-card,
  .bento-card,
  .border-beam {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* 8. Aceternity Border Beam (EPIC-117) */
@keyframes borderBeamMove {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.border-beam-container {
  position: relative;
  overflow: hidden;
}

.border-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
  border: 1.5px solid transparent;
}

