@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300..900;1,300..900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --brand-blue: #0066FF;
  --brand-blue-dark: #0044CC;
  --brand-navy: #0F172A;
  --brand-slate: #F8FAFC;
  --brand-light: #FFFFFF;
  --brand-accent: #FF7A00;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FAFC;
  color: #334155;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Exo 2', sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0066FF;
}

.text-gradient {
  background: linear-gradient(135deg, #0044CC 0%, #0066FF 50%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  transform: translateY(-3px);
  border-color: #93C5FD;
  box-shadow: 0 12px 25px -5px rgba(0, 102, 255, 0.12);
}

.glow-blue {
  box-shadow: 0 10px 30px -5px rgba(0, 102, 255, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: status-pulse 2s infinite;
  display: inline-block;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.sim-eq-bar {
  height: 6px;
  min-height: 4px;
}


section[id] {
  scroll-margin-top: 65px;
}

.sim-btn .sim-title-text,
.sim-btn .sim-subtitle {
  color: inherit;
}

.sim-btn.sim-active .sim-title-text {
  color: #0f172a;
}

.sim-btn.sim-active .sim-subtitle {
  color: #475569;
}

.sim-btn[data-mode="noise"].sim-active .sim-kicker {
  color: #dc2626;
}

.sim-btn[data-mode="passive"].sim-active .sim-kicker {
  color: #d97706;
}

.sim-btn[data-mode="soundshield"].sim-active .sim-kicker {
  color: #2563eb;
}


/* Final polish: stage labels, responsive rhythm and focus states */
.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.stage-validated {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.stage-progress {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.stage-future {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.stage-current {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

a:focus-visible,
button:focus-visible,
.anatomy-item:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  section[id] {
    scroll-margin-top: 65px;
  }

  .stage-badge {
    font-size: 0.56rem;
  }
}
