:root {
  --hub-blue: #4f84ff;
  --hub-cyan: #67d9ff;
  --hub-pink: #d45284;
  --hub-mint: #20c9a6;
  --hub-orange: #ff8c5a;
}

body.product-hub {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(79, 132, 255, 0.16), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(212, 82, 132, 0.14), transparent 24%),
    linear-gradient(180deg, #08111b 0%, #0d1523 52%, #09111c 100%);
}

.hub-shell {
  min-height: 100vh;
}

.hub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 44px);
  background: rgba(8, 13, 22, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hub-brand-mark {
  width: 126px;
  height: 44px;
  display: block;
  flex: 0 0 126px;
  padding: 8px 10px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(0, 107, 232, 0.18), rgba(90, 52, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 44px rgba(44, 28, 122, 0.28);
}

.hub-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.hub-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-brand-copy strong {
  font-size: 1.05rem;
}

.hub-brand-copy span,
.hub-link,
.hub-summary,
.hub-preview-text,
.hub-card span,
.hub-card p {
  color: rgba(244, 242, 236, 0.72);
}

.hub-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.hub-hero,
.hub-grid-section {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100svh - 97px);
  padding: 48px 0 36px;
}

.hub-kicker,
.hub-section-heading p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.hub-hero h1 {
  margin: 14px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hub-summary {
  max-width: 56ch;
  margin-top: 20px;
  line-height: 1.8;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hub-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hub-metrics div,
.hub-preview-stage,
.hub-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hub-metrics div {
  padding: 18px;
  border-radius: 22px;
}

.hub-metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.hub-preview-stage {
  position: relative;
  padding: 24px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(79, 132, 255, 0.18), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(212, 82, 132, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.hub-preview-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hub-preview-topline span {
  color: rgba(255, 255, 255, 0.56);
}

.hub-preview-topline strong {
  font-size: 1.02rem;
}

.hub-preview-canvas {
  position: relative;
  min-height: 420px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 17, 28, 0.4);
}

.preview-lane,
.preview-pulse {
  position: absolute;
  border-radius: 999px;
}

.preview-lane {
  inset: auto auto auto 12%;
  height: 12px;
  width: 76%;
  background: rgba(255, 255, 255, 0.08);
}

.lane-a { top: 26%; }
.lane-b { top: 48%; }
.lane-c { top: 70%; }

.preview-pulse {
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  animation: drift 5.8s ease-in-out infinite;
}

.pulse-a { top: calc(26% - 38px); left: 18%; }
.pulse-b { top: calc(48% - 38px); left: 48%; animation-delay: 1.4s; }
.pulse-c { top: calc(70% - 38px); left: 70%; animation-delay: 2.8s; }

.hub-preview-text {
  margin: 18px 0 0;
  line-height: 1.7;
}

.hub-grid-section {
  padding: 24px 0 72px;
}

.hub-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.hub-section-heading span {
  width: clamp(56px, 9vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

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

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.hub-card:hover,
.hub-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.hub-card h2 {
  margin: 14px 0 0;
  font-size: 2rem;
}

.hub-card strong {
  margin-top: auto;
  padding-top: 24px;
  font-size: 1.04rem;
}

.hub-card span {
  margin-top: 10px;
  line-height: 1.7;
}

@keyframes drift {
  0%, 100% { transform: translateX(0) scale(1); opacity: 0.42; }
  50% { transform: translateX(42px) scale(1.18); opacity: 0.84; }
}

@media (max-width: 1080px) {
  .hub-hero,
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hub-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub-header-actions,
  .hub-actions {
    width: 100%;
  }

  .hub-header-actions {
    justify-content: space-between;
  }

  .hub-metrics {
    grid-template-columns: 1fr;
  }

  .hub-hero,
  .hub-grid-section {
    width: min(1280px, calc(100% - 24px));
  }
}
