:root {
  --bg: #0b1020;
  --bg-card: #141a2e;
  --bg-card-hover: #1a2340;
  --fg: #e8eefc;
  --fg-dim: #9fb4d9;
  --accent: #7aa6ff;
  --accent-bright: #a8c5ff;
  --border: #243056;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.hero {
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  background: linear-gradient(180deg, #0d1428 0%, var(--bg) 100%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 18px;
  color: var(--fg-dim);
  margin: 0 0 16px;
  max-width: 680px;
}
.meta {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0;
}
.meta span {
  margin-right: 8px;
}

/* ----- Intent map (hero) ----- */
.intent-map {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.intent-prompt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin: 0 0 12px;
}
.intent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 6px 24px;
}
.intent-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.intent-q {
  color: var(--fg);
}
.intent-a {
  color: var(--accent);
  white-space: nowrap;
}

/* ----- Main layout ----- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

/* ----- TOC sidebar (now grouped by section) ----- */
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.toc-section {
  margin: 0 0 20px;
}
.toc-section-name,
.toc h2,
.toc h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin: 0 0 8px;
  font-weight: 600;
}
.toc-section-name a {
  color: var(--fg-dim);
}
.toc-section-name a:hover {
  color: var(--accent);
  text-decoration: none;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 0 0 5px;
  line-height: 1.4;
}
.toc .count {
  display: inline-block;
  background: var(--bg-card);
  color: var(--fg-dim);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
}
.toc .recent {
  margin-top: 4px;
}
.toc .recent .date {
  color: var(--fg-dim);
  font-size: 12px;
  margin-left: 4px;
}

/* ----- Section blocks (Build with AI / Models & Infrastructure / etc.) ----- */
.section-block {
  margin-bottom: 72px;
  scroll-margin-top: 24px;
}
.section-block + .section-block {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.section-head {
  margin-bottom: 28px;
}
.section-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 4px;
  font-weight: 600;
}
.section-blurb {
  font-size: 22px;
  line-height: 1.35;
  color: var(--fg);
  margin: 0;
  max-width: 720px;
  letter-spacing: -0.01em;
}

/* ----- Categories ----- */
.category {
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}
.cat-head {
  margin-bottom: 16px;
}
.category h2 {
  font-size: 22px;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cat-count {
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 400;
}
.cat-intent {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0 0 6px;
}
.cat-intent em {
  color: var(--fg);
  font-style: normal;
}
.cat-blurb {
  color: var(--fg-dim);
  margin: 0 0 16px;
  font-size: 14px;
  max-width: 680px;
}

/* "How to choose" decision guide — the editorial layer over the card list. */
.guide {
  max-width: 720px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.guide h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.guide p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.guide-meta {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: var(--fg-dim);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    border-color 0.15s,
    transform 0.15s;
  scroll-margin-top: 24px;
}
.card:hover {
  border-color: var(--accent);
}
.card:target {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 2px rgba(168, 197, 255, 0.2);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.card-head h3 {
  margin: 0;
  font-size: 18px;
}
.verified {
  font-size: 11px;
  color: var(--fg-dim);
  white-space: nowrap;
}
.summary {
  margin: 0 0 12px;
  font-size: 14px;
}
.why {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--fg-dim);
}
.why strong {
  color: var(--fg);
}

.card-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}
.btn.copied {
  color: #7fffa0;
  border-color: #2d5a3d;
}

.site-foot {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 13px;
}
.site-foot p {
  margin: 4px 0;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 48px;
  }
  .toc {
    position: static;
    max-height: none;
  }
  .hero {
    padding: 32px 16px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .intent-list {
    grid-template-columns: 1fr;
  }
  .section-blurb {
    font-size: 18px;
  }
}
