*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root[data-theme="dark"] {
  --bg-primary: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --border-default: #1e293b;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --color-threat: #ef4444;
  --color-threat-dim: rgba(239, 68, 68, 0.15);
  --color-defense: #3b82f6;
  --color-defense-dim: rgba(59, 130, 246, 0.15);
  --color-warning: #f59e0b;
  --color-cost: #a855f7;
  --color-bullfrog: #22c55e;
  --color-bullfrog-dim: rgba(34, 197, 94, 0.10);
  --color-bullfrog-glow: rgba(34, 197, 94, 0.25);
  --color-success: #22c55e;
  --scrollbar-bg: #1e293b;
  --scrollbar-thumb: #374151;
}

:root[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-default: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --color-threat: #dc2626;
  --color-threat-dim: rgba(220, 38, 38, 0.1);
  --color-defense: #2563eb;
  --color-defense-dim: rgba(37, 99, 235, 0.1);
  --color-warning: #d97706;
  --color-cost: #9333ea;
  --color-bullfrog: #16a34a;
  --color-bullfrog-dim: rgba(22, 163, 74, 0.08);
  --color-bullfrog-glow: rgba(22, 163, 74, 0.2);
  --color-success: #16a34a;
  --scrollbar-bg: #e2e8f0;
  --scrollbar-thumb: #94a3b8;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('./assets/Topography_Grid_-_Black__Converted_.png');
  background-size: 800px auto;
  background-repeat: repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] body::after {
  opacity: 0.12;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-bullfrog);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}