/* BrightSpot — Main Stylesheet */
/* Design philosophy: What would Tony Stark do? */
/* Premium. Clean. Intelligent. Human-centered. */

:root {
  /* Core palette */
  --bg: #020202;
  --bg-elevated: #060608;
  --surface: #0A0A0A;
  --surface-2: #111111;
  --surface-3: #1a1a1a;
  --surface-4: #222222;
  
  /* Borders */
  --border: #1a1a1a;
  --border-2: #2a2a2a;
  --border-3: #333333;
  
  /* Accent */
  --teal: #00E5C8;
  --teal-rgb: 0, 229, 200;
  --teal-dim: #00a893;
  --teal-dark: #004d44;
  --teal-glow: rgba(var(--teal-rgb), 0.12);
  --teal-glow-strong: rgba(var(--teal-rgb), 0.25);
  
  /* Semantic */
  --green: #00E676;
  --green-dim: #00a854;
  --amber: #FFD740;
  --amber-dim: #b39a2e;
  --red: #FF5252;
  --red-dim: #b33a3a;
  --blue: #448AFF;
  --blue-dim: #2d5fa3;
  --purple: #B388FF;
  --purple-dim: #7c5ca3;
  
  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-tertiary: #666666;
  --text-quaternary: #444444;
  
  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(var(--teal-rgb), 0.08);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dim); }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: var(--text-primary); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: #fff; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
p { max-width: 65ch; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-quaternary); }

/* ── Selection ── */
::selection { background: rgba(var(--teal-rgb), 0.3); color: #fff; }

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-teal { color: var(--teal); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-tertiary); }
.text-dim { color: var(--text-secondary); }
.font-mono { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none !important; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--teal-rgb), 0.1); }
  50% { box-shadow: 0 0 40px rgba(var(--teal-rgb), 0.2); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
.animate-fade-in { animation: fadeIn 0.5s var(--ease-out) both; }
.animate-fade-in-scale { animation: fadeInScale 0.4s var(--ease-out) both; }
.animate-slide-in { animation: slideInRight 0.4s var(--ease-out) both; }
.animate-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ── Navigation v2 — Grouped + Two-Tier ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(2, 2, 2, 0.9);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1rem; color: #fff;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: #000;
  box-shadow: 0 0 20px rgba(var(--teal-rgb), 0.2);
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }

/* Dropdown */
.nav-cta {
  background: var(--teal) !important; color: #000 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 16px rgba(var(--teal-rgb), 0.15);
}
.nav-cta:hover { background: var(--teal-dim) !important; transform: translateY(-1px); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: var(--r-md);
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.nav-dropdown-btn:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-caret { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 8px; box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: var(--r-md);
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text-primary); }
.nav-dropdown-menu a.active { color: var(--teal); background: var(--teal-glow); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(2, 2, 2, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.nav-mobile-group { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-group-label {
  font-size: 0.7rem; color: var(--text-quaternary); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; padding: 0 8px; margin-bottom: 4px;
}
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--teal-glow);
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--teal); color: #000; box-shadow: 0 2px 12px rgba(var(--teal-rgb), 0.2); }
.btn-primary:hover { background: var(--teal-dim); box-shadow: 0 4px 20px rgba(var(--teal-rgb), 0.3); }
.btn-secondary { background: var(--surface-2); color: var(--text-primary); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--teal); border-color: var(--teal); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dim); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-md); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all 0.3s var(--ease-out);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card-active {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
}

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3px;
  white-space: nowrap;
}
.tag-teal { background: rgba(var(--teal-rgb), 0.1); color: var(--teal); border: 1px solid rgba(var(--teal-rgb), 0.2); }
.tag-green { background: rgba(0, 230, 118, 0.1); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.2); }
.tag-amber { background: rgba(255, 215, 64, 0.1); color: var(--amber); border: 1px solid rgba(255, 215, 64, 0.2); }
.tag-blue { background: rgba(68, 138, 255, 0.1); color: var(--blue); border: 1px solid rgba(68, 138, 255, 0.2); }
.tag-purple { background: rgba(179, 136, 255, 0.1); color: var(--purple); border: 1px solid rgba(179, 136, 255, 0.2); }
.tag-red { background: rgba(255, 82, 82, 0.1); color: var(--red); border: 1px solid rgba(255, 82, 82, 0.2); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  transition: all 0.2s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-input::placeholder { color: var(--text-quaternary); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── Progress / Match bars ── */
.progress-bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.progress-bar .fill { height: 100%; border-radius: 2px; transition: width 0.6s var(--ease-out); }
.match-bar { display: flex; align-items: center; gap: 8px; }
.match-bar .bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.match-bar .bar .fill { height: 100%; border-radius: 3px; }
.match-bar .label { font-size: 0.75rem; font-weight: 700; min-width: 36px; text-align: right; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease-out; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: fadeInScale 0.3s var(--ease-out);
}
.modal-header { padding: 1.5rem 1.5rem 0; }
.modal-body { padding: 1.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); color: var(--text-tertiary);
  transition: all 0.2s; font-size: 1.1rem;
}
.modal-close:hover { background: var(--surface-2); color: var(--text-primary); }

/* ── Step indicator ── */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 1.5rem; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  border: 2px solid var(--border-2); color: var(--text-tertiary);
  transition: all 0.3s var(--ease-out);
}
.step-dot.active { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); }
.step-dot.done { border-color: var(--teal); background: var(--teal); color: #000; }
.step-line { flex: 1; height: 1px; background: var(--border-2); transition: background 0.3s; }
.step-line.done { background: var(--teal); }

/* ── Layout ── */
.page { min-height: 100vh; padding-top: 64px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* ── Spacing ── */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.pt-4 { padding-top: 1rem; } .pt-8 { padding-top: 2rem; } .pt-12 { padding-top: 3rem; } .pt-16 { padding-top: 4rem; }
.pb-4 { padding-bottom: 1rem; } .pb-8 { padding-bottom: 2rem; } .pb-12 { padding-bottom: 3rem; } .pb-16 { padding-bottom: 4rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }

/* ── Dividers ── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.divider-vertical { width: 1px; background: var(--border); margin: 0 1rem; }

/* ── Avatar ── */
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
  background: var(--surface-3);
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: var(--r-lg); }
.avatar-xl { width: 72px; height: 72px; font-size: 1.8rem; border-radius: var(--r-xl); }

/* ── Status indicators ── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(0, 230, 118, 0.4); }
.status-dot.amber { background: var(--amber); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--blue); }

/* ── Queue items ── */
.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.queue-item:last-child { border-bottom: none; }

/* ── Ecosystem ── */
.ecosystem-node {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1rem; text-align: center;
  transition: all 0.3s var(--ease-out); cursor: pointer;
}
.ecosystem-node:hover { border-color: var(--teal); background: var(--surface-3); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.ecosystem-node .icon { font-size: 1.5rem; margin-bottom: 6px; }
.ecosystem-node .label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.ecosystem-node .count { font-size: 0.7rem; color: var(--teal); margin-top: 2px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container, .container-narrow, .container-wide { padding: 0 1rem; }

  /* Make queue items stack on mobile */
  .queue-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .queue-item .flex.gap-2 { width: 100%; }
  .queue-item .btn { flex: 1; }

  /* Modal full-screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 85vh; }

  /* Touch-friendly tap targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .nav-mobile a { min-height: 48px; }
  .roster-item { min-height: 48px; }

  /* Tables responsive */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Hide non-essential columns on mobile */
  .hide-mobile { display: none !important; }

  /* Full-width buttons on mobile */
  .btn-block-mobile { width: 100%; }

  /* Reduce padding on mobile */
  .card { padding: 1rem; }
  .p-8 { padding: 1.5rem; }
  .p-6 { padding: 1rem; }

  /* Stack flex containers on mobile */
  .flex-stack-mobile { flex-direction: column; }

  /* Center text on mobile */
  .text-center-mobile { text-align: center; }

  /* Smaller headings on mobile */
  h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }

  /* Fix fixed-position elements */
  .landing-hero { padding: 4rem 1rem 3rem; }
  
  /* Ensure images don't overflow */
  img, canvas, video { max-width: 100% !important; height: auto !important; }

  /* Horizontal scroll prevention */
  body, html { overflow-x: hidden; width: 100%; }
  * { max-width: 100%; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 1.3rem; }
  .metric-label { font-size: 0.65rem; }
  .dash-header { padding: 1.5rem 0 1rem; }
  .mini-item { flex-wrap: wrap; }
  .mini-item .name { width: 100%; margin-bottom: 4px; }
}
