:root {
  --system-page-width: 1120px;
  --system-accent: var(--gold);
  --system-accent-light: var(--gold-light);
  --system-tint: rgba(var(--gold-muted-rgb), 0.12);
}

.system-sideral {
  --system-accent: var(--c-vedic);
  --system-accent-light: #c4b5fd;
  --system-tint: rgba(139, 92, 246, 0.15);
}

.system-egyptian {
  --system-accent: var(--c-egyptian);
  --system-accent-light: #fbbf24;
  --system-tint: rgba(217, 119, 6, 0.15);
}

.system-earth-medicine {
  --system-accent: var(--c-american);
  --system-accent-light: #6ee7b7;
  --system-tint: rgba(16, 185, 129, 0.14);
}

.system-tree-horoscope {
  --system-accent: var(--c-celtic);
  --system-accent-light: #6ee7b7;
  --system-tint: rgba(5, 150, 105, 0.14);
}

.system-gan-zhi {
  --system-accent: var(--c-chinese);
  --system-accent-light: #fca5a5;
  --system-tint: rgba(239, 68, 68, 0.15);
}

.system-tzolkin {
  --system-accent: var(--c-maya);
  --system-accent-light: #67e8f9;
  --system-tint: rgba(6, 182, 212, 0.14);
}

.system-tonalpohualli {
  --system-accent: var(--c-azteca);
  --system-accent-light: #fcd34d;
  --system-tint: rgba(229, 137, 10, 0.15);
}

.system-numerology {
  --system-accent: var(--c-numerology);
  --system-accent-light: #f5d0fe;
  --system-tint: rgba(232, 121, 249, 0.15);
}

.system-page-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}

.system-primary-action,
.system-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--system-accent) 48%, transparent);
  border-radius: var(--r-md);
  color: var(--bg);
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.system-primary-action {
  background: linear-gradient(135deg, var(--gold-dark), var(--system-accent-light));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--system-accent) 25%, transparent);
}

.system-secondary-action {
  background: rgba(var(--gold-muted-rgb), 0.08);
  color: var(--system-accent-light);
}

.system-primary-action:hover,
.system-secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--system-accent) 34%, transparent);
}

.system-main { overflow: hidden; }

.system-content,
.system-footer-inner {
  width: min(calc(100% - 32px), var(--system-page-width));
  margin: 0 auto;
}

.system-breadcrumbs {
  width: min(calc(100% - 32px), var(--system-page-width));
  margin: 0 auto;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 12px;
}

.system-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.system-breadcrumbs li + li::before {
  margin-right: 7px;
  color: var(--system-accent);
  content: "/";
}

.system-breadcrumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.system-eyebrow,
.system-section-eyebrow {
  color: var(--system-accent);
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.system-title {
  max-width: 720px;
  margin-top: 16px;
  font-family: var(--font-h);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--system-accent-light), var(--system-accent) 52%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-lead {
  max-width: 650px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 300;
  line-height: 1.8;
}

.system-lead strong { color: var(--text); font-weight: 500; }

.system-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.system-content { padding-bottom: clamp(68px, 10vw, 118px); }

.system-card-panel,
.system-faq details {
  border: 1px solid color-mix(in srgb, var(--system-accent) 19%, transparent);
  border-radius: var(--r-lg);
  background: rgba(14, 12, 40, 0.78);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
}

.system-section {
  max-width: 880px;
  margin: 0 auto clamp(72px, 9vw, 108px);
  scroll-margin-top: 98px;
}

.system-section-heading {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--font-h);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  text-wrap: balance;
}

.system-prose {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.system-prose + .system-prose { margin-top: 14px; }
.system-prose strong { color: var(--text); font-weight: 600; }
.system-prose a { color: var(--system-accent-light); text-underline-offset: 3px; }

.system-steps {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: system-steps;
}

.system-steps li {
  min-height: 176px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--system-accent) 19%, transparent);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--system-tint), transparent 58%), rgba(14, 12, 40, 0.76);
  counter-increment: system-steps;
}

.system-steps li::before {
  display: block;
  margin-bottom: 14px;
  color: var(--system-accent);
  font-family: var(--font-h);
  font-size: 20px;
  content: "0" counter(system-steps);
}

.system-steps h3 {
  color: var(--text);
  font-family: var(--font-h);
  font-size: 15px;
  line-height: 1.35;
}

.system-steps p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.system-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--system-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--system-tint);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.system-note strong { color: var(--text); }

.system-zodiac-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.system-zodiac-list li {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(var(--gold-muted-rgb), 0.15);
  border-radius: var(--r-md);
  background: rgba(14, 12, 40, 0.7);
}

.system-zodiac-list strong {
  display: block;
  color: var(--text);
  font-family: var(--font-h);
  font-size: 14px;
}

.system-zodiac-list span {
  display: block;
  margin-top: 4px;
  color: var(--system-accent);
  font-size: 12px;
  line-height: 1.5;
}

.system-zodiac-list small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.system-comparison {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.system-card-panel { padding: clamp(22px, 4vw, 32px); }

.system-card-panel h3 {
  color: var(--system-accent-light);
  font-family: var(--font-h);
  font-size: 17px;
  line-height: 1.4;
}

.system-card-panel p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.system-faq { margin-top: 30px; }
.system-faq details + details { margin-top: 10px; }

.system-faq summary {
  padding: 19px 50px 19px 20px;
  position: relative;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 14px;
  line-height: 1.45;
}

.system-faq summary::after {
  position: absolute;
  top: 17px;
  right: 20px;
  color: var(--system-accent);
  font-size: 21px;
  content: "+";
}

.system-faq details[open] summary::after { content: "−"; }

.system-faq details > div {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.system-cta-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid color-mix(in srgb, var(--system-accent) 26%, transparent);
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 0%, var(--system-tint), transparent 57%), rgba(14, 12, 40, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.system-cta-panel h2 {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--font-h);
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.22;
}

.system-cta-panel p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.system-cta-panel .system-primary-action { margin-top: 28px; }

.system-footer {
  border-top: 1px solid rgba(var(--gold-muted-rgb), 0.1);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.system-footer p + p { margin-top: 4px; }
.system-footer strong { color: var(--gold-light); font-family: var(--font-h); }

@media (max-width: 860px) {
  .system-lead { margin-inline: auto; }
  .system-actions { justify-content: center; }
  .system-steps { grid-template-columns: 1fr; }
  .system-zodiac-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .system-breadcrumbs { padding-top: 18px; }
  .system-title { font-size: clamp(33px, 10.5vw, 47px); }
  .system-lead { font-size: 15px; }
  .system-actions { flex-direction: column; align-items: stretch; }
  .system-primary-action, .system-secondary-action { width: 100%; }
  .system-zodiac-list, .system-comparison { grid-template-columns: 1fr; }
  .system-zodiac-list li { min-height: 0; }
  .system-cta-panel { border-radius: var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .system-primary-action,
  .system-secondary-action { transition: none; }
}

@media (forced-colors: active) {
  .system-card-panel,
  .system-faq details,
  .system-steps li,
  .system-zodiac-list li,
  .system-cta-panel {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}
