        :root {
            --navy: #0F172A;
            --trust-blue: #1E40AF;
            --accent-gold: #B5935B;
            --wiki-gray: #F8FAFC;
        }

        
        body {
            font-family: 'Inter', sans-serif;
            background-color: #FFFFFF;
            color: #334155;
            scroll-behavior: smooth;
        }

        h1, h2, h3, h4, .serif {
            font-family: 'Playfair Display', serif;
        }

        .article-body {
            font-family: 'Source Sans Pro', sans-serif;
            line-height: 2;
            font-size: 1.15rem;
        }

        .glass-nav {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        }

        .reading-progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            z-index: 1000;
        }

        .reading-progress-bar {
            height: 100%;
            background: linear-gradient(to right, #B5935B, #EAB308);
            width: 0%;
            transition: width 0.1s ease;
        }

        .wiki-card {
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            border: 1px solid rgba(15, 23, 42, 0.05);
        }

        .wiki-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
            border-color: var(--accent-gold);
        }

        .page-section {
            display: none;
            animation: pageFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes pageFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .active-page { display: block; }

        .sidebar-sticky {
            position: sticky;
            top: 120px;
        }

        .stat-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        }

        .roadmap-dot {
            position: relative;
        }
        .roadmap-dot::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 40px;
            bottom: -40px;
            width: 2px;
            background: #e2e8f0;
            z-index: -1;
        }

        .gradient-text {
            background: linear-gradient(45deg, #0F172A, #B5935B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        /* ===== Modal Backdrop ===== */
.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* slate-900 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.35s ease;
}

/* ===== Modal Container ===== */
.footer-modal {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  border-radius: 2.5rem;
  width: 100%;
  max-width: 720px;
  padding: 3rem;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(20px) scale(0.98);
  animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* ===== Modal Title ===== */
.footer-modal h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

/* ===== Modal Content ===== */
.footer-modal p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #475569;
}

/* ===== Close Button ===== */
.footer-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-modal-close:hover {
  background: #10b981; /* emerald */
  transform: rotate(90deg);
}

/* ===== Footer Links ===== */
.footer-legal-links a,
.footer-legal-links button {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a::after,
.footer-legal-links button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: linear-gradient(
    to right,
    #10b981,
    #22d3ee
  );
  transition: width 0.3s ease;
}

.footer-legal-links a:hover::after,
.footer-legal-links button:hover::after {
  width: 100%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Mobile Optimization ===== */
@media (max-width: 640px) {
  .footer-modal {
    padding: 2rem;
    border-radius: 2rem;
  }

  .footer-modal h2 {
    font-size: 1.75rem;
  }
}


        /* Better Table Styling */
        table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
        th { background: #f8fafc; text-align: left; padding: 1rem; border-bottom: 2px solid #e2e8f0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
        td { padding: 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; }

        /* Smooth scroll margin for anchors */
        section { scroll-margin-top: 100px; }
