/* ==========================================================================
   PERFBENCHIE - RETROFUTURISTIC AVIONICS & TELEMETRY STYLES
   Adheres to Antislop Guidelines & DESIGN.md
   Color Palette:
     Chassis Background: #080c14
     Surface Elevation:  #0f172a
     Hairline Border:    #1e293b / #334155
     Amber Phosphor:     #f59e0b / #fbbf24
     Radar Cyan:         #06b6d4 / #38bdf8
     Cadmium Vermilion:  #ef4444 / #f87171
     Instrument Mint:    #10b981 / #34d399
     Text Primary:       #f8fafc (WCAG AAA)
     Text Muted:         #94a3b8 (WCAG AA)
   ========================================================================== */

:root {
  --bg-chassis: #080c14;
  --bg-surface: #0f172a;
  --bg-elevated: #141e33;
  --border-line: #1e293b;
  --border-active: #334155;
  --accent-amber: #f59e0b;
  --accent-amber-bright: #fbbf24;
  --accent-cyan: #06b6d4;
  --accent-red: #ef4444;
  --accent-mint: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-chassis);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Avionics Chassis Grid Pattern (Purposeful technical grid) */
.avionics-grid {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.25) 1px, transparent 1px);
}

.oscilloscope-grid {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.35) 1px, transparent 1px);
}

/* Phosphor glow - subtle and purpose-driven */
.glow-amber-subtle {
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.15);
}

.glow-amber-active {
  box-shadow: 0 0 24px 2px rgba(245, 158, 11, 0.3);
}

.glow-cyan-subtle {
  box-shadow: 0 0 16px -2px rgba(6, 182, 212, 0.15);
}

/* Tactile hardware buttons */
.btn-hardware {
  border-bottom-width: 3px;
  transition: all 0.08s ease-in-out;
}
.btn-hardware:hover {
  transform: translateY(-1px);
}
.btn-hardware:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #080c14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Blinking cursor / LED */
@keyframes led-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.animate-led {
  animation: led-blink 1.2s infinite ease-in-out;
}

/* Tabular readout numerals */
.tnum {
  font-variant-numeric: tabular-nums;
}

/* Sticky First Column for Comparison Table on Mobile */
.table-sticky-col th:first-child,
.table-sticky-col td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #0b1120;
  border-right: 1px solid #1e293b;
}
.table-sticky-col thead th:first-child {
  background-color: #050810;
  z-index: 20;
}

/* Donation Tier Selection Buttons */
.tier-select-btn {
  border-color: #334155 !important;
  background-color: rgba(15, 23, 42, 0.85) !important;
  color: #94a3b8 !important;
  transition: all 0.15s ease-in-out;
}
.tier-select-btn:hover {
  border-color: #475569 !important;
  color: #f8fafc !important;
}
.tier-select-btn.is-active {
  border-color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28);
}
.tier-select-btn.is-active span:first-child {
  color: #fbbf24 !important;
}
.tier-select-btn.is-active span:last-child {
  color: #fde68a !important;
}

/* Accessible focus ring */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}
