/* ===========================================================
   Base reset, body, typography, layout primitives.
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 70%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--accent-hot); }
button { font-family: inherit; cursor: pointer; }

/* Headings — silver-gradient metallic clip */
h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #f3f4f6, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-dim); margin: 0 0 1rem; }

/* Layout primitives */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.divider-wrap {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  z-index: 2;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Visually hidden — content is still announced by screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 9999;
  transition: top 200ms var(--ease);
}
.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* Focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-hot));
  box-shadow: var(--shadow-glow);
}
