/* Solutions directory hub — enterprise B2B layout */
.seo-hub-directory {
  --hub-bg: #0b0f17;
  --hub-surface: #111827;
  --hub-surface-2: #1e293b;
  --hub-border: rgba(148, 163, 184, 0.16);
  --hub-primary: #6366f1;
  --hub-accent: #8b5cf6;
  --hub-text: #f8fafc;
  --hub-muted: #94a3b8;
  --hub-header-h: 64px;
  --hub-chips-h: 56px;
  background: var(--hub-bg);
  color: var(--hub-text);
  font-family: Inter, system-ui, sans-serif;
}

.seo-hub-directory,
.seo-hub-directory * {
  box-sizing: border-box;
}

.seo-hub-directory {
  overflow-x: hidden;
}

html:has(.seo-hub-directory) {
  scroll-behavior: smooth;
}

.seo-hub-directory .seo-nav {
  display: flex;
  align-items: center;
  height: var(--hub-header-h);
  min-height: var(--hub-header-h);
  padding: 0 28px;
  gap: 20px;
  flex-wrap: nowrap;
  background: rgba(11, 15, 23, 0.92);
}

.seo-hub-directory .seo-nav-brand {
  flex-shrink: 0;
  gap: 10px;
}

.seo-hub-directory .seo-nav-brand span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.seo-hub-directory .seo-nav nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  align-self: stretch;
  height: 100%;
  gap: 20px;
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.seo-hub-directory .seo-nav nav::-webkit-scrollbar { display: none; }

.seo-hub-directory .seo-nav nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}

.seo-hub-directory .seo-nav nav a.is-active {
  color: #fff;
  border-bottom-color: var(--hub-primary);
}

.seo-hub-directory .seo-nav-cta {
  margin-left: 0;
  padding: 8px 14px;
  border-radius: 8px;
  flex-shrink: 0;
  align-self: center;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
  box-shadow: none;
  font-weight: 600;
}

.seo-hub-directory .seo-nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.seo-hub-directory .seo-nav .seo-intent-badge {
  display: none !important;
}

.seo-hub-directory .seo-copilot-fab,
.seo-hub-directory .seo-cta-sticky,
.seo-hub-directory .seo-layout-plg,
.seo-hub-directory .seo-preview-dock {
  display: none !important;
}

.seo-hub-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 96px;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 40px;
  align-items: start;
  margin-bottom: 8px;
}

.hub-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 18px;
}

.hub-hero-copy .seo-breadcrumbs {
  margin: 0;
  font-size: 13px;
}

.hub-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.hub-hero-copy h1 {
  font-size: clamp(2.75rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
  color: #fff;
}

.hub-sub {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 42rem;
}

.hub-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.hub-btn:focus-visible,
.hub-chip:focus-visible,
.hub-preview-tab:focus-visible,
.hub-card:focus-visible,
.hub-tile:focus-visible,
.hub-workflow a:focus-visible,
.hub-faq summary:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}

.hub-btn-primary {
  background: linear-gradient(135deg, var(--hub-primary), var(--hub-accent));
  color: #fff;
}

.hub-btn-secondary {
  background: transparent;
  color: var(--hub-text);
  border: 1px solid var(--hub-border);
}

.hub-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.hub-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.hub-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.hub-trust li::before {
  content: "✓";
  color: #818cf8;
  font-size: 11px;
}

.hub-preview {
  position: sticky;
  top: calc(var(--hub-header-h) + 16px);
}

.hub-preview-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hub-preview-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-preview-tabs::-webkit-scrollbar { display: none; }

.hub-preview-tab {
  flex: 1 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.hub-preview-tab.is-active {
  background: #6366f1;
  color: #fff;
  font-weight: 600;
}

.hub-preview-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0b1220;
  overflow: hidden;
  border-radius: 8px;
}

.hub-preview-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hub-preview-viewport img.is-active {
  opacity: 1;
}

.hub-preview-boardroom {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  font-family: Inter, system-ui, sans-serif;
  background: #0b1220;
}

.hub-preview-viewport.is-boardroom img {
  opacity: 0;
}

.hub-preview-viewport.is-boardroom .hub-preview-boardroom {
  display: flex;
}

.hub-preview-boardroom-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.hub-preview-narrative {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
}

.hub-preview-reco {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}

.hub-preview-reco span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #38bdf8;
}

.hub-preview-narrative-metrics {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.hub-preview-narrative-metrics strong {
  color: #e2e8f0;
  font-weight: 700;
}

.hub-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 0;
}

.hub-preview-metrics div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.hub-preview-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  min-height: 20px;
  color: #fff;
}

.hub-preview-metrics strong svg {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0 auto;
}

.hub-preview-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.hub-preview-cap {
  margin: 0;
  padding: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.hub-preview-cta {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hub-primary), var(--hub-accent));
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: filter 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.hub-preview-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
  opacity: 0.95;
}

.hub-chips {
  position: sticky;
  top: var(--hub-header-h);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin: 32px 0 28px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.hub-chips::-webkit-scrollbar { display: none; }

.hub-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.hub-chip:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hub-chip.is-active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
  font-weight: 600;
}

.hub-section {
  margin: 0 0 56px;
  scroll-margin-top: calc(var(--hub-header-h) + var(--hub-chips-h) + 8px);
}

.hub-section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.hub-lead {
  margin: 0 0 20px;
  color: var(--hub-muted);
  max-width: 52rem;
}

.hub-flagship-grid,
.hub-industry-grid,
.hub-role-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hub-flagship-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card,
.hub-tile,
.hub-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 20px 20px 16px;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hub-card:hover,
.hub-tile:hover,
.hub-role:hover,
.hub-workflow a:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hub-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-accent);
}

.hub-card h3,
.hub-tile strong,
.hub-role h3,
.hub-workflow strong {
  margin: 0;
  font-size: 17px;
  color: var(--hub-text);
}

.hub-card p,
.hub-tile span,
.hub-role p,
.hub-workflow span {
  margin: 0;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hub-card-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
}

.hub-flagship-grid > li,
.hub-industry-grid > li,
.hub-role-grid > li {
  display: flex;
  height: 100%;
}

.hub-more {
  margin: 14px 0 0;
  font-size: 14px;
}

.hub-more a { color: #a78bfa; }

.hub-workflow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hub-workflow a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.hub-step-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hub-accent);
}

.hub-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.18);
  color: #c4b5fd;
  font-size: 16px;
}

.hub-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hub-stepper li {
  position: relative;
  padding: 16px 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
}

.hub-stepper li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--hub-primary), var(--hub-accent));
}

.hub-stepper strong {
  display: block;
  margin-bottom: 6px;
}

.hub-stepper span,
.hub-stepper a {
  color: var(--hub-muted);
  font-size: 13px;
}

.hub-stepper a { color: #a78bfa; }

.hub-disclaimer {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.08);
  color: #e2e8f0;
  margin-bottom: 20px;
}

.hub-disclaimer strong {
  display: block;
  margin-bottom: 6px;
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-disclaimer p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 14px;
}

.hub-faq {
  display: grid;
  gap: 8px;
}

.hub-faq details {
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: var(--hub-surface);
  padding: 0;
}

.hub-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
}

.hub-faq summary::-webkit-details-marker { display: none; }

.hub-faq summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--hub-accent);
}

.hub-faq details[open] summary::before { content: "▾"; }

.hub-faq p {
  margin: 0;
  padding: 0 16px 16px 32px;
  color: var(--hub-muted);
}

.hub-orient {
  margin: 0 0 40px;
  color: var(--hub-muted);
  max-width: 52rem;
}

@media (min-width: 1100px) {
  .hub-flagship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .hub-hero { grid-template-columns: 1fr; }
  .hub-preview { position: relative; top: 0; max-width: 520px; }
  .hub-industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .seo-hub-main { padding: 20px 16px 88px; }
  .seo-hub-directory .seo-nav {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .seo-hub-directory .seo-nav nav a {
    height: auto;
    padding: 8px 0;
  }
  .seo-hub-directory .seo-nav nav {
    order: 3;
    flex: 1 0 100%;
    height: auto;
    align-self: auto;
    margin-left: 0;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }
  .seo-hub-directory .seo-nav-cta { margin-left: auto; }
  .hub-flagship-grid,
  .hub-industry-grid,
  .hub-role-grid,
  .hub-workflow,
  .hub-stepper {
    grid-template-columns: 1fr;
  }
  .hub-preview-metrics { grid-template-columns: 1fr 1fr; }
  .hub-preview-metrics div:last-child { grid-column: span 2; }
}
