/* Liravira Networker landing.
   Design read: calm chief-of-staff, Linear-adjacent minimalism.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 3.
   Theme: auto (light + dark), locked page-wide. One accent: desaturated emerald.
   Shape system (locked): buttons = pill, cards/panels = 12px, everything else square.
   Type: system stack (no build step, no external font requests). */

:root {
  --bg: #f7f7f5;
  --bg-raised: #ffffff;
  --ink: #1c1e21;
  --ink-soft: #55595f;
  --ink-faint: #8a8f96;
  --line: rgba(28, 30, 33, 0.12);
  --accent: #0f8a6d;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 138, 109, 0.1);
  /* graph palette (data colors, distinct from the marketing accent) */
  --g-you: #1c1e21;
  --g-person: #0f8a6d;
  --g-person-dim: #7fb8a8;
  --g-company: #9a6db8;
  --g-tag: #b0b5bb;
  --g-edge: rgba(28, 30, 33, 0.14);
  --g-label: #55595f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --bg-raised: #17191c;
    --ink: #eceef0;
    --ink-soft: #a6acb3;
    --ink-faint: #6d737a;
    --line: rgba(236, 238, 240, 0.12);
    --accent: #34c39a;
    --accent-ink: #0c1512;
    --accent-soft: rgba(52, 195, 154, 0.12);
    --g-you: #eceef0;
    --g-person: #34c39a;
    --g-person-dim: #2a6d59;
    --g-company: #a98ecb;
    --g-tag: #4a5057;
    --g-edge: rgba(236, 238, 240, 0.1);
    --g-label: #a6acb3;
  }
}

/* per-version accents (one accent per rendered page; switching = a new page state).
   founders = emerald (base above) · sales = cobalt · personal = terracotta */
html[data-version="sales"] {
  --accent: #1e56c8; --accent-ink: #ffffff; --accent-soft: rgba(30, 86, 200, 0.1);
  --g-person: #1e56c8; --g-person-dim: #8aa8d8;
}
html[data-version="personal"] {
  --accent: #b4472e; --accent-ink: #ffffff; --accent-soft: rgba(180, 71, 46, 0.1);
  --g-person: #b4472e; --g-person-dim: #d29a8b;
}
@media (prefers-color-scheme: dark) {
  html[data-version="sales"] {
    --accent: #6b9dff; --accent-ink: #0a1226; --accent-soft: rgba(107, 157, 255, 0.13);
    --g-person: #6b9dff; --g-person-dim: #2c4577;
  }
  html[data-version="personal"] {
    --accent: #e07856; --accent-ink: #241009; --accent-soft: rgba(224, 120, 86, 0.13);
    --g-person: #e07856; --g-person-dim: #6e392a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

a { color: inherit; text-decoration: none; }

/* ── nav (single line, 64px) ─────────────────────────────────────────── */
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }

/* the version switcher: who is this page speaking to */
.vswitch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.vswitch button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 550;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.vswitch button:hover { color: var(--ink); }
.vswitch button.on { background: var(--accent); color: var(--accent-ink); }

/* ── buttons (pill) ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 12px 24px; font-size: 0.98rem; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.link-cta { color: var(--ink-soft); font-weight: 550; font-size: 0.98rem; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-cta:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ── hero: asymmetric split, fits the viewport ───────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) 7fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 72px) clamp(20px, 4vw, 48px) 48px;
  min-height: min(calc(100dvh - 64px), 760px);
}
.sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; margin-top: 18px; }
.cta-row { display: flex; align-items: center; gap: 24px; margin-top: 28px; }

.stats { display: flex; gap: 36px; margin-top: 44px; }
.stat { display: flex; flex-direction: column; }
.stat b {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
}
.stat span { color: var(--ink-faint); font-size: 0.82rem; margin-top: 2px; }

.hero-graph { position: relative; min-width: 0; }
#net {
  width: 100%;
  height: clamp(380px, 58vh, 560px);
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  cursor: crosshair;
}
.graph-caption { color: var(--ink-faint); font-size: 0.8rem; margin-top: 10px; text-align: right; }
.tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
  max-width: 240px;
  z-index: 5;
}

/* ── how: label-rail flow (distinct family from the splits) ──────────── */
.how { max-width: 880px; margin: 0 auto; padding: 96px clamp(20px, 4vw, 48px); }
.how h2 { max-width: 22ch; }
.flow { margin-top: 48px; border-left: 1px solid var(--line); }
.flow-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0 28px 32px;
}
.flow-row + .flow-row { border-top: 1px solid var(--line); }
.flow-label { font-weight: 650; font-size: 1.05rem; color: var(--accent); }
.flow-body p { color: var(--ink-soft); max-width: 58ch; }

/* ── what it does: bento (5 cells, rhythm not repetition) ────────────── */
.does {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.does h2 { max-width: 22ch; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  padding: 26px 26px 28px;
  grid-column: span 2;
}
.cell h3 { font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 8px; }
/* inline Tabler icons (vendored @tabler/icons outline, stroke = currentColor) */
.ci {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--accent);
  margin-bottom: 12px;
}
.cell-big .ci { width: 28px; height: 28px; }
.cell p { color: var(--ink-soft); font-size: 0.93rem; }
.cell-big {
  grid-column: span 4;
  background: var(--accent-soft);
  border-color: transparent;
}
.cell-big h3 { font-size: 1.35rem; }
.cell-big p { max-width: 52ch; font-size: 0.98rem; }
.uc-query {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
}
.cell-quiet { background: transparent; }

/* ── sources: opt-in capture surface, honestly tiered ────────────────── */
.sources {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.sources h2 { max-width: 20ch; }
.sources-sub { color: var(--ink-soft); margin-top: 14px; max-width: 62ch; }
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.chip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 20px;
  background: var(--bg-raised);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip h3 { font-size: 0.98rem; letter-spacing: -0.01em; margin: 2px 0 6px; }
.chip .ci { width: 20px; height: 20px; margin-bottom: 10px; color: var(--ink-soft); }
.chip:hover .ci { color: var(--accent); }
.chip p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.5; }
.chip-tag {
  float: right;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 10px;
  margin: -2px -2px 0 8px;
}
.tag-live { background: var(--accent-soft); color: var(--accent); }
.tag-import { border: 1px solid var(--line); color: var(--ink-soft); }
.tag-soon { color: var(--ink-faint); border: 1px dashed var(--line); }

/* ── marta: split with a real component preview ──────────────────────── */
.marta {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.marta-copy p { color: var(--ink-soft); margin-top: 16px; max-width: 48ch; }
.marta-points { list-style: none; margin-top: 24px; }
.marta-points li {
  padding: 10px 0 10px 26px;
  color: var(--ink-soft);
  position: relative;
}
.marta-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 19px;
  width: 12px; height: 1.5px;
  background: var(--accent);
}

.digest {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.digest-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.digest-title { font-weight: 650; }
.digest-sub { color: var(--ink-faint); font-size: 0.85rem; }
.digest-body { padding: 8px 20px 16px; }
.digest-empty { color: var(--ink-faint); font-size: 0.9rem; padding: 12px 0; }
.sugg { padding: 14px 0; }
.sugg + .sugg { border-top: 1px solid var(--line); }
.sugg-top { display: flex; align-items: baseline; gap: 10px; }
.sugg-name { font-weight: 600; font-size: 0.95rem; }
.sugg-kind {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.sugg-why { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }

/* ── privacy: centered manifesto ─────────────────────────────────────── */
.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 48px);
  text-align: center;
  border-top: 1px solid var(--line);
}
.privacy-body { color: var(--ink-soft); margin: 18px auto 0; max-width: 52ch; }

/* ── final CTA band ──────────────────────────────────────────────────── */
.final {
  text-align: center;
  padding: 88px 20px;
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
}
.final .btn { margin-top: 28px; }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.foot-note { color: var(--ink-faint); font-size: 0.85rem; }

/* ── motion layer (every animation motivated; all gated by reduced motion) ── */
/* reveal on scroll (hierarchy: sections earn attention as they arrive) */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance cascade (storytelling: message, then proof) */
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .hero-copy > * { animation: riseIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
  .hero-graph { animation: riseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards; }

  /* staggered arrival for chips + bento (rhythm, not noise) */
  .chips .chip:nth-child(2), .bento .cell:nth-child(2) { transition-delay: 0.06s; }
  .chips .chip:nth-child(3), .bento .cell:nth-child(3) { transition-delay: 0.12s; }
  .chips .chip:nth-child(4), .bento .cell:nth-child(4) { transition-delay: 0.18s; }
  .chips .chip:nth-child(5), .bento .cell:nth-child(5) { transition-delay: 0.24s; }
  .chips .chip:nth-child(6) { transition-delay: 0.3s; }
  .chips .chip:nth-child(7) { transition-delay: 0.36s; }
  .chips .chip:nth-child(8) { transition-delay: 0.42s; }
  .chips .chip:nth-child(9) { transition-delay: 0.48s; }

  /* digest rows stagger in when (re)loaded (feedback: fresh data arrived) */
  .sugg { animation: riseIn 0.45s ease backwards; }
  .sugg:nth-child(2) { animation-delay: 0.08s; }
  .sugg:nth-child(3) { animation-delay: 0.16s; }
  .sugg:nth-child(4) { animation-delay: 0.24s; }

  /* version switch: swapped copy fades up (state transition made visible) */
  .slot-in { animation: riseIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── mobile collapse ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .vswitch { margin-left: auto; }
  .vswitch button { padding: 5px 10px; font-size: 0.8rem; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-big { grid-column: span 1; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-graph { order: 2; }
  .marta { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 6px; }
  .stats { gap: 24px; }
}
