/* Cat & Bull Lab — studio hub */
.hub-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hub-hero .hub-hero__logo {
  display: block;
  width: 240px;
  height: 150px;
  max-width: 100%;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hub-hero .eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.hub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

body.theme-neon-dusk .hub-hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 36rem;
  width: 100%;
  line-height: 1.7;
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem 2rem;
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: rgba(11, 17, 24, 0.72);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(72, 209, 204, 0.45);
  box-shadow: 0 0 32px rgba(72, 209, 204, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
  text-shadow: none;
}

.product-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.product-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card__tag {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--teal-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__body {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.product-card__cta {
  font-weight: 600;
  color: var(--teal-bright);
}

/*
 * Hub header reuses product .site-header grid + absolute studio brand.
 * Invisible zero-width CTA spacer keeps the same row height as product pages.
 */
.site-header--hub .hub-header-spacer {
  visibility: hidden;
  pointer-events: none;
  width: 0;
  min-width: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  overflow: hidden;
  border: none;
}

@media (max-width: 900px) {
  .site-header--hub .hub-header-spacer {
    display: none;
  }

  /* Without CTA, keep brand row height identical to product mobile header. */
  .site-header--hub .header-brand-slot {
    height: 3.75rem;
  }
}

/*
 * Hub-only palette from Cat & Bull logo:
 * coral orange #e66a42 · deep teal #007670 · silver #cfd2d3 · black.
 * Loaded only on / so product pages keep their own themes.
 */
body.theme-neon-dusk {
  --neon-bg-base: #050806;
  --neon-accent-link: #48d1cc;
  --link-underline: rgba(72, 209, 204, 0.45);
  --neon-eyebrow: #cfd2d3;
  --neon-title-grad: linear-gradient(125deg, #fff 10%, #48d1cc 48%, #e66a42 100%);
  --neon-btn: linear-gradient(90deg, #007670 0%, #e66a42 100%);
  --neon-btn-shadow: 0 8px 32px rgba(0, 118, 112, 0.4);
  --neon-visual-glow: 0 0 65px rgba(230, 106, 66, 0.28);
  --teal-bright: #48d1cc;
  --muted: rgba(207, 210, 211, 0.72);
}

html:has(body.theme-neon-dusk) {
  background-color: var(--neon-bg-base);
}

body.theme-neon-dusk .dusk-bg {
  background-color: var(--neon-bg-base);
  background-image:
    radial-gradient(
      ellipse 90% 70% at calc(12% + var(--dusk-p) * 16%) calc(16% + var(--dusk-p) * 8%),
      rgba(0, 118, 112, 0.88) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 85% 65% at calc(90% - var(--dusk-p) * 12%) calc(84% - var(--dusk-p) * 12%),
      rgba(230, 106, 66, 0.7) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse 70% 55% at calc(18% + var(--dusk-p) * 10%) calc(88% - var(--dusk-p) * 14%),
      rgba(26, 188, 156, 0.45) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 55% 45% at calc(68% + var(--dusk-p) * 8%) calc(28% + var(--dusk-p) * 10%),
      rgba(243, 156, 18, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at calc(48% - var(--dusk-p) * 8%) calc(42% + var(--dusk-p) * 6%),
      rgba(207, 210, 211, 0.1) 0%,
      transparent 58%
    ),
    linear-gradient(
      calc(152deg + var(--dusk-p) * 18deg),
      #041210 0%,
      #06201c 30%,
      #1a100c 58%,
      #2a140e 82%,
      #050806 100%
    );
}

body.theme-neon-dusk .dusk-bg::after {
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 40%, rgba(3, 6, 5, 0.58) 100%);
}

body.theme-neon-dusk .hub-hero h1 {
  background: var(--neon-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.theme-neon-dusk .hub-hero .eyebrow {
  color: var(--neon-eyebrow);
}

body.theme-neon-dusk .product-card:hover {
  border-color: rgba(230, 106, 66, 0.45);
  box-shadow: 0 0 32px rgba(0, 118, 112, 0.18);
}

body.theme-neon-dusk .product-card__tag,
body.theme-neon-dusk .product-card__cta {
  color: #48d1cc;
}

@media (max-width: 900px) {
  body.theme-neon-dusk {
    background-color: var(--neon-bg-base);
    background-image:
      radial-gradient(
        ellipse 120% 60% at 16% 18%,
        rgba(0, 118, 112, 0.82) 0%,
        transparent 55%
      ),
      radial-gradient(
        ellipse 110% 55% at 88% 82%,
        rgba(230, 106, 66, 0.55) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 90% 50% at 50% 48%,
        rgba(26, 188, 156, 0.22) 0%,
        transparent 62%
      ),
      linear-gradient(
        160deg,
        #041210 0%,
        #0a1c18 40%,
        #1a120e 72%,
        #050806 100%
      );
  }

  body.theme-neon-dusk::after {
    background: radial-gradient(ellipse 130% 115% at 50% 45%, transparent 28%, rgba(3, 6, 5, 0.8) 100%);
  }
}
