/* AI Chatbots / AI Art hub pages. Classes use the hub- prefix and theme overrides
   are limited to .hub-page, so the header and footer are unaffected. */

.hub-page {
  --hub-navy: #233170;
  --hub-border: #e5e7eb;
  --hub-title: #1e1e1e;
  --hub-muted: rgba(30, 30, 30, 0.6);
  --hub-gradient-start: #3073d5;
  --hub-gradient-end: #19cdff;
  --hub-container: 1298px;
  --hub-card-radius: 30px;

  background: #f9fcfc;
  color: var(--hub-title);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hub-page--art {
  --hub-card-radius: 20px;
}

.hub-page *,
.hub-page *::before,
.hub-page *::after {
  box-sizing: border-box;
}

.hub-page h1,
.hub-page h2,
.hub-page p {
  margin: 0;
  padding: 0;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  line-height: normal;
}

.hub-page img {
  display: block;
}

/* Hero */

.hub-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 574px;
  padding: 40px 20px;
  overflow: hidden;
  background: #0b1238;
}

.hub-page--art .hub-hero {
  min-height: 661px;
}

.hub-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
}

.hub-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.hub-hero__text {
  display: flex;
  flex-direction: column;
  flex: 0 1 673px;
  gap: 38px;
  color: #fff;
}

.hub-page .hub-hero__title {
  color: #fff;
  font-size: 56px;
  font-weight: 700;
}

.hub-hero__gradient {
  color: #fff;
  background-image: linear-gradient(-86deg, var(--hub-gradient-start) 8.9%, var(--hub-gradient-end) 51.7%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-page .hub-hero__lead {
  max-width: 659px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.hub-hero__media {
  flex: none;
  width: 535px;
  height: 401px;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.hub-page--art .hub-hero__inner {
  flex-direction: column;
  gap: 68px;
  text-align: center;
}

.hub-page--art .hub-hero__title {
  max-width: 934px;
}

.hub-hero__icons {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 73px;
}

.hub-hero__icons img {
  flex: none;
  width: auto;
  height: 121px;
  max-width: none;
}

/* Card grid */

.hub-cards {
  width: min(var(--hub-container), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.hub-page--art .hub-cards {
  padding: 60px 0;
}

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

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 48px;
  background: #fff;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-card-radius);
}

.hub-card__icon {
  height: 52px;
}

.hub-card__icon > img {
  width: 42.5px;
  height: auto;
  max-width: none;
}

.hub-page--art .hub-card__icon > img {
  width: auto;
  height: 52px;
}

.hub-page .hub-card__title {
  padding-right: 64px;
  color: var(--hub-title);
  font-size: 24px;
  font-weight: 700;
}

.hub-page .hub-card__title a,
.hub-page .hub-card__title a:hover {
  color: inherit;
  text-decoration: none;
}

.hub-page .hub-card__desc {
  min-height: 120px;
  color: var(--hub-muted);
  font-size: 20px;
  font-weight: 500;
}

.hub-page--art .hub-card__desc {
  min-height: 72px;
}

.hub-page .hub-card__support {
  flex: 1 0 auto;
  min-height: 94px;
  padding: 18px 0;
  border-top: 0.5px solid var(--hub-border);
  color: var(--hub-muted);
  font-size: 16px;
  font-weight: 400;
}

.hub-page a.hub-card__arrow {
  position: absolute;
  top: 29px;
  right: 29px;
  display: flex;
  padding: 13px;
  background: var(--hub-navy);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.hub-card__arrow img {
  transition: transform 0.2s ease;
}

.hub-page a.hub-card__arrow:hover {
  background: #222d5b;
}

.hub-page a.hub-card__arrow:hover img {
  transform: rotate(45deg);
}

.hub-page .hub-card__title a:focus-visible,
.hub-page .hub-hero__icons a:focus-visible {
  outline: 3px solid var(--hub-gradient-start);
  outline-offset: 3px;
}

.hub-cards__dots {
  display: none;
}

/* Banner */

.hub-banner {
  width: min(var(--hub-container), calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.hub-banner__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 352px;
  padding: 40px 68px;
  overflow: hidden;
  background: #121214;
  border-radius: 40px;
  text-align: center;
}

.hub-banner__bg,
.hub-banner__tint,
.hub-banner__fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-banner__bg {
  max-width: none;
  object-fit: cover;
}

.hub-banner__tint {
  background: #2e5287;
  mix-blend-mode: color;
}

.hub-banner__fade {
  background: linear-gradient(to bottom, rgba(0, 33, 82, 0), #171717);
}

.hub-banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.hub-page .hub-banner__title {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}

.hub-page .hub-banner__text {
  color: var(--hub-border);
  font-size: 20px;
  font-weight: 400;
}

/* Tablet and mobile: stacked hero, swipeable card row with dots */

@media (max-width: 1024px) {
  .hub-hero,
  .hub-page--art .hub-hero {
    min-height: 0;
  }

  .hub-hero__bg {
    object-position: 87% top;
  }

  .hub-hero__inner {
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 640px;
    text-align: center;
  }

  .hub-page--art .hub-hero__inner {
    gap: 28px;
  }

  .hub-hero__text {
    flex: none;
    gap: 28px;
    width: 100%;
  }

  .hub-page .hub-hero__title {
    font-size: 32px;
  }

  .hub-page .hub-hero__lead {
    max-width: none;
  }

  .hub-hero__media {
    width: 100%;
    height: auto;
    max-width: 535px;
  }

  .hub-hero__icons {
    gap: 55px;
  }

  .hub-hero__icons img {
    height: 91px;
  }

  .hub-cards,
  .hub-page--art .hub-cards {
    width: 100%;
    padding: 62px 0;
  }

  .hub-cards__track {
    display: flex;
    gap: 18px;
    padding: 0 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 28px;
    scrollbar-width: none;
  }

  .hub-cards__track::-webkit-scrollbar {
    display: none;
  }

  .hub-card {
    flex: 0 0 min(366px, calc(100% - 28px));
    scroll-snap-align: start;
  }

  .hub-page .hub-card__desc,
  .hub-page--art .hub-card__desc {
    min-height: 0;
  }

  .hub-cards__dots {
    display: flex;
    justify-content: center;
    gap: 13px;
    margin-top: 28px;
  }

  .hub-page .hub-cards__dot {
    width: 11px;
    height: 11px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hub-border);
    cursor: pointer;
  }

  .hub-page .hub-cards__dot[aria-current="true"] {
    background: #cacacc;
  }

  .hub-banner {
    width: calc(100% - 50px);
    max-width: 640px;
    padding-bottom: 62px;
  }

  .hub-banner__box {
    min-height: 360px;
    padding: 40px;
  }

  .hub-page .hub-banner__title {
    font-size: 28px;
  }

  .hub-page .hub-banner__text {
    font-size: 16px;
  }
}

/* Below the 466px mobile design the three hero icons no longer fit in one row. */
@media (max-width: 433px) {
  .hub-hero__icons {
    gap: 32px;
  }

  .hub-hero__icons img {
    height: 66px;
  }
}
