/* ============================================
   Xterium /universes hub — rebuilt from scaffold (universe.html)
   All classes prefixed: xu-
   @since 2026-05-17 (Phase J scaffold rebuild)
   ============================================ */

/* ===== HERO ===== */
.xu-hero {
  position: relative;
  z-index: 1;
  min-height: 340px;
  padding: 40px 0 48px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.xu-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.xu-hero-bg picture,
.xu-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.xu-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,20,.4) 0%, rgba(6,10,20,.85) 70%, var(--xh-bg-deep, #060a14) 100%);
  z-index: 1;
}
.xu-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--xh-max-w, 1200px);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad, 32px);
  width: 100%;
}
.xu-hero-inner .xh-breadcrumbs {
  margin-bottom: 12px;
}
.xu-hero-title {
  font-family: var(--xh-font-display, 'Archivo Black'), sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 8px;
}
.xu-hero-title em {
  font-style: normal;
  color: var(--xh-orange, #e88420);
}
.xu-hero-desc {
  font-size: 16px;
  color: var(--xh-text-secondary, #a4b3c8);
  max-width: 460px;
  margin: 0;
  line-height: 1.6;
}

/* ===== SECTION TITLES — shared ===== */
.xu-cards .xh-section-title,
.xu-compare .xh-section-title,
.xu-choose .xh-section-title,
.xu-faq .xh-section-title {
  text-align: center;
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--xh-text, #e8ecf2);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.xu-cards .xh-section-title::before,  .xu-cards .xh-section-title::after,
.xu-compare .xh-section-title::before, .xu-compare .xh-section-title::after,
.xu-choose .xh-section-title::before,  .xu-choose .xh-section-title::after,
.xu-faq .xh-section-title::before,     .xu-faq .xh-section-title::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--xh-border-light, #1e2d4a);
}

/* ===== UNIVERSE CARDS ===== */
.xu-cards {
  position: relative;
  z-index: 1;
  padding: 48px 0 64px;
}
.xu-cards-grid {
  max-width: var(--xh-max-w, 1200px);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad, 32px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.xu-card {
  background: var(--xh-bg-card, #0c1322);
  border: 1px solid var(--xh-border, #162035);
  border-radius: var(--xh-radius-lg, 10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--xh-transition, .3s ease);
}
.xu-card:hover {
  border-color: var(--xh-border-light, #1e2d4a);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.xu-card--woa { border-color: rgba(232,132,30,.4); }
.xu-card--woa:hover {
  border-color: rgba(232,132,30,.7);
  box-shadow: 0 12px 40px rgba(232,132,30,.12);
}
.xu-card-img-placeholder {
  width: 100%;
  height: 180px;
  border-bottom: 1px solid var(--xh-border, #162035);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--xh-text-secondary, #a4b3c8);
}
.xu-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.xu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.xu-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.xu-card-name {
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}
.xu-card-sub {
  font-size: 13px;
  color: var(--xh-text-muted, #8a99b0);
  margin-top: 2px;
}
.xu-card-desc {
  font-size: 14.5px;
  color: var(--xh-text-secondary, #a4b3c8);
  line-height: 1.6;
  margin: 0 0 18px;
}

/* Spec rows inside card */
.xu-card-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  flex: 1;
}
.xu-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--xh-border, #162035);
  font-size: 13px;
}
.xu-spec-row:last-child { border-bottom: none; }
.xu-spec-icon {
  width: 16px;
  height: 16px;
  color: var(--xh-text-muted, #8a99b0);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
}
.xu-spec-icon svg { width: 16px; height: 16px; }
.xu-spec-label {
  color: var(--xh-text-muted, #8a99b0);
  min-width: 110px;
  flex-shrink: 0;
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-weight: 600;
  letter-spacing: .3px;
}
.xu-spec-value {
  color: var(--xh-text, #e8ecf2);
  font-weight: 600;
}
.xu-card .xh-btn {
  align-self: stretch;
  justify-content: center;
}

/* ===== COMPARE TABLE ===== */
.xu-compare {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  border-top: 1px solid var(--xh-border, #162035);
}
.xu-compare-wrap {
  max-width: var(--xh-max-w, 1200px);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad, 32px);
}
.xu-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--xh-bg-card, #0c1322);
  border: 1px solid var(--xh-border, #162035);
  border-radius: var(--xh-radius-lg, 10px);
  overflow: hidden;
  margin-top: 32px;
}
.xu-compare-table th,
.xu-compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--xh-border, #162035);
}
.xu-compare-table thead th {
  background: rgba(255,255,255,.03);
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--xh-text-muted, #8a99b0);
}
.xu-compare-table thead th:not(:first-child) { text-align: center; }
.xu-compare-table tbody td:not(:first-child) {
  text-align: center;
  color: var(--xh-text-secondary, #a4b3c8);
}
.xu-compare-table tbody td:first-child {
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-weight: 600;
  color: var(--xh-text, #e8ecf2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.xu-compare-table tbody td:first-child svg {
  width: 18px;
  height: 18px;
  color: var(--xh-text-muted, #8a99b0);
  flex-shrink: 0;
}
.xu-compare-table tbody tr:last-child td { border-bottom: none; }
.xu-th-name {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.xu-th-name svg { width: 20px; height: 20px; }

/* ===== HOW TO CHOOSE ===== */
.xu-choose {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  border-top: 1px solid var(--xh-border, #162035);
}
.xu-choose-desc {
  text-align: center;
  font-size: 15px;
  color: var(--xh-text-secondary, #a4b3c8);
  margin: 8px 0 36px;
}
.xu-choose-grid {
  max-width: var(--xh-max-w, 1200px);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad, 32px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.xu-choose-card {
  background: var(--xh-bg-card, #0c1322);
  border: 1px solid var(--xh-border, #162035);
  border-radius: var(--xh-radius-lg, 10px);
  overflow: hidden;
  transition: all var(--xh-transition, .3s ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.xu-choose-card:hover {
  border-color: var(--xh-border-light, #1e2d4a);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.xu-choose-card-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #0d1830 0%, #162040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--xh-border, #162035);
  position: relative;
  overflow: hidden;
}
.xu-choose-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(42,125,225,.18) 0%, transparent 70%);
}
.xu-choose-num {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--xh-font-display, 'Archivo Black'), sans-serif;
  font-size: 14px;
  color: var(--xh-orange, #e88420);
  letter-spacing: 1px;
}
.xu-choose-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.xu-choose-card-title {
  font-family: var(--xh-font-display, 'Archivo Black'), sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
}
.xu-choose-traits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.xu-choose-traits li {
  font-size: 13px;
  color: var(--xh-text-secondary, #a4b3c8);
  padding-left: 14px;
  position: relative;
}
.xu-choose-traits li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--xh-text-muted, #8a99b0);
}
.xu-choose-result {
  border-top: 1px solid var(--xh-border, #162035);
  padding-top: 16px;
}
.xu-choose-result-label {
  font-size: 12px;
  color: var(--xh-orange, #e88420);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.xu-choose-result-name {
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.xu-choose-result-name svg {
  width: 22px;
  height: 22px;
}

/* ===== FAQ ===== */
.xu-faq {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  border-top: 1px solid var(--xh-border, #162035);
}
.xu-faq-list {
  max-width: 800px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xu-faq-list .xh-faq-item {
  border: 1px solid var(--xh-border, #162035);
  border-radius: var(--xh-radius, 6px);
  background: var(--xh-bg-card, #0c1322);
  overflow: hidden;
}
.xu-faq-list .xh-faq-item[open] {
  border-color: var(--xh-border-light, #1e2d4a);
}
.xu-faq-list .xh-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--xh-font-heading, 'Rajdhani'), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--xh-text, #e8ecf2);
  cursor: pointer;
  list-style: none;
}
.xu-faq-list .xh-faq-q::-webkit-details-marker { display: none; }
.xu-faq-list .xh-faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--xh-text-muted, #8a99b0);
  transition: transform var(--xh-transition, .3s ease);
}
.xu-faq-list .xh-faq-item[open] .xh-faq-q svg {
  transform: rotate(180deg);
  color: var(--xh-orange, #e88420);
}
.xu-faq-list .xh-faq-a {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--xh-text-secondary, #a4b3c8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .xu-cards-grid, .xu-choose-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .xu-cards-grid,
  .xu-choose-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .xu-compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 768px) {
  .xu-hero { min-height: 280px; padding: 32px 0 40px; }
  .xu-hero-title { font-size: clamp(28px, 8vw, 40px); }
  .xu-cards-grid, .xu-choose-grid, .xu-compare-wrap { padding-left: 20px; padding-right: 20px; }
  .xu-cards .xh-section-title, .xu-compare .xh-section-title,
  .xu-choose .xh-section-title, .xu-faq .xh-section-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .xu-hero-inner, .xu-cards-grid, .xu-choose-grid, .xu-compare-wrap { padding-left: 16px; padding-right: 16px; }
  .xu-card-body, .xu-choose-card-body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .xu-card, .xu-choose-card, .xu-faq-list .xh-faq-q svg { transition: none; }
}
