.page-hub {
  --hub-mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #171717;
  --text: #f7f7f7;
  --muted: #b3b3b3;
  --line: #343434;
  --hub-surface: #222222;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(244, 196, 48, 0.12), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255, 128, 64, 0.05), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(90, 143, 199, 0.06), transparent 40%),
    linear-gradient(180deg, #1e1e1e 0%, #171717 45%, #141414 100%);
  min-height: 100svh;
  color: var(--text);
}

.page-hub .grain,
.page-hub #scene {
  display: none !important;
}

#hub-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hub-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hub-speedo {
  position: fixed;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  width: min(92vw, 480px);
  opacity: 0.92;
}

.hub-speedo__svg {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 12px 40px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 24px rgba(255, 77, 0, 0.06));
}

.hub-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 32px);
  font-family: var(--hub-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(#030303 60%, transparent);
}

.hub-bar__back {
  color: var(--muted);
  transition: color 0.2s;
}

.hub-bar__back:hover {
  color: var(--accent);
}

.hub-bar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.hub-bar__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: hub-pulse 2s ease infinite;
}

@keyframes hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hub {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(72px, 14vh, 120px) clamp(16px, 4vw, 32px) clamp(240px, 38vh, 320px);
}

.hub__head {
  margin-bottom: clamp(24px, 5vw, 40px);
}

.hub__mono {
  font-family: var(--hub-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 16px;
}

.hub__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 48px rgba(244, 196, 48, 0.08);
}

.hub__menu {
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 23, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hub__menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -48px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(23, 23, 23, 0.82), transparent);
  pointer-events: none;
}

.hub__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}

.hub__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hub__item:hover {
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.hub__item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.hub__idx {
  font-family: var(--hub-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(244, 196, 48, 0.55);
  transition: color 0.25s;
}

.hub__item:hover .hub__idx {
  color: var(--accent);
}

.hub__label {
  font-family: var(--display);
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hub__meta {
  font-family: var(--hub-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
}

.hub__item:hover .hub__meta {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

.hub__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  font-family: var(--hub-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hub__meta {
    display: none;
  }

  .hub__item {
    grid-template-columns: 36px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-bar__status i {
    animation: none;
  }

  [data-hub] {
    opacity: 1 !important;
    transform: none !important;
  }

  #hub-bg {
    display: none;
  }
}
