/* ══════════════════════════════════════════════════════════════
   Madbout ERP — Base Reset & Global (Microsoft Design v3.0)
   ══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-padding-top: calc(var(--header-h) + 16px);
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  color: var(--clr-heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
}

p {
  color: var(--clr-text);
  max-width: 60ch;
  font-size: var(--fs-body);
}

a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover {
  color: var(--clr-heading);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

/* ── Gradient Text ─────────────────────────────────────────── */
.gradient-text {
  color: var(--clr-primary);
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: var(--clr-primary);
  color: #fff;
}

/* ── Scrollbar (Clean, minimal) ────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}
