/* ==========================================================================
   aCXend — Base
   Reset, base element styles, layout primitives (container/section/eyebrow),
   and the button system. Depends on tokens.css. Load on every page.
   ========================================================================== */

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button, [role="button"] { cursor: pointer; touch-action: manipulation; }
button { font: inherit; border: 0; background: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.3; }
h4 { font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; }
p  { color: var(--slate); max-width: 62ch; }
.accent { color: var(--royal); }

/* Focus — visible, on-brand */
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }

/* Skip link */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: var(--z-skip);
  background: var(--navy); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.section { padding-block: clamp(72px, 9vw, 136px); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--cloud { background: var(--cloud); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--royal);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sky); }
.eyebrow--sky { color: var(--sky); }

.section h2 { margin-bottom: 20px; }
.section p + p { margin-top: 14px; }
.section .btn { margin-top: 30px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: .95rem;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .arrow { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-icon { width: 15px; height: 15px; flex: none; }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--cta-1), var(--cta-2));
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(10,91,255,.45); }

.btn-secondary { color: var(--navy); border: 1px solid var(--line); background: var(--white); }
.btn-secondary:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); transform: translateY(-2px); }

.btn-light { color: var(--navy); background: var(--white); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-nav { padding: 11px 22px; min-height: 44px; font-size: .88rem; }


/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .btn-lg { width: 100%; justify-content: center; }
}
