:root {
  --ink: #080a0f;
  --ink-soft: #10131b;
  --paper: #f2f0e9;
  --white: #f8f9fb;
  --muted: #aab1bd;
  --muted-dark: #5e6570;
  --accent: #7587ff;
  --accent-soft: #aeb8ff;
  --line: rgba(248, 249, 251, 0.13);
  --line-dark: rgba(8, 10, 15, 0.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.seo-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.7rem;
  margin: 1rem auto 0;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(18px);
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.seo-brand img {
  border-radius: 50%;
  object-fit: contain;
}

.seo-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  color: #c9ced7;
  font-size: 0.78rem;
}

.seo-header nav a,
.seo-text-link,
.seo-footer a { transition: color 160ms ease; }

.seo-header nav a:hover,
.seo-text-link:hover,
.seo-footer a:hover { color: var(--accent-soft); }

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--white);
  border-radius: 0.7rem;
  color: var(--ink);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.seo-button:hover { background: #dfe3ff; transform: translateY(-2px); }
.seo-button-small { min-height: 2.9rem; padding-inline: 1rem; }
.seo-button-light { min-width: 11rem; }

.seo-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 680px;
  padding: clamp(5.5rem, 11vw, 9rem) 1.25rem 6rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(117, 135, 255, 0.2), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 72px 72px, 72px 72px, auto;
}

.hub-hero,
.guide-hero { min-height: 590px; }

.breadcrumbs {
  width: min(100%, 760px);
  margin-bottom: 3rem;
}

.breadcrumbs ol {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: #89919f;
  font-size: 0.72rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: #515865;
}

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

.seo-eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-eyebrow-dark { color: #4454c8; }

.seo-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.2rem, 7.3vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}

.seo-lede {
  max-width: 720px;
  margin: 2rem 0 0;
  color: #b9c0cc;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.seo-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.seo-text-link {
  color: #d7dce5;
  font-size: 0.86rem;
  font-weight: 600;
}

.seo-text-link span { margin-left: 0.3rem; color: var(--accent-soft); }

.answer-block {
  display: grid;
  grid-template-columns: 0.35fr 1fr 1.25fr;
  gap: 2rem;
  max-width: var(--max);
  margin: -2.75rem auto 0;
  padding: 2.25rem;
  border: 1px solid var(--line-dark);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.answer-block > p {
  margin: 0;
  color: #5261d2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-block h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.04em; }
.answer-block > div { display: grid; gap: 1rem; }
.answer-block strong { font-size: 1.05rem; line-height: 1.55; }
.answer-block span { color: var(--muted-dark); font-size: 0.88rem; line-height: 1.55; }

.seo-section {
  padding: clamp(5.5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--paper);
}

.seo-section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.seo-section-heading .seo-eyebrow { grid-column: 1 / -1; margin-bottom: -0.5rem; }

.seo-section h2,
.seo-cta h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.97;
  text-wrap: balance;
}

.seo-section-heading > p:last-child {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.7;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.seo-card-grid article {
  min-height: 300px;
  padding: 1.5rem;
  background: var(--white);
}

.seo-card-grid article > span {
  color: #5261d2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.seo-card-grid h3 { margin: 5rem 0 0.8rem; font-size: 1.55rem; letter-spacing: -0.045em; }
.seo-card-grid p { margin: 0; color: var(--muted-dark); line-height: 1.65; }

.seo-section-dark {
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 64px 64px;
}

.seo-section-dark .seo-section-heading > p:last-child { color: var(--muted); }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.workflow-steps li { min-height: 230px; padding: 1.4rem; background: var(--ink); }
.workflow-steps span { color: var(--accent-soft); font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; }
.workflow-steps p { margin: 5rem 0 0; color: #d5dae3; line-height: 1.55; }

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.split-section > div > p:last-child { max-width: 500px; color: var(--muted-dark); line-height: 1.7; }

.metric-list { margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.metric-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); }
.metric-list span { font-size: 1.05rem; font-weight: 600; }
.metric-list small { color: var(--muted-dark); }

.evidence-section { padding-top: 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.evidence-grid article { min-height: 210px; padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: 0.7rem; background: rgba(255, 255, 255, 0.35); }
.evidence-grid h3 { margin: 0 0 2.8rem; font-size: 1.35rem; }
.evidence-grid p { margin: 0; color: var(--muted-dark); line-height: 1.65; }

.faq-section { background: var(--white); }
.seo-faq { max-width: 920px; margin-inline: auto; border-top: 1px solid var(--line-dark); }
.seo-faq details { border-bottom: 1px solid var(--line-dark); }
.seo-faq summary { padding: 1.35rem 2.5rem 1.35rem 0; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.seo-faq p { max-width: 760px; margin: 0; padding: 0 0 1.5rem; color: var(--muted-dark); line-height: 1.7; }

.related-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5rem;
  color: var(--white);
  background: var(--ink-soft);
}

.related-section > div:last-child { border-top: 1px solid var(--line); }
.related-section a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); color: #d9dde5; }
.related-section a:hover { color: var(--accent-soft); }

.seo-cta {
  padding: clamp(6rem, 12vw, 10rem) 1.25rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(117, 135, 255, 0.22), transparent 38%), var(--ink);
}

.seo-cta h2 { max-width: 900px; margin: 0 auto 2.5rem; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-block: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.hub-grid > a { min-height: 400px; padding: 1.7rem; background: var(--white); transition: background 180ms ease; }
.hub-grid > a:hover { background: #e4e7ff; }
.hub-grid > a > span { color: #5261d2; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; }
.hub-grid > a > p { margin: 4rem 0 0.75rem; color: #5261d2; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hub-grid h2 { max-width: 500px; font-size: clamp(2rem, 3.6vw, 3.7rem); }
.hub-grid small { display: block; max-width: 520px; margin: 1rem 0 3rem; color: var(--muted-dark); font-size: 0.93rem; line-height: 1.6; }
.hub-grid b { font-size: 0.82rem; }

.guide { color: var(--ink); background: var(--paper); }
.guide .guide-hero { color: var(--white); }

.guide-toc {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(248, 249, 251, 0.93);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
}

.guide-toc strong { color: #5261d2; }
.guide-toc a:hover { color: #5261d2; }

.guide-section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 1.25rem;
  border-bottom: 1px solid var(--line-dark);
}

.guide-section h2 { margin: 0 0 2rem; font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: -0.065em; line-height: 0.98; }
.guide-section > p:not(.seo-eyebrow) { color: #414852; font-size: 1.06rem; line-height: 1.8; }
.guide-list { display: grid; gap: 1rem; margin: 2.5rem 0; padding: 0; list-style: none; }
.guide-list li { padding: 1.15rem; border: 1px solid var(--line-dark); border-radius: 0.6rem; line-height: 1.65; }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 2.5rem 0; }
.guide-cards article { padding: 1.25rem; border: 1px solid var(--line-dark); background: var(--white); }
.guide-cards h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.guide-cards p { color: var(--muted-dark); line-height: 1.6; }
.guide-cards a { color: #4454c8; font-size: 0.82rem; font-weight: 700; }

.checklist { border-top: 1px solid var(--line-dark); }
.checklist p { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; margin: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); }
.checklist span { color: var(--muted-dark); line-height: 1.6; }

.formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0.8rem; margin: 2.5rem 0; padding: 1.5rem; border: 1px solid var(--line-dark); background: var(--white); text-align: center; }
.formula b { color: #5261d2; }

.launch-list { display: grid; gap: 0; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.launch-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark); }
.launch-list > li > span { color: #5261d2; font-family: "IBM Plex Mono", monospace; }
.launch-list h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.launch-list p { margin: 0; color: var(--muted-dark); line-height: 1.6; }

.seo-footer {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.7fr);
  gap: 3rem;
  padding: 4rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.seo-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.seo-footer > div:first-child p { max-width: 380px; color: var(--muted); line-height: 1.6; }
.seo-footer strong { margin-bottom: 0.4rem; color: var(--white); font-size: 0.78rem; }
.seo-footer a,
.seo-footer span { color: #89919f; font-size: 0.76rem; }

@media (max-width: 820px) {
  .seo-header { grid-template-columns: 1fr auto; }
  .seo-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding: 0.5rem 0.25rem 0.2rem; }
  .seo-header nav a { flex: 0 0 auto; }
  .seo-hero { min-height: 620px; padding-top: 5rem; }
  .answer-block,
  .seo-section-heading,
  .split-section,
  .related-section { grid-template-columns: 1fr; }
  .answer-block { width: calc(100% - 2rem); }
  .seo-card-grid { grid-template-columns: 1fr; }
  .seo-card-grid article { min-height: 240px; }
  .seo-card-grid h3 { margin-top: 3rem; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .evidence-grid,
  .hub-grid { grid-template-columns: 1fr; }
  .related-section { gap: 2rem; }
  .seo-footer { grid-template-columns: repeat(2, 1fr); }
  .guide-toc { justify-content: flex-start; overflow-x: auto; }
  .guide-toc > * { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .seo-header { gap: 0.5rem; width: calc(100% - 1rem); margin-top: 0.5rem; }
  .seo-header > .seo-button { display: none; }
  .seo-header { grid-template-columns: 1fr; }
  .seo-header nav { grid-column: auto; }
  .seo-hero { min-height: 560px; padding: 4.5rem 1rem; }
  .seo-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .breadcrumbs { margin-bottom: 2rem; overflow: hidden; }
  .breadcrumbs ol { justify-content: flex-start; white-space: nowrap; overflow-x: auto; }
  .seo-actions { flex-direction: column; width: 100%; }
  .seo-actions .seo-button { width: 100%; }
  .answer-block { gap: 1.25rem; margin-top: -1.5rem; padding: 1.4rem; }
  .seo-section { padding: 5rem 1rem; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { min-height: 180px; }
  .workflow-steps p { margin-top: 3rem; }
  .metric-list li { align-items: flex-start; flex-direction: column; }
  .seo-footer { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: 1fr; }
  .checklist p { grid-template-columns: 1fr; gap: 0.6rem; }
  .formula { grid-template-columns: 1fr; }
  .launch-list li { grid-template-columns: 3.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
