/* ============================================================
   cerberus — components
   Section-by-section styles. Class names map 1:1 to index.html.
   ============================================================ */

/* ---- Nav -------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-2); }
.brand__mark { display: inline-flex; width: 30px; height: 30px; }
.brand__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; letter-spacing: var(--tracking-snug);
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link { text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s var(--ease); }
.nav__link:hover { color: var(--text-2); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 9px; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-accent); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--border-3); }
.btn--ghost:hover { background: var(--surface); }
.btn--github {
  gap: 8px; font-size: 14.5px; padding: 8px 15px;
  color: var(--text-2); border-color: var(--border-3); background: #12161C; border-radius: var(--r-sm);
}
.btn--github:hover { border-color: #3a4452; }
.btn__arrow { font-family: var(--font-mono); }

/* command-copy button (hero) */
.cmd-btn {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  background: #12161C; border: 1px solid var(--border-3); color: var(--text-2);
  font-family: var(--font-mono); font-size: var(--fs-mono-sm);
  padding: 13px 17px; border-radius: 9px;
}
.cmd-btn:hover { border-color: #3a4452; }
.cmd-btn__sigil { color: var(--accent); }
.cmd-btn__label {
  color: var(--text-faint); font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding-left: 4px; border-left: 1px solid var(--border-3);
}

/* ---- Hero ------------------------------------------------- */
.hero { padding: 96px var(--gutter) 64px; max-width: var(--container); margin-inline: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 13px; border: 1px solid var(--border-3); background: #12161C;
  border-radius: var(--r-pill); margin-bottom: 34px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: cbPulse 2.2s ease-in-out infinite; }
.badge__text { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--mint); letter-spacing: .02em; }
@keyframes cbPulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-hero); line-height: 1.02; letter-spacing: var(--tracking-tight);
  color: var(--text); max-width: 14ch; margin-bottom: 26px;
}
.hero__lead {
  font-size: var(--fs-lead); line-height: 1.5; color: var(--text-muted);
  max-width: 56ch; margin-bottom: 36px;
}
.hero__lead strong { color: var(--text-2); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--border-2); background: var(--surface);
  border-radius: var(--r-sm); font-size: 13px; color: var(--text-muted);
}
.chip__tick { color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---- Convergence strip ------------------------------------ */
.strip__inner {
  padding-block: 30px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.strip__ql { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.strip__ql--prom  { color: var(--sky); }
.strip__ql--log   { color: var(--emerald); }
.strip__ql--trace { color: var(--rose); }
.strip__sep { color: #39424E; }
.strip__arrow { color: var(--text-faint); font-family: var(--font-mono); font-size: 13px; padding-inline: 6px; }
.strip__target { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.strip__note { color: var(--text-faint); font-size: 13.5px; padding-left: 10px; }

/* ---- Cards (signals / features) --------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 30px 28px 32px; display: flex; flex-direction: column;
}
.card--feature { padding: 28px 26px 26px; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card--feature .card__head { margin-bottom: 18px; }
.card__ql, .card__tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-faint); }
.card__tag { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: var(--tracking-snug); color: var(--text); margin-bottom: 8px; }
.card--feature .card__title { font-size: 18.5px; line-height: 1.2; margin-bottom: 9px; }
.card__body { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-dim); }
.card--feature .card__body { font-size: var(--fs-xs); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.card__mono { font-family: var(--font-mono); font-size: 11.5px; color: #7B83B8; border-top: 1px solid var(--border-inner); padding-top: 13px; }

/* icon chips */
.icon-chip { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; }
.icon-chip--feature { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-fill-2); border: 1px solid var(--accent-ring); }
.icon-chip--sky     { background: var(--sky-fill);     border: 1px solid var(--sky-ring); }
.icon-chip--emerald { background: var(--emerald-fill); border: 1px solid var(--emerald-ring); }
.icon-chip--rose    { background: var(--rose-fill);    border: 1px solid var(--rose-ring); }
.icon-chip svg { display: block; }

/* ---- Why / pillars grid ----------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-2); }
.pillar { padding: 38px 30px 36px; border-bottom: 1px solid var(--border-2); border-right: 1px solid var(--border-2); }
.pillar:last-child { border-right: none; }
.pillar__no { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: var(--tracking-snug); color: var(--text); margin-bottom: 9px; }
.pillar__body { font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
}

/* ---- Architecture flow ------------------------------------ */
.arch { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-xl); padding: 44px 36px; overflow-x: auto; }
.arch__heads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-width: 560px; }
.arch__head { text-align: center; }
.arch__head-ql { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-xs); margin-bottom: 6px; }
.arch__head-ql--prom  { color: var(--sky); }
.arch__head-ql--log   { color: var(--emerald); }
.arch__head-ql--trace { color: var(--rose); }
.arch__head-pkg { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.arch__arrows { display: flex; justify-content: center; padding: 14px 0 12px; }
.arch__arrows svg { max-width: 100%; }
.arch__flow { display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: 560px; }
.flow-box { width: 100%; max-width: 640px; border-radius: var(--r-md); padding: 18px 22px; text-align: center; background: var(--surface-3); border: 1px solid var(--border-card); }
.flow-box--opt { background: var(--accent-fill); border-color: var(--accent-deep); }
.flow-box__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.flow-box--opt .flow-box__title { color: var(--accent-soft); }
.flow-box__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.flow-box--opt .flow-box__sub { color: #7B83B8; }
.flow-arrow { color: #39424E; font-family: var(--font-mono); }
.flow-target { background: var(--accent); color: var(--bg); border-radius: var(--r-md); padding: 16px 34px; text-align: center; box-shadow: var(--shadow-accent-strong); }
.flow-target__label { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.arch__note { font-size: var(--fs-xs); line-height: 1.55; color: var(--text-faint); max-width: 66ch; margin-top: 24px; }

/* inline mono accents inside prose */
.mono-accent { font-family: var(--font-mono); font-size: 15px; color: var(--accent-soft); }
.mono-dim { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }

/* ---- Requirements bar ------------------------------------- */
.req-bar { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 26px 30px; margin-top: 16px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.req-bar__label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: .04em; }
.req-bar__item { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-dim); }
.req-bar__item b { font-family: var(--font-mono); color: var(--text-2); font-weight: 400; }
.req-bar__div { width: 1px; height: 18px; background: #222a33; }

/* ---- Quick start (tabs + code) ---------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs);
  padding: 9px 18px; border-radius: var(--r-sm); border: 1px solid var(--border-3);
  background: transparent; color: var(--text-dim); transition: all .15s var(--ease);
}
.tab[aria-selected="true"] { background: var(--text-2); color: var(--bg); border-color: var(--text-2); }

.code { background: var(--code-bg); border: 1px solid var(--border-2); border-radius: var(--r-md); overflow: hidden; max-width: 780px; }
.code[hidden] { display: none; }
.code__bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.code__dots { display: flex; gap: 7px; }
.code__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-3); }
.code__file { font-family: var(--font-mono); font-size: 12px; color: var(--text-fainter); }
.code__body { margin: 0; padding: 22px 22px 24px; overflow-x: auto; }
.code__body code { font-family: var(--font-mono); font-size: var(--fs-mono-sm); line-height: 1.7; color: #C9D2DE; white-space: pre; display: block; }
.c-comment { color: var(--text-fainter); }
.c-var { color: var(--code-var); }

.doclinks { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 36px; }
.doclink { text-decoration: none; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.doclink:hover { color: var(--accent-soft); }

/* ---- Correctness (heads + layer chips) -------------------- */
.head-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.head-card__head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.head-card__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.head-card__dot--prom  { background: var(--sky); }
.head-card__dot--log   { background: var(--emerald); }
.head-card__dot--trace { background: var(--rose); }
.head-card__name { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-sm); }
.head-card__name--prom  { color: var(--sky); }
.head-card__name--log   { color: var(--emerald); }
.head-card__name--trace { color: var(--rose); }
.head-card__vs { font-size: 13px; color: var(--text-faint); padding-left: 2px; }
.head-card__body { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.head-card__method { font-family: var(--font-mono); font-size: 11.5px; color: #7B83B8; border-top: 1px solid var(--border-inner); padding-top: 13px; }

.layer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border-faint); border-radius: var(--r-sm); padding: 8px 13px; font-size: 13px; color: var(--text-muted); }
.layer-chip__id { font-family: var(--font-mono); font-size: 11px; color: var(--text-fainter); }

/* ---- CTA -------------------------------------------------- */
.cta { padding: 90px var(--gutter) 110px; max-width: var(--container); margin-inline: auto; }
.cta-card { background: var(--surface); border: 1px solid #232B38; border-radius: var(--r-2xl); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-card__mark { display: inline-flex; width: 58px; height: 58px; margin-bottom: 26px; position: relative; }
.cta-card__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2-cta); line-height: 1.08; letter-spacing: var(--tracking-h2); color: var(--text); margin-bottom: 16px; position: relative; }
.cta-card__lead { font-size: var(--fs-body); line-height: 1.5; color: var(--text-muted); max-width: 50ch; margin: 0 auto 34px; position: relative; }
.cta-card__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Footer ----------------------------------------------- */
.footer { border-top: 1px solid var(--border); }
.footer__inner { padding-block: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__mark { display: inline-flex; width: 26px; height: 26px; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text-2); }
.footer__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); padding-left: 10px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__link { text-decoration: none; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; }
.footer__link:hover { color: var(--text-2); }
