/* Landing page — hero, search, controls, capability grid */

/* Hero ─ confident, modern, with a prominent search input */
.hub-hero {
  background: linear-gradient(180deg, #fafbfc 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.hub-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 32px 56px;
}
.hub-hero .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  font-weight: 700;
}
.hub-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--navy);
  margin: 0 0 18px;
  max-width: 820px;
  line-height: 1.08;
}
.hub-hero h1 br { display: inline; }
.hub-hero p {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 620px;
  margin: 0 0 32px;
  line-height: 1.55;
}

/* Search — Stripe/Linear-style with leading icon, clear button, '/' hint */
.hub-search-wrap {
  position: relative;
  max-width: 560px;
}
.hub-search {
  width: 100%;
  padding: 14px 90px 14px 44px;
  font-size: 15px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  font-family: var(--font-body);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22,41,68,0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hub-search:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22,41,68,0.08);
}
.hub-search::-webkit-search-decoration,
.hub-search::-webkit-search-cancel-button { display: none; }
.hub-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 18px;
  pointer-events: none;
}
.hub-search-clear {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hub-search-clear.visible { display: inline-flex; }
.hub-search-clear:hover { background: var(--gray-300); color: var(--gray-900); }
.hub-search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2px 7px;
  pointer-events: none;
}
.hub-search-kbd.hidden { display: none; }

/* Body shell */
.hub-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* Category section — bold navy heading, hairline divider between sections */
.hub-domain {
  padding: 32px 0 40px;
  border-top: 1px solid var(--gray-200);
}
.hub-domain:first-of-type { border-top: 0; padding-top: 8px; }
.hub-domain-head {
  margin-bottom: 18px;
}
.hub-domain-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
}
.hub-domain-empty {
  color: var(--gray-500);
  font-size: 13.5px;
  font-style: italic;
  padding: 8px 0 0;
}

/* Capability grid + cards — discrete cards so a single-card row doesn't
   show gray placeholder cells. */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.cap-card {
  position: relative;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cap-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -6px rgba(22,41,68,0.10);
  color: inherit;
}
.cap-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cap-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cap-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.cap-card:hover h3 { color: var(--orange); }
.cap-card-summary {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  min-height: 2.7em;
}
.cap-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: auto;
}
.cap-card-counts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-feature-settings: "tnum";
}
.cap-card-counts strong { color: var(--gray-900); font-weight: 600; }
.cap-card-counts .mono { font-size: 11px; }
.cap-card-dot { color: var(--gray-300); }
.cap-card-arrow {
  font-size: 16px;
  color: var(--gray-300);
  transition: transform 0.15s, color 0.15s;
}
.cap-card:hover .cap-card-arrow {
  transform: translateX(3px);
  color: var(--orange);
}

/* Empty / no-match states — friendlier than a dashed box */
.hub-empty {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
  color: var(--gray-500);
}
.hub-empty.hub-empty-first {
  padding: 80px 32px;
}
.hub-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.hub-empty p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.hub-empty strong { color: var(--gray-900); font-weight: 600; }

/* Footer */
.hub-foot {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 11.5px;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hub-foot strong { color: var(--gray-900); font-weight: 600; }
.hub-foot .mono { font-family: var(--font-mono); font-size: 11px; }

.cap-hidden { display: none !important; }
.domain-hidden { display: none !important; }

@media (max-width: 720px) {
  .hub-hero-inner { padding: 48px 20px 36px; }
  .hub-hero h1 { font-size: 32px; }
  .hub-hero h1 br { display: none; }
  .hub-shell { padding: 20px 20px 60px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-controls-spacer { flex: 0 0 100%; }
  .hub-search-kbd { display: none; }
}
