/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Space+Grotesk:wght@500;600;700&display=swap');

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

body {
  background-color: var(--color-primary-900);
  color: var(--color-neutral-300);
  font-family: var(--font-family-base);
  /* Removed overflow-x, position:relative, min-height to fix mobile scroll freeze */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-family-heading);
  color: var(--color-neutral-100);
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; }
h2 { font-size: var(--font-size-3xl); font-weight: 600; }
h3 { font-size: var(--font-size-2xl); font-weight: 600; }
h4 { font-size: var(--font-size-xl); font-weight: 600; }
h5 { font-size: var(--font-size-lg); font-weight: 600; }

.display-text {
  font-family: var(--font-family-display);
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: var(--spacing-4);
  color: var(--color-neutral-400);
}

.text-lead {
  font-size: var(--font-size-lg);
  color: var(--color-neutral-300);
}

.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-muted { color: var(--color-neutral-600); }

/* Links */
a {
  color: var(--color-accent-400);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-signal-400);
}

/* Selection */
::selection {
  background-color: var(--color-accent-600);
  color: var(--color-neutral-100);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-primary-900);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-700);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-600);
}

/* Utilities */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--spacing-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-800);
}
.table-responsive table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}
.table-responsive th, .table-responsive td {
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--color-neutral-800);
  text-align: left;
}
.table-responsive th {
  background: var(--color-primary-800);
  color: var(--color-neutral-100);
  font-weight: 600;
}
.table-responsive td {
  background: var(--color-primary-900);
}
