:root {
  --bg: #07131d;
  --bg-soft: #0d2333;
  --panel: rgba(10, 32, 47, 0.82);
  --panel-strong: rgba(9, 24, 37, 0.94);
  --line: rgba(164, 214, 255, 0.18);
  --text: #edf7ff;
  --muted: #a4bfd0;
  --accent: #82f8d1;
  --accent-strong: #33d3d1;
  --accent-warm: #ffd27a;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(51, 211, 209, 0.16), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(130, 248, 209, 0.09), transparent 26%),
    linear-gradient(180deg, #061018 0%, #091926 40%, #07131d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
  position: relative;
}

.site-footer {
  margin-top: 28px;
  padding: 28px;
  background: rgba(6, 17, 27, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
}

.site-footer strong,
.site-footer h3 {
  display: block;
  margin: 0 0 10px;
}

.site-footer p,
.site-footer a,
.footer-note {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.library-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.library-sidebar,
.library-card,
.library-panel,
.library-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.library-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.library-panel,
.library-summary,
.library-card {
  padding: 24px;
}

.library-label {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
}

.library-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(5, 18, 28, 0.88);
  color: var(--text);
  font: inherit;
}

.library-main {
  display: grid;
  gap: 18px;
}

.library-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.library-summary strong {
  color: var(--accent-warm);
}

.library-summary span,
.library-card p {
  color: var(--muted);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.library-card {
  display: grid;
  gap: 12px;
}

.library-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.library-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.library-card h3 a:hover {
  text-decoration: underline;
}

.path-grid,
.lane-overview-grid,
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card,
.lane-card,
.latest-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.path-card h3,
.lane-card h3,
.latest-card h3 {
  margin-bottom: 10px;
}

.path-card p,
.lane-card p,
.lane-card li,
.latest-card p {
  color: var(--muted);
  line-height: 1.68;
}

.path-steps,
.lane-links {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.path-steps a,
.lane-links a {
  color: var(--text);
  text-decoration: none;
}

.path-steps a:hover,
.lane-links a:hover {
  text-decoration: underline;
}

.lane-meta {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(130, 248, 209, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
}

.latest-card a {
  color: var(--text);
  text-decoration: none;
}

.latest-card a:hover {
  text-decoration: underline;
}

.latest-date {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-warm);
  font-size: 0.9rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.related-card h4 {
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.related-card h4 a {
  color: var(--text);
  text-decoration: none;
}

.related-card h4 a:hover {
  text-decoration: underline;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  position: sticky;
  top: 14px;
  z-index: 5;
  background: rgba(6, 17, 27, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #02212a;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.nav a,
.section-heading p,
.lede,
.category-card p,
.roadmap-step p,
.split-card li,
.search-hint,
.signal-list li,
.need-card p,
.workflow-card p,
.answer-card p,
.answer-card li,
.sidebar-note p {
  color: var(--muted);
}

.nav {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 28px;
  padding: 68px 0 34px;
}

.hero-copy,
.hero-panel,
.category-card,
.split-card,
.roadmap-step,
.guide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-warm);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 9.5ch;
}

.lede {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #a0ffea);
  color: #00232a;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.search-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.search-row button {
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 48px;
  font: inherit;
}

.search-row input {
  flex: 1;
  padding: 0 16px;
  background: rgba(5, 18, 28, 0.88);
  color: var(--text);
}

.search-row button {
  padding: 0 18px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.topic-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.topic-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.hero-panel {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -15% -28% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 248, 209, 0.22), transparent 72%);
}

.panel-label {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--accent);
}

.signal-list,
.plain-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metric-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-grid strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
}

.section {
  padding: 28px 0;
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 10px;
}

.section-heading p:last-child {
  line-height: 1.7;
}

.card-grid,
.category-grid,
.roadmap,
.need-grid,
.workflow-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.answers-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.answers-sidebar,
.answer-card,
.need-card,
.workflow-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.answers-sidebar {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.sidebar-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 600;
}

.filter-stack {
  display: grid;
  gap: 10px;
}

.filter-pill {
  text-align: left;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.filter-pill.is-active,
.topic-chip:hover,
.filter-pill:hover,
.search-row button:hover {
  border-color: rgba(130, 248, 209, 0.5);
  background: rgba(130, 248, 209, 0.1);
}

.sidebar-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-note strong,
.answer-card strong {
  color: var(--accent-warm);
}

.sidebar-note p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.answer-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.answer-head span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(130, 248, 209, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
}

.answer-card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.answer-card p {
  margin: 0;
  line-height: 1.68;
}

.answer-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.55;
}

.answer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.answer-meta a {
  color: var(--accent-warm);
  text-decoration: none;
}

.answer-meta a:hover {
  text-decoration: underline;
}

.guide-card {
  padding: 22px;
  display: grid;
  gap: 14px;
  transform: translateY(18px);
  opacity: 0;
  animation: rise 0.65s ease forwards;
}

.guide-card:nth-child(2n) {
  animation-delay: 0.08s;
}

.guide-card:nth-child(3n) {
  animation-delay: 0.16s;
}

.guide-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(130, 248, 209, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
}

.guide-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.guide-card footer a {
  color: var(--accent-warm);
  text-decoration: none;
}

.guide-card footer a:hover {
  text-decoration: underline;
}

.guide-card footer span:last-child {
  color: var(--accent-warm);
}

.section-cta {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  padding: 22px;
}

.category-card h3,
.roadmap-step h3,
.split-card h2 {
  margin-bottom: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.split-card,
.roadmap-step {
  padding: 24px;
}

.roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.need-card,
.workflow-card {
  padding: 24px;
}

.need-kicker,
.workflow-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 700;
}

.roadmap-step span {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--accent);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.page-stack {
  display: grid;
  gap: 22px;
  padding-top: 42px;
}

.page-hero,
.content-panel,
.mini-card,
.article-card,
.guide-sidebar,
.category-banner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-hero,
.content-panel,
.category-banner {
  padding: 30px;
}

.page-hero h1 {
  max-width: 13ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.breadcrumbs a,
.text-link,
.mini-card a,
.article-card a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover,
.text-link:hover,
.mini-card a:hover,
.article-card a:hover {
  text-decoration: underline;
}

.page-hero p,
.content-panel p,
.mini-card p,
.article-card p,
.guide-sidebar p,
.guide-sidebar li,
.article-main li,
.category-banner p {
  color: var(--muted);
  line-height: 1.7;
}

.hub-grid,
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.hub-main,
.article-main,
.hub-section {
  display: grid;
  gap: 18px;
}

.mini-grid,
.article-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-card,
.article-card,
.guide-sidebar {
  padding: 24px;
}

.mini-card h3,
.article-card h3,
.content-panel h2,
.guide-sidebar h3,
.category-banner h2 {
  margin-bottom: 10px;
}

.guide-sidebar {
  align-self: start;
  position: sticky;
  top: 104px;
}

.sidebar-list,
.check-list,
.step-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.toc-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.toc-list a {
  color: var(--muted);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

.answer-box {
  padding: 20px;
  border-radius: 22px;
  background: rgba(130, 248, 209, 0.08);
  border: 1px solid rgba(130, 248, 209, 0.22);
}

.answer-box strong {
  color: var(--accent-warm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .card-grid,
  .category-grid,
  .roadmap,
  .answers-shell,
  .answer-grid,
  .need-grid,
  .workflow-grid,
  .hub-grid,
  .article-shell,
  .mini-grid,
  .article-links,
  .footer-grid,
  .library-shell,
  .library-grid,
  .related-grid,
  .path-grid,
  .lane-overview-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .answers-sidebar,
  .guide-sidebar {
    position: static;
  }

  .library-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    padding: 16px;
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .hero-panel {
    padding: 24px;
    border-radius: 22px;
  }

  h1 {
    max-width: 100%;
  }

  .search-row {
    flex-direction: column;
  }
}
