/* ==========================================================================
   TRACEGUARD - Unified Weld-Quality and Site-Safety Evidence Platform
   Custom Stylesheet & Design Tokens
   ========================================================================== */

:root {
  --navy-950: #060c18;
  --navy-900: #0B132B;
  --navy-850: #0e1a38;
  --navy-800: #14244a;
  --navy-700: #1d3365;
  --steel-900: #0f172a;
  --steel-800: #1e293b;
  --steel-700: #334155;
  --steel-600: #475569;
  --steel-500: #64748b;
  --steel-400: #94a3b8;
  --steel-300: #cbd5e1;
  --steel-200: #e2e8f0;
  --steel-100: #f1f5f9;
  --steel-50:  #f8fafc;
  --arc-blue:  #2563eb;
  --arc-blue-glow: #38bdf8;
  --safety-amber: #f59e0b;
  --safety-amber-dark: #d97706;
  --safety-amber-light: #fef3c7;
  --pass-green: #10b981;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Code / Monospace styling */
.font-mono-tag {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Industrial Grid Pattern */
.bg-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
}

.bg-dark-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Weld arc glow animation */
@keyframes arcPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.05);
  }
}

.animate-arc-pulse {
  animation: arcPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-subtle-float {
  animation: subtleFloat 5s ease-in-out infinite;
}

/* Interactive Card Transitions */
.feature-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(11, 19, 43, 0.09), 0 4px 12px -2px rgba(11, 19, 43, 0.04);
}

/* Evidence Chain Flow Step Connectors */
.evidence-chain-node {
  position: relative;
}

@media (min-width: 1024px) {
  .evidence-chain-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #94a3b8, #94a3b8 4px, transparent 4px, transparent 8px);
    transform: translateY(-50%);
  }
}

/* Modal Blur & Transitions */
.modal-backdrop {
  background-color: rgba(6, 12, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Accordion Smooth Transitions */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}

/* Highlight badge */
.badge-safety {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-quality {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-audit {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
