/* =========================================================
   BASE — reset, typography, layout primitives, utilities
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Belt-and-suspenders alongside body's overflow-x:hidden below: measured
     that overflow-x:hidden on body alone did not stop an actual horizontal
     scrollTo() from working (confirmed via window.scrollTo(9999,0) actually
     moving scrollX), which is exactly the kind of thing that causes
     rubber-band overscroll on real mobile browsers. */
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family:
    "Satoshi",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
}

p {
  color: var(--text-secondary);
}

/* =========================
   Layout primitives
   ========================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
}

section {
  position: relative;
}

.section-pad {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 64px 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.lead {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================
   Accessibility utilities
   ========================= */

.visually-hidden {
  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-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--accent-blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================
   Scrollbar
   ========================= */

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 6px;
}

::selection {
  background: var(--accent-blue);
  color: #fff;
}
