/* Reset + base + primitives */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

a { color: inherit; text-decoration: none; transition: color .15s ease; }
/* button-styled links keep their own color on hover (never the global green) */
a:not(.btn):not(.logo):not(.hero__cta):not(.cta-btn):not(.pc-cta):not(.social):hover { color: var(--brand-primary); }
p { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(48px, 8vw, 112px); }

/* Eyebrow / labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 500; font-size: 12px; line-height: 17px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-primary);
  background: var(--bg-tint); border: 1px solid var(--brand-subtle);
  padding: 4px 12px; border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--text-primary); color: var(--bg-white); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--brand { background: var(--brand-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-light); }
.btn--on-dark { background: #fff; color: #0a0a0a; }
.btn--pill { border-radius: var(--radius-full); }

/* Dark surface helper (for accent cards / CTA / footer) */
.surface-dark { background: var(--bg-dark-base); color: var(--text-on-dark); }
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: var(--text-on-dark); }
.surface-dark p { color: var(--text-on-dark-muted); }

/* Gradient text */
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Utilities */
.text-center { text-align: center; }
.muted { color: var(--text-secondary); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
