/* =========================================
   BASE – OSP PRO
========================================= */

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

html {
  scroll-behavior: smooth;
  font-size: calc(15px * var(--az-font-scale-safe));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: var(--az-line-height);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

@media (max-width: 480px) {
  :root {
    --pad: 16px;
    --navm-panel-top: 62px;
  }
}

/* ===== Typography ===== */

h1,h2,h3,h4 {
  font-family: var(--font-display);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.small { font-size: .875rem; }
.muted { color: var(--text-muted); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--border-muted);
  background: var(--surface-1);
  color: var(--text);
  text-decoration: none;
  transition: all .18s ease;
}

.btn:hover {
  border-color: var(--border);
  background: var(--highlight);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--az-btn-shadow);
}

.btn--primary:hover {
  background: color-mix(in oklab, var(--primary) 85%, #ffffff 15%);
  box-shadow: var(--az-btn-shadow-hover);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
}

/* ===== Cards ===== */

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
}

/* ===== Section spacing ===== */

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}