:root {
  --xjj-deep: #1B0A2A;
  --xjj-surface: #FFF5F5;
  --xjj-vivid: #FF4365;
  --xjj-muted: #6E8898;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--xjj-deep);
  background: var(--xjj-surface);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--xjj-vivid);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========= 1. CITIES NAV ========= */
.xjj-fortress-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 40px 20px 20px;
  background: var(--xjj-deep);
}

.xjj-fortress-links a {
  color: var(--xjj-surface);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.xjj-fortress-links a:hover {
  background: var(--xjj-vivid);
  color: #fff;
  opacity: 1;
}

/* ========= 2. FEATURES UL ========= */
.xjj-turret-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.xjj-turret-features > li {
  flex: 1 1 300px;
  max-width: 340px;
}

.xjj-turret-features .xjj-fortress {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(27,10,42,0.07);
  height: 100%;
}

.xjj-turret-features .xjj-bastion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xjj-turret-features .xjj-bastion h3 {
  font-size: 1.15rem;
  color: var(--xjj-deep);
}

.xjj-turret-features .xjj-bastion p {
  font-size: 0.92rem;
  color: var(--xjj-muted);
}

/* ========= 3. CTA ADDRESS ========= */
.xjj-moat-action {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--xjj-deep), #2d1548);
  color: var(--xjj-surface);
  font-style: normal;
}

.xjj-moat-action h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.xjj-moat-action p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  opacity: 0.85;
}

.xjj-moat-action a {
  display: inline-block;
  background: var(--xjj-vivid);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.xjj-moat-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,67,101,0.35);
  opacity: 1;
}

/* ========= 4. STATS TABLE ========= */
.xjj-rampart-stats {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.xjj-rampart-stats table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,10,42,0.07);
}

.xjj-rampart-stats caption {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: left;
}

.xjj-rampart-stats thead {
  background: var(--xjj-deep);
  color: var(--xjj-surface);
}

.xjj-rampart-stats th,
.xjj-rampart-stats td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.95rem;
}

.xjj-rampart-stats tbody tr:nth-child(even) {
  background: var(--xjj-surface);
}

.xjj-rampart-stats tbody tr:hover {
  background: rgba(255,67,101,0.06);
}

.xjj-rampart-stats meter {
  width: 80px;
  height: 14px;
}

meter::-webkit-meter-bar {
  background: #e0e0e0;
  border-radius: 4px;
}

meter::-webkit-meter-optimum-value {
  background: var(--xjj-vivid);
  border-radius: 4px;
}

meter::-moz-meter-bar {
  background: var(--xjj-vivid);
  border-radius: 4px;
}

/* ========= 5. CROWN HEADER ========= */
.xjj-fortress-crown {
  background: linear-gradient(160deg, var(--xjj-deep) 0%, #3a1260 50%, var(--xjj-vivid) 100%);
  color: var(--xjj-surface);
  padding: 100px 24px 80px;
  text-align: center;
}

.xjj-fortress-crown .xjj-rampart {
  max-width: 800px;
  margin: 0 auto;
}

.xjj-fortress-crown .xjj-turret {
  padding: 20px 0;
}

.xjj-fortress-crown .xjj-moat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.xjj-fortress-crown h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.xjj-fortress-crown .xjj-moat > p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 600px;
}

.xjj-fortress-crown .xjj-moat > div {
  margin-top: 10px;
}

.xjj-fortress-crown .xjj-moat > div > a {
  display: inline-block;
  background: var(--xjj-vivid);
  color: #fff;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========= 6. BLOG ASIDE ========= */
.xjj-turret-blog {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.xjj-turret-blog > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xjj-turret-blog > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(27,10,42,0.05);
}

.xjj-turret-blog > ul > li > a {
  font-weight: 500;
  font-size: 1rem;
}

.xjj-turret-blog > ul > li > time {
  font-size: 0.82rem;
  color: var(--xjj-muted);
  white-space: nowrap;
}

/* ========= FLOATING NAV ========= */
.xjj-bastion-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 48px;
  border-radius: 9999px;
  background: rgba(27,10,42,0.9);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 20px;
  padding: 0 24px;
  align-items: center;
  z-index: 900;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.xjj-bastion-nav a {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ========= FOOTER ========= */
.xjj-rampart-aside {
  max-width: 300px;
  float: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 24px 100px;
  text-align: right;
  clear: both;
}

.xjj-rampart-aside a {
  font-size: 0.88rem;
  color: var(--xjj-muted);
}

.xjj-rampart-aside small {
  font-size: 0.75rem;
  color: var(--xjj-muted);
  opacity: 0.7;
  margin-top: 10px;
}

/* ========= CONTENT SECTIONS ========= */
.xjj-fortress-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.xjj-fortress-content h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--xjj-deep);
}

.xjj-fortress-content h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--xjj-deep);
}

.xjj-fortress-content h3 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.xjj-fortress-content p {
  margin-bottom: 16px;
  color: #333;
}

.xjj-fortress-content ul,
.xjj-fortress-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.xjj-fortress-content li {
  margin-bottom: 6px;
}

.xjj-fortress-content meter {
  width: 120px;
  height: 16px;
  display: block;
  margin: 10px 0;
}

/* ========= CITY HEADER ========= */
.xjj-moat-cityhead {
  background: var(--xjj-deep);
  color: var(--xjj-surface);
  padding: 70px 24px 50px;
  text-align: center;
}

.xjj-moat-cityhead h1 {
  font-size: 2.2rem;
  color: var(--xjj-surface);
}

.xjj-moat-cityhead p {
  margin-top: 12px;
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .xjj-fortress-crown h1 {
    font-size: 1.8rem;
  }

  .xjj-fortress-crown {
    padding: 70px 18px 50px;
  }

  .xjj-bastion-nav {
    gap: 12px;
    padding: 0 16px;
    height: 44px;
  }

  .xjj-bastion-nav a {
    font-size: 0.78rem;
  }

  .xjj-turret-features {
    padding: 40px 16px;
  }

  .xjj-rampart-aside {
    float: none;
    max-width: 100%;
    text-align: center;
    padding: 30px 16px 90px;
  }

  .xjj-rampart-stats th,
  .xjj-rampart-stats td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .xjj-fortress-crown h1 {
    font-size: 1.5rem;
  }

  .xjj-moat-action h2 {
    font-size: 1.4rem;
  }

  .xjj-fortress-content h1 {
    font-size: 1.7rem;
  }
}
