/* HAVEN — design tokens + base */

:root {
  --teal: #2AB3B1;
  --teal-deep: #1F8F8D;
  --teal-tint: #E9F8F6;
  --charcoal: #1F2024;
  --charcoal-2: #333333;
  --ink-60: #5C6066;
  --ink-40: #8A8E94;
  --ink-20: #C7C9CC;
  --line: #ECECEC;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E8E8E8;
  --bg: #FAFAFA;
  --paper: #FFFFFF;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-1: 0 1px 2px rgba(20,22,26,.04), 0 1px 1px rgba(20,22,26,.03);
  --shadow-2: 0 1px 2px rgba(20,22,26,.04), 0 8px 24px rgba(20,22,26,.06);
  --shadow-3: 0 1px 2px rgba(20,22,26,.04), 0 24px 60px rgba(20,22,26,.10);

  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
}

[data-theme="dark"] {
  --bg: #0E1113;
  --paper: #15181B;
  --charcoal: #F2F4F6;
  --charcoal-2: #E6E8EA;
  --ink-60: #A8ADB3;
  --ink-40: #71767C;
  --ink-20: #2A2E33;
  --line: #23272B;
  --gray-50: #15181B;
  --gray-100: #1A1D21;
  --gray-200: #1F2327;
  --teal-tint: #0F2A29;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ─── Type scale ─── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-family: var(--mono);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--charcoal);
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 600;
}
h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}
h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}
p { margin: 0; }

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--ink-60);
  text-wrap: pretty;
}

/* ─── Layout primitives ─── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: var(--section-y) 0; }
.divider { height: 1px; background: var(--line); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--teal);
  color: #06302F;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px rgba(42,179,177,.28);
}
.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 28px rgba(42,179,177,.36);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--ink-20);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
}
.btn-link {
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--charcoal);
  border-bottom: 1px solid var(--ink-20);
  border-radius: 0;
  padding-bottom: 4px;
}
.btn-link:hover { border-bottom-color: var(--teal); color: var(--teal-deep); }

/* ─── Cards ─── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

/* ─── Subtle striped placeholder for imagery we don't have ─── */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      rgba(31,32,36,.04) 0 8px,
      transparent 8px 16px),
    var(--gray-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-40);
  text-transform: uppercase;
}

/* ─── Animation primitives ─── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ─── Utility ─── */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.muted { color: var(--ink-60); }
.tnum { font-variant-numeric: tabular-nums; }

/* ─── Section header ─── */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lead { max-width: 600px; }
