/* ============================================================
   NIREV AI — Base & Reset  [Modernized: UI Pass]
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

body {
  background-color: var(--black-void);
  color: var(--white-primary);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* ── Scrollbar ── */
::-webkit-scrollbar        { width: 3px; height: 3px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--black-muted); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── Selection ── */
::selection { background: rgba(201, 168, 76, 0.18); color: var(--gold-light); }

/* ── Links ── */
a { color: inherit; text-decoration: none; }

/* ── Focus ── */
:focus-visible {
  outline: 1.5px solid var(--gold-pure);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Images ── */
img, svg { display: block; max-width: 100%; }

/* ── Inputs reset ── */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; }

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

/* ── Text utilities ── */
.gold-text {
  background: linear-gradient(135deg, var(--gold-pure) 0%, var(--gold-light) 50%, var(--gold-pure) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orange-text {
  background: linear-gradient(135deg, var(--orange-core), var(--orange-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted    { color: var(--white-muted); }
.text-secondary{ color: var(--white-secondary); }

/* ── Subtle noise texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.25;
}

/* ── Subtle vignette ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, transparent 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
