/* Contig landing page — system fonts only, no external requests. */

:root {
  --ink: #06110d;
  --ink-deep: #040d0a;
  --panel: #0a1a14;
  --line: #1b312a;
  --line-bright: #29473c;
  --text: #e9f2ed;
  --muted: #9fb3aa;
  --accent: #0dc09d;
  --accent-deep: #0a8f74;
  --warn: #e3b74a;
  --fail: #f08a7c;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #4fe0c5; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: var(--ink-deep);
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.05rem;
}

/* the source mark is dark-on-transparent; invert for the dark page */
.brand-mark,
.hero-mark { filter: invert(1); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.track {
  height: 56px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, var(--line-bright) 0 1px, transparent 1px 34px) left bottom / 100% 16px no-repeat,
    linear-gradient(var(--line), var(--line)) left 55% / 100% 1px no-repeat;
}

.hero { padding-bottom: 4.5rem; }

.hero-inner { padding-top: 3.5rem; }

.hero-mark {
  width: 88px;
  height: auto;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  background: rgba(13, 192, 157, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.tagline {
  margin: 1.25rem 0 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  font-weight: 600;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede strong, .lede em { color: var(--text); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 120ms ease, background 120ms ease;
}

.btn:hover { border-color: var(--accent); color: var(--text); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-deep);
}
.btn-primary:hover { background: #4fe0c5; border-color: #4fe0c5; color: var(--ink-deep); }

.terminal {
  margin-top: 2.5rem;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: var(--ink-deep);
  overflow: hidden;
  max-width: 660px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tick {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.terminal pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--text);
}

.terminal .c { color: #7f9a90; }

.fine {
  margin: 0.9rem 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- sections ---------- */

section { border-top: 1px solid var(--line); }

#why, #features, #screenshots, #verdict, #status { padding: 4rem 0 4.5rem; }

.step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-num {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  color: var(--accent);
}

h2 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.body {
  max-width: 62ch;
  color: var(--muted);
}

/* ---------- why ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 8px 8px;
  background: var(--panel);
}

.stat-num {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.stat blockquote p { margin: 0; }

.source {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.thesis {
  max-width: 66ch;
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line-bright);
  font-size: 1.02rem;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  padding: 1.75rem;
  background: var(--ink);
}

.feature-num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.feature h3 { font-size: 1.12rem; }

.feature p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature p code, .limits code, .scoping code, .verdicts code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--panel);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.shots figure, .demo { margin: 0; }

.shots img, .demo img {
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--panel);
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.demo { margin-top: 2.25rem; }

.demo img { max-width: 860px; }

.demo figcaption { max-width: 60ch; }

/* ---------- verdict ---------- */

.verdicts {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.verdict {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.verdict p { margin: 0; color: var(--muted); }

.verdict-name {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.verdict-name::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  border-radius: 1px;
  background: currentColor;
  vertical-align: 1px;
}

.verdict-pass .verdict-name { color: var(--accent); }
.verdict-warn .verdict-name { color: var(--warn); }
.verdict-fail .verdict-name { color: var(--fail); }
.verdict-unknown .verdict-name { color: var(--muted); }

.scoping {
  margin-top: 2.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.scoping h3 { color: var(--accent); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

.scoping blockquote { margin: 0; }

.scoping p {
  margin: 0;
  max-width: 72ch;
  color: var(--text);
  font-size: 0.98rem;
}

/* ---------- status ---------- */

.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.limits article { border-top: 1px solid var(--line-bright); padding-top: 1rem; }

.limits h3 { font-size: 0.95rem; }

.limits p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.foot-inner p { margin: 0; }

.site-foot .fine { margin: 0; font-size: 0.82rem; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .head-inner { min-height: 0; }
  .nav { font-size: 0.85rem; gap: 0.25rem 0.9rem; }
  .hero-inner { padding-top: 2.5rem; }
  .features { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; gap: 0.15rem; }
  #why, #features, #screenshots, #verdict, #status { padding: 3rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
