/* ---------- tokens ---------- */
:root {
  --bg: #faf8f3;
  --bg-tint: #f1eee6;
  --paper: #ffffff;
  --ink: #17201c;
  --ink-2: #4b5450;
  --ink-3: #8b928e;
  --line: #ddd8cd;
  --line-strong: #c7c1b3;

  --accent: #1f5f4a;
  --accent-2: #2f8a6b;
  --accent-soft: #e2efe8;
  --amber: #c9691a;
  --amber-soft: #f8e7d6;

  --dark: #12201b;
  --dark-2: #1a2d26;
  --dark-line: rgba(255,255,255,.12);
  --dark-ink: #f1f3ef;
  --dark-ink-2: #b3bdb7;

  --max: 70rem;
  --measure: 40rem;
  --radius: 10px;

  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.08; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 16ch; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 0; }
p { margin: 0 0 1rem; max-width: var(--measure); }
ul, ol { padding: 0; margin: 0; list-style: none; }
small { font-size: 0.78em; color: var(--ink-3); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.25rem;
}
.eyebrow .num { color: var(--accent); }
.eyebrow .num::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: var(--line-strong); margin-left: 0.75rem; vertical-align: middle; }
.eyebrow-live { color: var(--amber); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(201,105,26,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(201,105,26,0); } 100% { box-shadow: 0 0 0 0 rgba(201,105,26,0); } }

.intro { font-size: 1.15rem; color: var(--ink-2); }
.fine { font-size: 0.9rem; color: var(--ink-3); margin-top: 1.75rem; }
.muted { color: var(--ink-3); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); transform: rotate(45deg); }
.nav nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.9rem; }
.nav nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 800px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff !important;
  padding: 0.75rem 1.3rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 24px -12px rgba(31,95,74,.6);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 12px 28px -12px rgba(31,95,74,.7); }
.btn-small { padding: 0.45rem 0.95rem; font-size: 0.85rem; box-shadow: none; }
.btn-large { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-invert { background: var(--dark-ink); color: var(--dark) !important; box-shadow: none; }
.btn-invert:hover { background: #fff; }
.link { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.link:hover { color: var(--ink); }
.cta-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 2.25rem; }

/* ---------- sections ---------- */
section { padding: 6rem 0; border-top: 1px solid var(--line); }
section.tint { background: var(--bg-tint); }
section.dark { background: var(--dark); color: var(--dark-ink); border-top: 0; }
section.dark .intro, section.dark p { color: var(--dark-ink-2); }
section.dark .fine { color: var(--dark-ink-2); opacity: .75; }
section.dark h2, section.dark h3 { color: var(--dark-ink); }

/* ---------- hero ---------- */
.hero {
  border-top: 0; padding: 5rem 0 6rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(47,138,107,.14), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(201,105,26,.08), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 32rem; } }
.lede { font-size: 1.3rem; color: var(--ink-2); max-width: 32rem; }

.hero-art { margin: 0; color: var(--ink); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .edges line { stroke: var(--line-strong); stroke-width: 1; }
.hero-art .nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.hero-art .nodes .finding { fill: var(--amber); stroke: var(--amber); }
.hero-art .rings circle { fill: none; stroke: var(--amber); stroke-width: 1; opacity: .5; }
.hero-art .agent-path { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.hero-art .agent-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.hero-art .labels text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.hero-art .legend text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-3); }
.hero-art .legend .lg-path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; }
.hero-art .legend .lg-finding { fill: var(--amber); }
@media (prefers-reduced-motion: reduce) {
  .hero-art .agent-path { animation: none; }
  .hero-art .agent-dot { display: none; }
  .pulse { animation: none; }
}

/* ---------- problems ---------- */
.problems {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem; margin-top: 2.5rem; counter-reset: prob;
}
.problems li {
  counter-increment: prob; position: relative;
  padding: 1.5rem 1.4rem 1.2rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.problems li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.problems li::before {
  content: "0" counter(prob); position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3);
}
.problems strong { display: block; font-size: 1.05rem; margin-bottom: 0.4rem; padding-right: 2rem; }
.problems p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

.chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-top: 3rem; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2);
}
.chain li { display: flex; align-items: center; gap: 0.6rem; }
.chain li + li::before { content: "→"; color: var(--accent); font-weight: 500; }
.chain li:last-child { color: var(--accent); font-weight: 500; }

/* ---------- offer (dark) ---------- */
.offer { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; gap: 2rem; } }
.offer .amp { font-style: italic; color: var(--accent-2); }
.offer-body {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 2rem;
}
.offer-body h3 { color: var(--dark-ink); margin-bottom: 1.25rem; }
.checks { display: grid; gap: 0.9rem; }
.checks li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--dark-ink); font-size: 0.98rem; }
.checks li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.2rem; border-radius: 50%;
  background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23000'/%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23000'/%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.offer-body .fine { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--dark-line); }

/* ---------- capability grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.8rem; margin-top: 2.5rem;
}
.grid li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 1rem 1.1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.97rem;
  transition: border-color .2s, box-shadow .2s;
}
.grid li:hover { border-color: var(--accent-2); box-shadow: 0 8px 20px -14px rgba(31,95,74,.5); }
.grid .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); flex: 0 0 auto; }
.grid li.muted { background: transparent; border-style: dashed; }
.grid li.muted .idx { color: var(--ink-3); }
.grid li small { margin-left: 0.3rem; }

/* ---------- steps timeline ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 1.25rem; margin-top: 2.5rem; counter-reset: step; position: relative;
}
.steps li { counter-increment: step; position: relative; padding-top: 1.6rem; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: -1.25rem; top: 0.45rem; height: 1px; background: var(--line-strong);
}
.steps li:last-child::before { right: 0; }
.steps li::after {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  display: grid; place-items: center;
}
.steps li:first-child::after, .steps li:nth-child(2)::after { background: var(--amber); }
.steps strong { display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.steps span { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- autonomy ---------- */
.autonomy { margin-top: 4rem; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .autonomy { grid-template-columns: 1fr; gap: 1rem; } }
.autonomy-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.level { padding: 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.level strong { display: block; margin: 0.9rem 0 0.4rem; }
.level p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.dial { display: flex; gap: 4px; }
.dial i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.level[data-level="1"] .dial i:nth-child(-n+1),
.level[data-level="2"] .dial i:nth-child(-n+2),
.level[data-level="3"] .dial i:nth-child(-n+3) { background: var(--accent-2); }

/* ---------- needs ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 1rem; } }
.needs { display: grid; }
.needs li { padding: 1.1rem 0 1.1rem 1.75rem; position: relative; border-top: 1px solid var(--line); }
.needs li:last-child { border-bottom: 1px solid var(--line); }
.needs li::before { content: ""; position: absolute; left: 0.2rem; top: 1.75rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* ---------- quote ---------- */
.quote-section {
  background:
    radial-gradient(50rem 24rem at 100% 0%, rgba(47,138,107,.10), transparent 60%),
    var(--bg);
}
.quote-section .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .quote-section .wrap { grid-template-columns: 1fr; } }
.quote-section blockquote {
  margin: 0; padding-left: 1.5rem; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.12; max-width: 22ch;
}
.quote-body p { color: var(--ink-2); }

/* ---------- cta + footer (dark) ---------- */
.cta-section { padding: 7rem 0 2.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(47,138,107,.25), transparent 65%);
}
.cta-section .wrap { position: relative; }
.cta-section h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.cta-section p { margin: 0 auto 2.25rem; }
.cta-section footer {
  margin-top: 6rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-line);
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--dark-ink-2); text-align: left;
}
.cta-section footer a { color: var(--dark-ink-2); }
.cta-section footer .wordmark { color: var(--dark-ink); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
