/* aw — Agent Workforce landing. Vanilla CSS, no framework. */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #475569;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #f1f5f9;
  --bg-dark: #0b1220;
  --brand: #0ea5e9;
  --brand-2: #6366f1;
  --brand-3: #a78bfa;
  --accent: #f59e0b;
  --ok: #10b981;
  --rust: #b45309;
  --policy: #7c3aed;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-l: 0 1px 2px rgba(15,23,42,.04), 0 16px 40px rgba(15,23,42,.08);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 700; font-size: 17px; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-name { display: inline-flex; gap: 8px; align-items: baseline; }
.brand-dim { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--brand-2); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 380px at 18% -20%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(820px 360px at 92% 10%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow-live {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(16,185,129,.12); color: var(--ok); letter-spacing: .06em;
}
h1 {
  font-size: clamp(40px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 18px; font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 14px; max-width: 56ch; }
.trust {
  margin: 18px 0; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-2);
}
.trust b { color: var(--ink); }
.cta-row { display: flex; gap: 12px; margin: 18px 0 8px; }
.cta-row-center { justify-content: center; }
.micro { color: var(--muted); font-size: 13px; margin: 6px 0; }

/* kbd / code chips */
.kbd, .kbd-d, .kbd-sm {
  display: inline-block; font-family: var(--mono); font-size: .92em;
  padding: 2px 8px; border-radius: 6px;
  background: var(--bg-softer); border: 1px solid var(--line); color: var(--ink);
}
.kbd-sm { font-size: .85em; padding: 1px 6px; }
.kbd-d {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff;
}

/* ---------- Terminal ---------- */
.terminal {
  background: #0b1220; color: #e2e8f0;
  border-radius: var(--radius); box-shadow: var(--shadow-l);
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: 13.5px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #060912; border-bottom: 1px solid rgba(255,255,255,.06);
}
.terminal-bar span {
  width: 11px; height: 11px; border-radius: 50%; background: #334155;
}
.terminal-bar span:nth-child(1) { background: #ef4444; }
.terminal-bar span:nth-child(2) { background: #f59e0b; }
.terminal-bar span:nth-child(3) { background: #10b981; }
.terminal-bar b {
  margin-left: 12px; font-weight: 500; color: #94a3b8; font-size: 12.5px;
}
.terminal-body {
  margin: 0; padding: 18px 18px; line-height: 1.55;
  background: #0b1220; overflow-x: auto;
}
.t-prompt { color: #38bdf8; user-select: none; }
.t-str    { color: #fde68a; }
.t-muted  { color: #94a3b8; }
.t-comment{ color: #64748b; font-style: italic; }

/* ---------- Band (stats) ---------- */
.band {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.band-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.band-grid > div {
  display: flex; flex-direction: column; gap: 4px;
}
.band-grid b {
  font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
}
.band-grid span { color: var(--muted); font-size: 14px; }

/* ---------- Section base ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: #0b1220; color: #e2e8f0; border-top: 1px solid #0b1220; }
.section.dark p, .section.dark li { color: #94a3b8; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }

.section-title {
  font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 10px;
  letter-spacing: -0.02em; font-weight: 800;
}
.section-sub {
  font-size: 17px; color: var(--muted); margin: 0 0 36px; max-width: 70ch;
}
.section.dark .section-sub { color: #94a3b8; }

/* ---------- Principle (mechanism vs policy) ---------- */
.principle {
  display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.principle-col { padding: 28px 28px; }
.principle-col + .principle-col, .principle-divider + .principle-col { border-left: 1px dashed var(--line); }
.principle-col h3 {
  font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}
.principle-col ul {
  margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 15px;
}
.principle-col li { margin: 4px 0; }
.principle-divider {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--muted); background: var(--bg-soft);
  border-left: 1px dashed var(--line); border-right: 1px dashed var(--line);
}
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.tag-r { background: rgba(180,83,9,.10); color: var(--rust); }
.tag-p { background: rgba(124,58,237,.10); color: var(--policy); }
.principle-test {
  margin: 22px 0 0; padding: 16px 18px;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink-2);
}
.principle-test .arrow { color: var(--muted); margin: 0 2px; }

/* ---------- How (steps) ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps > li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: relative;
}
.section.soft .steps > li { background: #fff; }
.step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}
.steps h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Architecture grid ---------- */
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* ---------- Monitor section cards ---------- */
.monitor-card { display: flex; flex-direction: column; }
.monitor-card .dim {
  color: var(--ink-3); font-weight: 400; font-size: 12px;
  letter-spacing: 0.5px;
}
.monitor-card p.micro {
  color: var(--ink-3); margin: -2px 0 12px;
  font-size: 12px; letter-spacing: 0.3px;
}
.mono-snippet {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 12px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--ink); white-space: pre;
  overflow-x: auto;
  margin: 0 0 14px;
  min-height: 240px; max-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.monitor-card > p:last-child {
  margin: 0; color: #cbd5e1; font-size: 13.5px;
}
.feat {
  padding: 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease, border-color .15s ease;
}
.feat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.feat-ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(99,102,241,.18);
  font-size: 20px; margin-bottom: 12px;
}
.feat h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; color: #fff; }
.feat p { font-size: 14px; color: #cbd5e1; margin: 0; }

/* ---------- State model trees ---------- */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.grid-2-tight { gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad { padding: 24px; }
.card h3 {
  font-size: 17px; margin: 0 0 12px; font-weight: 700;
  display: flex; align-items: baseline; gap: 8px;
}
.dim { color: var(--muted); font-weight: 500; font-size: 14px; }
.tree {
  margin: 0; padding: 14px 16px;
  background: var(--bg-softer); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2); overflow-x: auto;
}
.tree .t-comment { color: var(--muted); font-style: italic; }

/* ---------- Status (check lists) ---------- */
.check {
  list-style: none; padding: 0; margin: 0;
}
.check li {
  padding: 8px 0 8px 28px; position: relative; font-size: 14.5px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.check li:last-child { border-bottom: none; }
.check li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--ok); font-weight: 700;
}
.check-progress li::before { content: "→"; color: var(--brand-2); }

.timeline {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 28px;
}
.timeline > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.timeline b { display: block; font-size: 13px; color: var(--brand-2); font-weight: 700; }
.timeline span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px;
}
.compare th, .compare td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--bg-soft); font-weight: 700; color: var(--ink);
}
.compare th.us, .compare td.us {
  background: rgba(99,102,241,.06); color: var(--brand-2); font-weight: 600;
}
.compare tbody tr:hover { background: var(--bg-soft); }
.compare td:first-child { color: var(--muted); }

/* ---------- Install ---------- */
.install-card { padding: 24px; }
.install-pre {
  margin: 0; padding: 16px 18px;
  background: #0b1220; color: #e2e8f0;
  border-radius: var(--radius-sm); overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
}
.install-pre .t-comment { color: #64748b; }
.install-pre .t-str { color: #fde68a; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 14px 18px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--brand-2); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink);
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 22px; color: var(--muted); font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- CTA strip ---------- */
.cta {
  background:
    radial-gradient(900px 320px at 50% -10%, rgba(99,102,241,.25), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #1e1b4b 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px;
  letter-spacing: -0.02em; font-weight: 800;
}
.cta-inner p { color: #cbd5e1; font-size: 16px; margin: 0 0 22px; }
.cta .btn-ghost {
  background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18);
}
.cta .btn-ghost:hover { border-color: #fff; }
.cta .micro { color: #94a3b8; }

/* ---------- Footer ---------- */
.foot {
  background: #fff; border-top: 1px solid var(--line);
  padding: 36px 0 16px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 22px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.foot h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px; font-weight: 700;
}
.foot a { display: block; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.foot a:hover { color: var(--brand-2); text-decoration: none; }
.foot .brand { margin-bottom: 6px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; font-size: 13px; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-2-tight { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; }
  .principle-divider {
    border: none; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
    padding: 8px 0; transform: rotate(90deg);
  }
  .principle-col + .principle-col, .principle-divider + .principle-col { border-left: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
