.hub-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f6f8fc;
}

.hub-shell .hub-dark-zone {
  position: relative;
  min-height: 338px;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 10%, rgba(39, 119, 255, .20), transparent 30%),
    radial-gradient(circle at 88% 46%, rgba(126, 87, 255, .18), transparent 34%),
    linear-gradient(145deg, #071326 0%, #091a34 54%, #07152c 100%);
}

.hub-shell .hub-dark-zone::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -122px;
  height: 190px;
  border-radius: 50% 50% 0 0;
  border-top: 1px solid rgba(85, 138, 255, .34);
  box-shadow: 0 -24px 80px rgba(61, 105, 255, .18);
  pointer-events: none;
}

.hub-shell .hub-dark-zone .site-header {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-shell .hub-dark-zone .brand,
.hub-shell .hub-dark-zone nav a:not(.lang-switch) {
  color: #f7f9ff;
}

.hub-shell .hub-dark-zone nav a:not(.lang-switch) {
  opacity: .78;
}

.hub-shell .hub-dark-zone nav a:hover:not(.lang-switch) {
  opacity: 1;
}

.hub-shell .hub-dark-zone .lang-switch {
  color: #f7f9ff;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
}

.hub-shell .hub-hero {
  position: relative;
  z-index: 2;
  display: block;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 82px;
  text-align: center;
}

.hub-shell .hub-hero .eyebrow {
  margin-bottom: 13px;
  color: #8bb7ff;
}

.hub-shell .hub-hero h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2.55rem, 5.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.hub-shell .hub-hero p:last-child {
  max-width: 700px;
  margin: 20px auto 0;
  color: #aebbd0;
  font-size: 1.02rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hub-shell main.hub-light-zone {
  display: block;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 82px;
}

.hub-shell .hub-light-zone > section,
.hub-shell .hub-groups,
.hub-shell .hub-group {
  width: 100%;
  min-width: 0;
}

.hub-shell .hub-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.hub-shell .hub-intro-row h2 {
  margin: 0;
  color: #111d33;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hub-shell .hub-intro-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
  text-wrap: pretty;
}

.hub-shell .hub-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

.hub-shell .hub-group-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.hub-shell .hub-group-number {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe3f6;
  border-radius: 12px;
  color: #315fe3;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 7px 20px rgba(41, 62, 112, .04);
}

.hub-shell .hub-group-heading > div {
  min-width: 0;
}

.hub-shell .hub-group-heading h3 {
  margin: 0;
  color: #17243d;
  font-size: 1.18rem;
  letter-spacing: -.025em;
}

.hub-shell .hub-group-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hub-shell .hub-grid {
  display: grid !important;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

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

.hub-shell .hub-card {
  position: relative;
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 214px;
  flex-direction: column;
  padding: 23px;
  overflow: hidden;
  border: 1px solid #e2e7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(26, 40, 72, .045);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hub-shell.hub-tools .hub-card {
  min-height: 226px;
}

.hub-shell .hub-card::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(55, 111, 255, .16), rgba(114, 76, 255, .10));
  box-shadow: inset 0 0 0 1px rgba(62, 102, 235, .08);
}

.hub-shell .hub-card::after {
  content: "↗";
  position: absolute;
  right: 22px;
  top: 23px;
  color: #3d67e8;
  font-weight: 800;
}

.hub-shell .hub-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5f5;
  box-shadow: 0 18px 46px rgba(30, 48, 91, .085);
}

.hub-shell .hub-card strong {
  display: block;
  color: #111d33;
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -.018em;
}

.hub-shell .hub-card p {
  flex: 1;
  margin: 9px 0 20px;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hub-shell .hub-card > span {
  margin-top: auto;
  color: #315fe3;
  font-size: .86rem;
  font-weight: 750;
}

.hub-shell.hub-guides .hub-card::before {
  background: linear-gradient(135deg, rgba(131, 83, 255, .15), rgba(53, 119, 255, .10));
}

.hub-shell footer.hub-footer {
  width: 100%;
  min-height: 136px;
  margin: 0;
  padding: 32px max(24px, calc((100vw - 1180px) / 2));
  color: #98a8c2;
  background: #071326;
  border-top: 0;
}

.hub-shell .hub-footer a {
  color: #b8c4d7;
}

.hub-shell .hub-footer a:hover {
  color: #fff;
}

@media (max-width: 1000px) {
  .hub-shell.hub-tools .hub-grid,
  .hub-shell .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-shell .hub-intro-row {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  }
}

@media (max-width: 700px) {
  .hub-shell .hub-dark-zone {
    min-height: 292px;
  }

  .hub-shell .hub-dark-zone .site-header {
    width: min(100% - 28px, 1180px);
    height: 64px;
  }

  .hub-shell .hub-hero {
    width: min(100% - 28px, 900px);
    padding: 44px 0 68px;
  }

  .hub-shell .hub-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .hub-shell .hub-hero p:last-child {
    margin-top: 16px;
    font-size: .95rem;
  }

  .hub-shell main.hub-light-zone {
    width: min(100% - 24px, 1180px);
    padding: 40px 0 58px;
  }

  .hub-shell .hub-intro-row {
    display: block;
    margin-bottom: 28px;
  }

  .hub-shell .hub-intro-row p {
    margin-top: 10px;
    text-align: left;
  }

  .hub-shell .hub-groups {
    gap: 40px;
  }

  .hub-shell .hub-group-heading {
    gap: 12px;
  }

  .hub-shell .hub-group-number {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .hub-shell.hub-tools .hub-grid,
  .hub-shell .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-shell.hub-tools .hub-card,
  .hub-shell .hub-card {
    min-height: 172px;
    padding: 20px;
  }

  .hub-shell .hub-card::before {
    margin-bottom: 20px;
  }

  .hub-shell footer.hub-footer {
    padding: 28px 18px;
  }
}
