/* Nexus Agents — site stylesheet */

:root {
  --ink: #10161e;
  --ink-soft: #46536b;
  --ink-faint: #7a879c;
  --line: #dfe4ec;
  --line-soft: #eef1f6;
  --paper: #f7f8fa;
  --white: #ffffff;
  --accent: #1f4b8f;
  --accent-soft: #eaf0f8;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  z-index: 20;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand .name {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}

nav.top {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.top a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
}

nav.top a:hover { color: var(--ink); }

nav.top a.btn, nav.top a.btn:hover { color: #fff; }

nav.top a.btn.ghost { color: var(--accent); }

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background 120ms ease, border-color 120ms ease;
}

.btn:hover { background: #17386b; border-color: #17386b; }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}

.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- hero ---------- */

.hero { padding: 84px 0 68px; border-bottom: 1px solid var(--line-soft); }

.hero .kicker {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 680;
  margin: 0 0 22px;
  max-width: 20ch;
}

.hero .sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 32px;
}

.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.hero .fineprint { font-size: 13.5px; color: var(--ink-faint); margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}

.stat { background: var(--white); padding: 22px 24px; }

.stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.stat .value {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- sections ---------- */

section { padding: 76px 0; border-bottom: 1px solid var(--line-soft); }

section.tint { background: var(--paper); }

section h2 {
  font-size: clamp(24px, 2.6vw, 31px);
  letter-spacing: -0.018em;
  font-weight: 680;
  margin: 0 0 14px;
  max-width: 26ch;
}

section .lede {
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 42px;
  font-size: 17.5px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 650;
  margin: 0 0 16px;
}

/* ---------- cards / grids ---------- */

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  background: var(--white);
}

.card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.card p + p { margin-top: 12px; }

.card .tag {
  display: inline-block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
  font-weight: 650;
}

/* ---------- steps ---------- */

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step .num {
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.step h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); max-width: var(--measure); font-size: 15.5px; }

/* ---------- pricing ---------- */

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

.plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.plan h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }

.plan .price {
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -0.025em;
  margin: 10px 0 4px;
}

.plan .price span { font-size: 15px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }

.plan .note { font-size: 14px; color: var(--ink-faint); margin: 0 0 22px; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border-top: 1px solid var(--line-soft);
  flex: 1;
}

.plan ul li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

details[open] summary::after { content: "\2013"; }

details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  max-width: var(--measure);
  font-size: 15.5px;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 { color: #fff; margin: 0 0 8px; max-width: 30ch; }
.cta p { margin: 0; color: #b9c3d4; max-width: 46ch; font-size: 15.5px; }

.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { background: #e8ecf3; border-color: #e8ecf3; }

/* ---------- legal pages ---------- */

.legal { padding: 64px 0 90px; }

.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 680; }

.legal .updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 40px; }

.legal h2 { font-size: 19px; margin: 38px 0 10px; font-weight: 650; letter-spacing: -0.01em; }

.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; max-width: var(--measure); }

.legal ul { padding-left: 20px; }

.legal li { margin-bottom: 8px; }

.legal a { color: var(--accent); }

/* ---------- footer ---------- */

footer.site {
  padding: 46px 0 54px;
  background: var(--white);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

footer.site .col p { margin: 0; font-size: 13.5px; color: var(--ink-faint); max-width: 34ch; }

footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }

footer.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13.5px;
}

footer.site nav a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid.two, .grid.three, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  nav.top { gap: 16px; }
  nav.top a.hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 54px 0; }
  .cta { padding: 34px 26px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}
