/* AgentBrain Core Home — components on top of founding-beta.css */

/* —— Hero grid with creed card —— */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-grid h1 { font-size: clamp(34px, 4.6vw, 54px); }
.hero-grid h1 .l { display: block; }

.creed-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10,10,12,0.04), 0 12px 30px rgba(10,10,12,0.08);
  overflow: hidden;
}
.creed-card .creed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--soft);
  letter-spacing: 0.3px;
}
.creed-card .creed-head .dots { display: flex; gap: 5px; }
.creed-card .creed-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-tint); border: 1px solid var(--hair-strong);
}
.creed-card .creed-line {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.creed-card .creed-line .n { font-size: 11px; color: var(--soft); }
.creed-card .creed-line.stays {
  border-bottom: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.creed-card .creed-line.stays .stay-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Statement band (pivot) —— */
.pivot {
  margin: 0 0 88px;
  padding: 52px clamp(24px, 5vw, 64px);
  background: var(--bg-soft);
  border: 1px solid var(--hair);
  border-radius: 18px;
  text-align: center;
}
.pivot .p-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--soft);
  display: block;
  margin-bottom: 18px;
}
.pivot .p-line {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 720px;
  margin: 0 auto;
}
.pivot .p-line em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pivot .p-sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* —— Triad (body / brain / proof) —— */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.triad .t-cell {
  padding: 22px 22px 24px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  text-align: left;
}
.triad .t-cell .t-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--soft);
  display: block;
  margin-bottom: 10px;
}
.triad .t-cell h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.triad .t-cell.is-brain { border-color: rgba(79,100,255,0.3); }
.triad .t-cell.is-brain .t-tag { color: var(--blue); }

/* —— 3-col pillar modifier —— */
.pillars.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* —— Architecture layer stack —— */
.layers { display: flex; flex-direction: column; gap: 12px; }
.layer {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color var(--t-fast) ease;
}
.layer:hover { border-color: var(--hair-strong); }
.layer .l-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.4px;
  padding-top: 3px;
}
.layer h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.layer .l-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.layer.is-core { border-color: rgba(79,100,255,0.3); }
.layer.is-core .l-num { color: var(--blue); }
.layer.is-body { border-style: dashed; background: var(--bg-soft); }
.layer.is-foundation {
  background: var(--ink);
  border-color: var(--ink);
}
.layer.is-foundation .l-num { color: var(--cyan); }
.layer.is-foundation h3 { color: #fff; }
.layer.is-foundation .l-desc { color: rgba(255,255,255,0.62); }
.layer.is-foundation .chip {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.layer-gap {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  letter-spacing: 0.4px;
  padding: 2px 0;
}

/* —— Chips —— */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--muted);
  background: var(--bg-tint);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}
.chip.hot {
  color: var(--blue);
  background: rgba(79,100,255,0.07);
  border-color: rgba(79,100,255,0.2);
}

/* —— Neutral "is not" list —— */
.fails.nots .x { color: var(--soft); }

/* —— Final dark band —— */
.final-band {
  margin-top: 0;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 72px);
  background: var(--ink);
  border-radius: 22px;
  color: #fff;
  text-align: center;
}
.final-band h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 18px;
  text-wrap: balance;
}
.final-band h2 em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-band .f-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.66);
  max-width: 560px;
  margin: 0 auto 26px;
  text-wrap: pretty;
}
.final-band .chiprow { justify-content: center; margin-bottom: 34px; }
.final-band .chip {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.final-band .btn-row { justify-content: center; margin-bottom: 0; }
.final-band .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.final-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* —— Who / when two-col —— */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* —— Responsive —— */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars.cols-3 { grid-template-columns: 1fr; }
  .triad { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .layer { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .pivot { padding: 36px 22px; margin-bottom: 64px; }
  .final-band { padding: 44px 24px; border-radius: 18px; }
}
