:root {
  --system-page-width: 1120px;
  --system-accent: var(--gold);
  --system-accent-light: var(--gold-light);
  --system-tint: rgba(212, 175, 55, 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);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--gold-light);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

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

.system-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(6, 5, 26, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.system-nav {
  width: min(calc(100% - 32px), var(--system-page-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.system-brand {
  color: var(--gold-light);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.system-brand-mark { margin-right: 7px; }

.system-nav-cta,
.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, #b8860b, var(--system-accent-light));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--system-accent) 25%, transparent);
}

.system-nav-cta,
.system-secondary-action {
  background: rgba(212, 175, 55, 0.08);
  color: var(--system-accent-light);
}

.system-nav-cta:hover,
.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-hero,
.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-hero {
  min-height: 580px;
  padding: clamp(54px, 8vw, 102px) 0 clamp(70px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 1.02fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.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%, #b8860b);
  -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-hero-figure {
  position: relative;
  min-height: 380px;
  margin: 0;
  isolation: isolate;
}

.system-hero-figure::before {
  position: absolute;
  inset: 8% 4% auto auto;
  z-index: -1;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--system-tint);
  filter: blur(38px);
  content: "";
}

.system-hero-image {
  width: 100%;
  height: 100%;
  min-height: 410px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--system-accent) 28%, transparent);
  border-radius: var(--r-xl);
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 50px var(--system-tint);
}

.system-hero-figure > .system-hero-image:not(img) {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 66% 42%, var(--system-tint), transparent 23%),
    repeating-radial-gradient(circle at 66% 42%, transparent 0 9%, rgba(212, 175, 55, 0.16) 9.2% 9.5%, transparent 9.8% 16%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 5, 26, 0.7));
}

.system-hero-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 260px;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--system-accent) 26%, transparent);
  border-radius: var(--r-sm);
  background: rgba(6, 5, 26, 0.82);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.system-hero-caption strong {
  display: block;
  color: var(--system-accent-light);
  font-family: var(--font-h);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.system-summary {
  margin-bottom: clamp(68px, 9vw, 104px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-summary-card,
.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-summary-card { padding: 22px; }

.system-summary-card dt {
  color: var(--system-accent);
  font-family: var(--font-h);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.system-summary-card dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.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(212, 175, 55, 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(212, 175, 55, 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-hero { grid-template-columns: 1fr; text-align: center; }
  .system-lead { margin-inline: auto; }
  .system-actions { justify-content: center; }
  .system-hero-figure { width: min(100%, 650px); min-height: 340px; margin: 0 auto; }
  .system-hero-image { min-height: 350px; }
  .system-summary, .system-steps { grid-template-columns: 1fr; }
  .system-zodiac-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .system-nav { min-height: 60px; }
  .system-brand { max-width: 155px; font-size: 10px; line-height: 1.35; }
  .system-nav-cta { padding-inline: 12px; font-size: 10px; }
  .system-breadcrumbs { padding-top: 18px; }
  .system-hero { min-height: auto; padding-top: 44px; }
  .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-hero-figure { min-height: 250px; }
  .system-hero-image { min-height: 270px; border-radius: var(--r-lg); }
  .system-hero-caption { right: 12px; bottom: 12px; max-width: 215px; text-align: left; }
  .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) {
  .skip-link,
  .system-nav-cta,
  .system-primary-action,
  .system-secondary-action { transition: none; }
}

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

  .system-hero-image { border: 1px solid CanvasText; }
}
