:root {
  --sapphire: #0d2b6b;
  --sapphire-light: #1a4499;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --velvet: #07071a;
  --velvet-mid: #0f0f2e;
  --velvet-card: #13133a;
  --text-light: #f0eaff;
  --text-muted: #a89fcc;
}

* { box-sizing: border-box; }

body {
  background-color: var(--velvet);
  color: var(--text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 38px rgba(201,168,76,0.9); }
}

@keyframes eclipseHalo {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.glow-gold {
  animation: glowPulse 2.8s ease-in-out infinite;
}

.float-anim {
  animation: parallaxFloat 5s ease-in-out infinite;
}

.eclipse-halo {
  animation: eclipseHalo 4s ease-in-out infinite;
}

.prose {
  color: var(--text-light);
  line-height: 1.8;
  max-width: 100%;
}

.prose h2 {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--sapphire-light);
  padding-bottom: 0.4rem;
}

.prose h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--text-light);
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--gold-light);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.1rem;
  color: var(--text-light);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.1rem;
  color: var(--text-light);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1em;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border: 2px solid var(--sapphire-light);
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  width: 100%;
}

.prose thead {
  background-color: var(--sapphire);
}

.prose th {
  color: var(--gold);
  padding: 0.6em 1em;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--sapphire-light);
}

.prose td {
  padding: 0.55em 1em;
  border: 1px solid var(--sapphire-light);
  color: var(--text-light);
  background-color: var(--velvet-card);
}

.prose tr:nth-child(even) td {
  background-color: var(--velvet-mid);
}

.nav-link {
  color: var(--text-light);
  transition: color 0.2s;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--gold);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87a20);
  color: #07071a;
  font-weight: 700;
  padding: 0.75em 2em;
  border-radius: 2em;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 0.7em 1.8em;
  border-radius: 2em;
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--gold);
  color: #07071a;
}

.card-velvet {
  background-color: var(--velvet-card);
  border: 1px solid var(--sapphire-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold), #a87a20);
  color: #07071a;
  border-radius: 0.5rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  display: inline-block;
  font-size: 0.85em;
}

.section-title {
  color: var(--gold);
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.step-number {
  background: linear-gradient(135deg, var(--gold), #a87a20);
  color: #07071a;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(7,7,26,0.92) 0%, rgba(13,43,107,0.7) 100%);
}

.word-cloud span {
  display: inline-block;
  margin: 0.3em 0.5em;
  color: var(--gold-light);
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  cursor: default;
}

.word-cloud span:hover {
  color: var(--gold);
  transform: scale(1.12);
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
  #mobile-menu {
    background-color: var(--velvet-mid);
  }
}
