:root {
  --bg-start: #0f172a;
  --bg-mid: #1e293b;
  --bg-end: #334155;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-soft: rgba(248, 250, 252, 0.78);
  --text-muted: rgba(248, 250, 252, 0.58);
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --violet: #8b5cf6;
  --violet-deep: #7c3aed;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 30%),
    linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

table {
  max-width: 100%;
}

.seo-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.seo-shell :is(h1, h2, h3, p, li, a, span, strong) {
  overflow-wrap: anywhere;
}

.seo-shell::before,
.seo-shell::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.18;
  z-index: 0;
}

.seo-shell::before {
  top: -140px;
  left: -120px;
  background: #3b82f6;
}

.seo-shell::after {
  right: -120px;
  bottom: 10%;
  background: #8b5cf6;
}

.seo-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 0.6rem 0.8rem 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22) 72%, transparent 100%);
  backdrop-filter: blur(18px);
}

.seo-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.62rem 0.82rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  position: relative;
  gap: 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.88) 52%, rgba(15, 23, 42, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow:
    0 18px 44px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(96, 165, 250, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-link img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.42));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.brand-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbeafe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  max-width: 44ch;
  font-size: 0.76rem;
  line-height: 1.32;
  color: rgba(226, 232, 240, 0.72);
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.seo-nav--desktop {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.seo-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.seo-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.24);
  transform: translateY(-1px);
}

.seo-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.18));
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.seo-header-actions,
.seo-menu-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.seo-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.seo-header-action:hover {
  transform: translateY(-1px);
}

.seo-header-action--secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.seo-header-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.24);
}

.seo-header-menu {
  display: none;
  position: relative;
}

.seo-menu-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 42px;
  min-width: 96px;
  padding: 0.58rem 0.8rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.seo-menu-toggle::-webkit-details-marker {
  display: none;
}

.seo-menu-toggle::marker {
  content: '';
}

.seo-menu-toggle-label {
  display: inline-flex;
  align-items: center;
}

.seo-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.26);
}

.seo-menu-toggle-icon {
  display: grid;
  gap: 3px;
}

.seo-menu-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.seo-header-menu[open] .seo-menu-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.seo-header-menu[open] .seo-menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.seo-header-menu[open] .seo-menu-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.seo-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 2;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.34);
}

.seo-header-menu[open] .seo-menu-toggle {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.seo-menu-copy {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.seo-menu-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seo-menu-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.48;
}

.seo-nav--mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.seo-nav--mobile .seo-nav-link {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border-radius: 14px;
  padding: 0.72rem 0.82rem;
}

.seo-menu-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.seo-header-action--mobile {
  width: 100%;
}

.brand-link:focus-visible,
.seo-nav-link:focus-visible,
.seo-header-action:focus-visible,
.seo-menu-toggle:focus-visible,
.toc-list a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.related-card:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.96);
  outline-offset: 3px;
}

.page-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.hero > *,
.stats-strip > *,
.page-grid > *,
.content-stack > *,
.split-grid > *,
.feature-grid > *,
.faq-grid > *,
.related-grid > *,
.two-col-grid > *,
.cta-panel-inner > *,
.footer-meta > *,
.footer-links-grid > *,
.footer-link-column > * {
  min-width: 0;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.4rem;
  align-items: center;
}

.hero-copy,
.hero-visual,
.stats-strip,
.toc-card,
.content-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.eyebrow strong {
  color: #fff;
}

.page-title {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.page-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.66;
  max-width: 64ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.1rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.76rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.86rem;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--violet-deep) 100%);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.hero-visual img {
  width: 100%;
  height: min(540px, 62vw);
  object-fit: cover;
  border-radius: 22px;
}

.visual-caption {
  margin-top: 1rem;
  padding: 0.85rem 0.92rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-caption strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.visual-caption p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.stats-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat-card {
  padding: 0.85rem 0.92rem;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.45rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.toc-card {
  border-radius: 20px;
  padding: 1rem;
}

.toc-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.toc-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.48;
  font-size: 0.9rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.toc-list a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.toc-list a:hover {
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.1);
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.content-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.36rem, 2.8vw, 1.85rem);
  letter-spacing: -0.04em;
}

.content-card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.content-card p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 0.96rem;
}

.content-card ul,
.content-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.content-card li + li {
  margin-top: 0.35rem;
}

.content-card strong {
  color: #fff;
}

.section-extension {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-extension p:last-child {
  margin-bottom: 0;
}

.split-grid,
.feature-grid,
.faq-grid,
.related-grid,
.two-col-grid {
  display: grid;
  gap: 0.8rem;
}

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

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.45rem;
}

.related-grid,
.two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.faq-item,
.related-card,
.note-card,
.question-card,
.table-wrap,
.checklist-card {
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card,
.faq-item,
.related-card,
.note-card,
.question-card,
.checklist-card {
  padding: 0.92rem;
}

.feature-card h3,
.faq-item h3,
.related-card h3,
.note-card h3,
.question-card h3,
.checklist-card h3 {
  margin-top: 0;
}

.note-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.12));
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.question-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.question-card p:last-child,
.faq-item p:last-child,
.related-card p:last-child,
.note-card p:last-child,
.feature-card p:last-child {
  margin-bottom: 0;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.35rem;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #dbeafe;
  font-size: 0.81rem;
  line-height: 1.35;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.comparison-table th {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.comparison-table td strong {
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  padding: 0.2rem;
}

.quote-block {
  margin-top: 1rem;
  padding: 0.92rem 1rem;
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.09);
  color: var(--text-soft);
}

.quote-block strong {
  display: block;
  margin-top: 0.55rem;
}

.cta-panel {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 1.45rem 1.2rem;
  border-radius: 24px;
}

.cta-panel-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.05em;
}

.cta-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

.related-card {
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.4);
}

.related-card span {
  display: inline-flex;
  margin-top: 0.6rem;
  color: #bfdbfe;
  font-weight: 600;
}

.page-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.96));
}

.page-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0));
  pointer-events: none;
}

.page-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.25rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.footer-brand,
.footer-links-panel {
  padding: 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.24);
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background:
    linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.64) 46%, rgba(15, 23, 42, 0.94));
  max-width: 760px;
}

.footer-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-brand h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.footer-meta-card {
  min-height: 78px;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-actions a:hover {
  transform: translateY(-1px);
}

.footer-action-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--violet-deep) 100%);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.24);
}

.footer-action-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links-panel {
  display: grid;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.74);
}

.footer-links-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-links-header h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.footer-links-header p {
  margin: 0.35rem 0 0;
  max-width: 56ch;
  font-size: 0.94rem;
}

.footer-link-count {
  align-self: flex-start;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  align-items: start;
}

.footer-link-column {
  display: grid;
  gap: 0.5rem;
}

.footer-link-chip {
  display: flex;
  align-items: flex-start;
  min-height: auto;
  padding: 0.62rem 0.8rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-soft);
  line-height: 1.36;
  font-size: 0.87rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(2, 6, 23, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-link-chip:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(37, 99, 235, 0.1));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.footer-actions a:focus-visible,
.footer-link-chip:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.92);
  outline-offset: 3px;
}

.page-footer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-footer strong {
  color: #fff;
}

@media (max-width: 1040px) {
  .hero,
  .page-grid,
  .cta-panel-inner,
  .feature-grid,
  .faq-grid,
  .related-grid,
  .split-grid,
  .two-col-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-visual img {
    height: auto;
  }

  .page-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand h2 {
    max-width: none;
  }

  .footer-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 1100px) {
  .seo-header {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .seo-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .seo-nav--desktop,
  .seo-header-actions {
    display: none;
  }

  .seo-header-menu {
    display: block;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .seo-shell::before,
  .seo-shell::after {
    display: none;
  }

  .seo-header {
    padding: 0.48rem 0.58rem 0;
    backdrop-filter: blur(14px);
  }

  .hero,
  .page-grid,
  .cta-panel,
  .page-footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .seo-header-inner {
    padding: 0.56rem 0.68rem;
  }

  .hero-copy,
  .hero-visual,
  .content-card,
  .toc-card,
  .cta-panel,
  .footer-brand,
  .footer-links-panel,
  .stats-strip {
    padding: 1.2rem;
  }

  .brand-link,
  .brand-copy {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-link img {
    width: 30px;
    height: 30px;
  }

  .brand-tag {
    max-width: 32ch;
    font-size: 0.74rem;
  }

  .seo-menu-panel {
    width: min(340px, calc(100vw - 1.5rem));
  }

  .page-title {
    font-size: 1.95rem;
  }

  .meta-row {
    align-items: flex-start;
  }

  .meta-pill {
    flex: 1 1 200px;
    width: auto;
  }

  .footer-links-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-meta {
    grid-template-columns: 1fr;
  }

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

  .footer-link-count {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .footer-actions a {
    width: 100%;
  }

  .comparison-table {
    min-width: 0;
    table-layout: fixed;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.7rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .hero,
  .page-grid {
    gap: 1rem;
  }

  .page-title {
    font-size: clamp(1.9rem, 9vw, 2.15rem);
  }

  .hero-copy,
  .hero-visual,
  .content-card,
  .toc-card,
  .cta-panel,
  .footer-brand,
  .footer-links-panel,
  .stats-strip {
    padding: 1rem;
  }

  .seo-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .seo-header-inner {
    padding: 0.5rem 0.6rem;
  }

  .brand-badge,
  .brand-tag {
    display: none;
  }

  .seo-menu-toggle {
    min-width: 92px;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
  }

  .seo-menu-panel {
    width: min(320px, calc(100vw - 1.2rem));
  }

  .seo-nav--mobile,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-link-count {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .footer-link-count {
    width: 100%;
    text-align: center;
  }

  .footer-link-chip {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .seo-nav-link,
  .seo-header-action,
  .seo-menu-toggle-icon span,
  .btn-primary,
  .btn-secondary,
  .footer-actions a,
  .footer-link-chip,
  .related-card {
    transition: none;
  }

  .seo-nav-link:hover,
  .seo-header-action:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .footer-actions a:hover,
  .footer-link-chip:hover,
  .related-card:hover {
    transform: none;
  }
}
