/* Base + reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.4vw, var(--text-hero)); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.875rem); letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.dark .eyebrow { color: var(--teal-300); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }

section { padding-block: var(--space-section); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); margin-top: 18px; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .25s var(--ease-out), color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal-500);
  color: #04313A;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 20px -6px rgba(22,184,199,.55);
}
.btn--primary:hover { background: var(--teal-600); color: #04313A; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--paper-100); }
.btn--ghost-dark {
  background: transparent;
  color: var(--paper-50);
  border: 1px solid rgba(255,255,255,.18);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1rem; }

/* Pill / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(22,184,199,.10);
  color: var(--teal-700);
  border: 1px solid rgba(22,184,199,.20);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(22,184,199,.18);
}
.chip--gold {
  background: rgba(200,162,75,.10);
  color: #8A6E1E;
  border-color: rgba(200,162,75,.30);
}
.chip--gold .dot { background: var(--gold-500); box-shadow: 0 0 0 3px rgba(200,162,75,.18); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Utilities */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--border); border: 0; }

/* Section reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
