/* TractScout — public landing page. Self-contained: no external assets. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --surface: #ffffff;
  --border: #e2e7e5;
  --text: #16211c;
  --muted: #5f6f68;
  --accent: #1f6f4f;
  --accent-deep: #14503a;
  --accent-soft: #e8f2ed;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 8px 24px rgba(16, 32, 24, .06);
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1512;
    --bg-alt: #131c18;
    --surface: #172019;
    --border: #26332c;
    --text: #e8efea;
    --muted: #93a49a;
    --accent: #4ade80;
    --accent-deep: #86efac;
    --accent-soft: #14251c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.btn {
  display: inline-block;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 111, 79, .28);
}
@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-primary:hover { color: #08120d; }
  .btn-primary:hover { box-shadow: 0 4px 14px rgba(74, 222, 128, .2); }
}

.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ── Logo mark ───────────────────────────────────────────── */

.mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}
@media (prefers-color-scheme: dark) { .mark { color: #08120d; } }
.mark.small { width: 26px; height: 26px; font-size: 11px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
/* Full-bleed hairline under a centred nav. */
.nav::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
}
.nav-name { font-size: 17px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }
@media (prefers-color-scheme: dark) { .nav-links a.btn { color: #08120d; } }
.nav-links a.btn:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .nav-links a.btn:hover { color: #08120d; } }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 24px 0;
  background:
    radial-gradient(900px 380px at 50% -8%,
      color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
}
/* Faint contour banding, as a nod to a topo map. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    118deg,
    transparent 0 38px,
    color-mix(in srgb, var(--accent) 7%, transparent) 38px 39px
  );
  mask-image: radial-gradient(680px 320px at 50% 10%, #000, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -.035em;
}

.lede {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

/* ── Stats ───────────────────────────────────────────────── */

.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--maxw);
  margin: 64px auto 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 18px;
  background: var(--surface);
  text-align: center;
}
.stat-value {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 680;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────────── */

.section { padding: 88px 24px; }
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); }
.section-head p { margin-top: 12px; font-size: 17px; color: var(--muted); }

/* ── Steps ───────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ── Cards ───────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ── Data ────────────────────────────────────────────────── */

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}
.data-col h3 { font-size: 17px; margin-bottom: 14px; }

.ticks, .crosses { margin: 0; padding: 0; list-style: none; }
.ticks li, .crosses li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}
.ticks li::before, .crosses li::before {
  position: absolute;
  left: 0; top: -1px;
  font-weight: 700;
}
.ticks li::before { content: "✓"; color: var(--accent); }
.crosses li::before { content: "✕"; color: #c2410c; }
@media (prefers-color-scheme: dark) { .crosses li::before { color: #fb923c; } }
.crosses li strong { color: var(--text); font-weight: 600; }

.provenance {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ── CTA ─────────────────────────────────────────────────── */

.cta {
  padding: 84px 24px;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: clamp(25px, 3.4vw, 32px); }
.cta p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.cta .btn { margin-top: 26px; }
.cta-note { font-size: 13px; margin-top: 18px; }

/* ── Footer ──────────────────────────────────────────────── */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 24px 44px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.foot-meta { font-size: 12px; opacity: .8; }

/* ── Narrow screens ──────────────────────────────────────── */

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .section { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
