/* VectorFoundry marketing site — single shared stylesheet, no dependencies. */

:root {
  --ink: #14161c;
  --ink-2: #1a1e26;
  --ink-line: #2b3140;
  --paper: #f4f5f8;
  --white: #ffffff;
  --text: #23272f;
  --muted: #5a6170;
  --faint: #878e9c;
  --accent: #0f7fc4;
  --accent-dark: #0b649b;
  --accent-soft: #e7f4fc;
  --line: #e3e6eb;
  --gold: #8f620b;
  --gold-bright: #f2b544;
  --gold-soft: #f8eed7;
  --cyan-bright: #4cc9f0;
  --violet: #8b5cf6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.18rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 46em; }

.eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--ink); color: #fff;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--cyan-bright), var(--violet), var(--gold-bright)) 1;
}
.nav {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: #fff; text-decoration: none; letter-spacing: 0.01em;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand .mark { flex: 0 0 auto; }
.nav a.navlink {
  color: #cfd5e2; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a.navlink:hover { color: #fff; }
.nav a.navlink[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-bright); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 0.98rem; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #4a5468; }
.btn.ghost:hover { border-color: #fff; background: transparent; }
.btn.ghost-dark { background: transparent; color: var(--ink); border-color: #c5cad3; }
.btn.ghost-dark:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #e8ebf2; padding: clamp(56px, 9vw, 110px) 0; }
.hero .eyebrow, .band .eyebrow { color: var(--gold-bright); }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lede { color: #b9c1d2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-sub { padding: 14px 0 0; color: #8f98ab; font-size: 0.92rem; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px;
}
.section.alt .card { background: var(--paper); }
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card .kicker {
  display: inline-block; font-family: var(--serif); font-size: 1.9rem;
  color: var(--gold); margin-bottom: 10px; line-height: 1;
}

/* ---------- ink band ---------- */
.band { background: var(--ink-2); color: #dfe4ee; padding: clamp(44px, 6vw, 72px) 0; }
.band h2 { color: #fff; }
.band .lede { color: #aab3c6; }
.band-quote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3;
  color: #fff; max-width: 24em; margin: 0 0 14px;
}
.band-quote em { color: var(--gold-bright); font-style: normal; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2.1rem; color: var(--gold);
  line-height: 1; padding-top: 2px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.99rem; }
.step p:last-child { margin-bottom: 0; }

/* ---------- autonomy ladder ---------- */
.ladder { display: grid; gap: 10px; }
.rung {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px;
}
.rung .n {
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold);
  text-align: center; background: var(--gold-soft); border-radius: 8px; line-height: 1.9;
}
.rung strong { color: var(--ink); }
.rung span { color: var(--muted); font-size: 0.96rem; }
.rung.cap { border-style: dashed; background: transparent; }
.rung.cap .n { background: transparent; color: var(--faint); }

/* ---------- why-trail trace card ---------- */
.trace {
  background: #0e1118; border: 1px solid #262c39; border-radius: 14px;
  padding: 22px 22px 18px; font-family: var(--mono); font-size: 0.83rem;
  line-height: 1.75; color: #aeb8cc; overflow-x: auto;
}
.trace .label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #6d7a94; display: block; margin-bottom: 10px;
}
.trace .k { color: #7d8aa5; }
.trace .v { color: #e8ebf2; }
.trace .hold { color: var(--gold-bright); font-weight: 700; }
.trace .src { color: var(--cyan-bright); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.plain th, table.plain td { text-align: left; padding: 13px 16px; vertical-align: top; }
table.plain th {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); border-bottom: 2px solid var(--line); font-weight: 700;
}
table.plain td { border-bottom: 1px solid var(--line); }
table.plain td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }

/* ---------- misc ---------- */
.note {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  border-radius: 0 10px 10px 0; padding: 18px 22px; color: #6a5416; font-size: 0.97rem;
}
.note strong { color: #514010; }

.quiet {
  border: 1px solid var(--line); border-radius: 14px; background: transparent;
  padding: 24px 26px; color: var(--muted); font-size: 0.97rem;
}
.quiet h3 { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.checklist li strong { color: var(--ink); }

.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gate {
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  padding: 16px; text-align: center; font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
}
.gate small { display: block; font-family: var(--sans); color: var(--faint); font-size: 0.8rem; margin-top: 6px; }

.cta-final { text-align: center; }
.cta-final h2 { max-width: 22em; margin-left: auto; margin-right: auto; }
.cta-final .lede { margin-left: auto; margin-right: auto; }
.cta-final .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9aa3b5; padding: 48px 0 40px; font-size: 0.93rem; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #cfd5e2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: #fff; display: inline-flex; gap: 9px; align-items: center; }
.footer-meta { width: 100%; border-top: 1px solid var(--ink-line); margin-top: 30px; padding-top: 20px; color: #6d7a94; font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .nav { gap: 16px; }
}

/* ---------- problem ledger ---------- */
.plist { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.prow { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow strong { color: var(--ink); font-size: 1.03rem; font-weight: 650; }
.prow p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- promises on ink ---------- */
.band .grid-3 h3 { color: #fff; }
.band .grid-3 p { color: #aab3c6; font-size: 0.95rem; margin-bottom: 0; }

/* ---------- before/after vignette ---------- */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.tag.after { color: var(--accent); }

@media (max-width: 720px) {
  .prow { grid-template-columns: 1fr; gap: 6px; }
}
