@import url("tokens.css");

:root {
  --shadow-lg: 0 16px 40px rgba(15, 23, 41, 0.10);
  --shell: 1180px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #f5f9ff 0%, var(--bg) 42%, #f7f8fa 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ——— Shared header (hub-topbar), mock homepage treatment ——— */
.hub-topbar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
}

.hub-topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.hub-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.hub-topbar-brand:hover { color: var(--accent); text-decoration: none; }
.hub-topbar-brand svg { display: block; flex-shrink: 0; }

.hub-topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.hub-topbar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.hub-topbar-link:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.hub-topbar-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}
.hub-topbar-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.hub-topbar-link[aria-current="page"] {
  color: var(--text);
}

/* ——— Hero ——— */
.hero-wrap {
  padding: 28px 0 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 28px 36px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 36px 36px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--accent-soft);
  border: 1px solid #C9DCFA;
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36em;
  line-height: 1.55;
}
.hero-lead em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(19, 85, 216, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--panel);
  color: var(--accent);
  border-color: #C9DCFA;
}
.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: #a8c4f5;
  color: var(--accent-hover);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* ——— Product preview chrome ——— */
.preview {
  background: #f4f7fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eef2f8;
  border-bottom: 1px solid var(--line);
}

.preview-dots {
  display: flex;
  gap: 5px;
}
.preview-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5cede;
  display: block;
}

.preview-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border: 1px solid #b8e8e3;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.preview-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 280px;
}

.preview-pane {
  padding: 14px 16px 16px;
  min-width: 0;
}

.preview-pane + .preview-pane {
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.pane-label strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.pane-label .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

.tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.tree > li {
  margin: 0;
}
.tree-root {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 8px;
  margin-bottom: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tree-root .node-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.tree-children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid #d5dce8;
  margin-left: 16px;
}
.tree-children li {
  position: relative;
  padding: 5px 0 5px 12px;
  color: var(--text);
  font-weight: 500;
}
.tree-children li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: #d5dce8;
}
.tree-children li.active {
  color: var(--accent);
  font-weight: 650;
}

.facet-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.facet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 550;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #c9dcfa;
}
.chip.teal {
  background: var(--accent-2-soft);
  color: #0a7f7a;
  border-color: #b8e8e3;
}
.chip.muted {
  background: #f1f3f7;
  color: var(--muted);
  border-color: var(--line);
}

.preview-json-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0F1729;
  color: #c8d0de;
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}
.preview-json-bar:hover {
  text-decoration: none;
  color: #c8d0de;
}
.preview-json-bar .json-snippet {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}
.preview-json-bar .json-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
}

/* ——— 3-step path ——— */
.steps {
  padding: 28px 0 8px;
}

.steps-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #c9dcfa;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ——— Featured callout ——— */
.featured {
  padding: 28px 0 8px;
}

.featured-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #f0f6ff 0%, #eefbf9 100%);
  border: 1px solid #c9dcfa;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.featured-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.05);
}

.featured-copy h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.featured-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 48em;
}
.featured-copy strong { color: var(--text); font-weight: 650; }

.featured-stats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.featured-stats b {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ——— Catalog shelves (condensed) ——— */
.catalog {
  padding: 36px 0 16px;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.catalog-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}
.catalog-head .sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 40em;
}
.catalog-head .view-all {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shelf {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 41, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shelf:hover {
  border-color: #c5d4f0;
  box-shadow: 0 6px 18px rgba(19, 85, 216, 0.08);
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.shelf-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.shelf-head .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.shelf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shelf li {
  margin: 0;
}
.shelf li a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 3px;
}
.shelf li a:hover {
  color: var(--accent);
}
.shelf-more {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
}
.shelf-more a { color: var(--accent); }

.catalog-foot {
  margin-top: 18px;
  text-align: center;
}
.catalog-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 16px;
  border: 1px solid #c9dcfa;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--accent);
  text-decoration: none;
}
.catalog-foot a:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ——— Request a taxonomy ——— */
.request {
  padding: 20px 0 8px;
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #f0f6ff 0%, #eefbf9 100%);
  border: 1px solid #c9dcfa;
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.request-copy h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.request-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 48em;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-brand {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
}
.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 36em;
}
.footer-note a { font-weight: 600; }
.footer-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ——— Audience value ——— */
.audience {
  padding: 8px 0 8px;
}
.audience-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}
.audience-head {
  max-width: none;
  margin-bottom: 24px;
}
.audience-head .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.audience-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.audience-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.audience-card {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  min-height: 100%;
}
.audience-card .role {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.audience-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}
.audience-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.audience-points {
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  list-style: none;
}
.audience-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.audience-points .tick {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.audience-points strong { font-weight: 650; }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .preview-body {
    grid-template-columns: 1fr;
  }
  .preview-pane + .preview-pane {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .steps-inner {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-template-columns: auto 1fr;
  }
  .featured-card .btn { grid-column: 1 / -1; justify-self: start; }
  .request-card {
    grid-template-columns: 1fr;
  }
  .request-card .btn { justify-self: start; }
  .shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-points { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shelf-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hub-topbar-links { width: 100%; }
  .featured-stats { flex-direction: column; gap: 4px; }
  .audience-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
