/* ============================================================
   PARADIGM BIO METAL — Base Styles
   Reset, typography, global utilities
   ============================================================ */

/* ── Modern Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
}

/* When mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-primary);
}

h1 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: var(--fw-black);
}

h2 {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
}

h3 {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
}

h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

h5 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

p {
  color: var(--clr-text-secondary);
  max-width: 72ch;
}

a {
  color: var(--clr-blue-400);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--clr-blue-300);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: var(--clr-blue-800);
  color: var(--clr-white);
}

/* ── Scrollbar (Webkit) ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-surface-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-blue-700);
}

/* ── Utility: Section Title ────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-blue-400);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--clr-blue-400);
  border-radius: var(--radius-full);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-md));
  color: var(--clr-text-secondary);
  max-width: 60ch;
  line-height: var(--lh-relaxed);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-2xl), 5vw, var(--space-4xl));
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Highlight text ────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-blue-400) 0%, var(--clr-blue-300) 50%, var(--clr-blue-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--clr-accent-light);
}

.text-highlight {
  position: relative;
  color: var(--clr-blue-400);
  font-weight: var(--fw-extrabold);
}

.text-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-blue-400), var(--clr-accent));
  border-radius: var(--radius-full);
}

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