.hubpage-body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.hubpage-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hubpage-topbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hubpage-link,
.hubpage-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.82);
  backdrop-filter: blur(18px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.hubpage-link:hover,
.hubpage-brand:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 215, 255, 0.2);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

.hubpage-link.is-right {
  justify-self: end;
}

.hubpage-brand {
  justify-self: center;
  font-weight: 800;
}

.hubpage-hero,
.hubpage-card,
.hubpage-table-shell,
.hubpage-callout,
.hubpage-quote,
.hubpage-feed-card,
.hubpage-faq details {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.08), transparent 22%),
    radial-gradient(circle at 14% 18%, rgba(139, 92, 246, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(6, 8, 13, 0.96);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
}

.hubpage-hero::after,
.hubpage-card::after,
.hubpage-table-shell::after,
.hubpage-callout::after,
.hubpage-quote::after,
.hubpage-feed-card::after,
.hubpage-faq details::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 60%) -180% 0 / 180% 100% no-repeat;
  animation: hubpageSheen 10s ease-in-out infinite;
  pointer-events: none;
}

.hubpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.hubpage-hero-copy,
.hubpage-hero-media {
  position: relative;
  z-index: 1;
}

.hubpage-hero-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hubpage-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hubpage-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.92;
}

.hubpage-hero p,
.hubpage-section-head p,
.hubpage-card p,
.hubpage-callout p,
.hubpage-quote p,
.hubpage-table-note,
.hubpage-faq details p,
.hubpage-feed-card p,
.hubpage-list li {
  margin: 0;
  color: rgba(214, 223, 243, 0.78);
  line-height: 1.7;
}

.hubpage-pill-row,
.hubpage-action-row,
.hubpage-filter-row,
.hubpage-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hubpage-pill,
.hubpage-tag,
.hubpage-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hubpage-filter-chip {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hubpage-filter-chip.is-active,
.hubpage-filter-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 215, 255, 0.22);
  background: rgba(53, 215, 255, 0.12);
}

.hubpage-stat-grid,
.hubpage-card-grid,
.hubpage-feed-grid,
.hubpage-mini-grid {
  display: grid;
  gap: 16px;
}

.hubpage-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hubpage-card-grid.is-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hubpage-card-grid.is-3,
.hubpage-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hubpage-card-grid.is-4,
.hubpage-feed-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hubpage-stat-card,
.hubpage-card,
.hubpage-feed-card,
.hubpage-quote {
  display: grid;
  gap: 12px;
  padding: 22px;
  animation: hubpageFloat 7s ease-in-out infinite alternate;
}

.hubpage-stat-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 25, 0.74);
}

.hubpage-stat-card span,
.hubpage-card-top span,
.hubpage-step-index,
.hubpage-feed-meta span,
.hubpage-quote-meta span {
  color: rgba(203, 214, 238, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hubpage-stat-card strong {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hubpage-hero-media {
  display: grid;
  align-content: stretch;
}

.hubpage-hero-media img,
.hubpage-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hubpage-card-top,
.hubpage-feed-meta,
.hubpage-quote-meta,
.hubpage-timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hubpage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.hubpage-badge.is-good {
  background: rgba(33, 213, 134, 0.12);
  color: #cbffe7;
}

.hubpage-badge.is-warn {
  background: rgba(255, 157, 60, 0.14);
  color: #ffd4af;
}

.hubpage-badge.is-bad {
  background: rgba(255, 94, 94, 0.14);
  color: #ffbcbc;
}

.hubpage-badge.is-info {
  background: rgba(53, 215, 255, 0.14);
  color: #d1f8ff;
}

.hubpage-section {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.hubpage-section-head {
  display: grid;
  gap: 8px;
}

.hubpage-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
}

.hubpage-table-shell {
  padding: 20px;
}

.hubpage-table {
  width: 100%;
  border-collapse: collapse;
}

.hubpage-table th,
.hubpage-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hubpage-table th {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hubpage-table td {
  color: rgba(219, 228, 246, 0.86);
}

.hubpage-timeline {
  display: grid;
  gap: 16px;
}

.hubpage-timeline-item {
  position: relative;
  padding: 22px 22px 22px 74px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 21, 0.82);
}

.hubpage-timeline-item::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #35d7ff, #7a5cff);
  box-shadow: 0 0 18px rgba(53, 215, 255, 0.4);
}

.hubpage-timeline-item::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 50px;
  bottom: -22px;
  width: 2px;
  background: linear-gradient(180deg, rgba(53, 215, 255, 0.44), rgba(122, 92, 255, 0));
}

.hubpage-timeline-item:last-child::after {
  display: none;
}

.hubpage-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.hubpage-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 19, 0.84);
}

.hubpage-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
}

.hubpage-faq {
  display: grid;
  gap: 14px;
}

.hubpage-faq details {
  padding: 20px;
}

.hubpage-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.hubpage-faq summary::-webkit-details-marker {
  display: none;
}

.hubpage-callout,
.hubpage-quote {
  padding: 22px;
}

.hubpage-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hubpage-gallery-card {
  display: grid;
  gap: 12px;
}

.hubpage-gallery-card img {
  aspect-ratio: 1 / 1;
}

.hubpage-hidden {
  display: none !important;
}

@keyframes hubpageSheen {
  from { background-position: -180% 0; }
  to { background-position: 220% 0; }
}

@keyframes hubpageFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@media (max-width: 1080px) {
  .hubpage-hero,
  .hubpage-stat-grid,
  .hubpage-card-grid.is-4,
  .hubpage-card-grid.is-3,
  .hubpage-mini-grid,
  .hubpage-feed-grid,
  .hubpage-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hubpage-topbar,
  .hubpage-hero,
  .hubpage-card-grid.is-2,
  .hubpage-stat-grid,
  .hubpage-card-grid.is-3,
  .hubpage-card-grid.is-4,
  .hubpage-mini-grid,
  .hubpage-feed-grid,
  .hubpage-gallery-grid {
    grid-template-columns: 1fr;
  }

  .hubpage-brand,
  .hubpage-link.is-right {
    justify-self: stretch;
  }

  .hubpage-shell {
    width: min(100% - 20px, 1240px);
  }
}
