:root {
  --seo-bg: #08111e;
  --seo-surface: #111a2b;
  --seo-surface-2: #172236;
  --seo-border: rgba(255, 255, 255, 0.08);
  --seo-gold: #e8a020;
  --seo-gold-2: #c47f0f;
  --seo-text: #edf2fb;
  --seo-muted: #9aa6ba;
  --seo-green: #4bd37e;
  --seo-radius: 22px;
  --seo-shadow: 0 24px 70px rgba(2, 8, 20, 0.35);
  --seo-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.seo-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--seo-font);
  color: var(--seo-text);
  background:
    radial-gradient(circle at top left, rgba(232, 160, 32, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(72, 117, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #09111c 0%, #050912 100%);
}

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

body.seo-page a {
  color: inherit;
  text-decoration: none;
}

.seo-shell {
  width: min(1160px, calc(100% - 4rem));
  margin: 0 auto;
}

.seo-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 9, 18, 0.78);
  border-bottom: 1px solid var(--seo-border);
}

.seo-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.seo-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.28), rgba(232, 160, 32, 0.07));
  border: 1px solid rgba(232, 160, 32, 0.28);
  color: var(--seo-gold);
}

.seo-nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.seo-nav-links a {
  text-decoration: none;
  color: var(--seo-muted);
  font-size: 0.95rem;
}

.seo-nav-links a:hover {
  color: var(--seo-text);
}

.seo-hero {
  padding: 4.5rem 0 3rem;
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seo-gold);
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.22);
}

.seo-hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.seo-hero h1 span {
  color: var(--seo-gold);
}

.seo-hero p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--seo-muted);
  max-width: 62ch;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.seo-button.primary {
  color: #0b1020;
  background: linear-gradient(135deg, #f0b94d, #e8a020);
}

.seo-button.secondary {
  color: var(--seo-text);
  border-color: var(--seo-border);
  background: rgba(255, 255, 255, 0.03);
}

.seo-panel {
  padding: 1.5rem;
  border-radius: var(--seo-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--seo-surface);
  border: 1px solid var(--seo-border);
  box-shadow: var(--seo-shadow);
}

.seo-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.seo-panel p {
  margin: 0 0 1rem;
  color: var(--seo-muted);
  line-height: 1.65;
}

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

.seo-stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--seo-border);
}

.seo-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--seo-gold);
  letter-spacing: -0.03em;
}

.seo-stat span {
  font-size: 0.85rem;
  color: var(--seo-muted);
}

.seo-section {
  padding: 2.25rem 0;
}

.seo-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.seo-section .seo-intro {
  max-width: 70ch;
  color: var(--seo-muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

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

.seo-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--seo-border);
}

.seo-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.seo-card p {
  margin: 0;
  color: var(--seo-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

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

.seo-list li {
  display: flex;
  gap: 0.7rem;
  color: var(--seo-muted);
  line-height: 1.65;
}

.seo-list li::before {
  content: "✓";
  color: var(--seo-green);
  font-weight: 800;
  flex: 0 0 auto;
}

.seo-faq {
  display: grid;
  gap: 0.9rem;
}

.seo-faq details {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--seo-border);
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seo-faq p {
  margin: 0.75rem 0 0;
  color: var(--seo-muted);
  line-height: 1.7;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--seo-border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--seo-muted);
}

.seo-chip:hover {
  color: var(--seo-text);
  border-color: rgba(232, 160, 32, 0.3);
}

.seo-cta {
  margin: 2.5rem auto 4rem;
  padding: 2rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(232, 160, 32, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    var(--seo-surface-2);
  border: 1px solid var(--seo-border);
}

.seo-cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.seo-cta p {
  margin: 0;
  max-width: 65ch;
  color: var(--seo-muted);
  line-height: 1.7;
}

.seo-footer {
  border-top: 1px solid var(--seo-border);
  padding: 1.2rem 0 2rem;
  color: var(--seo-muted);
  font-size: 0.92rem;
}

.seo-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.seo-footer a {
  color: var(--seo-gold);
  text-decoration: none;
}

.seo-footer a:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .seo-hero-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .seo-shell {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .seo-hero {
    padding-top: 2.4rem;
  }

  .seo-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .seo-nav-links {
    gap: 0.5rem 0.85rem;
  }

  .seo-stats {
    grid-template-columns: 1fr;
  }

  .seo-cta {
    padding: 1.4rem;
  }

  .seo-store-row img {
    height: 44px;
    max-width: 100%;
  }
}

/* ============================================================
   Blog / long-form article layer
   ============================================================ */

.seo-article-hero {
  padding: 3.25rem 0 1.25rem;
}

.seo-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.seo-tag {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--seo-gold);
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.22);
}

.seo-article-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 24ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

.seo-meta {
  color: var(--seo-muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  align-items: center;
}

.seo-meta a {
  color: var(--seo-gold);
  text-decoration: none;
}

.seo-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

/* Prose */
.seo-article {
  font-size: 1.05rem;
  line-height: 1.8;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.seo-article > p {
  margin: 0 0 1.25rem;
  color: #d5deee;
}

.seo-article h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  scroll-margin-top: 90px;
}

.seo-article h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.seo-article a {
  color: var(--seo-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(232, 160, 32, 0.4);
}

.seo-article a:hover {
  text-decoration-color: var(--seo-gold);
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  color: #d5deee;
}

.seo-article li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

.seo-article strong {
  color: var(--seo-text);
}

.seo-article figure {
  margin: 1.75rem 0;
}

.seo-article figure img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--seo-border);
  box-shadow: var(--seo-shadow);
}

.seo-article figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--seo-muted);
  line-height: 1.5;
}

.seo-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.seo-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  overflow: hidden;
}

.seo-article th,
.seo-article td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--seo-border);
}

.seo-article th {
  background: rgba(232, 160, 32, 0.1);
  color: var(--seo-text);
  font-weight: 700;
}

.seo-article tbody tr:last-child td {
  border-bottom: none;
}

/* Table of contents */
.seo-toc {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--seo-border);
}

.seo-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--seo-muted);
}

.seo-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.seo-toc li {
  margin-bottom: 0.4rem;
}

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

.seo-toc a:hover {
  color: var(--seo-gold);
}

.seo-references {
  font-size: 0.9rem;
  color: var(--seo-muted);
}

.seo-references a {
  color: var(--seo-gold);
  word-break: break-word;
}

/* Article sidebar */
.seo-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 1.25rem;
}

.seo-sidebar-card {
  padding: 1.5rem;
  border-radius: var(--seo-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--seo-surface);
  border: 1px solid var(--seo-border);
}

.seo-sidebar-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.seo-sidebar-card p {
  margin: 0 0 1rem;
  color: var(--seo-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Inline download CTA band */
.seo-cta-band {
  margin: 2.5rem 0 1.5rem;
  padding: 1.75rem;
  border-radius: var(--seo-radius);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(232, 160, 32, 0.18), transparent 40%),
    var(--seo-surface-2);
  border: 1px solid var(--seo-border);
}

.seo-cta-band h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.seo-store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.seo-store-row img {
  height: 52px;
  width: auto;
}

/* Blog hub cards */
.seo-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.seo-post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--seo-radius);
  overflow: hidden;
  background: var(--seo-surface);
  border: 1px solid var(--seo-border);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.seo-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 160, 32, 0.3);
}

.seo-post-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--seo-surface-2);
}

.seo-post-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.seo-post-body .seo-tag {
  align-self: flex-start;
}

.seo-post-body h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.seo-post-body p {
  margin: 0;
  color: var(--seo-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.seo-post-meta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--seo-muted);
}

@media (max-width: 900px) {
  .seo-article-layout {
    grid-template-columns: 1fr;
  }

  .seo-sidebar {
    position: static;
  }
}
