/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --bg-deep:        #080618;
  --bg-primary:     #0d0a1e;
  --bg-secondary:   #150d2e;
  --bg-card:        #1a1035;
  --bg-card-hover:  #201445;
  --gold-primary:   #c9a227;
  --gold-light:     #e8c547;
  --gold-dim:       #7a6118;
  --gold-glow:      rgba(201, 162, 39, 0.15);
  --purple-bright:  #9b59b6;
  --purple-light:   #bd85d6;
  --purple-glow:    rgba(155, 89, 182, 0.25);
  --text-primary:   #f0e6ff;
  --text-secondary: #b8a9d4;
  --text-muted:     #7a6d9e;
  --border-gold:    rgba(201, 162, 39, 0.2);
  --border-purple:  rgba(155, 89, 182, 0.2);
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --cta-bg:         linear-gradient(135deg, #c9a227, #9b59b6);
  --lock-overlay:   rgba(8, 6, 24, 0.92);
  --font-display:   'Cinzel', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --radius-card:    12px;
  --radius-btn:     8px;
  --max-w:          860px;
  --max-w-wide:     1200px;
}

/* === RESET + BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* === STAR FIELD === */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }

/* === NAV === */
.site-nav {
  background: rgba(8, 6, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-nav__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.site-nav__links { display: flex; gap: 2rem; list-style: none; }
.site-nav__links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; }
.site-nav__links a:hover { color: var(--gold-light); }

/* === HERO === */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155,89,182,0.15) 0%, transparent 70%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.page-hero h1 span.gold { color: var(--gold-primary); }
.page-hero .hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* === BADGES === */
.sign-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === SIGN GRID === */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .sign-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .sign-grid { grid-template-columns: repeat(3, 1fr); } }
.sign-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.25rem 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.sign-tile:hover { border-color: var(--gold-primary); transform: translateY(-3px); }
.sign-tile__glyph { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.sign-tile__name { font-family: var(--font-display); font-size: 0.875rem; color: var(--text-secondary); }

/* === ARTICLE CONTENT === */
.article-body { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}
.article-body p { margin-bottom: 1.25rem; color: var(--text-secondary); }
.article-body p:first-of-type { font-size: 1.125rem; color: var(--text-primary); }
.article-body strong { color: var(--gold-light); font-weight: 600; }

/* === LOCK MECHANISM === */
.locked-content {
  position: relative;
  margin: 3rem 0;
}
.locked-content__text {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}
.locked-content.unlocked .locked-content__text {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  opacity: 1;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  background: var(--lock-overlay);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 2rem;
}
.lock-overlay.hidden { display: none; }
.lock-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 0 60px var(--gold-glow);
}
.lock-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.lock-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.lock-card__subtitle { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 0.9375rem; }

/* === EMAIL FORM === */
.email-form { display: flex; flex-direction: column; gap: 1rem; }
.email-form input[type="email"] {
  background: var(--bg-deep);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-btn);
  padding: 0.875rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
.email-form input[type="email"]::placeholder { color: var(--text-muted); }
.email-form input[type="email"]:focus { outline: none; border-color: var(--gold-primary); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--gold {
  background: var(--cta-bg);
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 20px var(--gold-glow);
  animation: btn-shimmer 3s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%, 100% { box-shadow: 0 4px 20px var(--gold-glow); }
  50% { box-shadow: 0 4px 30px rgba(201, 162, 39, 0.35); }
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
}
.btn--outline:hover { background: var(--gold-glow); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === SECTIONS === */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-secondary); }
.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* === COMPATIBILITY METER === */
.compat-meter {
  background: var(--bg-deep);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin: 1rem 0;
}
.compat-meter__fill {
  height: 100%;
  border-radius: 100px;
  background: var(--cta-bg);
  transition: width 1s ease;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 0 0;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-primary); }
.breadcrumb__sep { opacity: 0.5; }

/* === FAQ === */
.faq { max-width: var(--max-w); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.faq-a { color: var(--text-secondary); font-size: 0.9375rem; }

/* === RELATED READINGS === */
.related-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* === SOCIAL PROOF BAR === */
.social-proof {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.social-proof__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
}
.social-proof__label { color: var(--text-secondary); font-size: 0.9375rem; }

/* === COMPAT HUB GRID === */
.compat-hub-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
  font-size: 0.625rem;
  overflow-x: auto;
}
.compat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.625rem;
  transition: transform 0.15s;
}
.compat-cell:hover { transform: scale(1.1); z-index: 1; }
.compat-cell--high { background: rgba(201, 162, 39, 0.35); }
.compat-cell--med { background: rgba(155, 89, 182, 0.25); }
.compat-cell--low { background: rgba(255, 255, 255, 0.05); }
.compat-cell--header { background: transparent; color: var(--text-muted); font-weight: 600; }

/* === FOOTER === */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-primary);
  text-decoration: none;
}
.site-footer__tagline { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }
.site-footer__links { display: flex; gap: 1.5rem; list-style: none; }
.site-footer__links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; }
.site-footer__links a:hover { color: var(--gold-primary); }
.site-footer__copy { text-align: center; color: var(--text-muted); font-size: 0.8125rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* === FORM MESSAGES === */
.form-success {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-btn);
  padding: 1rem;
  color: var(--gold-light);
  text-align: center;
  font-size: 0.9375rem;
  display: none;
  margin: 1rem 0 0;
}
.form-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-btn);
  padding: 0.75rem;
  color: #fca5a5;
  font-size: 0.875rem;
  display: none;
  margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.875rem; }
  .section-title { font-size: 1.5rem; }
  .lock-card { padding: 1.75rem 1.25rem; }
  .site-nav__links { display: none; }
  .site-footer__inner { flex-direction: column; }
}
