/* Agent Farm Plan — Consolider / Lutho / Founder HQ */
:root {
  --bg: #08111D;
  --panel: #0D1826;
  --panel-2: #122033;
  --panel-3: #182A40;
  --amber: #D99A4A;
  --amber-dim: rgba(217, 154, 74, 0.18);
  --amber-line: rgba(217, 154, 74, 0.35);
  --cyan: #6F9BC5;
  --cyan-dim: rgba(111, 155, 197, 0.16);
  --cream: #EBE5DE;
  --cream-mute: rgba(235, 229, 222, 0.72);
  --cream-faint: rgba(235, 229, 222, 0.45);
  --danger: #C47A6A;
  --ok: #7AAB8A;
  --border: rgba(235, 229, 222, 0.08);
  --border-strong: rgba(235, 229, 222, 0.14);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1100px;
  --nav-h: 64px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* subtle grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111, 155, 197, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(217, 154, 74, 0.04), transparent 50%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 17, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(145deg, #E0A85A, #B87830);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #08111D;
  box-shadow: 0 0 0 1px rgba(217, 154, 74, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-mute);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--cream);
  background: var(--amber-dim);
}

.nav-cta {
  background: var(--amber-dim) !important;
  color: var(--amber) !important;
  border: 1px solid var(--amber-line);
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: rgba(217, 154, 74, 0.28) !important;
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 24, 38, 0.98);
    border-bottom: 1px solid var(--border-strong);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
  }
  .nav-cta { margin-left: 0; margin-top: 0.35rem; text-align: center; }
}

/* ——— Hero ——— */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--cream-mute);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.thesis {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.15rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.45;
  max-width: 58ch;
  box-shadow: var(--shadow);
}

.thesis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

.meta-row strong { color: var(--cream-mute); font-weight: 560; }

/* ——— Sections ——— */
section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.section-intro {
  color: var(--cream-mute);
  max-width: 58ch;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

/* ——— Chips ——— */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 550;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  color: var(--cream);
}

.chip--amber {
  background: var(--amber-dim);
  border-color: var(--amber-line);
  color: var(--amber);
}

.chip--cyan {
  background: var(--cyan-dim);
  border-color: rgba(111, 155, 197, 0.35);
  color: var(--cyan);
}

.chip--muted {
  color: var(--cream-faint);
  text-decoration: line-through;
  opacity: 0.7;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

/* ——— Why table ——— */
.why-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

.why-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.why-pain {
  font-size: 0.8rem;
  color: var(--cream-faint);
  font-weight: 500;
}

.why-fix {
  font-size: 0.92rem;
  color: var(--cream);
  font-weight: 500;
}

.why-fix span {
  color: var(--amber);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* ——— Diagrams ——— */
.diagram-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
}

.diagram-shell svg {
  min-width: 320px;
  margin-inline: auto;
}

.diagram-caption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--cream-faint);
  text-align: center;
}

/* PC cards */
.pc-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .pc-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .pc-grid { grid-template-columns: repeat(4, 1fr); }
}

.pc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  transition: border-color 0.2s;
}

.pc-card:hover { border-color: var(--amber-line); }

.pc-card--mvp {
  border-color: var(--amber-line);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
}

.pc-id {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.pc-role {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

.pc-job {
  font-size: 0.85rem;
  color: var(--cream-mute);
  flex: 1;
}

.pc-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}

.mvp-note {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(111, 155, 197, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--cream-mute);
}

.mvp-note strong { color: var(--cyan); }

/* ——— Agents ——— */
.agent-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .agent-grid { grid-template-columns: 1fr 1fr; }
}

.agent-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.agent-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-pc {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.agent-card ul {
  margin-top: 0.65rem;
  padding-left: 1.1rem;
  color: var(--cream-mute);
  font-size: 0.9rem;
}

.agent-card li { margin-bottom: 0.35rem; }
.agent-card li::marker { color: var(--amber); }

/* ——— Cost / tables ——— */
.two-col {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.do-dont {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.do-dont h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.do-dont--do h3 { color: var(--ok); }
.do-dont--dont h3 { color: var(--danger); }

.do-dont ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--cream-mute);
}

.do-dont li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.15rem;
  position: relative;
}

.do-dont li:last-child { border-bottom: none; }

.do-dont--do li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
}

.do-dont--dont li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.8rem;
}

.cap-banner {
  margin: 1.25rem 0;
  text-align: center;
  padding: 1rem 1.25rem;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
}

.cap-banner strong { color: var(--amber); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 280px;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  background: var(--panel-2);
}

td { color: var(--cream-mute); }
td:first-child { color: var(--cream); font-weight: 500; }
tr:last-child td { border-bottom: none; }

.tier {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tier--cheap { background: var(--cyan-dim); color: var(--cyan); }
.tier--mid { background: rgba(217, 154, 74, 0.12); color: var(--amber); }
.tier--frontier { background: rgba(196, 122, 106, 0.18); color: var(--danger); }
.tier--skip { background: rgba(235, 229, 222, 0.06); color: var(--cream-faint); }

/* ——— Roadmap ——— */
.phases {
  display: grid;
  gap: 0.75rem;
}

.phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  align-items: start;
}

.phase--active {
  border-color: var(--amber-line);
  background: linear-gradient(120deg, rgba(217, 154, 74, 0.08), var(--panel));
}

.phase-num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.phase--active .phase-num {
  background: var(--amber-dim);
  border-color: var(--amber-line);
  color: var(--amber);
}

.phase h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.phase p, .phase ol {
  font-size: 0.88rem;
  color: var(--cream-mute);
}

.phase ol {
  margin-top: 0.45rem;
  padding-left: 1.15rem;
}

.phase li { margin-bottom: 0.25rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(196, 122, 106, 0.15);
  color: var(--danger);
  border: 1px solid rgba(196, 122, 106, 0.3);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

/* ——— Security ——— */
.rules {
  display: grid;
  gap: 0.65rem;
}

.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}

.rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.rule strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.rule p {
  font-size: 0.85rem;
  color: var(--cream-mute);
}

/* ——— Glossary ——— */
.glossary {
  display: grid;
  gap: 0.55rem;
}

.gloss-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gloss-item dt {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--cream);
}

.gloss-item dd {
  font-size: 0.88rem;
  color: var(--cream-mute);
}

.gloss-item--hq { border-left-color: var(--amber); }

/* ——— Checklist / strips ——— */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--cream-mute);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--amber-line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: var(--amber-dim);
}

.nongoals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.nongoal {
  font-size: 0.78rem;
  color: var(--cream-faint);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.nongoal::before {
  content: "— ";
  color: var(--danger);
}

/* ——— CTA Footer ——— */
.cta {
  margin: 1rem 0 3rem;
  background:
    linear-gradient(145deg, rgba(217, 154, 74, 0.12), transparent 55%),
    var(--panel-2);
  border: 1px solid var(--amber-line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta-steps {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem auto 0;
  max-width: 520px;
  text-align: left;
}

.cta-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: rgba(8, 17, 29, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.cta-step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #08111D;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.cta-step strong {
  display: block;
  margin-bottom: 0.15rem;
}

.cta-step p {
  font-size: 0.85rem;
  color: var(--cream-mute);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

.site-footer a { color: var(--cream-mute); }

/* ——— Print ——— */
@media print {
  body { background: #fff; color: #111; }
  .site-nav, .nav-toggle { display: none !important; }
  section, .hero { break-inside: avoid; }
  .pc-card, .phase, .agent-card { border-color: #ccc; background: #f8f8f8; }
}
