:root {
  --hub-bg: #050914;
  --hub-panel: rgba(12, 24, 44, 0.78);
  --hub-panel-strong: rgba(8, 17, 32, 0.94);
  --hub-line: rgba(147, 197, 253, 0.14);
  --hub-line-strong: rgba(147, 197, 253, 0.28);
  --hub-text: #f8fafc;
  --hub-muted: #b8c2d9;
  --hub-soft: #dbeafe;
  --hub-ice: #93c5fd;
  --hub-blue: #3b82f6;
  --hub-cyan: #8de8ff;
  --hub-green: #86efac;
  --hub-gold: #f4c86a;
  --hub-radius: 18px;
  --hub-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --hub-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--hub-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 9, 20, 0.12), var(--hub-bg) 720px),
    radial-gradient(circle at 50% -10%, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(180deg, #06101d 0%, #081220 48%, #050914 100%);
  color: var(--hub-text);
  font-family: var(--hub-font);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hub-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hub-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hub-bg__arena {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.04), var(--hub-bg) 96%),
    radial-gradient(circle at 50% 20%, rgba(147, 197, 253, 0.09), transparent 25%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.74) 0%, rgba(2, 6, 23, 0.24) 46%, rgba(2, 6, 23, 0.72) 100%),
    url("../../assets/home/hero/arena-hero-desktop.webp") center top / cover no-repeat;
  opacity: 0.72;
}

.hub-bg__ice {
  position: absolute;
  inset: 520px 0 0;
  background:
    linear-gradient(rgba(141, 232, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 232, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.hub-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  background: rgba(7, 16, 31, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.hub-brand img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 12px rgba(59, 130, 246, 0.28))
    drop-shadow(0 0 24px rgba(59, 130, 246, 0.12));
}

.hub-brand span {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff, #b8c2d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-nav__links {
  display: none;
  align-items: center;
  gap: 8px;
}

.hub-nav__link,
.hub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hub-nav__link[aria-current="page"],
.hub-nav__link:hover,
.hub-pill:hover {
  border-color: rgba(147, 197, 253, 0.34);
  background: rgba(147, 197, 253, 0.10);
  color: #fff;
}

.hub-nav__search {
  min-width: 76px;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 13px;
}

.hub-main,
.hub-footer__inner {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.hub-hero {
  display: grid;
  gap: 26px;
  padding: 52px 0 22px;
}

.hub-kicker {
  margin: 0 0 12px;
  color: var(--hub-ice);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-kicker span {
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: var(--hub-ice);
  box-shadow: 0 0 16px rgba(147, 197, 253, 0.36);
}

.hub-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 13vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hub-hero__lead {
  max-width: 690px;
  margin: 15px 0 0;
  color: #d2deed;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
}

.hub-hero__actions,
.hub-card__actions,
.hub-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.hub-button--ghost {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024));
  color: rgba(248, 250, 252, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hub-panel,
.hub-card,
.hub-search-box,
.hub-featured {
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.024)),
    var(--hub-panel);
  box-shadow: var(--hub-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hub-hero__panel {
  padding: 20px;
}

.hub-hero__mini-title,
.hub-section__eyebrow,
.hub-card__type {
  margin: 0;
  color: var(--hub-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hub-stat {
  display: block;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, 0.12);
  border-radius: 14px;
  background: rgba(5, 9, 20, 0.36);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-stat:hover,
.hub-stat:focus-visible {
  border-color: var(--hub-line-strong);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  outline: none;
  transform: translateY(-2px);
}

.hub-stat strong {
  display: block;
  color: #fff;
  font-size: 21px;
  line-height: 1.1;
}

.hub-stat span {
  display: block;
  margin-top: 7px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.hub-section {
  padding: 27px 0;
}

.hub-back {
  padding-top: 22px;
}

.hub-back a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--hub-muted);
  font-size: 13px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.hub-back a:hover,
.hub-back a:focus-visible {
  color: #fff;
  outline: none;
}

.hub-back + .hub-hero {
  padding-top: 34px;
}

.hub-back + .hub-article {
  padding-top: 38px;
}

.hub-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.hub-section h2 {
  margin: 4px 0 0;
  font-size: clamp(27px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hub-section__copy {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--hub-muted);
  font-size: 15px;
}

.hub-featured {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.hub-featured h2,
.hub-featured h3,
.hub-card h3 {
  margin: 8px 0 0;
  font-size: clamp(23px, 5vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hub-featured p,
.hub-card p {
  margin: 10px 0 0;
  color: var(--hub-muted);
}

.hub-featured__meta,
.hub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: rgba(219, 234, 254, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.hub-featured__visual {
  min-height: 220px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 34%, rgba(147, 197, 253, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(134, 239, 172, 0.07)),
    url("../../assets/home/profile-showcase/clip-vault.jpg") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hub-grid {
  display: grid;
  gap: 14px;
}

.hub-grid--two,
.hub-grid--three {
  grid-template-columns: 1fr;
}

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  border-color: var(--hub-line-strong);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(147, 197, 253, 0.08);
  outline: none;
  transform: translateY(-3px);
}

.hub-card h3 {
  font-size: 22px;
}

.hub-card__description {
  flex: 1;
}

.hub-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.hub-card--compact {
  min-height: 180px;
}

.hub-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hub-resource {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  background: rgba(8, 17, 32, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-resource:hover,
.hub-resource:focus-visible {
  border-color: var(--hub-line-strong);
  outline: none;
  transform: translateY(-2px);
}

.hub-resource h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hub-resource p {
  margin: 10px 0 18px;
  color: var(--hub-muted);
  font-size: 14px;
}

.hub-resource .hub-card__link {
  margin-top: auto;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.hub-questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hub-question {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  background: rgba(8, 17, 32, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-question:hover,
.hub-question:focus-visible {
  border-color: var(--hub-line-strong);
  transform: translateY(-2px);
}

.hub-question__category {
  color: var(--hub-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-question strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.hub-question > span:last-child {
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hub-search-box {
  padding: 18px;
}

.hub-search-form {
  display: grid;
  gap: 10px;
}

.hub-search-form label {
  color: var(--hub-soft);
  font-size: 13px;
  font-weight: 900;
}

.hub-search-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 14px;
  background: rgba(5, 9, 20, 0.62);
  color: #fff;
  outline: none;
}

.hub-search-form input:focus {
  border-color: rgba(147, 197, 253, 0.62);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.hub-faq-list {
  display: grid;
  gap: 18px;
}

.hub-faq-category {
  display: grid;
  gap: 12px;
}

.hub-faq-category > h3 {
  margin: 0;
  color: var(--hub-cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-faq {
  padding: 18px;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  background: rgba(8, 17, 32, 0.72);
}

.hub-faq summary {
  position: relative;
  padding-right: 30px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
}

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

.hub-faq summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--hub-ice);
  font-size: 20px;
}

.hub-faq[open] summary::after {
  content: "-";
}

.hub-faq h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.hub-faq p {
  margin: 10px 0 0;
  color: var(--hub-muted);
}

.hub-faq__link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.hub-empty {
  padding: 24px;
  color: var(--hub-muted);
  text-align: center;
}

.hub-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 20px;
}

.hub-article__header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hub-line);
}

.hub-article__header h1 {
  max-width: 760px;
  margin: 0;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
}

.hub-article__lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: #d2deed;
  font-size: 19px;
  line-height: 1.6;
}

.hub-article__body {
  display: grid;
  gap: 28px;
  padding: 28px 0;
}

.hub-article__body section {
  scroll-margin-top: 100px;
}

.hub-article__body h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.hub-article__body p {
  margin: 12px 0 0;
  color: var(--hub-muted);
  font-size: 17px;
  line-height: 1.7;
}

.hub-related {
  padding-top: 16px;
}

.hub-article-cta {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 26px;
  border: 1px solid var(--hub-line-strong);
  border-radius: var(--hub-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 45%),
    var(--hub-panel-strong);
  box-shadow: var(--hub-shadow);
}

.hub-article-cta h2 {
  max-width: 620px;
  margin: 6px 0 18px;
  font-size: 30px;
  line-height: 1.12;
}

.hub-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(147, 197, 253, 0.12);
  background: rgba(5, 9, 20, 0.55);
}

.hub-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 28px;
  color: rgba(184, 194, 217, 0.82);
  font-size: 13px;
}

.hub-footer__inner > div {
  display: grid;
  gap: 3px;
}

.hub-footer__inner strong {
  color: #fff;
  font-size: 15px;
}

.hub-footer__inner span {
  color: rgba(184, 194, 217, 0.72);
}

.hub-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}

.hub-footer__links a,
.hub-footer__support {
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
  text-underline-offset: 3px;
}

.hub-footer__links a:hover,
.hub-footer__links a:focus-visible,
.hub-footer__support:hover,
.hub-footer__support:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.hub-footer__support {
  width: fit-content;
  color: rgba(147, 197, 253, 0.88);
  font-size: 12px;
}

@media (min-width: 720px) {
  .hub-nav {
    padding-inline: 40px;
  }

  .hub-nav__links {
    display: inline-flex;
  }

  .hub-main,
  .hub-footer__inner {
    width: min(1120px, calc(100% - 80px));
  }

  .hub-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
    align-items: center;
    min-height: 520px;
    padding-top: 72px;
  }

  .hub-featured {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: stretch;
    padding: 28px;
  }

  .hub-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hub-questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-search-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .hub-search-form label {
    grid-column: 1 / -1;
  }

  .hub-footer__inner {
    display: grid;
    gap: 12px 20px;
    grid-template-columns: minmax(190px, 1fr) auto;
    align-items: end;
  }

  .hub-footer__support {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .hub-main,
  .hub-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .hub-brand span {
    font-size: 18px;
  }

  .hub-brand img {
    width: 42px;
    height: 42px;
  }

  .hub-nav {
    min-height: 70px;
    padding-inline: 14px;
  }

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

  .hub-article {
    padding-top: 44px;
  }

  .hub-article__header h1 {
    font-size: 38px;
  }

  .hub-article__lead {
    font-size: 17px;
  }

  .hub-article__body h2,
  .hub-article-cta h2 {
    font-size: 25px;
  }
}

@media (max-width: 719px) {
  body[data-hub-page="hub"] .hub-main {
    display: flex;
    flex-direction: column;
  }

  body[data-hub-page="hub"] .hub-main > * {
    order: 4;
  }

  body[data-hub-page="hub"] .hub-hero {
    order: 1;
  }

  body[data-hub-page="hub"] .hub-section--resources {
    order: 2;
  }

  body[data-hub-page="hub"] .hub-section--featured {
    order: 3;
  }
}
