.tb-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  padding: 26px 24px;
  background: url("assets/toolbox/toolbox-home-background-v2-1920.webp") 50% center / cover no-repeat;
  box-shadow: 0 18px 46px rgba(9, 35, 48, .20), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.tb-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 38%, rgba(3, 17, 29, .12));
  pointer-events: none;
}

.tb-hero h1 {
  max-width: 70%;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .35);
}

.tb-module.tb-memory::after {
  background: #f3e5ed;
}

.tb-memory .tb-icon {
  background: #985b79;
}

@media (min-width: 680px) {
  .tb-hero {
    min-height: clamp(380px, 42vw, 540px);
    margin-bottom: 28px;
    padding: 32px;
    background-image: url("assets/toolbox/toolbox-home-background-v2-2560.webp");
    background-position: center top;
    box-shadow: 0 22px 54px rgba(25, 48, 55, .14);
  }

  .tb-hero::after {
    inset: auto 0 0;
    height: 190px;
    background: linear-gradient(
      180deg,
      rgba(238, 244, 241, 0) 0%,
      rgba(238, 244, 241, .08) 24%,
      rgba(238, 244, 241, .46) 58%,
      rgba(238, 244, 241, .92) 88%,
      #eef4f1 100%
    );
  }

  .tb-modules {
    position: relative;
    z-index: 2;
  }
}

@media (min-width: 1100px) {
  .tb-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .toolbox-launcher {
    background: linear-gradient(180deg, #eef4f1 0, #f5f7f5 58%, #eef2ef 100%);
  }

  .tb-shell {
    padding-top: 0;
  }

  .tb-hero {
    align-items: flex-start;
    min-height: 350px;
    margin: 0 -20px -46px;
    border: 0;
    border-radius: 0;
    padding: calc(54px + var(--android-status-inset, env(safe-area-inset-top))) 28px 118px;
    background: url("assets/toolbox/toolbox-home-background-v2-1920.webp") 50% center / cover no-repeat;
    box-shadow: none;
  }

  .tb-hero::after {
    inset: auto 0 0;
    height: 190px;
    background: linear-gradient(
      180deg,
      rgba(238, 244, 241, 0) 0%,
      rgba(238, 244, 241, .10) 18%,
      rgba(238, 244, 241, .46) 48%,
      rgba(238, 244, 241, .84) 74%,
      #eef4f1 100%
    );
  }

  .tb-hero h1 {
    max-width: 62%;
    font-size: 34px;
    line-height: 1.15;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .38);
  }

  .tb-modules {
    position: relative;
    z-index: 2;
  }
}
