:root {
  --sx-black: #06050c;
  --sx-deep: #0d0b18;
  --sx-card: #12101e;
  --sx-card-soft: rgba(255, 255, 255, 0.02);
  --sx-card-hover: rgba(255, 255, 255, 0.04);
  --sx-line: rgba(255, 255, 255, 0.07);
  --sx-line-strong: rgba(255, 255, 255, 0.12);
  --sx-violet: #7c5cff;
  --sx-violet2: #9d7dff;
  --sx-violet3: #c4b2ff;
  --sx-ink: #f0eeff;
  --sx-dim: #a8a4c8;
  --sx-faint: #625e83;
  --sx-green: #7fd49a;
}

* { box-sizing: border-box; }

body.scrollx-cms-theme {
  margin: 0;
  background: var(--sx-black);
  color: var(--sx-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.scrollx-cms-theme:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 92, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 11, 24, 0.9), #06050c 42%);
}

body.scrollx-cms-theme a {
  color: inherit;
  text-decoration: none;
}

body.scrollx-cms-theme img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sx-skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #000;
}

.sx-skip-link:focus { left: 1rem; }

.sx-container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.sx-narrow {
  width: min(800px, calc(100% - 48px));
}

.sx-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(6, 5, 12, 0.72);
  backdrop-filter: blur(18px);
}

.sx-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 58px;
}

.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--sx-ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sx-logo-image,
.sx-brand .custom-logo {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.24);
}

.sx-menu ul,
.sx-footer-menu ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sx-menu a,
.sx-footer-menu a {
  color: var(--sx-dim);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.sx-menu a:hover,
.sx-footer-menu a:hover {
  color: var(--sx-ink);
}

.sx-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sx-link-button,
.sx-prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--sx-violet);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sx-link-button:hover,
.sx-prose .wp-block-button__link:hover {
  background: var(--sx-violet2);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.35);
  transform: translateY(-1px);
}

.sx-link-button--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--sx-ink);
  border-radius: 999px;
}

.sx-link-button--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.sx-main {
  min-height: 72vh;
}

.sx-hero {
  padding: 96px 0 64px;
  text-align: center;
}

.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 0.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sx-violet3);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  color: var(--sx-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sx-meta span:first-child {
  color: var(--sx-violet3);
}

.sx-hero h1,
.sx-page-header h1,
.sx-article-header h1 {
  max-width: 900px;
  margin: 0.2rem auto 1rem;
  color: var(--sx-ink);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.sx-page-header h1,
.sx-article-header h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.sx-hero p,
.sx-page-header p,
.sx-lede {
  max-width: 50ch;
  margin: 0 auto;
  color: var(--sx-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.sx-accent-text {
  color: var(--sx-violet3);
  font-weight: 400;
}

.sx-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 80px;
}

.sx-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: var(--sx-card-soft);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sx-card:hover {
  border-color: rgba(124, 92, 255, 0.3);
  background: var(--sx-card-hover);
  transform: translateY(-2px);
}

.sx-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #070610;
}

.sx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.sx-card:hover .sx-card-media img {
  transform: scale(1.045);
}

.sx-card-media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sx-violet3);
  font-weight: 800;
}

.sx-card-body,
.sx-page-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.sx-card-body .sx-meta {
  margin-bottom: 0.75rem;
}

.sx-card h2 {
  margin: 0 0 0.65rem;
  color: var(--sx-ink);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.sx-card:hover h2 {
  color: var(--sx-violet3);
}

.sx-card p {
  margin: 0;
  color: var(--sx-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sx-read-more {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--sx-violet3);
  font-size: 0.9rem;
  font-weight: 650;
}

.sx-page-main {
  padding-bottom: 80px;
}

.sx-page,
.sx-legal {
  padding-top: 96px;
}

.sx-article {
  padding: 96px 0 80px;
}

.sx-article--editable .sx-editable-content {
  width: 100%;
}

.sx-page-header,
.sx-article-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.sx-article-header .sx-meta {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sx-featured-image {
  overflow: hidden;
  margin: 0 0 3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sx-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sx-editable-featured-image img {
  min-height: 280px;
}

.sx-prose {
  color: var(--sx-dim);
  font-size: 1.03rem;
  line-height: 1.8;
  letter-spacing: 0;
}

.sx-prose > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sx-prose > :first-child {
  color: var(--sx-ink);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.72;
}

.sx-prose h2,
.sx-prose h3,
.sx-prose h4 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--sx-ink);
  font-weight: 750;
  line-height: 1.2;
}

.sx-prose h2 { font-size: 1.75rem; }
.sx-prose h3 { font-size: 1.38rem; }

.sx-prose p,
.sx-prose ul,
.sx-prose ol {
  margin-top: 0;
  margin-bottom: 1.35rem;
  color: var(--sx-dim);
}

.sx-prose ul,
.sx-prose ol {
  padding-left: 1.3rem;
}

.sx-prose a {
  color: var(--sx-violet3);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sx-prose blockquote {
  margin: 2rem auto;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--sx-violet);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--sx-ink);
}

.sx-prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  margin: 2rem auto;
  border: 1px solid var(--sx-line);
  border-radius: 14px;
}

.sx-prose th,
.sx-prose td {
  padding: 0.85rem;
  border: 1px solid var(--sx-line);
  text-align: left;
}

.sx-prose th {
  background: rgba(255, 255, 255, 0.04);
}

.sx-editable-content .elementor,
.sx-editable-content .elementor-section-wrap {
  width: 100%;
}

.sx-editable-content .elementor-widget-text-editor,
.sx-editable-content .elementor-widget-theme-post-content {
  color: var(--sx-dim);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
}

.sx-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sx-tags {
  color: var(--sx-dim);
}

.sx-site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 5, 12, 0.8);
}

.sx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 48px 0 36px;
}

.sx-footer-grid p,
.sx-footer-contact {
  max-width: 34ch;
  color: var(--sx-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sx-footer-menu ul {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
}

.sx-footer-contact p {
  margin: 0 0 0.75rem;
}

.sx-footer-contact a {
  color: var(--sx-ink);
  font-weight: 700;
}

.sx-footer-bottom {
  padding: 0 0 28px;
  color: var(--sx-faint);
  font-size: 0.85rem;
}

.nav-links,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.page-numbers {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  color: var(--sx-dim);
}

.page-numbers.current {
  background: rgba(255, 255, 255, 0.055);
  color: var(--sx-ink);
}

.sx-builder-main {
  padding: 0;
}

.sx-builder-content {
  width: 100%;
  min-height: 60vh;
}

.sx-builder-content > .elementor,
.sx-builder-content > .elementor-section-wrap,
.sx-builder-content > .wp-block-group {
  width: 100%;
}

@media (max-width: 900px) {
  .sx-nav {
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }

  .sx-menu {
    order: 3;
    width: 100%;
  }

  .sx-menu ul {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .sx-content-grid,
  .sx-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sx-container,
  .sx-narrow {
    width: min(100% - 28px, 1200px);
  }

  .sx-hero,
  .sx-page,
  .sx-legal,
  .sx-article {
    padding-top: 64px;
  }

  .sx-editable-featured-image img {
    min-height: 0;
  }

  .sx-nav-actions {
    width: 100%;
  }

  .sx-link-button {
    flex: 1;
  }
}
