* { box-sizing: border-box; }
html, body { height: 100%; }
/* Site-wide fix for "mobile view is not stable, it's zooming while
   touching": `touch-action: manipulation` disables the browser's
   double-tap-to-zoom gesture and removes the ~300ms tap delay that causes
   two quick taps to register as a zoom, without disabling pinch-zoom —
   pinch-zoom is preserved deliberately (WCAG 1.4.4 requires users be able
   to zoom the page; the viewport meta tag is intentionally left permissive
   for the same reason). Applied at the root so every element inherits it;
   interactive elements get it explicitly too since some mobile browsers
   don't fully propagate touch-action through to nested tappable controls. */
html, body {
  touch-action: manipulation;
}
button, a, input, select, textarea, [role="button"], .btn, .bv2-cell, .stat-card {
  touch-action: manipulation;
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#root { min-height: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 var(--sp-3);
  text-transform: none;
}
h1 { font-size: 44px; line-height: 1.1; font-weight: 600; }
h2 { font-size: 30px; line-height: 1.18; }
h3 { font-size: 21px; line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; }
p { margin: 0 0 var(--sp-3); color: var(--text-2); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
small { color: var(--text-3); font-size: 12.5px; }
strong { color: var(--text-0); font-weight: 600; }
code, .mono { font-family: var(--font-mono); }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-bg); color: var(--text-0); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-5); }
@media (max-width: 720px) { .container { padding: 0 var(--sp-4); } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); display: inline-block; }

.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-6) 0; }

.grid { display: grid; gap: var(--sp-5); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); }
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.mt-0 { margin-top: 0; }
.w-full { width: 100%; }

.boot-loader { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-0); }
.boot-mark { display: flex; align-items: center; justify-content: center; }
.boot-mark-svg { animation: boot-mark-pulse 1.3s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(226,166,59,0.35)); }
@keyframes boot-mark-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .boot-mark-svg { animation: none; opacity: 0.9; }
}

@media (max-width: 860px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}
