/* OCTYN V2 — Charcoal + Silver Chrome. Zero chromatic accent.
   Shared design system for the HumLife360 exploration. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --ground: #131316;
  --ground-2: #17171b;
  --panel: #1c1c20;
  --panel-2: #212127;
  --panel-3: #26262c;
  --ink: #e4e4e7;
  --ink-dim: #b4b4bd;
  --muted: #8a8a94;
  --faint: #5f5f68;
  --chrome: #cbd5e1;
  --slate: #94a3b8;
  --border: #2e2e33;
  --border-lit: #3f3f46;
  --border-bright: #565663;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 30px rgba(0,0,0,0.35);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(203,213,225,0.05), transparent 70%),
    var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,19,22,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand b { font-weight: 600; letter-spacing: 0.02em; font-size: 14px; }
.brand span { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.nav-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-links a.active { color: var(--ink); background: var(--panel-2); border-color: var(--border-lit); }

/* ---------- type ---------- */
/* one serif voice for the big statement; DM Sans for everything else. No italics, no single-word accents. */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--muted); margin: 0 0 16px;
}
h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--ink); }
h2 { font-family: var(--sans); font-weight: 600; font-size: 25px; line-height: 1.2; letter-spacing: -0.022em; margin: 0 0 12px; color: var(--ink); }
h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
h1 em, h2 em { font-style: normal; color: inherit; }
.lede { color: var(--ink-dim); font-size: 17px; line-height: 1.58; max-width: 600px; }
.sub { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.kicker { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; }
strong { color: var(--ink); font-weight: 600; }
.chrome { color: var(--ink); }
.arw { display: none; }

/* ---------- section ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section-head { margin-bottom: 34px; }

/* ---------- panels / cards ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
/* editorial ruled list — replaces boxed card grids where content is a list, not a set of objects */
.ruled { border-top: 1px solid var(--border); }
.ruled > .row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ruled > .row.cols2 { grid-template-columns: 200px 1fr; gap: 28px; align-items: baseline; }
@media (max-width: 640px){ .ruled > .row.cols2 { grid-template-columns: 1fr; gap: 6px; } }
.ruled .row h3 { margin: 0; }
.ruled .row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ruled .row .lead { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- pills / tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--border-lit); color: var(--slate);
  background: var(--panel);
}
.tag.solid { background: var(--panel-3); color: var(--chrome); border-color: var(--border-bright); }
.tier { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* channel chip */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border-lit);
  font-size: 12.5px; color: var(--ink-dim);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); }

/* stat */
.stat { font-family: var(--mono); }
.stat .num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--chrome); letter-spacing: -0.01em; }
.stat .lbl { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border-bright); color: var(--ink);
  background: var(--panel-2);
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--panel-3); border-color: var(--chrome); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn .arw { transition: transform .18s; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--border);
  padding: 30px 0 60px; margin-top: 40px;
  color: var(--faint); font-size: 12.5px;
}
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot b { color: var(--muted); font-weight: 600; }

/* ---------- motion: reserved for earned moments only (dashboard assembling, chart draw) ---------- */
.reveal, .reveal.in, .reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4 { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* utility */
.mono { font-family: var(--mono); }
.center { text-align: center; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.spacer { height: 24px; }
.nowrap { white-space: nowrap; }
