/* fathom design v2.0 — dark register · product / utility / dashboard layouts */
/* see darkflobi-site/design-v2/SYSTEM.md §2b */

:root {
  --paper:#0A0A0A;
  --ink:#F4EFE6;
  --graphite:#9F9890;
  --rule:#1F1F1F;
  --pale:#141210;
  --archive:#585450;
  --signal:#C8A86B;
  --signal-hover:#E0BE7E;
  --terracotta:#C7654A;
  --serif:"Source Serif 4","Iowan Old Style",Georgia,serif;
  --sans:"Inter Tight",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
  --duration:200ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "liga" 1, "dlig" 1, "onum" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--paper); }

/* ── header ─────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 2rem;
  position: sticky; top: 0; background: var(--paper); z-index: 50;
}
header.site .top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.6rem; max-width: 1200px; margin-left: auto; margin-right: auto;
}
header.site .wordmark {
  font-family: var(--serif); font-style: italic; font-size: 28px;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
header.site .wordmark .product {
  font-style: normal; font-family: var(--sans); font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); margin-left: 0.4em;
}
header.site nav { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; }
header.site nav a {
  margin-left: 1.5rem; color: var(--graphite); text-decoration: none;
  transition: color var(--duration) var(--ease);
}
header.site nav a:hover, header.site nav a.current { color: var(--signal); }
header.site .scores {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--graphite); display: flex; gap: 0.4em; flex-wrap: wrap;
  align-items: center; max-width: 1200px; margin: 0 auto;
}
header.site .scores strong { color: var(--ink); font-weight: 500; font-feature-settings: "tnum" 1; }
header.site .scores .stamp { margin-left: auto; color: var(--archive); }

.breath { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: 0.6rem; }
.breath span { display: inline-block; width: 4px; background: var(--signal); opacity: 0.55; animation: breath 6s ease-in-out infinite; }
.breath span:nth-child(1){animation-delay:0s;height:30%}
.breath span:nth-child(2){animation-delay:.15s;height:45%}
.breath span:nth-child(3){animation-delay:.3s;height:60%}
.breath span:nth-child(4){animation-delay:.45s;height:75%}
.breath span:nth-child(5){animation-delay:.6s;height:90%}
.breath span:nth-child(6){animation-delay:.75s;height:100%}
.breath span:nth-child(7){animation-delay:.9s;height:100%}
.breath span:nth-child(8){animation-delay:1.05s;height:90%}
.breath span:nth-child(9){animation-delay:1.2s;height:75%}
.breath span:nth-child(10){animation-delay:1.35s;height:60%}
.breath span:nth-child(11){animation-delay:1.5s;height:45%}
.breath span:nth-child(12){animation-delay:1.65s;height:30%}
@keyframes breath { 0%,100% { transform: scaleY(0.4); opacity: 0.35; } 50% { transform: scaleY(1); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .breath span { animation: none; } }

/* ── content container ────────────────────────────── */
main { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }

/* ── product hero ───────────────────────────────── */
.hero { padding: 7rem 0 4rem; max-width: 900px; }
.hero .meta {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--signal); font-weight: 500;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink); margin: 0 0 1.5rem 0;
}
.hero h1 em { color: var(--signal); font-style: normal; }
.hero .lede {
  font-family: var(--serif); font-size: 20px; line-height: 1.55;
  color: var(--ink); margin: 0 0 2.5rem 0; max-width: 720px;
}
.hero .lede em { color: var(--signal); font-style: normal; font-weight: 500; }
.hero .ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px;
  font-weight: 500; padding: 13px 26px; border-radius: 2px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--pale); color: var(--ink); border-color: var(--ink); }

a.inline {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(to right, var(--signal), var(--signal));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--duration) var(--ease), color var(--duration) var(--ease);
}
a.inline:hover { color: var(--signal); background-size: 100% 1px; }

/* ── section ────────────────────────────────────── */
section.product { padding: 5rem 0; border-top: 1px solid var(--rule); }
section.product .num {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--archive); font-weight: 500;
  display: block; margin-bottom: 1.5rem;
}
section.product h2 {
  font-family: var(--sans); font-size: clamp(28px, 4vw, 44px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 1.5rem 0; max-width: 720px;
}
section.product h2 em { color: var(--signal); font-style: normal; }
section.product h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 20px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); margin: 1.5rem 0 0.6rem 0;
}
section.product p {
  font-family: var(--serif); font-size: 18px; line-height: 1.65;
  color: var(--ink); margin: 0 0 1.5rem 0; max-width: 700px;
}
section.product p.muted { color: var(--graphite); }

/* ── code ───────────────────────────────────────── */
code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--pale); padding: 0.1em 0.35em; border-radius: 2px;
  color: var(--signal);
}
pre {
  background: var(--pale); border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem; font-family: var(--mono); font-size: 14px;
  line-height: 1.7; border-radius: 2px; overflow-x: auto;
  margin: 2rem 0; max-width: 760px; color: var(--ink);
}
pre code { background: none; padding: 0; color: var(--ink); font-size: 14px; }
pre .kw { color: var(--graphite); }
pre .str { color: var(--signal); }

/* ── stats grid ─────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin: 3rem 0; max-width: 760px;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .stat {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
}
.stats .stat .val {
  font-family: var(--sans); font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.025em; color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  display: block; line-height: 1; margin-bottom: 0.5rem;
}
.stats .stat .lbl {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--graphite); line-height: 1.4;
  font-weight: 500;
}

/* ── feature grid (bento on product pages only) ── */
.features {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin: 2.5rem 0; max-width: 1080px;
}
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  border: 1px solid var(--rule); padding: 1.75rem 2rem;
  border-radius: 2px; transition: border-color var(--duration) var(--ease);
}
.feature:hover { border-color: var(--signal); }
.feature h4 {
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.6rem 0;
}
.feature .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--signal); margin-bottom: 0.6rem; display: inline-block;
}
.feature p {
  font-family: var(--serif); font-size: 15px; line-height: 1.55;
  color: var(--graphite); margin: 0;
}

/* ── tables ─────────────────────────────────────── */
table {
  border-collapse: collapse; width: 100%; max-width: 760px;
  margin: 1.5rem 0; font-family: var(--serif); font-size: 16px;
}
table thead th {
  border-bottom: 1px solid var(--ink); text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  font-family: var(--sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--archive); font-weight: 500;
}
table tbody tr { border-bottom: 1px solid var(--rule); }
table td { padding: 0.5rem 1rem 0.5rem 0; vertical-align: top; color: var(--ink); }
table .num { font-feature-settings: "tnum" 1; text-align: right; font-family: var(--mono); }

/* ── install / CTA card ─────────────────────────── */
.cta-card {
  background: var(--pale); border: 1px solid var(--rule);
  padding: 3rem 2.5rem; border-radius: 2px;
  margin: 4rem 0 0; text-align: center;
}
.cta-card h3 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 4vw, 40px); font-weight: 400;
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 1rem 0;
}
.cta-card p {
  font-family: var(--serif); font-size: 17px; color: var(--graphite);
  max-width: 540px; margin: 0 auto 2rem auto;
}

/* ── footer ─────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--rule); padding: 4rem 2rem 2rem;
  margin-top: 8rem; color: var(--archive);
  font-family: var(--sans); font-size: 13px;
}
footer.site .cols {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  max-width: 1200px; margin: 0 auto 3rem auto;
}
@media (min-width: 700px) { footer.site .cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
footer.site h4 {
  font-family: var(--sans); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--archive); margin-bottom: 0.8rem;
  font-weight: 500;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: 0.4rem; }
footer.site ul li a { color: var(--ink); text-decoration: none; }
footer.site ul li a:hover { color: var(--signal); }
footer.site .colophon {
  max-width: 1200px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid var(--rule); font-size: 12px;
  letter-spacing: 0.04em; color: var(--archive); text-align: center;
}

@media (max-width: 640px) {
  header.site { padding: 1rem 1.25rem; }
  header.site nav { display: none; }
  main { padding: 0 1.25rem; }
}
