/* Move this block into /assets/css/style.css once happy */
:root {
  --hub-bg: #090b10;
  --hub-panel: rgba(255,255,255,.055);
  --hub-panel-border: rgba(255,255,255,.12);
  --hub-text-soft: #aeb7c7;
  --hub-text-faint: #7f8a9c;
  --hub-blue: #5c8dff;
  --hub-cyan: #43d9d9;
  --hub-gold: #f2bf4a;
  --hub-purple: #a66bff;
  --hub-orange: #ff804d;
  --hub-pink: #ff6fcb;
  --hub-green: #8fd36f;
  --hub-sky: #8fbfff;
}

body.home-hub-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(110,130,170,.34), transparent 34rem),
    radial-gradient(circle at 20% 20%, rgba(49,99,255,.12), transparent 24rem),
    linear-gradient(180deg, #080a0e 0%, var(--hub-bg) 42%, #07080b 100%);
  color: #f4f6fb;
}

.hub-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 3rem) 3rem;
}

.hub-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hub-logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, rgba(92,141,255,.32), rgba(255,255,255,.05));
  border: 1px solid var(--hub-panel-border);
  box-shadow: 0 0 30px rgba(92,141,255,.18);
  text-decoration: none;
}

.hub-mini-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hub-pill-link,
.hub-menu-dot {
  border: 1px solid var(--hub-panel-border);
  background: rgba(255,255,255,.04);
  color: #fff;
  backdrop-filter: blur(16px);
}

.hub-pill-link {
  padding: .75rem 1.2rem;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
}

.hub-menu-dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.hub-hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hub-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6rem;
  width: min(86vw, 1050px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 100% 100% 0 0;
  opacity: .55;
  pointer-events: none;
  box-shadow: 0 -20px 70px rgba(255,255,255,.08);
}

.hub-eyebrow {
  color: #8ea8ff;
  letter-spacing: .45em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hub-title {
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .95;
  letter-spacing: -.06em;
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(255,255,255,.18);
}

.hub-lead {
  color: var(--hub-text-soft);
  max-width: 720px;
  margin: 1.35rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: .75rem;
  margin: 2.2rem 0 2.7rem;
}

.hub-tile {
  min-height: 150px;
  padding: 1.15rem .85rem;
  border: 1px solid var(--hub-panel-border);
  border-radius: 1rem;
  background: var(--hub-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hub-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent), transparent 68%);
  opacity: .34;
  transition: opacity .22s ease;
}

.hub-tile:hover,
.hub-tile:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
  color: #fff;
}

.hub-tile:hover::before,
.hub-tile:focus-visible::before {
  opacity: .55;
}

.hub-icon,
.hub-tile-title,
.hub-subtitle {
  position: relative;
  z-index: 1;
}

.hub-icon {
  font-size: 2rem;
  color: var(--accent);
}

.hub-tile-title {
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.hub-subtitle {
  color: var(--hub-text-soft);
  font-size: .78rem;
  line-height: 1.35;
}

.hub-feature-panel {
  border: 1px solid var(--hub-panel-border);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 25px 85px rgba(0,0,0,.28);
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.hub-section-label {
  color: var(--hub-text-faint);
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.hub-feature-intro h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -.05em;
  line-height: 1.05;
  margin: .7rem 0 1.3rem;
}

.hub-feature-intro p {
  color: var(--hub-text-soft);
  max-width: 380px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hub-ghost-button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  color: #fff;
  border: 1px solid var(--hub-panel-border);
  border-radius: 999px;
  padding: .85rem 1.2rem;
  background: rgba(255,255,255,.04);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}

.hub-article-card {
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--hub-panel-border);
  background: rgba(10,14,22,.82);
  transition: transform .22s ease, border-color .22s ease;
}

.hub-article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.25);
}

.hub-article-image {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.55)),
    var(--image-gradient);
}

.hub-article-body {
  padding: 1.05rem;
}

.hub-article-kicker {
  color: var(--accent);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: .6rem;
}

.hub-article-body h3 {
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -.035em;
  margin-bottom: .7rem;
}

.hub-article-body p {
  color: var(--hub-text-soft);
  font-size: .94rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.hub-read-link {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}

.hub-closing-line {
  text-align: center;
  color: var(--hub-text-soft);
  margin-top: 2rem;
  font-size: 1.05rem;
}

.hub-closing-line strong {
  color: #fff;
}

@media (max-width: 1199px) {
  .hub-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 767px) {
  .hub-shell {
    padding-inline: 1rem;
  }

  .hub-topbar {
    margin-bottom: 2rem;
  }

  .hub-pill-link {
    display: none;
  }

  .hub-hero {
    text-align: left;
    padding-top: 1.5rem;
  }

  .hub-hero::before {
    display: none;
  }

  .hub-eyebrow {
    letter-spacing: .22em;
  }

  .hub-lead {
    margin-inline: 0;
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .hub-tile {
    min-height: 125px;
  }

  .hub-feature-intro p {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}