/* =========================================================================
   Neo4j Graph Data Modeling & Migration Automation
   Light, professional, graph-inspired theme.
   ========================================================================= */

:root {
  /* Brand palette */
  --c-blue: #3a6ea5;
  --c-blue-bright: #5b8def;
  --c-teal: #1aa37a;
  --c-amber: #e0851b;
  --c-magenta: #b5478f;

  /* Surfaces */
  --bg: #f7f9fc;
  --bg-soft: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f3f6fc;
  --border: #e2e8f2;
  --border-strong: #cdd9ec;

  /* Text */
  --ink: #1c2733;
  --ink-soft: #43536b;
  --ink-muted: #6b7a90;

  /* Accents */
  --link: #2c5f9e;
  --link-hover: #1d4a82;
  --accent-grad: linear-gradient(120deg, var(--c-blue), var(--c-blue-bright));
  --accent-grad-warm: linear-gradient(120deg, var(--c-magenta), var(--c-amber));

  /* Code */
  --code-bg: #f4f7fc;
  --code-bar: #e9eef7;
  --inline-code-bg: #eaf0fa;
  --inline-code-ink: #1d4a82;

  /* Layout */
  --container: 1280px;
  --container-wide: 1460px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 64px;
  --shadow-sm: 0 1px 2px rgba(28, 39, 51, 0.06), 0 2px 8px rgba(28, 39, 51, 0.05);
  --shadow-md: 0 6px 22px rgba(28, 39, 51, 0.10);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1 0 auto; padding-bottom: 3rem; }

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Anchor offset so targets clear the sticky header. */
:target { scroll-margin-top: calc(var(--header-h) + 1rem); }
h1, h2, h3, h4 { scroll-margin-top: calc(var(--header-h) + 1rem); }

.icon { width: 1.15em; height: 1.15em; fill: none; flex: none; }

.skip-link {
  position: absolute;
  left: 0; top: -120%;
  background: var(--c-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__logo { transition: transform 0.3s ease; }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.brand__name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-link .icon { color: var(--c-blue); transition: color 0.2s ease; }
.nav-link:hover { background: var(--bg-soft); color: var(--ink); transform: translateY(-1px); }
.nav-link.is-active {
  background: var(--accent-grad);
  color: #fff;
}
.nav-link.is-active .icon { color: #fff; }
.primary-nav__section .nav-link { font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle__bar { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 70vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 0.75rem; gap: 0.25rem; }
  .nav-link { justify-content: flex-start; padding: 0.8rem 1rem; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { flex-shrink: 0; background: #10243a; color: #cdd9ec; margin-top: 2rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
  padding-block: 2.5rem;
}
.site-footer__brand { display: flex; gap: 0.9rem; align-items: flex-start; max-width: 420px; }
.site-footer__title { margin: 0; font-weight: 700; color: #fff; }
.site-footer__tag { margin: 0.25rem 0 0; color: #9fb2cc; font-size: 0.95rem; }
.site-footer__heading { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7f97b8; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer__nav a { color: #cdd9ec; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; }
.site-footer__nav a:hover { color: #fff; padding-left: 4px; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer__bar p { margin: 0; padding-block: 1rem; font-size: 0.85rem; color: #8298b6; }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.breadcrumbs { padding-top: 1.5rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.9rem; color: var(--ink-muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs a { color: var(--link); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { width: 0.85em; height: 0.85em; color: var(--ink-muted); opacity: 0.7; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* =========================================================================
   Article typography
   ========================================================================= */
.article { padding-top: 1.25rem; }

.article h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 1.2rem;
  background: linear-gradient(120deg, var(--c-blue), var(--c-blue-bright) 55%, var(--c-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem);
  margin: 2.4rem 0 0.9rem;
  padding-bottom: 0.4rem;
  color: var(--ink);
  border-bottom: 2px solid var(--border);
  position: relative;
}
.article h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px;
  background: var(--accent-grad);
}
.article h3 { font-size: 1.28rem; margin: 1.8rem 0 0.7rem; color: var(--c-blue); }
.article h4 { font-size: 1.08rem; margin: 1.4rem 0 0.5rem; color: var(--ink-soft); }

.article p, .article li { color: var(--ink-soft); }
.article p { margin: 0 0 1.1rem; }

/* Header-anchor links from markdown-it-anchor */
.article :is(h2, h3, h4) > a.header-anchor {
  color: inherit;
  text-decoration: none;
}
.article :is(h2, h3, h4) > a.header-anchor:hover { text-decoration: none; }

.article a:not(.header-anchor) {
  color: var(--link);
  text-decoration: none;
  background-image: linear-gradient(var(--c-blue-bright), var(--c-blue-bright));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.2s ease;
}
.article a:not(.header-anchor):hover { color: var(--link-hover); background-size: 100% 2px; }

.article ul, .article ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article li { margin: 0.35rem 0; }

.article blockquote {
  margin: 1.4rem 0;
  padding: 0.6rem 1.2rem;
  border-left: 4px solid var(--c-blue-bright);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

.article hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Inline code — soft tinted background, no border, blends in. */
.article :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--inline-code-bg);
  color: var(--inline-code-ink);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  word-break: break-word;
}

/* =========================================================================
   Code blocks
   ========================================================================= */
.code-block {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}
.code-block__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: var(--code-bar);
  border-bottom: 1px solid var(--border);
}
.code-block__lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.code-copy {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.code-copy:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.code-copy__icon {
  width: 14px; height: 14px; display: inline-block;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 9h10v10H9z M5 15V5h10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 9h10v10H9z M5 15V5h10'/%3E%3C/svg%3E");
}
.code-copy.is-copied { background: var(--c-teal); color: #fff; border-color: var(--c-teal); }
.code-block pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  background: var(--code-bg);
  color: #243044;
  tab-size: 2;
}
.code-block code { font-family: inherit; }

/* Prism — light theme tuned to the palette */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #8a99ad; font-style: italic; }
.token.punctuation { color: #5a6b82; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol { color: #b5478f; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin { color: #1aa37a; }
.token.operator, .token.entity, .token.url, .token.variable { color: #c2410c; }
.token.atrule, .token.attr-value, .token.keyword { color: #2c5f9e; font-weight: 600; }
.token.function, .token.class-name { color: #7c4dca; }
.token.regex, .token.important { color: #e0851b; }
.token.important, .token.bold { font-weight: 700; }
.token.italic { font-style: italic; }

/* =========================================================================
   Task lists (togglable checkboxes)
   ========================================================================= */
.article ul.contains-task-list { list-style: none; padding-left: 0.25rem; }
.article ul.contains-task-list .contains-task-list { padding-left: 1.5rem; }
.task-list-item { position: relative; padding-left: 0; list-style: none; }
.task-list-item::marker { content: ""; }
.task-list-item label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.task-list-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2em; height: 1.2em;
  margin-top: 0.18em;
  border: 2px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  flex: none;
  transition: background 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.task-list-item input[type="checkbox"]:hover { border-color: var(--c-blue-bright); }
.task-list-item input[type="checkbox"]:checked { background: var(--c-teal); border-color: var(--c-teal); }
.task-list-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 0.3em; top: 0.04em;
  width: 0.3em; height: 0.62em;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.task-list-item input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-blue-bright); outline-offset: 2px; }
.task-list-item:has(input:checked) > label { color: var(--ink-muted); text-decoration: line-through; }

/* =========================================================================
   Tables
   ========================================================================= */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table-scroll thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--border-strong); }
.table-scroll tbody tr:nth-child(even) { background: var(--surface-2); }
.table-scroll tbody tr:hover { background: var(--bg-soft); }

/* =========================================================================
   Mermaid diagrams
   ========================================================================= */
.mermaid-wrap {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.mermaid-wrap.is-zoomable { cursor: zoom-in; }
.mermaid-wrap.is-zoomable:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mermaid-wrap svg { max-width: 100%; height: auto; }
.mermaid:not([data-processed]) { color: transparent; }

/* Expand affordance on each diagram */
.viz-expand {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.viz-expand span { font-size: 1rem; line-height: 1; }
.mermaid-wrap:hover .viz-expand { opacity: 1; }
.viz-expand:hover,
.viz-expand:focus-visible { opacity: 1; background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* Fullscreen diagram modal */
.viz-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.viz-modal[hidden] { display: none; }
.viz-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 36, 58, 0.72);
  backdrop-filter: blur(3px);
  animation: vizFade 0.18s ease;
}
.viz-modal__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1600px);
  height: min(92vh, 1040px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(16, 36, 58, 0.35);
  padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 1.4rem;
  display: flex;
  flex-direction: column;
  animation: vizPop 0.2s ease;
}
.viz-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.6rem;
  width: 2.4rem; height: 2.4rem;
  border: none; background: transparent;
  font-size: 1.9rem; line-height: 1;
  color: var(--ink-muted); cursor: pointer; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.viz-modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.viz-modal__content { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; }
.viz-modal__content svg { width: 100%; height: 100%; max-width: none; }
@keyframes vizFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vizPop { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .viz-modal__backdrop, .viz-modal__panel { animation: none; }
}

/* KaTeX display blocks scroll on small screens */
.katex-display { overflow-x: auto; overflow-y: hidden; padding-block: 0.4rem; }

/* =========================================================================
   FAQ accordions
   ========================================================================= */
.faq-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0.7rem 0;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-accordion > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background 0.18s ease;
}
.faq-accordion > summary::-webkit-details-marker { display: none; }
.faq-accordion > summary:hover { background: var(--bg-soft); }
.faq-accordion > summary::after {
  content: ""; width: 0.7em; height: 0.7em; flex: none;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue);
  transform: rotate(45deg); transition: transform 0.25s ease;
}
.faq-accordion[open] > summary::after { transform: rotate(-135deg); }
.faq-accordion__body { padding: 0 1.2rem 1.1rem; }
.faq-accordion__body > *:first-child { margin-top: 0; }

/* =========================================================================
   Related cards
   ========================================================================= */
.related { margin-top: 3rem; }
.related__heading { font-size: 1.3rem; margin-bottom: 1rem; color: var(--ink); }
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  height: 100%;
}
.card__arrow { color: var(--c-blue); transition: transform 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card:hover .card__arrow { transform: translateX(4px); }

/* =========================================================================
   Home page
   ========================================================================= */
.home .container { max-width: var(--container-wide); }

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; text-align: center; }
.hero__logo {
  width: clamp(110px, 16vw, 168px);
  height: auto;
  display: block;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 10px 22px rgba(58, 110, 165, 0.22));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } html { scroll-behavior: auto; } }

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto 1rem;
  max-width: 18ch;
  background: linear-gradient(120deg, var(--c-blue), var(--c-blue-bright) 50%, var(--c-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 1rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.cta__icon {
  width: 1.6em; height: 1.6em;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  color: #fff;
}
.cta__icon .icon { width: 1em; height: 1em; }
.cta--primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-md); }
.cta--primary .cta__icon { background: rgba(255,255,255,0.22); }
.cta--secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.cta--secondary .cta__icon { background: var(--accent-grad-warm); }
.cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.home-section { padding-block: 2.5rem; }
.home-section__intro { max-width: 70ch; }
.home-section h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.home-prose { color: var(--ink-soft); }
.home-prose p { margin: 0 0 1.1rem; }
.home-prose a { color: var(--link); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.2s ease, color 0.2s ease; }
.home-prose a:hover { color: var(--link-hover); border-color: var(--c-blue-bright); }

.feature-grid {
  display: grid; gap: 1.4rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  margin-bottom: 1rem;
}
.feature__icon .icon { width: 1.5rem; height: 1.5rem; }
.feature--a .feature__icon { background: var(--accent-grad); }
.feature--b .feature__icon { background: var(--accent-grad-warm); }
.feature h3 { margin: 0 0 0.5rem; font-size: 1.25rem; color: var(--ink); }
.feature p { margin: 0 0 1rem; color: var(--ink-soft); }
.feature__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.feature__links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--link); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.feature__links a::before { content: "›"; color: var(--c-blue-bright); font-weight: 700; }
.feature__links a:hover { color: var(--link-hover); gap: 0.75rem; }

/* Content hub page */
.hub { padding-top: 1.5rem; }
.hub__lead { max-width: 70ch; color: var(--ink-soft); font-size: 1.1rem; }
.hub-section { margin-top: 2.5rem; }
.hub-section h2 { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.hub-section h2 .icon { width: 1.4rem; height: 1.4rem; color: var(--c-blue); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__cta .cta { width: 100%; justify-content: center; }
}
