/* ── /gantry — design tokens, base, typography, nav, buttons ───────────
   Mirrors the main kitt.services home page design system: paper/ink
   neutrals, forest-green accent, Inter Tight (display) + Inter (sans),
   soft rounded corners, refined sentence-case typography.
─────────────────────────────────────────────────────────────────────── */

:root {
  --paper: hsl(60 8% 98%);
  --paper-2: hsl(60 6% 96%);
  --paper-3: hsl(60 5% 93%);
  --ink: hsl(0 0% 11%);
  --ink-2: hsl(0 0% 30%);
  --ink-3: hsl(0 0% 45%);
  --ink-4: hsl(0 0% 60%);
  --rule: hsl(60 5% 89%);
  --rule-strong: hsl(60 5% 80%);
  --accent: oklch(44% 0.09 160);
  --accent-ink: oklch(32% 0.07 160);
  --accent-wash: oklch(93% 0.03 160);

  /* aliases used by hero-visual.jsx / phone-mockup.jsx — map gantry tokens
     to the home-page palette so inline stylesheets still resolve. */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --line: var(--rule);
  --line-2: var(--rule);
  --ink-bg: var(--ink);
  --good: var(--accent);

  --display: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --serif: var(--display);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 56px -28px rgb(0 0 0 / 0.22), 0 4px 12px -4px rgb(0 0 0 / 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.08;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; }

/* Layout container */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Eyebrow — same as home page (lowercase, accent-ink, leading bar) */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: lowercase;
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent-ink);
  display: inline-block;
}

/* Display headlines reused across sections */
.h-display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-display em {
  font-style: normal;
  color: var(--accent-ink);
}
.h-section {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Lede paragraph */
.lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.accent-text { color: var(--accent-ink); font-style: italic; }

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: all 140ms ease;
  cursor: pointer;
  line-height: 1;
}
.btn-ghost { color: var(--ink-2); padding: 11px 16px; }
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn-outline { border-color: var(--rule-strong); }
.btn-outline:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: hsl(0 0% 18%); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: hsl(60 8% 95%); }
.btn .arrow { transition: transform 140ms ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.nav-mid { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav .ops-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.nav .ops-status strong { color: var(--ink); font-weight: 600; }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color 140ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* reeve wordmark — adapt to home design (Inter Tight 600, ink) */
.reeve-wm {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.reeve-wm.dark { color: var(--paper); }
.reeve-wm .reeve-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

/* ── Section padding ─────────────────────────────────────────────── */
.section-pad { padding: clamp(72px, 9vw, 112px) 0; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .wrap { padding: 0 32px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .nav .ops-status { display: none; }
  .section-pad { padding: 72px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
}

/* ── Fade-up utility kept from original ──────────────────────────── */
.fade-up { opacity: 0; transform: translateY(8px); animation: fadeUp 600ms cubic-bezier(.2,.7,.2,1) forwards; }
.fade-up.d1 { animation-delay: 0.05s; }
.fade-up.d2 { animation-delay: 0.15s; }
.fade-up.d3 { animation-delay: 0.25s; }
.fade-up.d4 { animation-delay: 0.35s; }
:root[data-motion='off'] .fade-up { animation: none; opacity: 1; transform: none; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
